/* ── ZARZĄDZANIE ZAPISAMI (podstrona funkcji) ───────────
   Reużywa komponentów .sz-* (strona-zapisow.css): sz-problem, sz-contrast,
   sz-solution, sz-bullets, sz-objection, final-cta. Tu: hero z animowaną
   makietą kolejki (1:1 z modułu cancellations w apce) + karty typów. */

/* ── Hero (kopia na górze, makieta pod spodem) ──────── */
.zz-hero { max-width: 1080px; margin: 0 auto; padding: 76px 32px 88px; text-align: center; }
.zz-hero-copy { max-width: 760px; margin: 0 auto 46px; }
.zz-hero h1 {
  margin: 0 0 14px; font-family: var(--font-heading); font-size: var(--fs-hero, clamp(2.1rem, 4.1vw, 3.2rem));
  line-height: 1.08; font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); color: var(--text); text-wrap: balance;
}
.zz-hero-lead { margin: 0 auto 26px; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--text-muted); }
.zz-hero .hero-cta { align-items: center; }
.zz-hero .hero-std-note { margin-top: 13px; }

/* ── Makieta kolejki (tabela) ───────────────────────── */
.zz-stage { position: relative; max-width: 980px; margin: 0 auto; }
.zz-table {
  background: #fff; border: 1px solid var(--border-strong); border-radius: 4px;
  box-shadow: 0 14px 36px rgba(17,17,17,0.08); overflow: hidden; text-align: left;
}
.zz-thead, .zz-row {
  display: grid; grid-template-columns: 70px 1.2fr 1.45fr 1.2fr 0.95fr 92px;
  gap: 14px; align-items: center; padding: 13px 18px;
}
.zz-thead {
  background: var(--bg-subtle); border-bottom: 1px solid var(--border);
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted);
}
.zz-row { border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text); }
.zz-row:last-child { border-bottom: none; }
.zz-row-hero { background: var(--brand-soft); }
.zz-cell { display: flex; flex-direction: column; min-width: 0; }
.zz-cell b { font-weight: 600; }
.zz-cell > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zz-cell small { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.zz-num { font-variant-numeric: tabular-nums; }
.zz-sla {
  display: inline-flex; align-items: center; justify-content: center; width: max-content;
  font-size: 11px; font-weight: 700; color: var(--text-muted); background: #eef0f2; border-radius: 4px; padding: 4px 9px; white-space: nowrap;
}
.zz-act {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: var(--brand); border: 1px solid var(--border-strong); border-radius: 4px; padding: 6px 12px;
}

/* ── Animowany overlay: zoom → decyzje → rozwiązane ──── */
.zz-focus {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: zzFocusFade 7s infinite;
}
.zz-scrim { position: absolute; inset: 0; background: rgba(249,250,251,0.8); border-radius: 4px; }
.zz-focus-card {
  position: relative; width: min(370px, 88%); background: #fff; border: 1px solid var(--border-strong);
  border-radius: 4px; box-shadow: 0 20px 48px rgba(17,17,17,0.18); padding: 20px 22px;
  text-align: left; animation: zzFocusScale 7s infinite;
}
@keyframes zzFocusFade { 0%, 4% { opacity: 0; } 12%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes zzFocusScale { 0%, 4% { transform: scale(0.93); } 12%, 100% { transform: scale(1); } }
.zz-focus-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zz-focus-name { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--text); }
.zz-focus-tag { font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 4px; padding: 3px 9px; }
.zz-focus-sub { font-size: 13px; color: var(--text-muted); margin-top: 5px; }
.zz-focus-q { font-size: 13.5px; font-weight: 600; color: var(--text); margin: 16px 0 11px; }
.zz-decision { position: relative; min-height: 136px; }
.zz-opts { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; }
.zz-opt {
  font-size: 13px; font-weight: 600; text-align: center; padding: 10px; border-radius: 4px;
  border: 1px solid var(--border-strong); background: #fff; color: var(--text); opacity: 0;
}
.zz-opt-1 { animation: zzOptChosen 7s infinite; }
.zz-opt-2, .zz-opt-3 { animation: zzOptOther 7s infinite; }
@keyframes zzOptChosen {
  0%, 14% { opacity: 0; transform: translateY(6px); background: #fff; border-color: var(--border-strong); color: var(--text); box-shadow: none; }
  22%, 52% { opacity: 1; transform: none; background: #fff; border-color: var(--border-strong); color: var(--text); box-shadow: none; }
  60%, 68% { opacity: 1; transform: none; background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
  74%, 100% { opacity: 0; }
}
@keyframes zzOptOther {
  0%, 14% { opacity: 0; transform: translateY(6px); }
  22%, 52% { opacity: 1; transform: none; }
  60%, 68% { opacity: 0.3; }
  74%, 100% { opacity: 0; }
}
.zz-resolved {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: #15803d; background: #dcfce7; border-radius: 4px; padding: 11px 18px;
  opacity: 0; animation: zzResolved 7s infinite;
}
.zz-resolved svg { width: 18px; height: 18px; }
@keyframes zzResolved { 0%, 66% { opacity: 0; } 74%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .zz-focus, .zz-focus-card, .zz-opt, .zz-resolved { animation: none; }
  .zz-focus { opacity: 0; }
}

/* ── Sekcja 3 — Rozwiązanie (copy + panel powiadomień) ─ */
.zz-solution-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: center; }
.zz-solution-copy { text-align: left; }
.zz-solution-copy .sz-eyebrow { margin-bottom: 14px; }
.zz-solution-copy h2 {
  margin: 0 0 14px; font-family: var(--font-heading); font-size: var(--fs-section, clamp(1.7rem, 2.7vw, 2.3rem));
  font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; color: var(--text); text-wrap: balance;
}
.zz-solution-copy > p { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.65; color: var(--text-muted); }
.zz-solution-copy .sz-bullets { display: flex; margin-top: 24px; }

.zz-notif { background: #fff; border: 1px solid var(--border-strong); border-radius: 4px; box-shadow: 0 10px 30px rgba(17,17,17,0.07); overflow: hidden; }
.zz-notif-head {
  display: flex; align-items: center; gap: 9px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); background: var(--bg-subtle); font-size: 13px; font-weight: 600; color: var(--text);
}
.zz-notif-bell { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.zz-notif-bell svg { width: 14px; height: 14px; }
.zz-notif-list { padding: 6px 8px; }
.zz-notif-item { display: flex; align-items: center; gap: 12px; padding: 13px 12px; }
.zz-notif-item + .zz-notif-item { border-top: 1px solid var(--border); }
.zz-notif-body { flex: 1; min-width: 0; }
.zz-notif-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.zz-notif-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.zz-notif-auto {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 7px;
  font-size: 10.5px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 3px 9px;
}
.zz-notif-auto svg { width: 11px; height: 11px; }
.zz-notif-cta {
  flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--brand);
  border: 1px solid var(--border-strong); border-radius: 4px; padding: 6px 11px; white-space: nowrap;
}

/* ── Sekcja 4 — Typy spraw (4 karty) ────────────────── */
.zz-types { max-width: 1120px; margin: 0 auto; padding: 24px 32px 88px; }
.zz-types-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.zz-type-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-strong);
  border-radius: 4px; padding: 24px; box-shadow: 0 1px 2px rgba(17,17,17,0.04);
}
.zz-type-ic {
  width: 40px; height: 40px; border-radius: 4px; margin-bottom: 14px;
  background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center;
}
.zz-type-ic svg { width: 21px; height: 21px; }
.zz-type-card h3 { margin: 0 0 7px; font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--text); }
.zz-type-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ── Równy rytm pionowy sekcji (gap ≈ 112px) ─────────── */
.zz-page .sz-problem { padding-top: 24px; padding-bottom: 88px; }
.zz-page .sz-solution { padding-top: 24px; padding-bottom: 88px; }
.zz-page .sz-objection { padding-top: 24px; padding-bottom: 88px; }
.zz-page .final-cta { padding-top: 24px; }

