/* ---------- Tokens ---------- */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #061B31;
  --ink-2: #0B2744;
  --body: #64748D;
  --muted: #94A3B8;
  --line: #E5EDF5;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-weak: #E0F2FE;
  --accent-weak-2: #EFF6FF;
  --success: #15BE53;
  --success-text: #108C3D;
  --success-weak: #DCFCE7;
  --shadow-tile:
    rgba(50,50,93,0.08) 0px 30px 45px -30px,
    rgba(0,0,0,0.05) 0px 18px 36px -18px;
  --shadow-tile-hover:
    rgba(50,50,93,0.25) 0px 30px 45px -30px,
    rgba(0,0,0,0.10) 0px 18px 36px -18px;
  --shadow-btn: 0 0 0 1px rgba(37,99,235,0.1), 0 2px 4px rgba(37,99,235,0.18), 0 8px 20px -4px rgba(37,99,235,0.35);
  --globe-dot: #BFE4FB;
  --globe-dot-strong: #2563EB;
}
/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  transition: background .3s ease, color .3s ease;
}
.mono { font-family: 'Geist Mono', ui-monospace, 'SF Mono', monospace; font-feature-settings: "tnum"; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 300; margin: 0; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0; color: var(--body); }

a { color: inherit; text-decoration: none; }

#kalkulator,
#proces,
#prawa,
#zespol,
#faq,
#wiedza {
  scroll-margin-top: 104px;
}

/* ---------- Layout shell ---------- */
.shell { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 18px; letter-spacing: -0.02em; color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--ink);
  display: grid; place-items: center;
  color: var(--surface);
  font-family: 'Geist Mono', monospace;
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.02em;
}
.brand-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-left: 2px;
}
.nav-links { display: flex; gap: 20px; font-size: 14px; color: var(--body); flex-shrink: 1; min-width: 0; }
.nav-links a { transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* --- Burger --- */
.burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; padding: 0;
  transition: border-color .15s;
}
.burger:hover { border-color: color-mix(in srgb, var(--line) 50%, var(--muted)); }
.burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Mobile dropdown --- */
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  display: flex; flex-direction: column;
}
.mobile-menu.open {
  max-height: 400px;
  padding: 16px 24px 24px;
}
.mobile-menu > a {
  display: block;
  padding: 13px 0;
  font-size: 15px; color: var(--body);
  border-bottom: 1px solid var(--line);
  transition: color .15s;
}
.mobile-menu > a:hover { color: var(--ink); }
.mobile-menu > a:last-of-type { border-bottom: none; }
.mobile-menu-cta {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.mobile-menu-cta .btn { justify-content: center; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .nav { position: sticky; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 6px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: all .18s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); white-space: nowrap; }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 8px; }

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-tile-hover);
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.consent-banner.show { display: flex; }
.consent-banner p { font-size: 13px; line-height: 1.4; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) {
  .consent-banner { flex-direction: column; align-items: stretch; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}
