/* ANWS — strona główna (motyw jasny/beżowy + ciemny) */

:root {
  color-scheme: light;

  --bg: #EDE6DC;
  --bg-soft: #F4EFE8;
  --ink: #3A1F3D;
  --ink-deep: #1F0F21;
  --ink-muted: #5A4A55;
  --accent: #6B7F42;          /* linie, kropki */
  --accent-text: #4F5F2E;     /* akcent w tekście */
  --focus: #3A1F3D;

  --glass: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(58, 31, 61, 0.06), 0 14px 40px rgba(58, 31, 61, 0.12);
  --menu-bg: rgba(244, 239, 232, 0.97);
  --line: rgba(58, 31, 61, 0.14);

  --ib-bg: rgba(58, 31, 61, 0.07);
  --ib-border: rgba(58, 31, 61, 0.12);
  --ib-hover: rgba(58, 31, 61, 0.14);
  --call-bg: #4F5F2E;
  --call-hover: #3E4C22;
  --call-ink: #EDE6DC;
  --call-border: transparent;
  --btn-bg: #3A1F3D;
  --btn-ink: #EDE6DC;
  --btn-hover: #1F0F21;

  --badge-bg: rgba(255, 255, 255, 0.45);
  --badge-border: rgba(255, 255, 255, 0.8);

  --tile1: #3A1F3D;
  --tile2: #4A5A2B;
  --tile3: #6B4E3D;
  --tile-border: rgba(255, 255, 255, 0.13);
  --tile-shadow: 0 28px 56px rgba(58, 31, 61, 0.24);
  --tile-shadow-hover: 0 40px 70px rgba(58, 31, 61, .32);
  --tile-ink: #EDE6DC;
  --tile-muted: #E6DDDF;
  --cta-bg: #EDE6DC;
  --cta1: #3A1F3D;
  --cta2: #2F3A1B;
  --cta3: #4A3328;
  --bubble-olive: #6B7F42;
  --bubble-brown: #6B4E3D;
  --title-accent: #6B4E3D;   /* „przewozowe” w tytule — brąz kafelka „Pilne przewozy!” */
  --bubble-gold: #A8793F;

  --step-bg: rgba(255, 255, 255, 0.45);
  --step-border: rgba(255, 255, 255, 0.85);
  --step-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(58, 31, 61, 0.08);
  --step-dot-bg: #EDE6DC;
  --step-dot-border: #3A1F3D;
  --step-dot-hover-bg: #3A1F3D;
  --step-dot-hover-ink: #EDE6DC;
  --band-bg: transparent;

  --bus: #3A1F3D;
  --bus2: #6B4E3D;
  --bus-win: #EDE6DC;
  --flow: #6B7F42;
  --flow-op: 1;
  --road: #3A1F3D;
  --road-dash: #EDE6DC;

  --cursor: #6B7F42;
  --cursor-glow: rgba(107, 127, 66, 0.65);
  --cursor-ring: rgba(107, 127, 66, 0.55);
  --cursor-ring-bg: rgba(107, 127, 66, 0.14);

  --qr-ink: #1F0F21;

  --ln-a: #3A1F3D;
  --ln-a-ink: #EDE6DC;
  --ln-b: #6B7F42;
  --ln-b-badge: #4F5F2E;
  --ln-b-ink: #F4EFE8;
  --ln-trunk: #8C7B86;
  --tk-a: #4A5A2B;
  --tk-b: #3A1F3D;
  --tk-shadow: rgba(58, 31, 61, .28);
  --stamp: #A8793F;

  --input-bg: rgba(255, 255, 255, 0.7);
  --input-border: rgba(58, 31, 61, 0.22);
  --input-border-hover: rgba(58, 31, 61, 0.4);
  --input-ring: rgba(107, 127, 66, 0.25);
  --err-ink: #A3322A;
  --err-bg: rgba(163, 50, 42, 0.08);
  --err-border: rgba(163, 50, 42, 0.25);
  --err-ring: rgba(163, 50, 42, 0.18);
  --ok-ink: #3F6B2A;
  --ok-bg: rgba(63, 107, 42, 0.1);
  --ok-border: rgba(63, 107, 42, 0.28);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.6, .5, 1);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --blur: 24px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0F1013;
  --bg-soft: #1B1D22;
  --ink: #F5F2ED;
  --ink-deep: #FFFFFF;
  --ink-muted: #C2C4CB;
  --accent: #B5C77F;
  --accent-text: #B5C77F;
  --focus: #B5C77F;

  --glass: rgba(27, 29, 34, 0.5);
  --glass-border: rgba(245, 242, 237, 0.14);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 48px rgba(0, 0, 0, 0.45);
  --menu-bg: rgba(27, 29, 34, 0.97);
  --line: rgba(245, 242, 237, 0.12);

  --ib-bg: rgba(245, 242, 237, 0.08);
  --ib-border: rgba(245, 242, 237, 0.14);
  --ib-hover: rgba(245, 242, 237, 0.2);
  --call-bg: rgba(107, 127, 66, 0.4);
  --call-hover: rgba(107, 127, 66, 0.6);
  --call-ink: #F5F2ED;
  --call-border: rgba(181, 199, 127, 0.4);
  --btn-bg: #EDE6DC;
  --btn-ink: #1B1D22;
  --btn-hover: #FFFFFF;

  --badge-bg: rgba(245, 242, 237, 0.06);
  --badge-border: rgba(245, 242, 237, 0.14);

  --tile1: rgba(58, 31, 61, 0.62);
  --tile2: rgba(107, 127, 66, 0.3);
  --tile3: rgba(107, 78, 61, 0.5);
  --tile-border: rgba(245, 242, 237, 0.18);
  --tile-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 30px 60px rgba(0, 0, 0, 0.45);
  --tile-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .45), 0 40px 80px rgba(0, 0, 0, .55);
  --tile-ink: #F5F2ED;
  --tile-muted: #D6D7DC;
  --cta1: #3A1F3D;
  --cta2: #2F3A1B;
  --cta3: #4A3328;

  --step-bg: rgba(27, 29, 34, 0.55);
  --step-border: rgba(245, 242, 237, 0.1);
  --step-shadow: none;
  --step-dot-bg: rgba(107, 127, 66, 0.35);
  --step-dot-border: #B5C77F;
  --step-dot-hover-bg: #6B7F42;
  --step-dot-hover-ink: #F5F2ED;
  --band-bg: rgba(27, 29, 34, 0.35);

  --bus: #F5F2ED;
  --bus2: #C9A58D;
  --title-accent: #C9A58D;
  --bus-win: #1B1D22;
  --flow: #B5C77F;
  --flow-op: .55;
  --road: #2B2E36;
  --road-dash: #B5C77F;

  --cursor: #B5C77F;
  --cursor-glow: rgba(181, 199, 127, 0.6);
  --cursor-ring: rgba(181, 199, 127, 0.5);
  --cursor-ring-bg: rgba(181, 199, 127, 0.12);

  --ln-a: #C79BCB;
  --ln-a-ink: #1B1D22;
  --ln-b: #B5C77F;
  --ln-b-badge: #B5C77F;
  --ln-b-ink: #1B1D22;
  --ln-trunk: #7E828C;
  --tk-a: #2F3A1F;
  --tk-b: #2E1B31;
  --tk-shadow: rgba(0, 0, 0, .55);
  --stamp: #E9C98A;

  --input-bg: rgba(15, 16, 19, 0.6);
  --input-border: rgba(245, 242, 237, 0.18);
  --input-border-hover: rgba(245, 242, 237, 0.32);
  --input-ring: rgba(181, 199, 127, 0.22);
  --err-ink: #F2958C;
  --err-bg: rgba(242, 149, 140, 0.1);
  --err-border: rgba(242, 149, 140, 0.3);
  --err-ring: rgba(242, 149, 140, 0.18);
  --ok-ink: #9FCB7F;
  --ok-bg: rgba(159, 203, 127, 0.12);
  --ok-border: rgba(159, 203, 127, 0.32);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
}

