
/* ========== Base & Resets ========== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: #0f172a; /* slate-900 */
  background: #ffffff;
  overflow-x: hidden; /* zapobiega przesuwaniu na boki */
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0ea5e9; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: 72px 0; }

/* Utility */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .9rem 1.1rem; border-radius: .75rem;
  background: linear-gradient(180deg,#0ea5e9,#0284c7);
  color: #fff; font-weight: 700; border: 0; cursor: pointer;
  box-shadow: 0 8px 20px rgba(2,132,199,.25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(2,132,199,.3); }
.btn:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.btn-secondary {
  background: #0f172a; color: #fff;
}
.badge { display:inline-block; padding: .3rem .6rem; border-radius: 999px; font-size: .8rem; background:#e0f2fe; color:#0c4a6e; }

/* Header / Nav (sticky) */
.skip-link { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { position:static; width:auto; height:auto; padding:.5rem; background:#0ea5e9; color:#fff; }

header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.nav { display:flex; align-items:center; justify-content:space-between; padding: .8rem 0; }
.brand { display:flex; align-items:center; gap:.6rem; font-weight:800; color:#0f172a; }
.brand img { width: 28px; height: 28px; }
.nav-links { display:flex; gap:1rem; align-items:center; }
.nav-links a { color:#0f172a; font-weight:600; padding:.5rem .75rem; border-radius:.5rem; }
.nav-links a:hover { background:#f1f5f9; text-decoration:none; }
.menu-btn { display:none; background:none; border:0; padding:.4rem; }

@media (max-width: 900px){
  .menu-btn{ display:block; }
  .nav-links{ display:none; position:absolute; right:4%; top:64px; background:#fff; padding: .75rem; border-radius:.75rem; box-shadow:0 12px 40px rgba(2,6,23,.15); width:min(320px,92vw); flex-direction:column; align-items:stretch; }
  .nav-links.open{ display:flex; }
}

/* Hero */
.hero { padding: 72px 0 32px; }
.hero-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items:center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height:1.1; margin: 0 0 .8rem; letter-spacing:-.02em; }
.hero p { color:#334155; font-size:clamp(1rem,1.4vw,1.2rem); }
.hero .usp { display:flex; gap:.5rem; flex-wrap:wrap; margin: 1rem 0; }
.hero .usp span { background:#f1f5f9; padding:.4rem .6rem; border-radius:.5rem; color:#0f172a; font-size:.9rem; }

/* Forms */
.form { display:grid; gap:.75rem; width:100%; }
.form input, .form textarea, .form select {
  width:100%; padding:.85rem 1rem; border:1px solid #e2e8f0; border-radius:.65rem; font:inherit;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline:2px solid #38bdf8; border-color:#38bdf8;
}
.form .row { display:grid; grid-template-columns: 1fr 1fr; gap:.75rem; }
.form small { color:#475569; }
.success { background:#ecfeff; color:#0c4a6e; border:1px solid #67e8f9; padding:1rem; border-radius:.6rem; }

/* Testimonials */
.testimonials { background:#f8fafc; }
.cards { display:grid; grid-template-columns: repeat(3,1fr); gap:1rem; }
.card {
  background:#fff; border:1px solid #e2e8f0; border-radius:1rem; padding:1rem; box-shadow:0 6px 20px rgba(2,6,23,.06);
}
.stars { color:#f59e0b; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .form .row{ grid-template-columns: 1fr; }
}

/* Scrollytelling */
.scrolly-section { position:relative; padding:0; }
.scrolly { display:grid; grid-template-columns: 1fr; }
.sticky-panel {
  position: sticky; top: 64px; /* zostawia header */
  height: calc(100vh - 64px);
  background: #020617; color:#e2e8f0;
  border-radius: 1rem; margin: 16px 0;
  display:grid; place-items:center; text-align:center; padding:2rem;
  overflow:hidden;
}
.sticky-panel h3{ font-size:clamp(1.6rem,3vw,2.4rem); margin:.2rem 0 .4rem; color:#e2e8f0; }
.sticky-panel p{ color:#cbd5e1; max-width:52ch; margin: 0 auto; }
.scenes { margin: 0; padding: 0; list-style:none; }
.scenes li { height: 90vh; display:flex; align-items:center; }
.scene-step { opacity:.25; transition: opacity .4s ease; padding: 8rem 0; }
.scene-step.active{ opacity: 1; }
.scene-title{ font-size: clamp(2rem,3vw,2.6rem); font-weight:800; letter-spacing:-.02em; }

/* Footer */
footer { background:#0f172a; color:#cbd5e1; }
footer a { color:#bae6fd; }
.footer-grid{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:1.5rem; padding: 2rem 0; }
footer .brand{ color:#fff; }
.copy { border-top: 1px solid rgba(203,213,225,.15); padding: 1rem 0; color:#94a3b8; }

/* Cookie modal + blur */
.blur-locked { filter: blur(6px); pointer-events: none; user-select: none; }
.cookie-backdrop {
  position: fixed; inset: 0; background: rgba(2,6,23,.55);
  display: none; z-index: 2000;
}
.cookie-modal {
  position: fixed; inset: 0; display:none; place-items:center; z-index: 2100;
}
.cookie-modal .box {
  width: min(720px, 92vw); background:#ffffff; border-radius:1rem; padding:1.25rem;
  box-shadow: 0 30px 80px rgba(2,6,23,.45); border:1px solid #e2e8f0;
}
.cookie-actions{ display:flex; gap:.6rem; flex-wrap:wrap; justify-content:flex-end; }
.cookie-actions .btn{ padding:.7rem 1rem; }
.cookie-actions .btn-ghost{ background:#f1f5f9; color:#0f172a; box-shadow:none; }

/* FAQ */
details { border:1px solid #e2e8f0; border-radius:.75rem; padding: .8rem 1rem; background:#fff; }
details + details { margin-top: .8rem; }
summary { cursor: pointer; font-weight: 700; color:#0f172a; }
summary::-webkit-details-marker { display:none; }
