/* Zaproszenie biura rachunkowego (27.11.2026, app.js: otworzZaproszenieBiura, pokazZaproszenieBiura). Przycisk w menu
   i okno „Razem z biurem” w stylu strony www FINATA.pl: czerń znaku, neon, duże ciężkie litery, białe karty, niebieskie CTA. */

/* Przycisk w menu: wyraźny, ale w stylu menu (kafelek z ikoną, dwie linijki). */
.zapros-biuro-bok {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 16px); margin: 6px 8px 10px; padding: 11px 12px; border: 0; border-radius: 14px;
  background: #0b0b0c radial-gradient(130% 160% at 100% 0%, rgb(57 255 20 / 0.16) 0%, rgb(57 255 20 / 0) 60%); color: #fff; font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / 0.55); transition: transform 140ms ease, box-shadow 140ms ease;
}
.zapros-biuro-bok[hidden] { display: none; }
.zapros-biuro-bok:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgb(0 0 0 / 0.6); }
.zapros-biuro-bok:focus-visible { outline: 2px solid #39ff14; outline-offset: 2px; }
.zbb-ik {
  position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgb(57 255 20 / 0.14); box-shadow: inset 0 0 0 1px rgb(57 255 20 / 0.3);
}
.zbb-ik::before { content: ""; width: 18px; height: 18px; background: #39ff14; -webkit-mask: var(--ik-klienci) center / contain no-repeat; mask: var(--ik-klienci) center / contain no-repeat; }
.zbb-ik::after { /* mały „+”: zaproszenie */
  content: "+"; position: absolute; right: -5px; top: -6px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: #39ff14; color: #0b0b0c; font-size: 0.8rem; font-weight: 800; line-height: 1;
}
.zbb-tekst { display: grid; gap: 1px; min-width: 0; line-height: 1.2; }
.zbb-tekst strong { font-size: 0.9rem; font-weight: 650; }
.zbb-tekst small { font-size: 0.74rem; color: rgb(255 255 255 / 0.62); }

/* Okno: duże, przewijane, w stylu strony. */
.zb-okno {
  width: min(1040px, calc(100vw - 32px)); max-width: none; height: min(860px, calc(100dvh - 32px)); max-height: none; padding: 0; border: 0; border-radius: 22px;
  background: var(--tlo, #f3f3f4); color: var(--tekst); overflow: hidden; box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.55);
}
.zb-okno::backdrop { background: rgb(11 11 12 / 0.55); backdrop-filter: blur(4px); }
.zb-przewijanie { height: 100%; overflow: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.zb-zamknij {
  position: absolute; z-index: 2; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgb(11 11 12 / 0.62); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); backdrop-filter: blur(6px); cursor: pointer;
}
.zb-zamknij::before { content: ""; display: block; width: 16px; height: 16px; margin: auto; background: #fff; -webkit-mask: var(--ik-zamknij) center / contain no-repeat; mask: var(--ik-zamknij) center / contain no-repeat; }
.zb-zamknij:hover { background: rgb(11 11 12 / 0.82); }

.zb-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: end; padding: 56px 56px 0; overflow: hidden;
  background: #0b0b0c radial-gradient(90% 120% at 100% 100%, rgb(57 255 20 / 0.12) 0%, rgb(57 255 20 / 0) 55%); color: #fff;
}
.zb-hero-tekst { padding-bottom: 52px; }
/* Dane demo: okno jest pokazem, bo firma demo ma już biuro. */
.zb-demo { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 10px; background: rgb(255 255 255 / 0.08); color: rgb(255 255 255 / 0.78); font-size: 0.82rem; line-height: 1.4; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); }
.zb-nadtytul { margin: 0 0 18px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #39ff14; }
.zb-tytul {
  margin: 0; font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.1rem); font-weight: 850; line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance;
  font-stretch: 112%;
}
.zb-kreska { display: inline-block; width: 0.75em; height: 0.12em; margin-left: 0.12em; border-radius: 0.06em; background: #39ff14; vertical-align: 0.08em; }
.zb-lead { max-width: 34rem; margin: 22px 0 0; font-size: 1.05rem; line-height: 1.6; color: rgb(255 255 255 / 0.74); }
.zb-hero-akcje { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.zb-hero-uwaga { font-size: 0.84rem; color: rgb(255 255 255 / 0.56); }
.zb-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 11px;
  background: #0071e3; color: #fff; font: inherit; font-size: 0.95rem; font-weight: 650; text-decoration: none; cursor: pointer; transition: background 120ms ease;
}
.zb-cta:hover { background: #0062c4; }
.zb-cta:focus-visible { outline: 2px solid #39ff14; outline-offset: 2px; }
.zb-cta-ciemny { background: #161618; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); }
.zb-cta-ciemny:hover { background: #222226; }
.zb-hero-scena { position: relative; display: grid; justify-items: end; align-content: end; align-self: stretch; min-height: 300px; padding-right: 12px; }
.zb-finek { position: relative; z-index: 1; width: min(230px, 62%); height: auto; margin-bottom: -6px; filter: drop-shadow(0 24px 26px rgb(0 0 0 / 0.5)); transform-origin: 50% 100%; animation: zb-macha 3.2s ease-in-out infinite; }
.zb-karta-app {
  position: absolute; z-index: 2; left: 0; bottom: 44px; display: flex; align-items: center; gap: 10px; max-width: 250px; padding: 11px 14px; border-radius: 14px;
  background: rgb(22 22 24 / 0.92); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 18px 30px -14px rgb(0 0 0 / 0.7); animation: zb-wjazd 700ms 200ms both cubic-bezier(.2, .9, .3, 1.2);
}
.zb-karta-ik { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #39ff14; }
.zb-karta-ik::before { content: ""; width: 16px; height: 16px; background: #0b0b0c; -webkit-mask: var(--ik-zrobione) center / contain no-repeat; mask: var(--ik-zrobione) center / contain no-repeat; }
.zb-karta-tekst { display: grid; gap: 1px; line-height: 1.25; }
.zb-karta-tekst strong { font-size: 0.86rem; font-weight: 650; }
.zb-karta-tekst small { font-size: 0.74rem; color: rgb(255 255 255 / 0.6); }
@keyframes zb-macha { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg); } }
@keyframes zb-wjazd { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }

.zb-sekcja { padding: 44px 56px 8px; }
.zb-sekcja-tytul { margin: 0 0 22px; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); font-weight: 850; line-height: 1.05; letter-spacing: -0.035em; font-stretch: 110%; color: var(--tekst); }
.zb-korzysci { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.zb-korzysc {
  display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: 18px; background: var(--karta, #fff);
  box-shadow: 0 0 0 1px var(--linia), 0 10px 24px -18px rgb(0 0 0 / 0.35);
}
.zb-korzysc h4 { margin: 6px 0 0; font-size: 1.02rem; font-weight: 750; line-height: 1.2; letter-spacing: -0.015em; color: var(--tekst); }
.zb-korzysc p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--cichy); }
.zb-korzysc-ik { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #0b0b0c; }
.zb-korzysc-ik::before { content: ""; width: 18px; height: 18px; background: #39ff14; -webkit-mask: var(--zb-ik) center / contain no-repeat; mask: var(--zb-ik) center / contain no-repeat; }
.zb-korzysc-ik[data-ik="skrzynka"] { --zb-ik: var(--ik-skrzynka); }
.zb-korzysc-ik[data-ik="dymek"] { --zb-ik: var(--ik-dymek); }
.zb-korzysc-ik[data-ik="raport"] { --zb-ik: var(--ik-raport); }
.zb-korzysc-ik[data-ik="finanse"] { --zb-ik: var(--ik-finanse); }
.zb-korzysc-ik[data-ik="zrobione"] { --zb-ik: var(--ik-zrobione); }
.zb-korzysc-ik[data-ik="klienci"] { --zb-ik: var(--ik-klienci); }

.zb-kroki { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.zb-kroki li { display: grid; align-content: start; gap: 6px; padding: 4px 0; }
.zb-krok-nr { font-size: 3.4rem; font-weight: 900; line-height: 0.9; letter-spacing: -0.05em; font-stretch: 70%; font-variant-numeric: tabular-nums; color: var(--tekst); }
.zb-kroki li:first-child .zb-krok-nr { color: #0071e3; }
.zb-kroki strong { font-size: 1rem; font-weight: 700; color: var(--tekst); }
.zb-kroki li > span:last-child { font-size: 0.88rem; line-height: 1.5; color: var(--cichy); }

.zb-dol { padding-bottom: 48px; }
.zb-formularz {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 32px; border-radius: 22px;
  background: #0b0b0c radial-gradient(110% 140% at 100% 0%, rgb(57 255 20 / 0.12) 0%, rgb(57 255 20 / 0) 55%); color: #fff; scroll-margin-top: 16px;
}
.zb-form-tytul { grid-column: 1 / -1; margin: 0; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1.05; font-stretch: 110%; }
.zb-form-opis { grid-column: 1 / -1; margin: -4px 0 4px; font-size: 0.95rem; line-height: 1.55; color: rgb(255 255 255 / 0.7); }
.zb-pole { display: grid; gap: 6px; font-size: 0.84rem; font-weight: 600; color: rgb(255 255 255 / 0.86); }
.zb-pole:first-of-type { grid-column: 1 / -1; }
.zb-pole small { font-weight: 400; color: rgb(255 255 255 / 0.5); }
.zb-pole input {
  min-height: 46px; padding: 0 14px; border: 0; border-radius: 11px; background: rgb(255 255 255 / 0.08); color: #fff; font: inherit; font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
}
.zb-pole input::placeholder { color: rgb(255 255 255 / 0.4); }
.zb-pole input:focus { outline: none; box-shadow: inset 0 0 0 2px #39ff14; }
.zb-formularz > .zb-cta { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
.zb-wynik { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.14); }
.zb-wynik[hidden] { display: none; }
.zb-wynik-tytul { margin: 0; font-size: 1.1rem; font-weight: 700; color: #39ff14; }
.zb-wynik-opis { margin: 0; font-size: 0.9rem; color: rgb(255 255 255 / 0.7); }
.zb-wynik-akcje { display: flex; flex-wrap: wrap; gap: 10px; }
.zb-stany { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.zb-stany li { padding: 9px 12px; border-radius: 10px; background: rgb(255 255 255 / 0.06); font-size: 0.86rem; line-height: 1.45; color: rgb(255 255 255 / 0.82); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.zb-stany li.wyslana { box-shadow: inset 3px 0 0 #39ff14, inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.zb-stany li.blad { box-shadow: inset 3px 0 0 #ff8a80, inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.zb-wiadomosc-tytul { margin: 6px 0 -4px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgb(255 255 255 / 0.56); }
.zb-wiadomosc {
  margin: 0; max-height: 220px; overflow: auto; padding: 14px 16px; border-radius: 12px; background: rgb(255 255 255 / 0.06); color: rgb(255 255 255 / 0.82);
  font: 0.84rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}

@media (max-width: 860px) {
  .zb-hero { grid-template-columns: minmax(0, 1fr); padding: 44px 24px 0; }
  .zb-hero-tekst { padding-bottom: 8px; }
  .zb-hero-scena { min-height: 230px; justify-items: center; }
  .zb-karta-app { left: 50%; bottom: auto; top: 0; transform: translateX(-50%); animation: none; }
  .zb-finek { width: 170px; }
  .zb-sekcja { padding: 32px 20px 4px; }
  .zb-korzysci, .zb-kroki { grid-template-columns: minmax(0, 1fr); }
  .zb-formularz { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .zb-okno { width: 100vw; height: 100dvh; border-radius: 0; }
}
@media (min-width: 861px) and (max-width: 1100px) { .zb-korzysci { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .zb-finek, .zb-karta-app { animation: none; } .zapros-biuro-bok, .zb-cta { transition: none; } }