a { color: var(--ink); }
a:hover { color: var(--ink-deep); }
h1, h2, h3, p, ol, ul { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 16px; color: var(--btn-ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

/* ---------- układ ---------- */

.page { position: relative; min-height: 100vh; overflow: clip; }

.wrap {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
main { display: flex; flex-direction: column; gap: 72px; }

/* ---------- tło ---------- */

.bg { position: absolute; inset: 0; pointer-events: none; }
.bg svg { position: absolute; left: 0; top: 0; width: 100%; }
.bg-desktop { height: 1700px; }
.bg-mobile { display: none; height: 844px; }

.route-dots { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 12; }
.flow { stroke: var(--flow); stroke-opacity: var(--flow-op); }
@keyframes flow { to { stroke-dashoffset: -240; } }
.flow { animation: flow 6s linear infinite; }

.pulse { stroke: var(--accent); transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.pulse.p2 { animation-delay: 1.3s; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
.stop-bg { fill: var(--bg); stroke: var(--accent); transition: fill .4s; }

.bus-body { fill: var(--bus); }
.bus-win { fill: var(--bus-win); }
.bus-wheel { fill: var(--bus-win); stroke: var(--bus); }
.bus2-body { fill: var(--bus2); }
.bus2-wheel { fill: var(--bus-win); stroke: var(--bus2); }

/* zorza — tylko w trybie ciemnym */
.aurora { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
:root[data-theme="dark"] .aurora { opacity: 1; }
.blob { position: absolute; border-radius: 50%; }
.b1 { width: 640px; height: 640px; right: -160px; top: -220px; background: #6B7F42; opacity: .5; filter: blur(120px); animation: drift1 22s ease-in-out infinite; }
.b2 { width: 600px; height: 600px; left: -220px; top: 260px; background: #3A1F3D; opacity: .95; filter: blur(110px); animation: drift2 26s ease-in-out infinite; }
.b3 { width: 520px; height: 520px; left: 38%; top: 520px; background: #6B4E3D; opacity: .5; filter: blur(130px); animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-160px, 120px) scale(1.18); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(180px, -90px) scale(1.12); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(120px, 80px) scale(.9); } 66% { transform: translate(-100px, 40px) scale(1.1); } }
.grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(245, 242, 237, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 20%, transparent 75%);
}

/* ---------- wejścia ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(32px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes dropin { from { opacity: 0; transform: translateY(-36px) scale(.96); } to { opacity: 1; transform: none; } }
.drop { opacity: 0; animation: dropin .9s var(--ease-out) .1s forwards; }
.in { opacity: 0; animation: rise 1s var(--ease-out) forwards; }
.t1 { animation-delay: .25s; } .t2 { animation-delay: .4s; } .t3 { animation-delay: .55s; }
.t4 { animation-delay: .75s; } .t5 { animation-delay: .9s; } .t6 { animation-delay: 1.05s; } .t7 { animation-delay: 1.2s; }

/* ---------- logo rysowane linią ---------- */

.logo { width: var(--logo-w, 100px); height: auto; display: block; transition: width .35s var(--ease-out); }
.logo g { stroke: var(--ink); transition: stroke .4s; }
.logo .d5 { stroke: var(--accent); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.draw path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) forwards; }
.draw .d2 { animation-delay: .25s; } .draw .d3 { animation-delay: .5s; } .draw .d4 { animation-delay: .75s; } .draw .d5 { animation-delay: 1.05s; }
.stop {
  fill: var(--bg-soft); stroke: var(--accent); stroke-width: 3.5;
  transform-box: fill-box; transform-origin: center; transform: scale(0);
  animation: pop .5s ease-out forwards;
}
.s1 { animation-delay: 1.3s; } .s2 { animation-delay: 1.42s; } .s3 { animation-delay: 1.54s; } .s4 { animation-delay: 1.66s; }

/* ---------- nawigacja ---------- */

/* Slot ma stałą wysokość, więc zmniejszanie menu nie przesuwa treści pod nim. */
.nav-slot { position: sticky; top: 12px; z-index: 20; height: 64px; }

.nav {
  --btn: 44px;
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
  backdrop-filter: blur(var(--blur)) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: width .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s, background-color .4s, border-color .4s;
}
.nav.is-compact {
  --btn: 36px;
  --logo-w: 74px;
  width: min(100%, 1000px);
  padding: 5px 5px 5px 18px;
  gap: 12px;
}
.nav.is-compact .nav-links { gap: 22px; font-size: 14px; }
.nav.is-compact { box-shadow: var(--glass-shadow), 0 18px 40px rgba(0, 0, 0, 0.1); }

.brand { display: flex; align-items: center; text-decoration: none; }

.nav-links, .ib.call, .login { white-space: nowrap; }
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 600; transition: gap .4s, font-size .4s; }
.nav-links a { position: relative; text-decoration: none; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--accent-text); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.ib {
  display: grid; place-items: center;
  width: var(--btn, 44px); height: var(--btn, 44px); padding: 0;
  border-radius: 50%;
  background: var(--ib-bg);
  border: 1px solid var(--ib-border);
  color: var(--ink);
  font: 600 13px/1 var(--font-body);
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background .25s, width .4s var(--ease-out), height .4s var(--ease-out);
}
.ib:hover { transform: translateY(-2px) scale(1.07); background: var(--ib-hover); color: var(--ink); }

.ib.call {
  display: flex; align-items: center; gap: 8px;
  width: auto; padding: 0 15px 0 13px;
  border-radius: 999px; border-color: var(--call-border);
  background: var(--call-bg); color: var(--call-ink);
  text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0;
}
.ib.call:hover { background: var(--call-hover); color: var(--call-ink); }

@keyframes ring { 0%, 76%, 100% { transform: rotate(0); } 80% { transform: rotate(-16deg); } 84% { transform: rotate(14deg); } 88% { transform: rotate(-10deg); } 92% { transform: rotate(6deg); } }
.ring { transform-origin: 50% 50%; animation: ring 4.5s ease-in-out infinite; }

/* przełącznik języka PL | EN: obie opcje widoczne, aktywna na suwaku */
.lang-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  height: var(--btn, 44px); padding: 3px;
  border-radius: 999px; background: var(--ib-bg); border: 1px solid var(--ib-border);
  transition: height .4s var(--ease-out);
}
.lang-switch button {
  position: relative; z-index: 1; min-width: 38px; padding: 0 8px;
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 700 12px/1 var(--font-body); letter-spacing: .06em; color: var(--ink-muted);
  transition: color .3s;
}
.lang-switch button[aria-pressed="true"] { color: var(--btn-ink); }
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--ink); }
.lang-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--btn-bg);
  box-shadow: 0 4px 12px rgba(58, 31, 61, .25);
  transition: transform .4s var(--ease-spring);
}
:root[lang="en"] .lang-thumb { transform: translateX(100%); }

/* przełącznik motywu: księżyc w jasnym, słońce w ciemnym */
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.theme-btn svg { transition: transform .5s var(--ease-spring); }
.theme-btn:hover svg { transform: rotate(25deg); }

.nav-sep { width: 1px; height: 24px; margin: 0 4px; background: var(--line); }

.login {
  display: inline-flex; align-items: center;
  min-height: var(--btn, 44px); padding: 0 20px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .25s, box-shadow .25s, min-height .4s var(--ease-out);
}
.login:hover { color: var(--btn-ink); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(58, 31, 61, .28); }

.menu-btn { display: none; border: 0; background: var(--btn-bg); color: var(--btn-ink); }
.menu-btn:hover { background: var(--btn-hover); color: var(--btn-ink); }
.menu-btn path { transition: transform .3s var(--ease-out); transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .m1 { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .m2 { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: min(320px, 100%);
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px;
  border-radius: 28px;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 24px 48px rgba(0, 0, 0, 0.18);
  transform-origin: top right;
  animation: menuin .25s var(--ease-out);
}
.menu[hidden] { display: none; }
@keyframes menuin { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.menu > a {
  display: flex; align-items: center; min-height: 48px; padding: 0 18px;
  border-radius: 18px; text-decoration: none; font-weight: 600; font-size: 16px;
  transition: background .2s;
}
.menu > a:hover { background: var(--ib-bg); }
.menu .menu-login { justify-content: center; margin-top: 4px; background: var(--btn-bg); color: var(--btn-ink); border-radius: 999px; }
.menu .menu-login:hover { background: var(--btn-hover); color: var(--btn-ink); }
.menu-social { display: none; gap: 8px; padding: 4px 8px; }
.menu-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ib-bg); color: var(--ink);
}

/* ---------- hero ---------- */

.hero { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 24px; text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
@keyframes blink { 50% { opacity: .35; } }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }

/* tytuł: litery wchodzą kolejno, pod spodem rysuje się droga z autobusem */
.title {
  position: relative;
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 6.2vw, 86px); line-height: 1.08; letter-spacing: -0.03em;
}
.js .title-text:not(.is-split) { opacity: 0; }
.title-text { display: block; }
.word { display: inline-block; white-space: nowrap; }
.word-accent { color: var(--title-accent); }
.ch { display: inline-block; transition: transform .35s var(--ease-spring); animation: letter .8s var(--ease-out) backwards; animation-delay: calc(var(--i) * 45ms + 250ms); }
.ch { vertical-align: top; height: 1.25em; line-height: 1.25; }
.ch { overflow: hidden; }
.ch.is-set { animation: none; }

/* rolka po najechaniu na tytuł: litera zjeżdża w górę, wjeżdża jej kopia w kolorze brązu (a w drugim słowie — w kolorze tekstu) */
.roll { display: block; transition: transform .6s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--i) * 24ms); }
.roll > span { display: block; height: 1.25em; }
.roll > span + span { color: var(--title-accent); }
.word-accent .roll > span + span { color: var(--ink); }
.title:hover .roll { transform: translateY(-1.25em); }
@keyframes letter { from { opacity: 0; transform: translateY(.55em) rotate(4deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

.road { display: block; width: 100%; height: auto; margin-top: .1em; overflow: visible; }
.road-base { fill: none; stroke: var(--road); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.4s cubic-bezier(.6, 0, .2, 1) 1s forwards; }
.road-dash { fill: none; stroke: var(--road-dash); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 10 9; opacity: 0; animation: fadein .5s 2s forwards, dashmove 1.1s linear 2s infinite; }
@keyframes fadein { to { opacity: 1; } }
@keyframes dashmove { to { stroke-dashoffset: -19; } }
.road-stop { fill: var(--bg-soft); stroke: var(--accent); stroke-width: 5; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .5s ease-out forwards; transition: fill .4s; }
.rs1 { animation-delay: 2s; } .rs2 { animation-delay: 2.15s; } .rs3 { animation-delay: 2.3s; }
.road-bus { animation: drive 11s cubic-bezier(.45, 0, .55, 1) 2.4s infinite backwards; transform: translate(-60px, 30px); }
@keyframes drive { 0% { transform: translate(-60px, 30px); } 100% { transform: translate(1060px, 30px); } }

.lead { max-width: 600px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-muted); }
.lead-short { display: none; }

/* ---------- kafelki ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile-wrap { display: flex; }

.tile {
  --rx: 0deg; --ry: 0deg; --ty: 0px;
  position: relative; overflow: hidden;
  flex-grow: 1;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 420px; padding: 32px;
  border-radius: 36px;
  text-decoration: none; color: var(--tile-ink);
  border: 1px solid var(--tile-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--tile-shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty));
  transition: transform .3s var(--ease-out), box-shadow .4s;
}
.tile:hover { color: var(--tile-ink); --ty: -6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), var(--tile-shadow-hover); }
.tile-create { background: var(--tile1); }
.tile-find { background: var(--tile2); }
.tile-urgent { background: var(--tile3); }
.tile-create .cta { color: var(--cta1); }
.tile-find .cta { color: var(--cta2); }
.tile-urgent .cta { color: var(--cta3); }

.glow {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity .35s;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .17), transparent 60%);
}
.tile:hover .glow { opacity: 1; }
.tile::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: translateX(-130%) skewX(-18deg); pointer-events: none;
}
@keyframes shine { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(320%) skewX(-18deg); } }
.tile:hover::after { animation: shine 1.1s ease; }

.tile-top { position: relative; display: grid; grid-template-columns: auto 1fr; row-gap: 20px; align-items: start; }
.tile-num {
  grid-column: 2; grid-row: 1; justify-self: end;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: .14em;
  color: rgba(237, 230, 220, 0.7);
}
.tile-tag {
  padding: 5px 11px; border-radius: 999px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #3A2410; background: #E9C98A;
}
.tile-title {
  grid-column: 1 / -1; grid-row: 2;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.12;
}

.bubble {
  grid-column: 1; grid-row: 1;
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 24px;
  color: #EDE6DC;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 26px rgba(0, 0, 0, 0.25);
  transition: transform .4s var(--ease-spring);
}
.bubble-olive { background: var(--bubble-olive); }
.bubble-brown { background: var(--bubble-brown); }
.bubble-gold { background: var(--bubble-gold); }
.tile:hover .bubble { transform: scale(1.08) rotate(-4deg); }

.ic-plus { transform-origin: 12px 12px; transition: transform .5s var(--ease-spring); }
.tile:hover .ic-plus { transform: rotate(90deg); }
@keyframes search { 0% { transform: translate(0, 0); } 25% { transform: translate(2px, -2px); } 50% { transform: translate(0, -3px); } 75% { transform: translate(-2px, -1px); } 100% { transform: translate(0, 0); } }
.tile:hover .ic-search { animation: search .9s ease-in-out infinite; }
@keyframes zap { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.18) rotate(-6deg); } 40% { transform: scale(.95) rotate(4deg); } 60% { transform: scale(1.1); } }
.ic-bolt { transform-origin: 12px 12px; }
.tile:hover .ic-bolt { animation: zap 1s ease-in-out infinite; }

.tile-text { position: relative; margin-top: -8px; }
.tile-desc { display: block; max-width: 430px; font-size: 16px; line-height: 1.55; color: var(--tile-muted); }
.desc-short { display: none !important; }

/* licznik zleceń */
.count { position: relative; display: flex; align-items: baseline; gap: 10px; }
.count b {
  font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.count span { font-size: 14px; font-weight: 500; color: var(--tile-muted); }

.cta {
  position: relative; margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px;
  background: var(--cta-bg, #EDE6DC);
  font-weight: 600; font-size: 16px;
}
.cta-arrow { display: grid; place-items: center; }
.arrow { transition: transform .3s; }
.tile:hover .arrow { transform: translateX(6px); }

/* mini tablica odjazdów w kafelkach: trzy najbliższe zlecenia (trasa + stawka) */
.mboard { position: relative; display: grid; padding: 4px 16px 6px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.mb-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0 8px; border-bottom: 1px solid rgba(237, 230, 220, .2); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tile-muted); }
.mb-list { list-style: none; margin: 0; padding: 0; }
.mb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(237, 230, 220, .22); }
.mb-row:last-child { border-bottom: 0; }
.mb-route { position: relative; display: grid; gap: 4px; min-width: 0; padding-left: 20px; }
.mb-route::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; border-left: 2px dashed rgba(237, 230, 220, .45); }
.mb-stop { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.mb-stop::before { content: ""; position: absolute; left: -20px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--tile-ink); box-sizing: border-box; transition: transform .35s var(--ease-spring); }
.mb-stop-end::before { background: transparent; border: 2.5px solid var(--tile-ink); }
.mboard-urgent .mb-stop::before { background: #E9C98A; }
.mboard-urgent .mb-stop-end::before { background: transparent; border-color: #E9C98A; }
.tile:hover .mb-stop::before { transform: scale(1.25); }
.mb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-more { flex-shrink: 0; padding: 0 6px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 700; background: rgba(237, 230, 220, .18); vertical-align: 1px; }
.mb-price { font-family: var(--font-display); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mboard-urgent .mb-price { color: #E9C98A; }
.mb-empty { padding: 14px 0; font-size: 14px; color: var(--tile-muted); }
.mb-row { animation: mb-in .6s var(--ease-out) backwards; animation-delay: calc(1.2s + var(--d, 0) * 120ms); }
@keyframes mb-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .mboard { padding: 2px 14px 4px; border-radius: 18px; }
  .mb-row { padding: 9px 0; gap: 10px; }
  .mb-stop { font-size: 14px; }
  .mb-price { font-size: 16px; }
}

/* ---------- pasek przewozów (przesuwa się zawsze, także pod kursorem) ---------- */

.band {
  position: relative; overflow: hidden;
  margin: 0 -24px; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--band-bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee {
  display: flex; width: max-content; gap: 36px;
  font-family: var(--font-display); font-size: 20px; font-weight: 500; white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee i { font-style: normal; color: var(--accent); }

/* ---------- jak to działa ---------- */

.how { display: flex; flex-direction: column; gap: 36px; scroll-margin-top: 90px; }
.how-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.how-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; }
.how-head span { font-size: 15px; color: var(--ink-muted); }



/* mapa linii: zlecający (A) i przewoźnik (B) */
.role-switch {
  align-self: flex-start;
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  border-radius: 999px; background: var(--ib-bg); border: 1px solid var(--ib-border);
}
.role-switch button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: none; color: var(--ink-muted); cursor: pointer;
  font: 600 14px var(--font-body);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.role-switch button:hover { color: var(--ink); }
.role-switch button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.rs-dot { width: 10px; height: 10px; border-radius: 50%; }
.rs-a { background: var(--ln-a); }
.rs-b { background: var(--ln-b); }
.role-switch button[aria-pressed="true"] .rs-dot { box-shadow: 0 0 0 2px var(--btn-ink); }

.net { position: relative; height: 540px; }
.net-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ln { fill: none; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ln-a { stroke: var(--ln-a); }
.ln-b { stroke: var(--ln-b); }
.ln-trunk { stroke: var(--ln-trunk); }
.ln-flow { fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 14; vector-effect: non-scaling-stroke; opacity: .75; animation: lnflow 1.6s linear infinite; }
@keyframes lnflow { to { stroke-dashoffset: -16; } }
.js .net-lines { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s cubic-bezier(.65, 0, .35, 1); }
.net.is-in .net-lines { clip-path: inset(-20px -20px -20px -20px); }

/* przyciemnianie drugiej drogi po wyborze roli */
.net [data-role] { transition: opacity .45s, filter .45s; }
.net[data-role="a"] [data-role="b"], .net[data-role="b"] [data-role="a"] { opacity: .14; filter: grayscale(1); }
.net[data-role="a"] .handshake, .net[data-role="b"] .handshake { opacity: .5; }

.ln-badge {
  position: absolute; left: 59.5%; transform: translate(-50%, -50%);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 0 4px var(--bg);
}
.badge-a { top: 160px; background: var(--ln-a); color: var(--ln-a-ink); }
.badge-b { top: 400px; background: var(--ln-b-badge); color: var(--ln-b-ink); }

.handshake {
  position: absolute; left: 72%; top: 280px; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-muted);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: opacity .45s;
}
.handshake::before {
  content: ""; position: absolute; left: 50%; top: -96px; bottom: -96px; width: 0; z-index: -1;
  border-left: 2px dashed var(--ln-trunk); transform: translateX(-1px);
}

.nstops { list-style: none; margin: 0; padding: 0; }
.nstop { position: absolute; width: 0; height: 0; }
.st1 { left: 9%; top: 280px; }
.st2 { left: 47%; top: 160px; }
.st3 { left: 72%; top: 160px; }
.st4 { left: 72%; top: 400px; }
.st-end { left: 92%; top: 280px; }

.nstop-dot {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink); border: 4px solid var(--ln-trunk);
  font: 600 15px var(--font-display); box-sizing: border-box;
  box-shadow: 0 0 0 5px var(--bg);
  transition: transform .35s var(--ease-spring);
}
.st2 .nstop-dot, .st3 .nstop-dot { border-color: var(--ln-a); }
.st4 .nstop-dot { border-color: var(--ln-b); }
.end-dot { width: 56px; height: 56px; border: 0; background: var(--btn-bg); }
.end-dot svg { width: 30px; height: auto; }
.end-dot .nb-body { fill: var(--btn-ink); }
.end-dot .nb-win { fill: var(--btn-bg); }
.end-dot .nb-wheel { fill: var(--btn-bg); stroke: var(--btn-ink); }
.nstop:hover .nstop-dot { transform: translate(-50%, -50%) scale(1.12); }

.nstop-card {
  position: absolute; width: 240px;
  display: grid; gap: 4px;
  padding: 14px 16px; border-radius: 18px;
  background: var(--step-bg); border: 1px solid var(--step-border); box-shadow: var(--step-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.nstop-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.nstop-card p { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.nstop-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.nstop-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ln-trunk); }
.tag-a::before { background: var(--ln-a); }
.tag-b::before { background: var(--ln-b); }

.st1 .nstop-card { left: -26px; top: 36px; width: 220px; }
.st2 .nstop-card, .st3 .nstop-card { left: 0; bottom: 34px; transform: translateX(-50%); }
.st4 .nstop-card { left: 0; top: 34px; transform: translateX(-50%); }
.st-end .nstop-card { right: -40px; top: 42px; width: auto; text-align: right; padding: 10px 16px; }
.st-end .nstop-card h3 { white-space: nowrap; }

/* wejście: przystanki pojawiają się po kolei, gdy sekcja wjedzie na ekran */
.js .nstop { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .net.is-in .nstop { opacity: 1; transform: none; }
.net.is-in:not(.is-done) .st1 { transition-delay: .1s; } .net.is-in:not(.is-done) .st2 { transition-delay: .55s; }
.net.is-in:not(.is-done) .st4 { transition-delay: .7s; } .net.is-in:not(.is-done) .st3 { transition-delay: .95s; }
.net.is-in:not(.is-done) .st-end { transition-delay: 1.3s; }
.net[data-role="a"].is-in .nstop[data-role="b"], .net[data-role="b"].is-in .nstop[data-role="a"] { opacity: .14; }

.net-bus { position: absolute; left: 0; top: 0; width: 34px; height: 22px; margin: -15px 0 0 -17px; pointer-events: none; will-change: transform; }
.net-bus svg { opacity: var(--fade, 0); }
.net-bus svg { display: block; width: 100%; height: auto; }
.bus-a .nb-body { fill: var(--ln-a); }
.bus-b .nb-body { fill: var(--ln-b-badge); }
.net-bus .nb-win { fill: var(--bg-soft); }
.net-bus .nb-wheel { fill: var(--bg-soft); stroke: var(--ink); }


/* ---------- cennik: dwa bilety + kalkulator ---------- */

.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.menu > a[aria-current="page"] { background: var(--ib-bg); }

.pricing { gap: 64px; }
.p-hero { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 24px; text-align: center; }
.p-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.06; letter-spacing: -0.03em; }
.p-free { display: block; margin-top: 8px; color: var(--accent-text); font-weight: 700; }
.p-net { margin-top: -8px; font-size: 13.5px; font-weight: 600; color: var(--ink-muted); }

.tickets { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 72px; margin-top: 12px; }
.ticket-shadow { display: flex; filter: drop-shadow(0 26px 40px var(--tk-shadow)); transition: transform .35s var(--ease-out); }
.ticket-shadow:hover { transform: translateY(-6px) rotate(-.4deg); }
.ticket-shadow:nth-child(3):hover { transform: translateY(-6px) rotate(.4deg); }

.ticket {
  --stub: 108px; --notch: 15px;
  position: relative; flex: 1;
  display: grid; grid-template-columns: 1fr var(--stub);
  min-height: 390px; border-radius: 28px;
  color: var(--tile-ink);
  /* wycięcia na perforacji: górna połowa z dziurką u góry, dolna z dziurką na dole */
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent calc(var(--notch) - .5px), #000 var(--notch)) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent calc(var(--notch) - .5px), #000 var(--notch)) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent calc(var(--notch) - .5px), #000 var(--notch)) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent calc(var(--notch) - .5px), #000 var(--notch)) bottom / 100% 51% no-repeat;
}
.ticket-a { background: var(--tk-a); }
.ticket-b { background: var(--tk-b); }
.ticket::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .12), transparent 55%);
}

.ticket-main { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 34px 32px 32px; }
.ticket-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tile-muted); }
.ticket-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.ticket-desc { max-width: 40ch; font-size: 15px; line-height: 1.55; color: var(--tile-muted); }

