/* Rytm System – style strony. Tokeny na górze, potem elementy wg sekcji. */
:root {
  --white: #FFFFFF;
  --mist: #F8FAFC;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --plum: #4A0E2E;
  --plum-soft: #F6EEF2;
  --cta: #EA580C;
  --cta-hover: #C2410C;
  --ok: #15803D;

  --serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  word-spacing: .04em;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-variant-numeric: lining-nums; }
.seal-num, .steps li::before, .why h3, .feature dt, .plan h3 { font-variant-numeric: lining-nums; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typografia ---------- */
h1 {
  font: 800 clamp(2.25rem, 4.6vw, 3.6rem)/1.1 var(--serif);
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.section-title {
  font: 800 clamp(1.75rem, 3.2vw, 2.4rem)/1.18 var(--serif);
  letter-spacing: -0.025em;
  max-width: 22ch;
}
h3 { font: 600 1.125rem/1.4 var(--sans); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 36rem; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  background: var(--cta); color: var(--white);
  font: 600 1rem/1.3 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid var(--cta); border-radius: 12px; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand img { width: 180px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: 8px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-meta { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.availability { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(21, 128, 61, .15); }
.header-phone { font-weight: 600; text-decoration: none; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 var(--section-y); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 20px; font-size: clamp(1.9rem, 3.6vw, 2.85rem); max-width: 21ch; }
.hero-sub { font: 700 clamp(1.15rem, 1.7vw, 1.35rem)/1.45 var(--serif); letter-spacing: -0.01em; color: var(--plum); max-width: 30rem; margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.checks { display: grid; gap: 10px; margin-bottom: 36px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--ok) 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.note { font-size: .9rem; color: var(--muted); }

/* Grafik – wyróżniający element strony */
.schedule { margin: 0; background: var(--plum); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.schedule figcaption { color: rgba(255, 255, 255, .78); font-size: .9rem; margin-bottom: 14px; }
.schedule-card { background: var(--white); border-radius: 14px; overflow: hidden; }
.schedule-days { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.schedule-days button {
  appearance: none; border: 0; background: none; cursor: pointer;
  padding: 14px 4px; font: 600 .9rem var(--sans); color: var(--muted);
  border-bottom: 3px solid transparent;
}
.schedule-days button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--cta); }
.schedule-list li {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.slot-time { font: 800 1.05rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.slot-name { font-weight: 600; line-height: 1.35; }
.slot-meta { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.slot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.slot-spots { font-size: .78rem; font-weight: 600; color: var(--ok); white-space: nowrap; }
.slot-spots.is-low { color: var(--cta-hover); }
.slot-spots.is-full { color: var(--muted); }
.slot-btn {
  appearance: none; cursor: pointer; border: 1.5px solid var(--ink); background: var(--white);
  color: var(--ink); border-radius: 8px; padding: 5px 12px; font: 600 .8rem var(--sans);
}
.slot-btn:hover { background: var(--ink); color: var(--white); }
.slot-btn[disabled] { cursor: default; border-color: var(--ok); background: var(--ok); color: var(--white); }
.slot-btn.is-waitlist { border-color: var(--line); color: var(--muted); }
.schedule-foot { padding: 12px 18px; font-size: .8rem; color: var(--muted); background: var(--mist); }

/* ---------- Sekcje ogólne ---------- */
.section { padding: var(--section-y) 0; }
.section .section-title { margin-bottom: 20px; }
.problem, .process, .contact { background: var(--mist); }

/* Problem */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 48px; }
.fact { border-top: 2px solid var(--plum); padding-top: 24px; }
.fact h3 { margin-bottom: 12px; }
.fact p { color: var(--muted); }

/* Rozwiązanie */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-intro { position: sticky; top: 112px; }
.features { margin: 0; display: grid; gap: 0; }
.feature { padding: 26px 0; border-bottom: 1px solid var(--line); }
.feature:first-child { padding-top: 0; }
.feature dt { font: 700 1.2rem/1.35 var(--serif); margin-bottom: 8px; }
.feature dd { margin: 0; color: var(--muted); max-width: 36rem; }
.why {
  margin-top: clamp(56px, 8vw, 96px); padding: clamp(28px, 4vw, 48px);
  background: var(--plum-soft); border-radius: 20px;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 6vw, 96px);
}
.why h3 { font: 800 1.45rem/1.3 var(--serif); color: var(--plum); }
.why p { max-width: 36rem; }

/* Proces */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: 48px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 14px;
  font: 800 2.5rem/1 var(--serif); color: var(--plum);
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Cennik */
.anchor { margin-bottom: 56px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--white);
}
.plan h3 { font: 800 1.35rem/1.25 var(--serif); margin-bottom: 6px; }
.plan-for { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.price { font: 800 2rem/1.1 var(--serif); margin-bottom: 24px; font-variant-numeric: lining-nums; }
.price .from, .price .net { font: 500 .9rem var(--sans); color: var(--muted); }
.plan ul { display: grid; gap: 10px; margin-bottom: 32px; flex: 1; align-content: start; }
.plan li { padding-left: 22px; position: relative; font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--plum); }
.plan-featured { border: 2px solid var(--plum); box-shadow: 0 24px 48px -28px rgba(74, 14, 46, .45); }
.badge {
  position: absolute; top: -14px; left: 28px;
  background: var(--plum); color: var(--white); font-size: .8rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.plan-link { font-weight: 600; color: var(--plum); text-decoration: underline; text-decoration-color: var(--cta); text-underline-offset: 4px; }
.plan-link:hover { color: var(--cta-hover); }
.tech { scroll-margin-top: 96px;  margin-top: 40px; padding: clamp(24px, 4vw, 40px); background: var(--mist); border-radius: 16px; }
.tech h3 { font: 800 1.2rem/1.3 var(--serif); margin-bottom: 20px; }
.tech-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 24px; }
.tech-list li { font-size: .9rem; color: var(--muted); padding-top: 14px; border-top: 2px solid var(--plum); }
.tech-list strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.pricing-note { margin-top: 32px; color: var(--muted); font-size: .95rem; max-width: 52rem; }

/* Gwarancja */
.guarantee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guarantee-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.guarantee p { max-width: 40rem; color: var(--muted); font-size: 1.075rem; }
.seal {
  width: clamp(120px, 16vw, 168px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--plum); outline: 1px solid var(--plum); outline-offset: 6px;
  display: grid; place-content: center; text-align: center; color: var(--plum);
}
.seal-num { font: 800 clamp(2.6rem, 5vw, 3.6rem)/1 var(--serif); }
.seal-label { font-weight: 600; font-size: .95rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.direct { margin-top: 36px; display: grid; gap: 4px; }
.direct p { color: var(--muted); font-size: .95rem; }
.direct a { font-weight: 600; font-size: 1.1rem; text-decoration-color: var(--cta); text-underline-offset: 4px; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label, .inline-form > label { font-weight: 600; font-size: .9rem; }
.field input, .inline-row input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem var(--sans); color: var(--ink);
  background: var(--white); border: 1.5px solid #CBD5E1; border-radius: 10px;
}
.field input:focus, .inline-row input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 23, 42, .12); }
.form-privacy { font-size: .8rem; color: var(--muted); text-align: center; }
.form-error { background: #FEF2F2; color: #991B1B; padding: 10px 14px; border-radius: 8px; font-size: .9rem; }
.form-done { background: var(--white); border: 2px solid var(--ok); border-radius: 16px; padding: 40px; }
.form-done h3 { font: 800 1.6rem/1.2 var(--serif); margin-bottom: 10px; }
.form-done p { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kalendarz (Cal.com) */
.booking-head { max-width: 40rem; margin: 0 auto 40px; text-align: center; }
.booking-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(8px, 2vw, 20px); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(74, 14, 46, .14);
}
.booking-embed { position: relative; width: 100%; min-height: 560px; overflow: auto; }
.booking-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.booking-fallback { padding: 24px; text-align: center; }
.booking-alt { margin-top: 16px; text-align: center; font-size: .9rem; color: var(--muted); }
.booking-alt a, .booking-fallback a { color: var(--ink); font-weight: 600; text-decoration-color: var(--cta); text-underline-offset: 4px; }
.direct-gap { margin-top: 16px; }

/* Kalkulator kosztu */
.calc {
  margin-top: 40px; display: grid; grid-template-columns: 1.1fr .9fr;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.calc-inputs { padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.calc-result { background: var(--ink); color: var(--white); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.calc-result p:first-child { color: rgba(255, 255, 255, .7); }
.calc-sum { font: 800 clamp(2.4rem, 5vw, 3.4rem)/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.calc-compare { color: rgba(255, 255, 255, .8); margin-bottom: 20px; }
.calc-result .btn { align-self: flex-start; }

/* Checklista */
.checklist { padding-top: 0; }
.checklist-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: end;
}
.checklist-box > div { border-top: 2px solid var(--plum); padding-top: 32px; }
.checklist .section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.checklist p { color: var(--muted); max-width: 34rem; }
.inline-form { display: grid; gap: 6px; }
.inline-row { display: flex; gap: 10px; }
.inline-row .btn { flex: none; min-height: 50px; }
.form-done-inline { font-weight: 600; color: var(--ok); }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 56px 0 28px; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.footer-row img { width: 170px; margin-bottom: 12px; }
.footer-contact { display: grid; gap: 4px; text-align: right; }
.footer-contact a { color: var(--white); text-decoration: none; font-weight: 500; }
.footer-contact a:hover { text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }

/* ---------- Responsywność ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .why, .contact-grid, .calc, .checklist-box { grid-template-columns: minmax(0, 1fr); }
  .split-intro { position: static; }
  .facts { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .tech-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .availability { display: none; }
  .brand img { width: 150px; }
  .header-row { gap: 12px; min-height: 64px; }
  .steps { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: 1fr; }
  .guarantee-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .schedule-list li { grid-template-columns: 52px 1fr; padding: 14px; }
  .slot-side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .inline-row { flex-direction: column; }
  .footer-contact { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
