/* Apex-Enterprise — design system (wspólny dla całej aplikacji) */
:root {
  --bg: #0e1116;
  --bg-soft: #151a22;
  --card: #171d26;
  --line: #252c38;
  --txt: #e9ecf2;
  --muted: #98a2b3;
  --acc: #4f8cff;
  --acc-soft: #1d2c48;
  --ok: #3ddc97;
  --warn: #ffb020;
  --radius: 12px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Nagłówek / nawigacja */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14,17,22,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 700; letter-spacing: .2px; color: var(--txt); }
.brand span { color: var(--acc); }
.nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--txt); text-decoration: none; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--txt); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
@media (max-width: 820px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 62px; left: 0; right: 0; background: var(--bg-soft); flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
}

/* Przyciski */
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover { background: #3f7bf0; text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--txt); background: transparent; }
.btn-ghost:hover { border-color: var(--acc); text-decoration: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Sekcje */
section { padding: 58px 0; border-bottom: 1px solid var(--line); }
section h2 { font-size: 24px; margin: 0 0 6px; }
section .lead { color: var(--muted); margin: 0 0 26px; max-width: 760px; }
.hero { padding: 74px 0 62px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 320px at 15% -10%, #16203a 0%, transparent 70%); }
.hero h1 { font-size: 40px; line-height: 1.16; margin: 0 0 14px; max-width: 820px; }
.hero p.sub { font-size: 17px; color: #c3cbda; max-width: 700px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); border: 1px solid var(--acc-soft); background: #121b2c; padding: 4px 10px; border-radius: 20px; margin-bottom: 16px; }
@media (max-width: 700px) { .hero h1 { font-size: 29px; } }

/* Karty / siatki */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: #c3cbda; font-size: 14px; }
.card ul li { margin-bottom: 6px; }
.card.hl { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc-soft); }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--acc-soft); color: #cfe0ff; }
.price { font-size: 26px; font-weight: 700; margin: 6px 0 2px; }
.price small { font-size: 13px; font-weight: 400; color: var(--muted); }

/* Kroki */
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.step:before { counter-increment: s; content: counter(s); position: absolute; top: -12px; left: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* Tabele */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* Formularze */
input, select, textarea { width: 100%; padding: 10px 12px; background: #0c0f14; border: 1px solid var(--line); border-radius: 9px; color: var(--txt); font-size: 14px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--acc); }
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: #c3cbda; margin: 10px 0 0; font-size: 14px; }

/* Placeholdery i notki */
.todo { color: var(--warn); background: #2a2213; border: 1px dashed #4a3a17; border-radius: 6px; padding: 1px 6px; font-size: 12px; white-space: nowrap; }
.note { color: var(--muted); font-size: 13px; border-left: 3px solid var(--line); padding-left: 12px; margin-top: 18px; }
.cta-band { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Stopka */
footer { padding: 40px 0; color: var(--muted); font-size: 13px; }
footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
@media (max-width: 820px) { footer .cols { grid-template-columns: 1fr; } }
footer b { color: var(--txt); display: block; margin-bottom: 6px; }

/* Panel (local) */
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .kpi { grid-template-columns: repeat(2, 1fr); } }
.kpi .card { padding: 16px; }
.kpi .v { font-size: 24px; font-weight: 700; }
.kpi .l { color: var(--muted); font-size: 12px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; border: 1px solid var(--line); background: #1b2330; }

/* Druk */
@media print {
  .top, .btn-row, .no-print, .burger { display: none !important; }
  body { background: #fff; color: #000; }
  section { border: 0; padding: 12px 0; }
  .card, details { border-color: #ccc; background: #fff; color: #000; }
  .todo { color: #a05a00; background: #fff6e6; border-color: #e0b070; }
}