.ticket-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 30px 0 28px; }
.ticket-stub::before { content: ""; position: absolute; left: -1px; top: calc(var(--notch) + 10px); bottom: calc(var(--notch) + 10px); border-left: 2px dashed rgba(237, 230, 220, .35); }
.stub-label { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--tile-muted); white-space: nowrap; }
.barcode { display: flex; flex-direction: column; gap: 2px; width: 46px; opacity: .8; }
.barcode i { display: block; height: var(--w); background: currentColor; border-radius: 1px; }

/* strefy taryfowe na bilecie A */
.zones { position: relative; list-style: none; margin: auto 0 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zones::before { content: ""; position: absolute; top: 34px; left: 16.66%; right: 16.66%; height: 6px; border-radius: 6px; background: rgba(237, 230, 220, .22); transform: translateY(-50%); }
.zone { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 4px; }
.zone-dot {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tk-a); border: 4px solid #EDE6DC; color: #EDE6DC;
  font: 700 13px var(--font-display); box-sizing: border-box;
  transition: background-color .3s, color .3s, transform .35s var(--ease-spring);
}
.zone-rate { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1; margin-top: 6px; transition: color .3s, transform .35s var(--ease-spring); }
.zone-range { font-size: 13px; line-height: 1.35; color: var(--tile-muted); }
.zone.is-active .zone-dot { background: #EDE6DC; color: var(--tk-a); transform: scale(1.15); }
.zone.is-active .zone-rate { color: #D3E29A; transform: scale(1.06); }

/* bilet B */
.ticket-price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.ticket-price b { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 5vw, 68px); letter-spacing: -0.03em; line-height: 1; }
.ticket-price span { font-size: 17px; color: var(--tile-muted); }
.ticket-zero { margin-top: auto; display: flex; align-items: center; gap: 16px; font-size: 16px; line-height: 1.5; }
.zero-badge { flex-shrink: 0; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #EDE6DC; color: #3A1F3D; font: 700 22px var(--font-display); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }

/* pieczątka z bonusem */
.stamp {
  position: absolute; z-index: 3; top: -58px; left: 50%; width: 150px;
  color: var(--stamp); transform: translateX(-50%) rotate(-12deg);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18));
}
.stamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-ring { fill: var(--bg-soft); stroke: currentColor; stroke-width: 4; }
.st-ring-in { fill: none; stroke-width: 2; stroke-dasharray: 3 5; }
.st-arc { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; letter-spacing: 2.4px; fill: currentColor; }
.st-big { font-family: var(--font-display); font-size: 40px; font-weight: 700; fill: currentColor; letter-spacing: -1px; }
.st-small { font-family: var(--font-body); font-size: 14px; font-weight: 600; fill: currentColor; }
@keyframes stampin { 0% { opacity: 0; transform: translateX(-50%) rotate(-32deg) scale(1.8); } 70% { opacity: 1; transform: translateX(-50%) rotate(-10deg) scale(.94); } 100% { opacity: 1; transform: translateX(-50%) rotate(-12deg) scale(1); } }
.stamp { animation: stampin .7s cubic-bezier(.3, 1.4, .5, 1) 1.15s backwards; }

.bonus-line {
  align-self: center; display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 999px; max-width: 100%;
  background: var(--badge-bg); border: 1px solid var(--badge-border);
  font-size: 15px; line-height: 1.45; text-align: left;
}
.bonus-line svg { flex-shrink: 0; color: var(--stamp); }
.bonus-line b { font-weight: 700; }

/* kalkulator */
.fees { display: flex; flex-direction: column; gap: 24px; }
.fees-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fee-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 24px 26px; border-radius: 28px; background: var(--step-bg); border: 1px solid var(--step-border); box-shadow: var(--step-shadow); }
.fee-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--err-bg); color: var(--err-ink); border: 1px solid var(--err-border); }
.fee-text h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.fee-text p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); }
.fee-price { display: grid; justify-items: end; text-align: right; line-height: 1.1; }
.fee-price b { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; white-space: nowrap; }
.fee-price span { font-size: 12.5px; color: var(--ink-muted); }
.fees-block { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-radius: 18px; background: var(--err-bg); border: 1px solid var(--err-border); font-size: 15px; line-height: 1.5; }
.fees-block svg { flex-shrink: 0; margin-top: 1px; color: var(--err-ink); }
@media (max-width: 900px) { .fees-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .fee-card { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .fee-price { grid-column: 1 / -1; justify-items: start; text-align: left; display: flex; align-items: baseline; gap: 8px; }
}
.calc { display: flex; flex-direction: column; gap: 28px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: stretch; }
.calc-controls { display: grid; gap: 34px; align-content: center; padding: 30px; border-radius: 28px; background: var(--step-bg); border: 1px solid var(--step-border); box-shadow: var(--step-shadow); }
.calc-field { display: grid; gap: 10px; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-label label { font-size: 15px; font-weight: 600; }
.calc-label output { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: var(--ib-border); }
.calc input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--ib-border); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--btn-bg); border: 5px solid var(--accent); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transition: transform .2s; }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--btn-bg); border: 5px solid var(--accent); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc input[type="range"]:focus-visible { outline: none; }
.calc input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus); outline-offset: 3px; }
.calc input[type="range"]:focus-visible::-moz-range-thumb { outline: 3px solid var(--focus); outline-offset: 3px; }

