:root {
  --bg: #0b0d12;
  --bg-2: #11141c;
  --ink: #f2f4f8;
  --muted: #9aa3b5;
  --accent: #7aa2ff;
  --accent-2: #b89cff;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(255, 255, 255, .04);
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Tło z poświatą */
.aurora {
  position: fixed; inset: -20% -10% auto; height: 120vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 15%, rgba(122, 162, 255, .22), transparent 70%),
    radial-gradient(35% 30% at 85% 25%, rgba(184, 156, 255, .18), transparent 70%),
    radial-gradient(50% 40% at 50% 90%, rgba(122, 162, 255, .08), transparent 70%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

/* Nagłówek */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 13, 18, .55);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1160px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 28px;
}
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; margin-right: auto; letter-spacing: -.02em; }
.nav-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 600;
  color: #0b0d12; background: linear-gradient(135deg, #fff, #dfe6ff);
  box-shadow: 0 8px 30px rgba(122, 162, 255, .25);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(122, 162, 255, .35); }
.btn-ghost { color: var(--ink); background: var(--glass); border: 1px solid var(--line); box-shadow: none; }
.btn-small { padding: 9px 18px; font-size: .95rem; }
.btn-wide { width: 100%; margin-top: 8px; }

/* Hero */
.hero { padding: 150px 22px 110px; }
.hero-inner { max-width: 1000px; margin: 0 auto; text-align: left; }
.chip {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass); color: var(--muted); font-size: .9rem;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 660px; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 50px; }
.stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.stats li {
  border: 1px solid var(--line); background: var(--glass); border-radius: var(--radius);
  padding: 20px 22px;
}
.stats strong { display: block; font-size: 2rem; letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: .92rem; }

/* Krótkie punkty pod przyciskami w hero (bez liczb) */
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); }
.hero-points li { position: relative; padding-left: 24px; }
.hero-points li::before {
  content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Sekcje */
.section { padding: 110px 22px; }
.wrap { max-width: 1160px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.eyebrow { color: var(--accent); font-size: .95rem; font-weight: 600; margin-bottom: 12px; }
/* Nagłówek jest przyklejony: sekcja po kliknięciu w menu nie chowa się pod nim */
section[id] { scroll-margin-top: 72px; }
.section h2 { margin-bottom: 44px; }

/* Karty */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-radius: var(--radius); padding: 30px;
  transition: transform .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(122, 162, 255, .4); }
.card p { color: var(--muted); margin: 0; }

/* Cennik */
/* Karty cennika: na telefonie jedna pod drugą, od 760px obok siebie.
   Od 760px obie karty dzielą te same wiersze (subgrid): plan, cena, dopisek,
   lista, warunek, przycisk. Dzięki temu listy i przyciski są na tej samej wysokości. */
.pricing { display: grid; grid-template-columns: 1fr; gap: 22px; }
.price-card {
  position: relative; border: 1px solid var(--line); border-radius: 26px; padding: 36px;
  background: var(--bg-2); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
@media (min-width: 761px) {
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @supports (grid-template-rows: subgrid) {
    .pricing { grid-template-rows: repeat(6, auto); row-gap: 0; }
    .price-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
    .price-card .condition { margin-top: 0; }
  }
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
              linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  box-shadow: 0 30px 80px rgba(122, 162, 255, .18);
}
/* Badge wyśrodkowany na linii górnej krawędzi karty */
.badge {
  position: absolute; top: 0; right: 28px; transform: translateY(-50%);
  padding: 6px 14px; border-radius: 999px; line-height: 1.2; white-space: nowrap;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #0b0d12;
  font-size: .8rem; font-weight: 700;
}
.plan { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.price { margin-bottom: 4px; line-height: 1.2; }
.amount { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; }
.unit { color: var(--muted); }
.monthly { color: var(--muted); margin-bottom: 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 22px; }
.ticks li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--line); color: #dbe1ee; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.condition { color: var(--muted); font-size: .9rem; margin-top: auto; margin-bottom: 18px; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }

/* Dlaczego my */
.why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why li { border-top: 1px solid var(--line); padding-top: 22px; }
.why h3 { margin-bottom: 8px; }
.why p { color: var(--muted); margin: 0; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 26px; }

/* Proces */
.timeline { list-style: none; padding: 0 0 0 28px; margin: 0; border-left: 1px solid var(--line); max-width: 720px; }
.timeline li { position: relative; padding: 0 0 40px 28px; }
.timeline .dot {
  position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 6px rgba(122,162,255,.12);
}
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); margin: 0; }

/* FAQ */
.narrow details {
  border: 1px solid var(--line); background: var(--glass); border-radius: 16px;
  padding: 18px 22px; margin-bottom: 12px;
}
.narrow summary { cursor: pointer; font-weight: 600; list-style: none; }
.narrow summary::-webkit-details-marker { display: none; }
.narrow details p { color: var(--muted); margin: 12px 0 0; }

/* Kontakt */
.contact { padding-bottom: 130px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Stopka */
.site-footer {
  padding: 40px 22px; border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: .9rem;
}
.site-footer p { margin: 4px 0; }

/* Płynne pojawianie się */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding-top: 120px; }
  .section { padding: 80px 18px; }
  .price-card { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora { animation: none; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .price-card, .btn { transition: none; }
}

/* Suma za 24 miesiące schowana pod rozwijanym szczegółem */
.condition > p { margin: 0; }
.sum { margin-top: 10px; }
.sum summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; list-style: none; }
.sum summary::-webkit-details-marker { display: none; }
.sum p { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }

/* Formularz kontaktowy */
.contact-form { max-width: 560px; margin: 28px auto 0; display: grid; gap: 14px; text-align: left; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .9rem; }
.contact-form input, .contact-form textarea {
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; color: var(--ink); font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.contact-form .consent input { margin-top: 4px; }
.contact-form .fine { margin: 0; font-size: .85rem; }
@media (max-width: 600px) { .contact-form .form-row { grid-template-columns: 1fr; } }