/* ── Responsywność ──────────────────────────────────── */
@media (max-width: 900px) {
  .zz-types-grid { grid-template-columns: 1fr; }
  .zz-solution-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .zz-hero { padding: 52px 20px 64px; }
  .zz-thead, .zz-row { grid-template-columns: 52px 1fr 1.05fr 1fr 0.8fr 64px; gap: 8px; padding: 10px; }
  .zz-thead { font-size: 8.5px; }
  .zz-row { font-size: 11px; }
  .zz-cell small { font-size: 9.5px; }
  .zz-act { padding: 5px 6px; font-size: 10px; }
  .zz-sla { font-size: 9px; padding: 3px 6px; }
  .zz-types { padding-left: 20px; padding-right: 20px; }
  /* Karta decyzji (overlay) — skalowanie pod mobile */
  .zz-focus-card { width: min(290px, 92%); padding: 14px 16px; }
  .zz-focus-name { font-size: 14px; }
  .zz-focus-tag { font-size: 10px; padding: 2px 8px; }
  .zz-focus-sub { font-size: 12px; }
  .zz-focus-q { font-size: 12.5px; margin: 12px 0 9px; }
  .zz-decision { min-height: 116px; }
  .zz-opt { font-size: 12px; padding: 8px; }
  .zz-resolved { font-size: 13px; padding: 9px 15px; }
}