.calc-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: -4px; }
.cz { display: grid; gap: 2px; padding-top: 8px; border-top: 6px solid var(--ib-border); border-radius: 3px; text-align: center; transition: border-color .3s; }
.cz b { font-family: var(--font-display); font-size: 16px; font-weight: 600; transition: color .3s; }
.cz i { font-style: normal; font-size: 12px; color: var(--ink-muted); }
.cz.is-active { border-color: var(--accent); }
.cz.is-active b { color: var(--accent-text); }

.calc-result { display: grid; gap: 20px; align-content: center; padding: 30px; border-radius: 28px; background: var(--tk-b); color: var(--tile-ink); box-shadow: var(--tile-shadow); }
.cr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--tile-muted); }
.cr-row b { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--tile-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-bars { display: grid; gap: 16px; }
.cr-bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 14px; color: var(--tile-muted); }
.cr-bar-head b { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--tile-ink); font-variant-numeric: tabular-nums; }
.cr-track { display: block; height: 14px; border-radius: 14px; background: rgba(237, 230, 220, .14); overflow: hidden; }
.cr-fill { display: block; height: 100%; width: 0; border-radius: 14px; transition: width .5s var(--ease-out); }
.cr-a .cr-fill { background: #B5C77F; }
.cr-b .cr-fill { background: #E9C98A; }
.cr-verdict { padding: 14px 16px; border-radius: 16px; background: rgba(237, 230, 220, .12); font-size: 16px; font-weight: 600; line-height: 1.45; transition: background-color .3s; }
.calc-result[data-win="a"] .cr-verdict { background: rgba(181, 199, 127, .24); }
.calc-result[data-win="b"] .cr-verdict { background: rgba(233, 201, 138, .24); }
.cr-note { font-size: 13px; color: var(--tile-muted); }

@media (max-width: 900px) {
  .tickets { grid-template-columns: 1fr; gap: 22px; padding-top: 64px; margin-top: 0; }
  .stamp { left: auto; right: 4px; top: -30px; width: 124px; transform: rotate(-12deg); }
  @keyframes stampin-m { 0% { opacity: 0; transform: rotate(-32deg) scale(1.8); } 70% { opacity: 1; transform: rotate(-10deg) scale(.94); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
  .stamp { animation-name: stampin-m; }
  .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pricing { gap: 40px; }
  .p-hero { align-items: flex-start; text-align: left; gap: 12px; padding: 2px 4px 0; }
  .ticket { --stub: 70px; --notch: 12px; min-height: 0; border-radius: 24px; }
  .ticket-main { padding: 24px 20px 22px; }
  .stub-label { font-size: 11px; letter-spacing: .18em; }
  .barcode { width: 34px; }
  .zones::before { top: 31px; }
  .zone-dot { width: 28px; height: 28px; border-width: 3px; font-size: 12px; }
  .zone-range { font-size: 12px; }
  .zero-badge { width: 56px; height: 56px; font-size: 19px; }
  .ticket-shadow:hover, .ticket-shadow:nth-child(3):hover { transform: none; }
  .bonus-line { border-radius: 20px; padding: 12px 16px; font-size: 14px; }
  .calc-controls, .calc-result { padding: 22px; border-radius: 24px; }
  .calc-label output { font-size: 24px; }
}

/* ---------- stopka ---------- */

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-muted);
}
/* ukryte wejście do panelu administratora — wygląda jak zwykły tekst */
.footer-copy, .footer-copy:hover { color: inherit; text-decoration: none; cursor: default; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-links a:not(.ib) { text-decoration: none; }
.footer-links a:not(.ib):hover { text-decoration: underline; }
.footer .ib { border: 0; }
/* w stopce ikona „zadzwoń” wygląda jak pozostałe okrągłe ikony, bez zielonej pigułki z nawigacji */
.footer .ib.call { display: grid; place-items: center; width: var(--btn, 44px); padding: 0; gap: 0; border-radius: 50%; background: var(--ib-bg); color: var(--ink); }
.footer .ib.call:hover { background: var(--ib-hover); color: var(--ink); }

/* ---------- okienko „Zadzwoń” ---------- */

.call-dlg {
  padding: 0; border: 0; background: transparent; color: var(--ink);
  max-width: none; max-height: none; width: 100%; height: 100%;
  place-items: center;
}
.call-dlg[open] { display: grid; }
.call-dlg::backdrop { background: rgba(15, 12, 18, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadein-bd .22s var(--ease-out); }
@keyframes fadein-bd { from { opacity: 0; } to { opacity: 1; } }
.call-panel {
  position: relative;
  width: min(380px, calc(100vw - 32px));
  display: grid; gap: 18px; justify-items: center;
  padding: 28px 26px 24px;
  border-radius: 32px;
  background: var(--menu-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 40px 80px rgba(0, 0, 0, 0.35);
  animation: call-in .28s var(--ease-out);
}
@keyframes call-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes call-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
.call-dlg.is-closing .call-panel { animation: call-out .16s ease-in forwards; }
.call-dlg.is-closing::backdrop { opacity: 0; transition: opacity .16s; }
.call-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; color: var(--ink-muted); background: var(--ib-bg); cursor: pointer; }
.call-x:hover { color: var(--ink); }
.call-who { display: flex; align-items: center; gap: 14px; justify-self: stretch; padding-right: 48px; text-align: left; }
.call-avatar { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: var(--bubble-olive); color: #EDE6DC; font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; }
.call-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.call-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.call-num { font-family: var(--font-display); font-size: clamp(28px, 7vw, 34px); font-weight: 600; letter-spacing: -0.02em; color: var(--accent-text); text-decoration: none; font-variant-numeric: tabular-nums; }
.call-num:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.call-qr-wrap { display: grid; gap: 10px; justify-items: center; }
.call-qr-wrap[hidden] { display: none; }
.call-qr { width: 176px; height: 176px; padding: 12px; border-radius: 20px; background: #FBFAF8; box-shadow: 0 0 0 1px rgba(58, 31, 61, 0.1); }
.call-qr:empty { background: linear-gradient(90deg, #eee8e1 20%, #f8f4ef 50%, #eee8e1 80%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.call-qr svg { width: 100%; height: 100%; display: block; }
.call-qr svg path, .call-qr svg rect[fill="black"] { fill: var(--qr-ink); }
.call-hint { max-width: 28ch; text-align: center; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.call-row { display: grid; gap: 8px; justify-self: stretch; }
.call-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s;
}
.call-btn:hover { transform: translateY(-1px); }
.call-btn-primary { background: var(--btn-bg); color: var(--btn-ink); border: 0; }
.call-btn-primary:hover { color: var(--btn-ink); background: var(--btn-hover); }
.call-btn-ghost { background: var(--ib-bg); color: var(--ink); border: 1px solid var(--ib-border); }


/* ---------- okienko „Kontakt”: formularz z trasą „Ty → ANWS” ---------- */

.ct-panel { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; justify-items: stretch; text-align: left; }
.ct-dlg { padding: 16px 0; }
.ct-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--ib-bg); }
.ct-stop { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--font-display); }
.ct-stop i { width: 16px; height: 16px; border-radius: 50%; background: var(--bg-soft); border: 4px solid var(--accent); box-sizing: border-box; flex-shrink: 0; }
.ct-stop-end i { border-color: var(--ink); }
.ct-road { position: relative; height: 30px; }
.ct-road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--ink-muted) 0 10px, transparent 10px 18px); opacity: .35; }
.ct-fill { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
.ct-bus { position: absolute; left: 0; top: 50%; width: 36px; margin-top: -17px; transition: left 1.1s cubic-bezier(.65, 0, .35, 1); animation: ct-idle 2.4s ease-in-out infinite; }
.ct-bus svg { display: block; width: 100%; height: auto; }
@keyframes ct-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.ct-route.is-sent .ct-fill { transform: scaleX(1); }
.ct-route.is-sent .ct-bus { left: calc(100% - 36px); }

.ct-form { gap: 14px; }
.ct-form[hidden] { display: none; }
.ct-topics { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.ct-topics legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-chip { position: relative; cursor: pointer; }
.ct-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ct-chip span { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px 0 10px; border-radius: 999px; border: 1.5px solid var(--input-border); background: var(--input-bg); font: 600 13.5px var(--font-body); transition: background-color .2s, color .2s, border-color .2s; }
.ct-chip span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--accent); box-sizing: border-box; transition: background-color .2s, border-color .2s; }
.ct-chip input:checked + span { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.ct-chip input:checked + span::before { background: var(--accent); border-color: var(--btn-ink); }
.ct-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.ct-opt { font-weight: 500; color: var(--ink-muted); }
.field textarea { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--input-border); background: var(--input-bg); color: var(--ink); font: 500 15px/1.5 var(--font-body); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--input-ring); }
.field textarea[aria-invalid="true"] { border-color: var(--err-ink); }
.ct-count { justify-self: end; font-variant-numeric: tabular-nums; }
.ct-form .reg-rodo { margin-top: -4px; }
.ct-done { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 6px 0; }
.ct-done[hidden] { display: none; }
.ct-done:focus { outline: none; }
.ct-done h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.ct-done p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.ct-done p b { color: var(--ink); overflow-wrap: anywhere; }
.ct-done .call-btn { justify-self: stretch; }
.ct-alt { text-align: center; font-size: 14px; color: var(--ink-muted); padding-top: 14px; border-top: 1px solid var(--line); }
.ct-alt a { color: var(--accent-text); font-weight: 600; }
@media (max-width: 560px) { .ct-panel { padding: 26px 18px 20px; } }

/* ---------- okienko logowania ---------- */

.auth-panel { width: min(420px, calc(100vw - 32px)); gap: 20px; justify-items: stretch; padding: 30px 28px 26px; }
.auth-head { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 0 30px; }
.auth-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: var(--bubble-olive); color: #EDE6DC; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.auth-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.auth-sub { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }

.auth-alert {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: 16px;
  background: var(--err-bg); color: var(--err-ink); border: 1px solid var(--err-border);
  font-size: 14px; line-height: 1.45;
}
.auth-alert[hidden] { display: none; }
.auth-alert svg { margin-top: 1px; }
.auth-alert a { color: inherit; font-weight: 600; }

.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input {
  width: 100%; min-height: 48px; padding: 0 16px;
  border-radius: 14px; border: 1.5px solid var(--input-border);
  background: var(--input-bg); color: var(--ink);
  font: 500 16px var(--font-body);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:hover { border-color: var(--input-border-hover); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--input-ring); }
.field input[aria-invalid="true"] { border-color: var(--err-ink); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--err-ring); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 52px; }
.pass-toggle {
  position: absolute; top: 2px; right: 2px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 12px;
  background: none; color: var(--ink-muted); cursor: pointer;
}
.pass-toggle:hover { color: var(--ink); }
.pass-toggle .i-eye-off, .pass-toggle[aria-pressed="true"] .i-eye { display: none; }
.pass-toggle[aria-pressed="true"] .i-eye-off { display: block; }
.field-err { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13.5px; line-height: 1.4; font-weight: 500; color: var(--err-ink); }
.field-err[hidden] { display: none; }
.field-err a { color: inherit; font-weight: 600; }
.forgot-inline { display: none; }
.field-err.with-forgot .forgot-inline { display: inline; }

