/* sztwiertnia.pl — system stylów
   Marka: "Spokojna przyszłość" — granat zaufania + jadeit + złoto pieczęci. */

:root {
  --ink: #0B1F3A;
  --ink-2: #16294a;
  --ink-3: #1f3557;
  --teal: #18C2A6;
  --teal-d: #0c8a76;
  --teal-bg: #e8f7f3;
  --gold: #C9A24A;
  --gold-d: #8a6d22;
  --bg: #F6F8FA;
  --surface: #ffffff;
  --muted: #5A6473;
  --muted-2: #8a92a0;
  --line: #E4E8EE;
  --text: #14233b;
  --danger: #b3261e;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(11,31,58,.04), 0 8px 24px rgba(11,31,58,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--teal-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.center { text-align: center; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.eyebrow { color: var(--teal-d); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 12px 20px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  transition: transform .08s, background .15s, border-color .15s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--teal); color: #04342C; }
.btn--primary:hover { background: #13ad94; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header */
.topbar { background: #0a1a31; color: #cfe0f0; font-size: 13px; }
.topbar .container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.topbar__facts { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar .sep { color: #45597a; }
.topbar i { color: var(--gold); }
.topbar .topbar__right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.topbar a { color: #fff; }

.nav { background: var(--ink); border-bottom: 1px solid #1f3557; position: sticky; top: 0; z-index: 100; }
.nav .container { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.brand small { display: block; font-size: 11px; font-weight: 500; color: #aebfd4; letter-spacing: .02em; white-space: nowrap; }
.nav__links { display: flex; gap: 6px; margin-left: 14px; }
.nav__links a { color: #cfe0f0; padding: 8px 10px; font-size: 14.5px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav__links a:hover { color: #fff; text-decoration: none; }
.nav__links a.is-active { color: #fff; border-bottom-color: var(--teal); }
.nav__cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav__cta .btn { padding: 9px 16px; font-size: 14px; }
.nav__toggle { display: none; background: none; border: 1px solid #33476a; border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; font-size: 20px; color: #fff; }

/* Hero */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 30px 30px;
}
.hero .container { position: relative; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { color: #aebfd4; max-width: 620px; }
.hero__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; max-width: 720px; }
.tile { background: var(--surface); color: var(--text); border: 1px solid transparent; border-radius: var(--radius); padding: 18px; cursor: pointer; transition: transform .12s, border-color .15s; display: block; }
.tile:hover { transform: translateY(-2px); border-color: var(--teal); text-decoration: none; }
.tile__h { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.tile__h i { font-size: 22px; }
.tile p { margin: 0; font-size: 14px; color: var(--muted); }

/* Cards / grids */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card--pad-sm { padding: 16px; }
.card h3 { margin-top: 0; }
.card__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--teal-bg); color: var(--teal-d); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.card--gold { border-left: 4px solid var(--gold); border-radius: var(--radius); }
.card--seal .card__icon { background: #f7efda; color: var(--gold-d); }

.step-num { color: var(--teal-d); font-weight: 700; font-size: 14px; letter-spacing: .04em; }

/* Badges & chips */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--teal-bg); color: var(--teal-d); }
.badge--gold { background: #f7efda; color: var(--gold-d); }
.energy { display: flex; gap: 5px; flex-wrap: wrap; margin: 12px 0; }
.energy span { font-size: 12px; font-weight: 600; color: #fff; padding: 4px 9px; border-radius: 6px; }

/* Pricing */
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.price-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.price-table td.price { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table tr:hover td { background: var(--bg); }
.tabs { display: inline-flex; background: #eef1f5; border-radius: 999px; padding: 3px; gap: 3px; margin-bottom: 18px; }
.tabs button { border: none; background: transparent; border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

/* Forms */
label { font-size: 14px; font-weight: 500; color: var(--text); display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--text); transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,194,166,.15); }
.field { margin-bottom: 16px; }
.field--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.seg { display: flex; background: #eef1f5; border-radius: 999px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: none; background: transparent; border-radius: 999px; padding: 9px 12px; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); font-weight: 400; margin-bottom: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--teal-d); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.legal-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 12.5px; color: var(--muted); }

/* Calculator result */
.calc-result { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.calc-result .amt { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-result .sub { font-size: 13px; color: #aebfd4; }

/* Wizard */
.wizard__steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.wizard__steps li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.wizard__steps .n { width: 26px; height: 26px; border-radius: 50%; background: #eef1f5; color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.wizard__steps li.is-active .n { background: var(--teal); color: #04342C; }
.wizard__steps li.is-done .n { background: var(--teal-bg); color: var(--teal-d); }
.wizard__steps li.is-active { color: var(--ink); font-weight: 600; }
.wstep { display: none; }
.wstep.is-active { display: block; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* Status timeline (portal) */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.tl-bar > div { height: 100%; background: var(--teal); transition: width .4s; }
.tl-steps { display: flex; justify-content: space-between; gap: 4px; font-size: 11.5px; color: var(--muted); }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink-2); color: #cfe0f0; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* Footer */
.footer { background: var(--ink); color: #aebfd4; font-size: 14px; padding: 44px 0 28px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer a { color: #cfe0f0; }
.footer .grid { gap: 28px; }
.footer__bottom { border-top: 1px solid var(--ink-3); margin-top: 28px; padding-top: 18px; font-size: 12.5px; color: var(--muted-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.note { font-size: 12.5px; color: var(--muted); }
hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__links { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid #1f3557; gap: 2px; box-shadow: var(--shadow); }
  .nav.open .nav__links a { padding: 12px 10px; font-size: 16px; color: #cfe0f0; border-bottom: none; }
  .nav.open .nav__links a.is-active { color: #fff; }
}
@media (max-width: 860px) {
  .section { padding: 40px 0; }
  .section--tight { padding: 28px 0; }
  .hero .container { padding-top: 40px; padding-bottom: 48px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .card { padding: 18px; }
}
@media (max-width: 640px) {
  .topbar__facts { display: none; }
  .topbar .container { justify-content: flex-end; min-height: 34px; }
  .nav__cta .btn { padding: 9px 14px; font-size: 14px; }
  .container { padding: 0 16px; }
}
@media (max-width: 480px) {
  .brand { font-size: 18px; }
  .brand small { display: none; }
  h1 { font-size: 25px; }
  .calc-result { flex-direction: column; align-items: stretch; }
  .calc-result > div[style*="text-align:right"] { text-align: left; }
  .calc-result a.btn { width: 100%; }
  .calc-cta { width: 100%; }
  .wizard__nav { flex-direction: column-reverse; }
  .wizard__nav .btn { width: 100%; }
  .flex .btn { width: 100%; }
}
