/* Style bazowe i usprawnienia wizualne */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #1e3a8a;
  --primary-hover: #172554;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --success: #10b981;
  --success-hover: #059669;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #64748b;
}

html {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  scroll-behavior: smooth;
}

body {
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Glassmorphism i cienie */
.glass-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Pasek akcji mobilnej (Sticky bottom bar) */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .mobile-action-bar {
    display: none !important;
  }
}

/* Animacja pulsującego przycisku telefonu */
@keyframes soft-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.pulse-cta {
  animation: soft-pulse 2.5s infinite ease-in-out;
}

/* Akordeon FAQ */
.faq-content {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Czysty montaż badge */
.clean-tag {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

/* Dostępność (a11y) - Widoczny focus dla nawigacji klawiaturą */
a:focus-visible, button:focus-visible {
  outline: 3px solid #0284c7 !important;
  outline-offset: 3px !important;
}

/* Płynne, lekkie animacje pojawiania się przy scrollu (Zero-JS overhead) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Poszanowanie preferencji użytkownika odnośnie ograniczenia ruchu (a11y) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .pulse-cta {
    animation: none !important;
  }
}
