/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0d1321;
  --ink-soft: #2a3347;
  --ink-muted: #5a6478;
  --ink-faint: #9aa0ad;
  --surface: #fcfcfc;
  --surface-warm: #f0f1f3;
  --card: #ffffff;
  --accent: #05b2dc;
  --accent-light: #03a0c8;
  --accent-glow: rgba(5, 178, 220, 0.1);
  --green: #2a7d5f;
  --green-soft: rgba(42, 125, 95, 0.08);
  --amber: #b8860b;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== GRAIN ===== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(246,245,241,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--accent-light); }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-step {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.header-progress {
  width: 80px;
  height: 3px;
  background: var(--surface-warm);
  border-radius: 3px;
  overflow: hidden;
}
.header-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SLIDES CONTAINER ===== */
.slides {
  position: fixed;
  inset: 0;
  top: 56px;
}

/* ===== SINGLE SLIDE ===== */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(60px);
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide.aktywny {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}
.slide.wychodzi {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-60px);
  z-index: 1;
}

.slide-inner {
  width: 100%;
  max-width: 560px;
  padding: 24px 28px;
}
.slide-inner--wynik {
  max-width: 600px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding-bottom: 48px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-warm) transparent;
}

/* ===== HERO SLIDE ===== */
.hero-content {
  text-align: center;
}
.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero-content h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}
.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-start:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,92,0.2);
}
.hero-meta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ===== SLIDE HEADER ===== */
.slide-header {
  margin-bottom: 28px;
}
.slide-numer {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.slide-header h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 10px;
}
.slide-opis {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ===== OPCJE GRID ===== */
.opcje-grid {
  display: grid;
  gap: 10px;
}
.opcje-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.opcje-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ===== OPCJA ===== */
.opcja {
  background: var(--card);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-family: var(--font-body);
  position: relative;
}
.opcja:hover {
  border-color: rgba(26,58,92,0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.opcja.wybrana {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 1px var(--accent), 0 4px 20px rgba(26,58,92,0.1);
}

.opcja-visual {
  color: var(--ink-muted);
  transition: color 0.2s;
}
.opcja.wybrana .opcja-visual { color: var(--accent); }

.opcja-text { display: flex; flex-direction: column; gap: 2px; }
.opcja-tytul { font-size: 14px; font-weight: 600; color: var(--ink); }
.opcja-opis { font-size: 12px; color: var(--ink-muted); }

/* Document buttons */
.opcje-dokumenty .opcja {
  padding: 14px 10px;
  gap: 6px;
}
.opcje-dokumenty .opcja-ikona { font-size: 20px; }

/* Neutral (nie wiem) opcja */
.opcja--neutral {
  border-style: dashed;
  border-color: rgba(0,0,0,0.1);
  background: var(--surface-warm);
}
.opcja--neutral .opcja-visual { color: var(--ink-faint); }
.opcja--neutral .opcja-tytul { color: var(--ink-muted); }
.opcja--neutral:hover { border-color: var(--accent); background: var(--accent-glow); }
.opcja--neutral.wybrana { border-style: solid; background: white; }

/* Full width opcja */
.opcja--full {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 18px;
  grid-column: 1 / -1;
}
.opcja--full .opcja-text { display: flex; flex-direction: column; gap: 2px; }

/* cols-span-2 — opcja rozciągnięta w siatce cols-2 */
.cols-span-2 { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 14px 18px; }

/* Horizontal opcja (kiedy) */
.opcje-grid.cols-1 { grid-template-columns: 1fr; }
.opcja--horizontal {
  flex-direction: row;
  text-align: left;
  padding: 16px 18px;
  gap: 14px;
  align-items: center;
}
.opcja--horizontal .opcja-text { flex: 1; }
.opcja--horizontal .opcja-tytul { font-size: 15px; }

/* Social proof slide */
.slide-inner--social { text-align: center; }
.social-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-soft);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.social-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
  line-height: 1.2;
}
.social-profiles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}
.social-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  filter: blur(4px);
  user-select: none;
}
.profile-stars {
  font-size: 12px;
  color: var(--amber);
  margin-top: 2px;
}
.profile-stars span { color: var(--ink-muted); font-size: 11px; }
.profile-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.social-sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

/* Skip link */
.skip-link {
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  cursor: pointer;
  margin-top: 12px;
  transition: color 0.2s;
}
.skip-link:hover { color: var(--ink-muted); }