.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.check { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check-box {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid var(--input-border); background: var(--input-bg); color: transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.check input:checked + .check-box { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.check input:focus-visible + .check-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.auth-link { font-size: 14.5px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.auth-link:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.auth-submit { position: relative; margin-top: 4px; min-height: 52px; font-size: 16px; }
.auth-submit[disabled] { cursor: progress; opacity: .85; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.auth-submit.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-foot { text-align: center; font-size: 14.5px; color: var(--ink-muted); padding-top: 14px; border-top: 1px solid var(--line); }

@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.auth-panel.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97); }


/* ---------- okienko rejestracji ---------- */

.reg-panel { width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; gap: 22px; }
.reg-dlg { padding: 16px 0; }

.reg-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.reg-steps::before { content: ""; position: absolute; top: 15px; left: 16.66%; right: 16.66%; height: 4px; border-radius: 4px; background: var(--ib-border); }
.rs-step { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.rs-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); border: 3px solid var(--ib-border); font: 700 13px var(--font-display); box-sizing: border-box; }
.rs-step.is-current { color: var(--ink); }
.rs-step.is-current .rs-num { border-color: var(--accent); color: var(--ink); }
.reg-steps.is-sent .rs-step:first-child .rs-num { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.reg-steps.is-sent .rs-step:nth-child(2) { color: var(--ink); }
.reg-steps.is-sent .rs-step:nth-child(2) .rs-num { border-color: var(--accent); }

.reg-form { gap: 22px; }
.reg-form[hidden], .reg-steps[hidden], .auth-foot[hidden] { display: none; }
.reg-group { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.reg-group legend { padding: 0; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.reg-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-help { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.field input[readonly] { background: var(--ib-bg); border-style: dashed; cursor: default; }
.field input[readonly]:not(:placeholder-shown) { border-style: solid; font-weight: 600; }

.reg-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.type-card { position: relative; display: block; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.type-body { display: grid; gap: 4px; height: 100%; padding: 14px 16px 14px 44px; border-radius: 16px; border: 1.5px solid var(--input-border); background: var(--input-bg); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.type-body::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--input-border); box-sizing: border-box; transition: border .2s; }
.type-body b { font-size: 15px; }
.type-body span { font-size: 12.5px; line-height: 1.4; color: var(--ink-muted); }
.type-card input:checked + .type-body { border-color: var(--accent); box-shadow: 0 0 0 3px var(--input-ring); }
.type-card input:checked + .type-body::before { border: 6px solid var(--accent); }
.type-card input:focus-visible + .type-body { outline: 3px solid var(--focus); outline-offset: 2px; }

.nip-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.nip-check { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--input-border); background: var(--ib-bg); color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; transition: background-color .2s; }
.nip-check:hover { background: var(--ib-hover); }
.nip-check[disabled] { opacity: .6; cursor: progress; }

.verify { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; background: var(--ib-bg); color: var(--ink-muted); border: 1px solid transparent; }
.verify-icon { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--ib-border); }
.verify-text { display: grid; gap: 6px; min-width: 0; }
.verify-text b { color: var(--ink); overflow-wrap: anywhere; }
.verify-meta { font-size: 12.5px; }
.verify-pkd { display: flex; flex-wrap: wrap; gap: 6px; }
.verify-pkd span { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ok-bg); color: var(--ok-ink); }
.verify-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.verify-actions button, .verify-actions a { padding: 0; border: 0; background: none; color: inherit; font: 600 13.5px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.verify[data-state="checking"] .verify-icon { background: none; border: 2.5px solid var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; }
.verify[data-state="ok"] { background: var(--ok-bg); color: var(--ink); border-color: var(--ok-border); }
.verify[data-state="ok"] .verify-icon { background: var(--ok-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.verify[data-state="error"] { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-border); }
.verify[data-state="error"] .verify-icon { background: var(--err-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 6.5v7M12 17.5h.01'/%3E%3C/svg%3E") center / 12px no-repeat; }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength i { height: 4px; border-radius: 4px; background: var(--ib-border); transition: background-color .25s; }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--err-ink); }
.strength[data-score="2"] i:nth-child(-n+2) { background: #D9A441; }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--accent); }
.strength[data-score="4"] i { background: var(--ok-ink); }

.reg-consent { align-items: flex-start; min-height: 0; line-height: 1.45; }
.reg-consent .check-box { flex-shrink: 0; margin-top: 1px; }
.reg-consent a, .reg-rodo a { color: var(--accent-text); font-weight: 600; }
.reg-rodo { font-size: 12.5px; line-height: 1.5; color: var(--ink-muted); margin-top: -8px; }

.reg-summary { padding: 12px 16px; border-radius: 14px; background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err-ink); font-size: 14px; }
.reg-summary[hidden] { display: none; }
.reg-summary p { font-weight: 700; margin-bottom: 4px; }
.reg-summary ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.reg-summary a { color: inherit; }
.reg-summary:focus { outline: 3px solid var(--err-ink); outline-offset: 2px; }

.reg-done { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 8px 0; }
.reg-done[hidden] { display: none; }
.reg-done:focus { outline: none; }
.done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-ink); color: #fff; animation: pop .5s var(--ease-spring); }
.reg-done h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.reg-done p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); max-width: 42ch; }
.reg-done p b { color: var(--ink); overflow-wrap: anywhere; }
.reg-done .reg-steps { width: 100%; }
.reg-done .call-btn { justify-self: stretch; }

@media (max-width: 560px) {
  .reg-cols, .reg-types { grid-template-columns: 1fr; }
  .reg-panel { padding: 26px 18px 22px; }
}


/* telefon: numer kierunkowy z listy + numer */
.tel-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.tel-cc {
  min-height: 48px; padding: 0 26px 0 10px; border-radius: 14px;
  border: 1.5px solid var(--input-border); background: var(--input-bg); color: var(--ink);
  font: 600 15px var(--font-body); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C7B86' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px;
}
.tel-cc:hover { border-color: var(--input-border-hover); }
.tel-cc:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--input-ring); }
.tel-cc option { color: #1B1D22; background: #fff; }

/* okienko „Nie pamiętasz hasła?” */
.fg-sent { display: grid; justify-items: center; gap: 14px; text-align: center; }
.fg-sent[hidden], #fg-form[hidden] { display: none; }
.fg-sent:focus { outline: none; }
.fg-sent h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.fg-sent p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); max-width: 40ch; }
.fg-sent p b { color: var(--ink); overflow-wrap: anywhere; }
.fg-sent .fg-hint { font-size: 13.5px; }
.fg-sent .call-btn { justify-self: stretch; }
.call-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* strona ustawiania nowego hasła */
.reset-main { display: grid; place-items: center; min-height: 52vh; }
.reset-card { width: min(460px, 100%); padding: 32px 30px; }
.rs-state { display: grid; justify-items: center; gap: 16px; text-align: center; }
.rs-state[hidden] { display: none; }
.rs-state:focus { outline: none; }
#rs-form { justify-items: stretch; text-align: left; }
.rs-state h1 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.rs-state > p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); max-width: 40ch; }
.rs-state .call-btn { justify-self: stretch; text-decoration: none; }
.rs-checking { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-muted); }
.rs-checking .spinner { display: block; color: var(--accent); }
.done-icon.rs-bad { background: var(--err-ink); }

/* ---------- podstrony (utwórz zlecenie, lista zleceń) ---------- */

.sub-page { min-height: 100vh; display: flex; flex-direction: column; }
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1220px; width: 100%; margin: 0 auto; padding: 20px 24px; }
.sub-actions { display: flex; align-items: center; gap: 10px; }
.sub-user { font-size: 14px; color: var(--ink-muted); }
.sub-user b { color: var(--ink); font-weight: 600; }
.sub-logout { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ib-border); background: var(--ib-bg); color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; }
.sub-logout:hover { background: var(--ib-hover); }
.sub-main { flex: 1; display: grid; place-items: center; padding: 24px; }
.sub-card { width: min(720px, 100%); padding: 56px 32px; border-radius: 32px; text-align: center; background: var(--step-bg); border: 1px solid var(--step-border); box-shadow: var(--step-shadow); }
.sub-card h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.02em; }
.js-guard .sub-page { visibility: hidden; }


/* ---------- dokumenty prawne ---------- */

/* na stronach z długim tekstem bez linii tras w tle — łatwiej czytać */
body[data-title-key^="legal."] .bg-desktop, body[data-title-key^="legal."] .bg-mobile { display: none; }

.legal-main { display: block; }
.legal { max-width: 820px; margin: 0 auto; display: grid; gap: 34px; padding: 8px 0 24px; }
.legal-head { display: grid; gap: 14px; justify-items: start; }
.legal-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.03em; line-height: 1.08; }
.legal-meta { font-size: 14px; color: var(--ink-muted); }
.legal-draft { padding: 12px 16px; border-radius: 14px; background: var(--badge-bg); border: 1px dashed var(--stamp); font-size: 14px; line-height: 1.5; }
.legal-lang { display: none; font-size: 14px; font-weight: 600; color: var(--accent-text); }
:root[lang="en"] .legal-lang { display: block; }
.legal-toc { padding: 20px 24px; border-radius: 22px; background: var(--step-bg); border: 1px solid var(--step-border); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14.5px; line-height: 1.9; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--accent-text); text-decoration: underline; }
.legal section { display: grid; gap: 12px; scroll-margin-top: 96px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink); }
.legal ol, .legal ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--accent-text); font-weight: 600; }
.legal code { font-size: 14px; padding: 1px 6px; border-radius: 6px; background: var(--ib-bg); }
.ph { padding: 0 4px; border-radius: 4px; background: rgba(233, 201, 138, .4); color: inherit; }
:root[data-theme="dark"] .ph { background: rgba(233, 201, 138, .22); }
#zgloszenia:target { padding: 18px 20px; margin: 0 -20px; border-radius: 20px; background: var(--badge-bg); }

/* ---------- panel administratora ---------- */

.admin-main { display: flex; flex-direction: column; gap: 32px; }
.admin-card { padding: 28px; border-radius: 26px; background: var(--step-bg); border: 1px solid var(--step-border); box-shadow: var(--step-shadow); display: grid; gap: 16px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.admin-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.admin-login { width: min(420px, 100%); margin: 0 auto; }
.admin-login[hidden], .admin-panel[hidden] { display: none; }
.admin-panel { display: grid; gap: 22px; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.admin-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ib-bg); border: 1px solid var(--ib-border); }
.admin-tabs button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-muted); font: 600 14px var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.admin-tabs button b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--ib-border); color: var(--ink); font-size: 12px; }
.admin-tabs button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.admin-tabs button[aria-pressed="true"] b { background: var(--btn-ink); color: var(--btn-bg); }
.admin-who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.reg-list { display: grid; gap: 16px; }
.reg-empty { padding: 28px; border-radius: 22px; border: 1.5px dashed var(--ib-border); text-align: center; color: var(--ink-muted); }
.reg-card { display: grid; gap: 16px; padding: 24px; border-radius: 24px; background: var(--step-bg); border: 1px solid var(--step-border); box-shadow: var(--step-shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.rc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rc-head h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; background: var(--ib-bg); border: 1px solid var(--ib-border); }
.rc-tag.st-pending { background: rgba(233, 201, 138, .3); border-color: transparent; }
.rc-tag.st-approved { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-border); }
.rc-tag.st-rejected { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-border); }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; margin: 0; }
.rc-grid div { display: grid; gap: 2px; min-width: 0; }
.rc-grid dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.rc-grid dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.rc-grid dd a { color: var(--accent-text); font-weight: 600; }
.rc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rc-actions .call-btn { min-width: 160px; }
.ob-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.adm-warn { padding: 12px 16px; border-radius: 14px; background: rgba(233, 201, 138, .3); border: 1px solid var(--stamp); font-size: 14.5px; }
.adm-warn[hidden] { display: none; }
.adm-warn b { font-family: ui-monospace, monospace; }
.pw-card { max-width: 520px; }
.pw-ok { font-size: 14px; font-weight: 600; color: var(--ok-ink); }
.pw-ok[hidden] { display: none; }
.ob-list li { padding: 14px 16px; border-radius: 16px; background: var(--ib-bg); display: grid; gap: 4px; font-size: 14px; }
.ob-list .ob-meta { font-size: 12.5px; color: var(--ink-muted); }
.ob-list b { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal p, .legal li { font-size: 15px; }
  .admin-card, .reg-card { padding: 20px; }
}


/* ---------- panel klienta (konto.html) ---------- */

.js-guard .acc-main { visibility: hidden; }
.acc-main { display: flex; flex-direction: column; gap: 40px; }
.acc-hero { align-items: flex-start; text-align: left; padding-top: 12px; gap: 14px; }
.acc-title { font-size: clamp(30px, 4.4vw, 54px); overflow-wrap: anywhere; }
.acc-lead { max-width: none; font-size: 16px; }
.acc-lead b { color: var(--ink); }
.acc-need { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-radius: 18px; background: rgba(233, 201, 138, .3); border: 1px solid var(--stamp); font-size: 15px; line-height: 1.5; }
.acc-need[hidden] { display: none; }
.acc-need svg { flex-shrink: 0; margin-top: 1px; color: var(--stamp); }

