/* =========================== BIAŁO-BŁĘKITNA PALETA =========================== */
:root {
  --bg: #f0f8ff;
  --bg-alt: #e6f2ff;
  --text: #0b1b3a;
  --muted: #516a87;

  --primary: #3aa7f6;
  --primary-600: #1e78d6;
  --accent: #7dd3fc;

  --success: #10B981;
  --danger: #EF4444;

  --card: #ffffff;
  --border: #bcd7ff;
  --shadow: 0 6px 20px rgba(30,120,214,0.15);

  --radius: 14px;
  --container: 1200px;
}

/* Reset i bazowe */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Pomocnicze */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Przyciski */
.btn {
  display: inline-block; padding: 12px 18px; border-radius: 999px;
  text-decoration: none; color: #fff; background: var(--primary);
  box-shadow: var(--shadow);
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--primary-600); }
.btn-secondary { background: #f8fbff; color: var(--text); border: 1px solid var(--border); }
.btn-small { padding: 8px 12px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: saturate(160%) blur(8px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }

/* Desktop menu */
.nav-list { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.nav-list a:hover { background: #e6f2ff; }

/* Hero */
.hero {
  position: relative; min-height: 88vh;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #f0f8ff 0%, #e6f2ff 100%);
}
.hero-bg { display: none; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 60px 0; }
.hero-text .lead { font-size: 1.125rem; color: var(--muted); max-width: 52ch; }
.badge { background: #f8fbff; border: 1px solid var(--border); color: var(--muted); }

/* Mockup urządzenia + slider */
.hero-visual { max-width: 700px; width: 100%; }
.hero-visual .device {
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--card);
  padding: 16px;
  box-shadow: var(--shadow);
}
.device-screen {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #eaf4ff;
}

.slider { width: 100%; height: 100%; position: relative; overflow: hidden; }
.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}
.slide {
  flex: 0 0 100%;
  display: flex; align-items: center; justify-content: center;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  background: #e6f2ff;
  border-radius: 22px;
}
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(58,167,246,0.7);
  border: none; color: #fff;
  font-size: 24px; padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
}
.slider-btn:hover { background: rgba(30,120,214,0.9); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* Sekcje */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-header h2 { margin: 0 0 8px; font-size: 2rem; }
.section-header p { margin: 0; color: var(--muted); }

/* Karty i elementy */
.card, .metric, .price-card, .testimonial, .faq-item, .contact-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover, .metric:hover, .price-card:hover, .testimonial:hover, .faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(30,120,214,0.2);
}

/* Metrics */
.metric-number { font-size: 2rem; font-weight: 700; }
.metric-label { color: var(--muted); }

/* Pricing */
.price-card.featured { outline: 2px solid var(--primary); transform: scale(1.02); }

/* Testimonials */
.testimonial blockquote { font-style: italic; color: var(--text); }

/* FAQ */
.faq-item summary { cursor: pointer; font-weight: 600; }

/* Formularz kontaktowy */
.form-row input, .form-row textarea {
  width: 100%; padding: 12px; border-radius: 12px;
  border: 1px solid var(--border); background: #f8fbff;
  color: var(--text);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--primary); background: #ffffff;
}

/* Stopka */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 14px;
  color: var(--muted);
}
.site-footer a { color: var(--primary-600); margin-right: 16px; }
.site-footer a:hover { text-decoration: underline; }

/* Animacje wejścia */
.animate-in { opacity: 0; transform: translateY(18px); }
.animate-in.visible { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s ease; }

/* Responsywność */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 90%; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid, .price-grid, .testimonials-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 0;
    gap: 8px;
  }

    /* Hamburger toggle poprawiony */
  .nav-toggle {
    all: unset;
    position: fixed;
    top: 12px;
    left: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e293b; /* ciemny jak sidebar */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1101;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff; /* jasne kreski na ciemnym tle */
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
  }

  /* Panel mobilnego menu (domyślnie ukryty) */
  .nav-list {
    position: fixed;
    top: 56px; /* wysokość headera */
    left: 0; right: 0;
    width: 100vw;
    max-width: 100vw;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(30,120,214,0.12);
    display: none;            /* ukryte na start */
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .nav-list a {
    display: block;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
  }

  /* Gdy menu otwarte */
  .nav-list.open {
    display: flex;
  }

  /* Animacja hamburgera w X */
  .nav-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
  }
  .nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
  }

  /* Zapobieganie poziomemu scrollowi */
  .hero,
  .section,
  .container {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .slide img,
  .device-screen,
  .hero-visual {
    max-width: 100%;
  }
}
