/* ── BAZA WARSZTATÓW (podstrona funkcji) ────────────────
   Reużywa komponentów .sz-* (strona-zapisow.css). Tu: hero z animowaną
   makietą (katalog → „Zaplanuj termin" → termin na kalendarzu), karta
   szczegółów warsztatu, karty „co potrafi baza". */

/* ── Hero (kopia na górze, makieta pod spodem) ──────── */
.bw-hero { max-width: 1080px; margin: 0 auto; padding: 76px 32px 88px; text-align: center; }
.bw-hero-copy { max-width: 760px; margin: 0 auto 46px; }
.bw-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;
}
.bw-hero-lead { margin: 0 auto 26px; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--text-muted); }
.bw-hero .hero-cta { align-items: center; }
.bw-hero .hero-std-note { margin-top: 13px; }

/* ── Makieta hero: katalog + kalendarz ──────────────── */
.bw-stage { position: relative; max-width: 560px; margin: 0 auto; text-align: left; }
.bw-catalog {
  background: #fff; border: 1px solid var(--border-strong); border-radius: 4px;
  box-shadow: 0 14px 36px rgba(17,17,17,0.07); padding: 8px;
}
.bw-catalog-head { padding: 10px 12px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.bw-wcard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 4px; }
.bw-wcard + .bw-wcard { border-top: 1px solid var(--border); }
.bw-wcard-hero { background: var(--brand-soft); }
.bw-wcard-swatch {
  width: 38px; height: 38px; border-radius: 4px; flex-shrink: 0; background: var(--brand-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
}
.bw-wcard-hero .bw-wcard-swatch { background: #fff; }
.bw-wcard-swatch svg { width: 19px; height: 19px; }
.bw-wcard-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bw-wcard-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.bw-wcard-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.bw-wcard-btn {
  flex-shrink: 0; font-size: 11.5px; font-weight: 600; padding: 6px 10px; border-radius: 4px; white-space: nowrap;
  border: 1px solid var(--border-strong); color: var(--brand); background: #fff;
}
.bw-wcard-btn.is-ghost { color: var(--text-muted); }
.bw-wcard-hero .bw-wcard-btn { animation: bwBtnClick 7s ease-in-out infinite; }
@keyframes bwBtnClick {
  0%, 4% { background: #fff; color: var(--brand); border-color: var(--border-strong); box-shadow: none; }
  9%, 14% { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
  20%, 100% { background: #fff; color: var(--brand); border-color: var(--border-strong); box-shadow: none; }
}

.bw-focus-cal { margin-top: 2px; }
.bw-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bw-cal-head > span:first-child { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--text); }
.bw-cal-nav { display: inline-flex; gap: 6px; color: var(--text-muted); }
.bw-cal-nav svg { width: 16px; height: 16px; }
.bw-cal-week { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bw-day { display: flex; flex-direction: column; align-items: center; }
.bw-day-name { font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
.bw-day-num { font-size: 14px; font-weight: 600; color: var(--text); margin: 2px 0 8px; }
.bw-day-target .bw-day-num { color: var(--brand); }
.bw-day-slots { width: 100%; min-height: 100px; border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.bw-ev {
  display: flex; flex-direction: column; font-size: 10.5px; font-weight: 600; line-height: 1.25;
  color: #fff; background: var(--brand); border-radius: 4px; padding: 6px 7px;
}
.bw-ev small { font-size: 9px; font-weight: 500; opacity: 0.9; }
.bw-ev.is-faint { background: var(--brand-soft); color: var(--brand); }
.bw-cal-new { opacity: 0; animation: bwEventIn 7s ease-in-out infinite; }
@keyframes bwEventIn {
  0%, 30% { opacity: 0; transform: translateY(-7px) scale(0.95); }
  40%, 88% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* nakładka „planowanie terminu" wychodzi na wierzch katalogu */
.bw-focus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; animation: bwFocusFade 7s infinite; }
.bw-scrim { position: absolute; inset: 0; background: rgba(249,250,251,0.82); border-radius: 4px; }
.bw-focus-card {
  position: relative; width: min(380px, 92%); background: #fff; border: 1px solid var(--border-strong);
  border-radius: 4px; box-shadow: 0 20px 48px rgba(17,17,17,0.18); padding: 18px 18px 20px; animation: bwFocusScale 7s infinite;
}
@keyframes bwFocusFade { 0%, 14% { opacity: 0; } 22%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes bwFocusScale { 0%, 14% { transform: scale(0.94); } 22%, 100% { transform: scale(1); } }
.bw-focus-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.bw-focus-swatch { width: 36px; height: 36px; border-radius: 4px; flex-shrink: 0; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.bw-focus-swatch svg { width: 18px; height: 18px; }
.bw-focus-name { display: block; font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--text); }
.bw-focus-tag { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.bw-focus-cal .bw-day-slots { min-height: 76px; }
.bw-focus-done {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: #15803d; background: #dcfce7; border-radius: 4px; padding: 7px 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1); opacity: 0; animation: bwDone 7s ease-in-out infinite;
}
.bw-focus-done svg { width: 15px; height: 15px; }
@keyframes bwDone {
  0%, 64% { opacity: 0; transform: translateX(-50%) translateY(6px); }
  72%, 88% { opacity: 1; transform: translateX(-50%) translateY(0); }
  95%, 100% { opacity: 0; transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .bw-wcard-hero .bw-wcard-btn, .bw-cal-new, .bw-focus, .bw-focus-card, .bw-focus-done { animation: none; }
  .bw-focus { opacity: 0; }
}

/* ── Sekcja 3 — Rozwiązanie (copy + karta warsztatu) ── */
.bw-solution-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
.bw-solution-copy { text-align: left; }
.bw-solution-copy .sz-eyebrow { margin-bottom: 14px; }
.bw-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;
}
.bw-solution-copy > p { margin: 0; max-width: 48ch; font-size: 16px; line-height: 1.65; color: var(--text-muted); }
.bw-solution-copy .sz-bullets { display: flex; margin-top: 24px; }
.bw-detail {
  max-width: 380px; margin: 0 auto; background: #fff; border: 1px solid var(--border-strong);
  border-radius: 4px; box-shadow: 0 10px 30px rgba(17,17,17,0.07); overflow: hidden;
}
.bw-detail-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.bw-detail-swatch { width: 40px; height: 40px; border-radius: 4px; flex-shrink: 0; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.bw-detail-swatch svg { width: 20px; height: 20px; }
.bw-detail-name { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--text); }
.bw-detail-tag { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.bw-detail-rows { padding: 4px 18px; }
.bw-detail-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.bw-detail-row:last-child { border-bottom: none; }
.bw-detail-row span { color: var(--text-muted); }
.bw-detail-row b { color: var(--text); font-weight: 600; }
.bw-detail-foot { padding: 14px 18px; border-top: 1px solid var(--border); }
.bw-detail-btn { display: block; text-align: center; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; padding: 10px; border-radius: 4px; }

/* ── Sekcja 4 — Co potrafi baza (4 karty) ───────────── */
.bw-types { max-width: 1120px; margin: 0 auto; padding: 24px 32px 88px; }
.bw-types-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bw-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);
}
.bw-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; }
.bw-type-ic svg { width: 21px; height: 21px; }
.bw-type-card h3 { margin: 0 0 7px; font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--text); }
.bw-type-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

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

/* ── Responsywność ──────────────────────────────────── */
@media (max-width: 900px) {
  .bw-stage { grid-template-columns: 1fr; }
  .bw-types-grid { grid-template-columns: 1fr; }
  .bw-solution-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .bw-hero { padding: 52px 20px 64px; }
  .bw-types { padding-left: 20px; padding-right: 20px; }
}