.acc-plan { display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 96px; }
.pl-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; align-items: stretch; }
.pl-status { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: 28px; background: var(--step-bg); border: 1px solid var(--step-border); box-shadow: var(--step-shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.pl-status[data-kind="need"] { border: 1.5px dashed var(--stamp); }
.pl-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.pl-now { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.pl-status[data-kind="sub"] .pl-now { color: var(--accent-text); }
.pl-line { font-size: 15.5px; line-height: 1.5; }
.pl-note, .pl-small { font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
.pl-free { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-size: 13px; font-weight: 700; }
.pl-done { padding: 10px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-border); font-size: 14px; font-weight: 600; animation: menuin .25s var(--ease-out); }
.pl-bar { display: grid; gap: 8px; margin-top: 4px; }
.pl-bar-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-muted); }
.pl-bar-head b { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-track { display: block; height: 12px; border-radius: 12px; background: var(--ib-border); overflow: hidden; }
.pl-fill { display: block; height: 100%; border-radius: 12px; background: linear-gradient(90deg, var(--accent), #B5C77F); transition: width .6s var(--ease-out); }

.pl-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pl-opt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 22px; border-radius: 28px; color: var(--tile-ink); box-shadow: var(--tile-shadow); transition: transform .3s var(--ease-out), box-shadow .3s; }
.pl-opt[data-opt="commission"] { background: var(--tk-a); }
.pl-opt[data-opt="subscription"] { background: var(--tk-b); }
.pl-opt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .12), transparent 55%); }
.pl-opt.is-current { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent), var(--tile-shadow); }
.pl-opt.is-current::after { content: "✓"; position: absolute; top: -12px; right: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--bg); font: 700 17px var(--font-display); box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.pl-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tile-muted); }
.pl-opt h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.pl-price { display: grid; gap: 2px; font-size: 14px; color: var(--tile-muted); line-height: 1.45; }
.pl-price b { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--tile-ink); }
.pl-act { position: relative; margin-top: auto; padding-top: 16px; border-top: 2px dashed rgba(237, 230, 220, .3); display: grid; gap: 8px; }
.pl-act .call-btn-primary { background: #EDE6DC; color: #1B1D22; }
.pl-act .call-btn-primary:hover { background: #FFFFFF; color: #1B1D22; }
.pl-act .call-btn { min-height: 50px; padding: 8px 16px; line-height: 1.3; text-align: center; }
.pl-act .call-btn-ghost { background: rgba(237, 230, 220, .12); color: var(--tile-ink); border-color: rgba(237, 230, 220, .3); }
.pl-tag { justify-self: start; padding: 8px 14px; border-radius: 999px; background: rgba(237, 230, 220, .16); font-size: 13.5px; font-weight: 700; }
.pl-tag.is-next { background: #E9C98A; color: #3A2410; }
.pl-confirm { display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.pl-confirm-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; }
.pl-confirm .pl-small { color: var(--tile-muted); font-size: 12.5px; }

.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.acc-card { min-width: 0; }
.acc-dl { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.acc-lock { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ib-bg); font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
.acc-lock svg { flex-shrink: 0; margin-top: 2px; }
.acc-lock a { color: var(--accent-text); font-weight: 600; }
.acc-hist { max-height: 420px; overflow-y: auto; }
.hi-item { display: flex !important; justify-content: space-between; align-items: center; gap: 14px; }
.hi-text { display: grid; gap: 2px; min-width: 0; }
.hi-text b { font-weight: 600; overflow-wrap: anywhere; }
.hi-amt { display: grid; justify-items: end; gap: 3px; flex-shrink: 0; }
.hi-amt b { font-family: var(--font-display); font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hi-state { padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.hi-state.is-paid { background: var(--ok-bg); color: var(--ok-ink); }
.hi-state.is-due { background: var(--err-bg); color: var(--err-ink); }
.hi-state.is-invoice { background: rgba(233, 201, 138, .3); color: var(--ink); }
.acc-empty { color: var(--ink-muted); }

@media (max-width: 1000px) {
  .pl-grid, .acc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pl-options { grid-template-columns: minmax(0, 1fr); }
  .pl-status, .pl-opt { padding: 22px 20px; border-radius: 24px; }
  .acc-main { gap: 28px; }
}

/* ---------- konto w menu: „Zaloguj się” / dzwonek powiadomień ---------- */

.acct { position: relative; display: flex; gap: 8px; }
.acct-login {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--btn, 44px); padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-ink);
  font: 600 15px var(--font-body); white-space: nowrap; cursor: pointer;
  transition: transform .25s, box-shadow .25s, min-height .4s var(--ease-out);
}
.acct-login:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(58, 31, 61, .28); }
.acct-login svg { display: none; }
.acct-logout {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--btn, 44px); padding: 0 16px 0 13px; border-radius: 999px;
  border: 1px solid var(--ib-border); background: var(--ib-bg); color: var(--ink);
  font: 600 14px var(--font-body); white-space: nowrap; cursor: pointer;
  transition: transform .25s, background-color .25s, min-height .4s var(--ease-out);
}
.acct-logout:hover { transform: translateY(-1px); background: var(--ib-hover); }
.acct-gear { position: relative; text-decoration: none; }
.menu > .menu-acct { display: none; position: relative; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 18px; background: none; color: var(--ink); font: 600 16px var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.menu > .menu-acct:hover { background: var(--ib-bg); }
.menu > .menu-acct .gear-dot { position: static; }
.menu-btn { position: relative; }
.menu-btn.has-dot::after { content: ""; position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: #D64545; box-shadow: 0 0 0 2px var(--bg-soft); }
.acct-gear svg { transition: transform .6s var(--ease-spring); }
.acct-gear:hover svg { transform: rotate(90deg); }
.acct-gear[aria-current="page"] { background: var(--btn-bg); color: var(--btn-ink); }
.gear-dot { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #D64545; box-shadow: 0 0 0 2px var(--bg-soft); animation: blink 1.6s ease-in-out infinite; }
.ap-ic.subEnded { background: #A3322A; }
.bell { position: relative; }
.bell.has-new svg { animation: bell-ring 3.2s ease-in-out infinite; transform-origin: 50% 12%; }
@keyframes bell-ring { 0%, 78%, 100% { transform: rotate(0); } 82% { transform: rotate(16deg); } 86% { transform: rotate(-13deg); } 90% { transform: rotate(8deg); } 94% { transform: rotate(-4deg); } }
.bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: #D64545; color: #fff; font: 700 11.5px/1 var(--font-body);
  box-shadow: 0 0 0 2px var(--bg-soft);
}
.acct-panel {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 50;
  width: min(370px, calc(100vw - 24px));
  display: grid; gap: 10px; padding: 14px;
  border-radius: 22px; background: var(--menu-bg); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 24px 48px rgba(0, 0, 0, .2);
  text-align: left; animation: menuin .2s var(--ease-out);
}
.acct-panel[hidden] { display: none; }
.ap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px; }
.ap-head b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.ap-head span { font-size: 12.5px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 340px; overflow-y: auto; }
.ap-item a { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background-color .2s; }
.ap-item a:hover { background: var(--ib-bg); color: var(--ink); }
.ap-item.is-new a { background: var(--ok-bg); }
.ap-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; }
.ap-ic.reserve { background: var(--bubble-olive); }
.ap-ic.offer { background: var(--bubble-gold); }
.ap-ic.expired, .ap-ic.cancelled { background: #A3322A; }
.ap-text { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; }
.ap-text small { font-size: 12.5px; color: var(--ink-muted); overflow-wrap: anywhere; }
.ap-empty { padding: 8px 4px; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.ap-note { padding: 0 4px; font-size: 12.5px; color: var(--ink-muted); }
.ap-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px 0; border-top: 1px solid var(--line); }
.ap-foot a, .ap-foot button { padding: 6px 0; border: 0; background: none; color: var(--accent-text); font: 600 14px var(--font-body); text-decoration: none; cursor: pointer; }
.ap-foot a:hover, .ap-foot button:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .nav-actions .ib.call { display: none; } /* „Zadzwoń” jest w menu mobilnym — miejsce dla konta */
  .acct-login { width: var(--btn, 44px); padding: 0; justify-content: center; }
  .acct-login span, .acct-logout span { display: none; }
  .acct-login svg { display: block; }
  .acct-logout { width: var(--btn, 44px); padding: 0; justify-content: center; }
  .nav-actions .acct-gear, .nav-actions .acct-logout { display: none; }
  .menu > .menu-acct { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .bell.has-new svg { animation: none; } }

/* ---------- loader ---------- */

@property --r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

:root { --ld-bg: radial-gradient(90% 70% at 50% 60%, #F4EFE8 0%, #EDE6DC 70%); }
:root[data-theme="dark"] { --ld-bg: radial-gradient(90% 70% at 50% 60%, #1B1D22 0%, #0F1013 75%); }

.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  overflow: hidden;
}
html.is-loading { overflow: hidden; }
.ld-bg { position: absolute; inset: 0; background: var(--ld-bg); }
.ld-panel { display: none; position: absolute; top: 0; bottom: 0; width: 50%; background: var(--ld-bg); background-size: 200% 100%; will-change: transform; }
.ld-l { left: 0; background-position: 0 0; box-shadow: inset -1px 0 0 var(--line); }
.ld-r { right: 0; background-position: 100% 0; box-shadow: inset 1px 0 0 var(--line); }
.loader[data-mode="doors"] .ld-bg { display: none; }
.loader[data-mode="doors"] .ld-panel { display: block; }
.loader[data-mode="iris"] {
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 8%));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 8%));
}

.ld-inner { position: relative; display: grid; justify-items: center; gap: 34px; padding: 0 24px; }
.ld-logo { width: min(230px, 62vw); height: auto; overflow: visible; filter: drop-shadow(0 0 28px rgba(107, 127, 66, .25)); }
.ld-logo g { stroke: var(--ink); }
.ld-logo .d5 { stroke: var(--accent); }
.ld-logo .draw path { animation-duration: 1.3s; }

.ld-track { --lp: 0; position: relative; width: min(240px, 62vw); height: 34px; }
.ld-road, .ld-fill { position: absolute; left: 0; right: 0; bottom: 4px; height: 6px; border-radius: 6px; }
.ld-road { background: var(--ink); opacity: .14; }
.ld-fill { background: var(--accent); transform-origin: left; transform: scaleX(var(--lp)); }
.ld-bus { position: absolute; left: calc(var(--lp) * 100%); bottom: 8px; width: 40px; height: auto; margin-left: -20px; }
.ld-sweep-bus { display: none; position: absolute; top: 50%; left: 0; width: 76px; height: auto; margin-top: -24px; will-change: transform; }
.loader[data-mode="sweep"] .ld-sweep-bus { display: block; transform: translateX(-120px); }

/* strona czeka z animacjami wejścia, aż loader zacznie schodzić */
html.is-loading .page *, html.is-loading .page *::before, html.is-loading .page *::after { animation-play-state: paused !important; }

/* ---------- responsywność ---------- */

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
}

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
}

@media (max-width: 760px) {
}


/* mapa linii na węższych ekranach: pionowy rozkład jazdy wybranej roli */
@media (max-width: 900px) {
  .role-switch [data-role-btn="both"] { display: none; }
  .role-switch { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; }
  .role-switch button { justify-content: center; gap: 6px; padding: 0 6px; font-size: 13px; white-space: nowrap; }
  .net { height: auto; --rail: var(--ln-a); }
  .net[data-role="b"] { --rail: var(--ln-b); }
  .net-lines, .ln-badge, .handshake, .net-bus { display: none; }
  .nstops { position: relative; display: flex; flex-direction: column; gap: 16px; }
  .nstops::before { content: ""; position: absolute; left: 18px; top: 24px; bottom: 30px; width: 6px; border-radius: 6px; background: var(--rail); transition: background-color .4s; }
  .nstop { position: relative; left: auto; top: auto; width: auto; height: auto; display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
  .nstop-dot, .nstop:hover .nstop-dot { position: relative; transform: none; }
  .end-dot { width: 42px; height: 42px; }
  .end-dot svg { width: 24px; }
  .nstop-card, .st1 .nstop-card, .st2 .nstop-card, .st3 .nstop-card, .st4 .nstop-card, .st-end .nstop-card {
    position: static; transform: none; width: auto; text-align: left;
  }
  .st-end .nstop-card { padding: 10px 16px; justify-self: start; }
  .st4 { order: 2; }
  .st-end { order: 9; }
  .net[data-role] .nstop { opacity: 1; filter: none; }
  .net[data-role="a"] .nstop[data-role="b"], .net[data-role="both"] .nstop[data-role="b"], .net[data-role="b"] .nstop[data-role="a"] { display: none; }
}

/* telefon — wg makiety „Strona główna — beżowa, telefon” */
@media (max-width: 640px) {
  .bg-desktop { display: none; }
  .bg-mobile { display: block; }
  .b1 { width: 360px; height: 360px; right: -160px; top: -120px; filter: blur(80px); }
  .b2 { width: 380px; height: 380px; left: -190px; top: 300px; filter: blur(80px); }
  .b3 { width: 300px; height: 300px; left: auto; right: -100px; top: auto; bottom: 0; filter: blur(90px); }

  .wrap { padding: 14px 16px 24px; gap: 22px; }
  main { gap: 22px; }
  .nav-slot { top: 8px; height: 58px; }

  .nav { --logo-w: 80px; padding: 7px 7px 7px 16px; gap: 8px; }
  .nav.is-compact { --btn: 40px; --logo-w: 66px; width: 100%; padding: 5px 5px 5px 14px; }
  .nav-actions { gap: 6px; }
  .ib { border: 0; }
  .ib:hover { transform: none; }
  .lang-switch { border: 0; }
  .lang-switch button { min-width: 34px; padding: 0 6px; }
  .ib.call { width: var(--btn, 44px); padding: 0; justify-content: center; border-radius: 50%; }
  .login, .phone-num, .nav-sep, .nav-actions .social { display: none; }
  .menu-social { display: flex; }

  .hero { align-items: flex-start; text-align: left; gap: 12px; padding: 2px 4px 0; }
  .badge { gap: 8px; padding: 6px 12px; font-size: 12px; letter-spacing: .08em; }
  .live { width: 7px; height: 7px; }
  .title { font-size: clamp(30px, 9.2vw, 36px); line-height: 1.1; }
  .road-base { stroke-width: 14; }
  .lead { font-size: 15px; line-height: 1.5; }
  .lead-long { display: none; }
  .lead-short { display: inline; }

  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile { min-height: 0; padding: 20px; gap: 12px; border-radius: 30px; transform: none; }
  .tile:hover { --ty: 0px; }
  .tile:active { transform: scale(.97); transition: transform .2s; }
  .tile-top { column-gap: 14px; align-items: center; }
  .tile-num { display: none; }
  .tile-tag { display: inline-block; grid-column: 2; grid-row: 1; justify-self: end; }
  .tile-title { grid-column: 2; grid-row: 1; font-size: 24px; }
  .tile-urgent .tile-title { grid-column: 2; }
  .tile-urgent .tile-tag { display: none; }
  .bubble { width: 54px; height: 54px; border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  .bubble svg { width: 26px; height: 26px; stroke-width: 2.2; }
  .tile-text { margin-top: 0; }
  .tile-desc { font-size: 15px; line-height: 1.5; }
  .desc-long { display: none !important; }
  .desc-short { display: block !important; }
  .count b { font-size: 28px; }
  .cta { align-self: stretch; justify-content: space-between; min-height: 48px; padding: 0 7px 0 20px; }
  .cta-arrow { width: 36px; height: 36px; border-radius: 50%; color: var(--cta-bg, #EDE6DC); }
  .tile-create .cta-arrow { background: var(--cta1); }
  .tile-find .cta-arrow { background: var(--cta2); }
  .tile-urgent .cta-arrow { background: var(--cta3); }
  .cta-arrow svg { width: 16px; height: 16px; stroke-width: 2.4; animation: nudge 3s ease-in-out infinite; }
  .tile:hover .arrow { transform: none; }

  .band { margin: 0 -16px; padding: 12px 0; border-bottom: 0; }
  .marquee { gap: 22px; font-size: 15px; animation-duration: 30s; }

  .how { gap: 20px; }
  .footer-links { gap: 10px 12px; }

  .call-qr { width: 156px; height: 156px; }
}
@keyframes nudge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(4px); } 90% { transform: translateX(0); } }

/* ---------- ograniczony ruch ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .in, .drop { opacity: 1 !important; }
  .draw path, .road-base { stroke-dashoffset: 0 !important; }
  .road-dash { opacity: 1; }
  .stop, .road-stop { transform: none !important; }
  .bus, .road-bus, .net-bus { display: none; }
  .net-lines { clip-path: none !important; }
  .nstop { opacity: 1 !important; transform: none !important; }
  .tile { transform: none !important; }
  .title:hover .roll { transform: none; }
}

/* ---------- powiadomienia o dokumentach ---------- */

/* ---------- panel administratora: statystyki ---------- */
.admin-views button[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.admin-views button[aria-selected="true"] b { background: var(--btn-ink); color: var(--btn-bg); }
#view-regs { display: grid; gap: 18px; }
#view-regs[hidden], .st-view[hidden] { display: none; }
.st-view { display: grid; gap: 18px; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.st-tile { display: grid; gap: 4px; align-content: start; padding: 20px 22px; border-radius: 22px; background: var(--step-bg); border: 1px solid var(--step-border); box-shadow: var(--step-shadow); }
.st-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.st-value { font-family: var(--font-display, inherit); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-sub { font-size: 13px; color: var(--ok-ink); font-weight: 600; }
.st-tile.is-down .st-sub { color: var(--err-ink); }
.st-tile:not(:first-child) .st-sub { color: var(--ink-muted); font-weight: 500; }
.st-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.st-wide { grid-column: 1 / -1; }
.st-card { align-content: start; min-width: 0; }
.st-card h2 { font-size: 20px; }
.st-note { font-size: 13px; color: var(--ink-muted); line-height: 1.5; margin-top: -8px; }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-muted); margin-top: -6px; }
.st-legend span { display: inline-flex; align-items: center; gap: 7px; }
.st-legend i { width: 12px; height: 12px; border-radius: 4px; }
.st-legend i.st-s1, .st-svg .st-s1 { background: var(--accent); fill: var(--accent); }
.st-legend i.st-s2, .st-svg .st-s2 { background: #A79EA4; fill: #A79EA4; }
.st-chart { position: relative; }
.st-svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-grid { stroke: var(--line); stroke-width: 1; }
.st-axis { stroke: var(--ink-muted); stroke-opacity: .5; stroke-width: 1; }
.st-tick { fill: var(--ink-muted); font-size: 11px; font-family: var(--font-body); }
.st-hit { fill: transparent; }
.st-bar { outline: none; cursor: default; }
.st-bar:hover .st-hit, .st-bar:focus .st-hit { fill: var(--ib-bg); }
.st-tip { position: absolute; top: 0; transform: translateX(-50%); display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; background: var(--btn-bg); color: var(--btn-ink); font-size: 12.5px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.st-routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.st-rhead { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.st-rhead b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.st-rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ib-bg); font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.st-n { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-rbar { display: block; height: 8px; margin: 6px 0 4px 32px; border-radius: 999px; background: var(--ib-bg); overflow: hidden; }
.st-rbar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.st-rmeta { display: block; margin-left: 32px; font-size: 12.5px; color: var(--ink-muted); }
.st-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.st-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 0 10px 8px 0; }
.st-table td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line); }
.st-table .num, .st-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.st-table .st-sum td { font-weight: 700; border-top: 2px solid var(--ink-muted); }
.st-scroll { overflow-x: auto; }
@media (max-width: 860px) { .st-grid2 { grid-template-columns: minmax(0, 1fr); } }
.st-tip[hidden] { display: none; }

/* ---------- okna dialogowe giełdy i panelu klienta ---------- */
.g-dlg { width: min(460px, calc(100vw - 32px)); justify-items: stretch; text-align: left; gap: 18px; }
.g-dlg .auth-title { padding-right: 48px; }
.dlg-route { display: grid; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--ib-bg); }
.dr-line { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-weight: 600; line-height: 1.3; }
.dr-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-muted); padding-left: 34px; }
.dlg-box { display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--ib-border); }
.dlg-box.is-fee { background: var(--err-bg); border-color: var(--err-border); }
.fee-row { align-items: center; }
.fee-row > span { display: grid; gap: 2px; min-width: 0; }
.fee-row > span b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.fee-row > span small { font-size: 12.5px; }
.fee-row > b { font-family: var(--font-display); font-size: 20px; white-space: nowrap; }
.dlg-box.is-free { background: var(--ok-bg); border-color: var(--ok-border); }
.db-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.db-title .done-icon { width: 34px; height: 34px; animation: none; flex-shrink: 0; }
.db-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.db-row span { color: var(--ink-muted); }
.db-row b { font-variant-numeric: tabular-nums; }
.db-total { padding-top: 10px; border-top: 1px dashed var(--ib-border); font-size: 16px; }
.db-total b { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.db-note { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.db-note a { color: var(--accent-text); font-weight: 600; }
.dlg-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

/* ---------- potwierdzenie zlecenia (giełda i panel klienta) ---------- */
.doc-dlg { width: min(760px, calc(100vw - 32px)); }
.doc-sheet-wrap { max-height: min(62vh, 640px); overflow: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.doc-sheet { padding: 28px 32px; color: #1d1b1e; background: #fff; font: 13px/1.5 var(--font-body); }
.doc-sheet h4 { margin: 18px 0 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6b6168; }
.ds-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 2px solid #1d1b1e; }
.ds-brand { display: block; font-size: 26px; font-weight: 800; letter-spacing: .04em; }
.ds-sub { font-size: 12px; color: #6b6168; }
.ds-no { display: grid; text-align: right; font-size: 12px; color: #4a4248; }
.ds-no b { font-size: 15px; color: #1d1b1e; }
.ds-firms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ds-firm b { display: block; font-size: 14px; margin-bottom: 2px; }
.doc-sheet table { width: 100%; border-collapse: collapse; }
.ds-firm th { text-align: left; font-weight: 500; color: #6b6168; padding: 1px 10px 1px 0; width: 42%; vertical-align: top; }
.ds-firm td { padding: 1px 0; overflow-wrap: anywhere; }
.ds-route td { padding: 5px 8px 5px 0; border-bottom: 1px solid #e6e1e4; }
.ds-route td:last-child { color: #6b6168; text-align: right; white-space: nowrap; }
.ds-l { width: 36px; font-weight: 800; }
.ds-facts { margin-top: 12px; }
.ds-facts th { text-align: left; font-weight: 500; color: #6b6168; padding: 4px 10px 4px 0; white-space: nowrap; width: 1%; }
.ds-facts td { padding: 4px 16px 4px 0; }
.ds-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: #f3efe9; }
.ds-total b { font-size: 20px; }
.ds-total small { color: #6b6168; }
.ds-terms { margin: 16px 0 0; padding-left: 18px; font-size: 11.5px; color: #3c353a; display: grid; gap: 4px; }
.ds-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 34px; font-size: 11.5px; color: #6b6168; text-align: center; }
.ds-sign span { display: block; margin-top: 36px; border-top: 1px solid #1d1b1e; }
.ds-foot { margin-top: 22px; padding-top: 8px; border-top: 1px solid #e6e1e4; font-size: 10.5px; color: #8a8086; }
@media (max-width: 560px) { .doc-sheet { padding: 18px; } .ds-firms, .ds-head { grid-template-columns: 1fr; display: grid; } .ds-no { text-align: left; } }
#print-root { display: none; }
@media print {
  body.print-doc > *:not(#print-root) { display: none !important; }
  body.print-doc { background: #fff !important; }
  body.print-doc #print-root { display: block; padding: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 14mm; }
}

.doc-actions { grid-template-columns: 1fr 1.4fr; }
.doc-err { font-size: 13px; color: var(--err-ink); }
/* strona dla generatora PDF — poza ekranem, stała szerokość A4 */
.doc-pdf-holder { position: fixed; left: -10000px; top: 0; width: 718px; }
.doc-pdf-page { width: auto; padding: 0; }

/* ---------- panel klienta: historia przewozów i potwierdzenia ---------- */
.hs-card { margin-top: 22px; scroll-margin-top: 96px; }
.hs-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.hs-head h2 { margin-bottom: 4px; }
.hs-head .admin-tabs button[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.hs-head .admin-tabs button[aria-selected="true"] b { background: var(--btn-ink); color: var(--btn-bg); }
.hs-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.hs-filters .field { flex: 1 1 170px; }
.hs-filters .hs-q { flex: 2 1 240px; }
.hs-filters select { width: 100%; padding: 0 40px 0 14px; border-radius: 14px; border: 1.5px solid var(--input-border); background: var(--input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); font: 500 15px var(--font-body); appearance: none; -webkit-appearance: none; cursor: pointer; }
.hs-filters select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--input-ring); }
.hs-filters input { padding: 0 12px; font-size: 15px; }
.hs-filters .field { gap: 4px; min-width: 0; }
.hs-filters label { font-size: 12.5px; }
.hs-filters input, .hs-filters select { min-height: 44px; }
.hs-arch { min-height: 44px; align-items: center; font-size: 14px; white-space: nowrap; }
.hs-reset { min-height: 44px; white-space: nowrap; }
.hs-count { font-size: 13.5px; color: var(--ink-muted); }
.hs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hs-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; align-items: center; gap: 6px 16px; padding: 12px 16px; border-radius: 16px; background: var(--ib-bg); }
.hs-when { display: grid; font-size: 13px; color: var(--ink-muted); }
.hs-when b { font-size: 14px; color: var(--ink); }
.hs-main { display: grid; gap: 2px; min-width: 0; }
.hs-route { font-size: 15px; overflow-wrap: anywhere; }
.hs-meta { font-size: 13px; color: var(--ink-muted); overflow-wrap: anywhere; }
.hs-arch-tag { justify-self: start; margin-top: 2px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--ib-border); color: var(--ink-muted); }
.hs-side { display: grid; justify-items: end; gap: 4px; }
.hs-rate { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-st { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--ib-border); color: var(--ink-muted); }
.hs-st.is-done { background: var(--ok-bg); color: var(--ok-ink); }
.hs-st.is-reserved, .hs-st.is-open { background: rgba(168, 121, 63, .18); color: var(--ink); }
.hs-st.is-expired, .hs-st.is-cancelled, .hs-st.is-removed { background: var(--err-bg); color: var(--err-ink); }
.hs-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.hs-acts .ib { --btn: 36px; color: var(--ink); }
.hs-restore { border: 0; background: none; padding: 4px 0; font: 600 13px var(--font-body); color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hs-more { justify-self: center; }
.cf-item { grid-template-columns: auto minmax(0, 1fr) auto; }
.cf-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--step-bg); color: var(--ink); }
.cf-btn { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
@media (max-width: 700px) {
  .hs-item { grid-template-columns: minmax(0, 1fr) auto; }
  .hs-when { grid-column: 1 / -1; display: flex; gap: 8px; }
  .hs-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .cf-item { grid-template-columns: auto minmax(0, 1fr); }
  .cf-item .hs-acts { grid-column: 1 / -1; }
}
.ap-ic.offerAccepted { background: var(--bubble-olive); }
.ap-ic.offerRejected, .ap-ic.offerTaken { background: #A3322A; }
/* listy w panelu klienta: 10 pozycji, reszta po przewinięciu w okienku */
#hs-list, #cf-list { position: relative; }
.hs-list.is-capped { overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-gutter: stable; border-bottom: 1px solid var(--line); }

/* ---------- alarm o pilnym zleceniu (każda strona) ---------- */
.urgent-alarm { position: fixed; z-index: 3000; left: 50%; top: 84px; transform: translateX(-50%); width: min(620px, calc(100vw - 32px)); display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: 18px; background: #A3322A; color: #fff; box-shadow: 0 18px 40px rgba(120, 20, 20, .35); animation: ua-pulse 1.2s ease-in-out infinite; pointer-events: none; }
.urgent-alarm[hidden] { display: none; }
.ua-ic { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ua-ic svg { width: 20px; height: 20px; }
.ua-text { display: grid; gap: 3px; min-width: 0; font-size: 14px; line-height: 1.4; }
.ua-text b { font-family: var(--font-display); font-size: 17px; }
.ua-text small { font-size: 12.5px; opacity: .9; }
@keyframes ua-pulse { 50% { box-shadow: 0 18px 40px rgba(120, 20, 20, .35), 0 0 0 6px rgba(163, 50, 42, .35); } }
.bell.is-alarm { background: #A3322A; color: #fff; animation: bell-ring 1s ease-in-out infinite; }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .urgent-alarm, .bell.is-alarm { animation: none; } }
.ap-ic.urgent { background: #A3322A; }
.ap-item.is-urgent .ap-route { color: var(--ink); font-weight: 600; }
.ap-urgent-meta { font-weight: 700; color: var(--ink) !important; }
.ob-list li.is-sms { border-left: 3px solid var(--accent); }
.ob-list li > span:last-child { white-space: pre-line; }
.st-test .call-btn { justify-self: start; }
/* informacja o pilnym zleceniu w formularzu (zamiast pola wyboru) */
.cr-urgent-info { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; background: var(--ib-bg); color: var(--ink-muted); }
.cr-urgent-info[data-state="yes"] { background: var(--gold, #E9C98A); color: var(--gold-ink, #3A2410); font-weight: 600; }
.cr-urgent-info svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- panel administratora: integracje ---------- */
#view-int { display: grid; gap: 18px; }
#view-int[hidden] { display: none; }
.int-note { display: grid; gap: 4px; padding: 14px 18px; border-radius: 18px; background: rgba(168, 121, 63, .14); border: 1px solid rgba(168, 121, 63, .35); font-size: 14px; line-height: 1.5; }
.int-grid { align-items: start; }
.int-card { gap: 14px; }
.int-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.int-head h2 { margin-bottom: 10px; }
.int-pill { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ib-border); color: var(--ink-muted); white-space: nowrap; }
.int-pill.is-on { background: var(--ok-bg); color: var(--ok-ink); }
.int-card .field { gap: 4px; }
.int-card textarea, .int-card select { width: 100%; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--input-border); background: var(--input-bg); color: var(--ink); font: 500 15px/1.45 var(--font-body); }
.int-card select { min-height: 48px; }
.int-check { align-items: flex-start; min-height: 0; line-height: 1.4; }
.int-check .check-box { flex-shrink: 0; margin-top: 2px; }
.int-check > span:last-child { display: grid; gap: 2px; }
.int-check small { font-size: 12.5px; color: var(--ink-muted); font-weight: 500; }
.int-key-state { font-size: 12.5px; color: var(--ink-muted); }
.int-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.int-chip { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--ib-border); background: var(--ib-bg); color: var(--ink); font: 600 12px var(--font-body); cursor: pointer; }
.int-chip:hover { background: var(--ib-hover); }
.int-preview { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--ib-bg); }
.int-pv-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.int-pv-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.int-pv-meta { font-size: 12.5px; font-weight: 600; color: var(--ok-ink); }
.int-pv-meta.is-warn { color: var(--err-ink); }
.int-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.int-row .field { flex: 1 1 200px; }
.int-row .call-btn { min-height: 48px; }
.int-row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.int-kinds { display: grid; gap: 10px; margin: 0; padding: 14px; border-radius: 16px; border: 1px solid var(--ib-border); }
.int-kinds legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.int-kinds .field { margin: -4px 0 6px 32px; }
.int-kinds .field label { font-size: 12px; color: var(--ink-muted); }
.int-domain input { padding-right: 140px; }
.int-msg { font-size: 13.5px; color: var(--ok-ink); font-weight: 600; }
.int-msg.is-warn { color: var(--ink); font-weight: 500; padding: 10px 12px; border-radius: 12px; background: rgba(168, 121, 63, .14); }
.int-q { min-width: 760px; }
.int-q td { vertical-align: top; font-size: 13.5px; }
.int-q td b { display: block; font-size: 13.5px; }
.int-q td small { display: block; font-size: 12px; color: var(--ink-muted); }
.int-json summary { margin-top: 4px; font-size: 12px; color: var(--accent-text); cursor: pointer; }
.int-json pre { margin-top: 6px; padding: 10px; border-radius: 10px; background: var(--ib-bg); font-size: 11.5px; line-height: 1.4; overflow: auto; max-height: 260px; }
@media (max-width: 520px) { .int-row3 { grid-template-columns: 1fr; } .int-kinds .field { margin-left: 0; } }
.int-domain { position: relative; }
.int-domain span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--ink-muted); pointer-events: none; }
.hi-state.is-free { background: var(--ok-bg); color: var(--ok-ink); }

/* ---------- panel administratora: konta użytkowników ---------- */
#view-acc { display: grid; gap: 16px; }
#view-acc[hidden] { display: none; }
.acc-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acc-bar input, .acc-bar select, .acc-input { min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--input-border); background: var(--input-bg); color: var(--ink); font: 500 15px var(--font-body); }
.acc-bar input { flex: 2 1 260px; }
.acc-bar select { flex: 1 1 180px; }
.acc-bar .acc-csv { min-height: 46px; flex: 0 0 auto; }
textarea.acc-input { width: 100%; min-height: 0; padding: 10px 14px; line-height: 1.45; resize: vertical; }
.acc-count { margin: 0; }
.acc-list { display: grid; gap: 14px; }
.acc-acard { gap: 14px; padding: 22px 24px; }
.acc-acard.is-blocked { border-color: var(--err-border); }
.acc-ahead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.acc-who { display: grid; gap: 2px; min-width: 0; }
.acc-who h3 { font-size: 19px; overflow-wrap: anywhere; }
.acc-sub { font-size: 13px; color: var(--ink-muted); }
.acc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ib-border); color: var(--ink-muted); white-space: nowrap; }
.acc-pill.st-active, .acc-pill.pl-sub { background: var(--ok-bg); color: var(--ok-ink); }
.acc-pill.st-blocked { background: var(--err-bg); color: var(--err-ink); }
.acc-pill.pl-trial { background: rgba(168, 121, 63, .18); color: var(--ink); }
.acc-blocked { font-size: 13.5px; color: var(--err-ink); font-weight: 600; }
.acc-dl2 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.acc-stats div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--ib-bg); }
.acc-stats span { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.acc-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.acc-stats .is-warn b { color: var(--err-ink); }
.acc-manage summary { cursor: pointer; font-weight: 700; color: var(--accent-text); padding: 4px 0; }
.acc-mbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.acc-sec { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--ib-border); }
.acc-sec h4 { font-size: 15px; }
.acc-sec .call-btn { justify-self: start; min-height: 44px; padding: 0 18px; }
.acc-wide, .acc-edit { grid-column: 1 / -1; }
.acc-line { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-line .acc-input { flex: 1 1 200px; }
.acc-egrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 12px; }
.acc-f { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
.acc-f .acc-input { width: 100%; }
.call-btn-danger-soft { border: 1px solid var(--err-border); background: var(--err-bg); color: var(--err-ink); }
.call-btn-danger-soft:hover { background: var(--err-ink); color: #fff; }
.acc-last { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.acc-last li { display: grid; grid-template-columns: 100px minmax(0, 1fr) 90px 90px 130px; gap: 10px; align-items: center; font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--line); }
.acc-last li b { overflow-wrap: anywhere; }
.acc-ost { justify-self: end; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--ib-border); color: var(--ink-muted); }
.acc-msg { font-size: 13.5px; font-weight: 600; color: var(--ok-ink); margin-top: 8px; }
@media (max-width: 760px) {
  .acc-mbody { grid-template-columns: minmax(0, 1fr); }
  .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-last li { grid-template-columns: 1fr auto; }
  .acc-last li > span:nth-child(3), .acc-last li > span:nth-child(4) { display: none; }
}

/* ---------- PayU: okno płatności i ustawienia ---------- */
.pay-dlg .g-dlg { width: min(480px, calc(100vw - 32px)); }
.pay-brand { display: flex; align-items: center; gap: 10px; margin-bottom: -6px; }
.pay-logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: #2E8B37; }
.pay-env { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(168, 121, 63, .18); color: var(--ink); }
.pay-env:empty { display: none; }
.pay-body { display: grid; gap: 14px; }
.pay-sum .db-row span { min-width: 0; overflow-wrap: anywhere; }
.pay-sum .pay-sub { font-size: 13.5px; }
.pay-methods { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.pay-methods legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.pay-m { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--ib-border); cursor: pointer; font-weight: 600; }
.pay-m:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--input-ring); }
.pay-m input { accent-color: var(--accent); width: 18px; height: 18px; }
.pay-ok .db-title { font-size: 20px; }
.hi-pay { min-height: 32px; padding: 0 12px; font-size: 13px; }
.int-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.int-col { display: grid; gap: 14px; align-content: start; }
.int-ro { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border-radius: 14px; border: 1.5px dashed var(--input-border); font-size: 13.5px; color: var(--ink-muted); }
.int-pi { display: block; }
@media (max-width: 860px) { .int-cols { grid-template-columns: minmax(0, 1fr); } }
.ap-ic.registration { background: var(--bubble-olive); }