/* ===== SELECT ===== */
.select-wrap {
  position: relative;
  margin-bottom: 16px;
}
.select-wrap select {
  width: 100%;
  padding: 16px 44px 16px 18px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s;
}
.select-wrap select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.select-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

/* ===== BTN DALEJ ===== */
.btn-dalej {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-dalej:hover:not(:disabled) {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,58,92,0.2);
}
.btn-dalej:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===== PRACOWNICY ===== */
.pracownicy-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.pracownik-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.pracownik-info { display: flex; flex-direction: column; gap: 1px; }
.pracownik-label { font-size: 15px; font-weight: 500; color: var(--ink); }
.pracownik-cena { font-size: 12px; color: var(--ink-faint); }

.licznik { display: flex; align-items: center; gap: 16px; }
.licznik-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: all 0.15s;
}
.licznik-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.licznik-btn:active { transform: scale(0.9); }
.licznik-val {
  font-size: 22px;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ===== BTN OBLICZ ===== */
.btn-oblicz {
  width: 100%;
  padding: 17px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-oblicz:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,58,92,0.2);
}

/* ===== WYNIK ===== */
.wynik-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid rgba(0,0,0,0.06);
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 20px;
}
.wynik-top { margin-bottom: 24px; }
.wynik-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.wynik-cena {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}
.wynik-netto { font-size: 14px; color: var(--ink-muted); }

.wynik-breakdown { max-width: 380px; margin: 0 auto 16px; }

.wynik-sukces {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  background: var(--green-soft);
  border: 1px solid rgba(42,125,95,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
}

/* ===== CHECKBOX OFERTY ===== */
.oferty-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  background: var(--surface-warm);
  border: 1.5px solid rgba(5,178,220,0.2);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.oferty-checkbox:hover { border-color: var(--accent); }
.oferty-checkbox input[type="checkbox"] { display: none; }
.checkbox-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 5px;
  border: 2px solid rgba(0,0,0,0.15);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s;
  color: transparent;
}
.oferty-checkbox input:checked ~ .checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.checkbox-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}
.skladnik {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.skladnik:last-child { border-bottom: none; }
.skladnik span:last-child {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.wynik-uwaga { font-size: 13px; color: var(--amber); font-weight: 500; margin-bottom: 8px; }
.wynik-disclaimer { font-size: 12px; color: var(--ink-faint); font-style: italic; line-height: 1.5; margin-top: 12px; }

.wynik-zalozenie {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(5,178,220,0.07);
  border: 1px solid rgba(5,178,220,0.2);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px auto 0;
  max-width: 380px;
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 500;
  line-height: 1.5;
}
.wynik-zalozenie svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }

.btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  background: none;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.btn-restart:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== LEAD SECTION ===== */
.lead-section {
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid rgba(0,0,0,0.06);
  padding: 32px 28px;
  text-align: left;
}
.lead-header { margin-bottom: 24px; }
.lead-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}
.lead-header p { font-size: 14px; color: var(--ink-muted); }

#lead-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.form-field .opt { font-weight: 400; color: var(--ink-faint); }
.form-field input {
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: all 0.2s;
}
.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-wyslij {
  width: 100%;
  padding: 16px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-wyslij:hover { background: #237a55; transform: translateY(-1px); }
.btn-wyslij:disabled { background: var(--ink-faint); cursor: not-allowed; transform: none; }

.rodo { font-size: 11px; color: var(--ink-faint); margin-top: 16px; line-height: 1.6; }
.rodo a { color: var(--ink-muted); text-decoration: underline; }

/* ===== SUKCES ===== */
.lead-sukces { text-align: center; padding: 40px 0 16px; }
.sukces-check { color: var(--green); margin-bottom: 16px; }
.lead-sukces h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--green);
  margin-bottom: 8px;
}
.lead-sukces p { font-size: 15px; color: var(--ink-muted); }

/* ===== KEYBOARD HINT (desktop) ===== */
@media (min-width: 769px) {
  .opcja::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 10px;
    color: var(--ink-faint);
    opacity: 0;
    transition: opacity 0.2s;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .header { padding: 0 16px; }
  .hero-content h1 { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-meta { gap: 12px; font-size: 12px; flex-wrap: wrap; justify-content: center; }
  .btn-start { padding: 14px 28px; font-size: 16px; }
  .slide-inner { padding: 20px 20px; }
  .slide-header h2 { font-size: 24px; }
  .opcje-grid.cols-2 { grid-template-columns: 1fr; }
  .opcje-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .wynik-cena { font-size: 36px; }
  .wynik-card { padding: 28px 20px; }
  .lead-section { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
