/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s, color .2s; }
button { font: inherit; border: none; background: none; cursor: pointer; }

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --iblue: #3DA9E0;
  --iblue-700: #2E86B0;
  --iblue-50: #EBF6FC;
  --iblue-100: #D1EBF7;
  --black: #0a0a0a;
  --text: #14181F;
  --text-muted: #5C6675;
  --text-light: #8B95A4;
  --bg: #ffffff;
  --bg-alt: #FAFBFC;
  --bg-section: #F4F6F9;
  --bg-dark: #0D1117;
  --border: #E5E8EC;
  --border-strong: #D1D5DB;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.08);
  --shadow-blue: 0 12px 32px rgba(61, 169, 224, .25);
  --max-w: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-pad: clamp(60px, 9vw, 120px);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display, h1.display {
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--black);
}
h2 {
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--black);
}
h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--black);
}
h4 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--black);
}
p { font-size: 17px; line-height: 1.65; color: var(--text); }
p.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--text-muted); }
.mono { font-family: 'Geist Mono', monospace; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iblue-700);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--iblue-700);
}
.accent { color: var(--iblue); }
.text-muted { color: var(--text-muted); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); }
.section-section { background: var(--bg-section); }
.section-dark { background: var(--bg-dark); color: white; }
.section-dark h2, .section-dark h3, .section-dark p { color: white; }

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity .2s;
}
.logo:hover { opacity: .8; }
.logo__img {
  height: 32px;
  width: auto;
  display: block;
}
.footer .logo__img { height: 36px; }
@media (max-width: 540px) {
  .logo__img { height: 26px; }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255,255,255,.95);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.nav__link:hover { color: var(--iblue); }
.nav__link--accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--iblue-700);
  font-weight: 600;
}
.nav__link--accent::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--iblue);
  box-shadow: 0 0 0 0 rgba(61, 169, 224, .5);
  animation: pulse 2.4s infinite cubic-bezier(.66, 0, 0, 1);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 169, 224, .6); }
  100% { box-shadow: 0 0 0 8px rgba(61, 169, 224, 0); }
}
.nav__link--accent:hover { color: var(--iblue); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--black);
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: var(--iblue); transform: translateY(-1px); }
.nav__cta::after {
  content: "→";
  transition: transform .2s;
}
.nav__cta:hover::after { transform: translateX(3px); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--black);
  transition: transform .3s, opacity .2s;
}
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.open .nav__menu {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: white;
    padding: 32px var(--pad-x);
    gap: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav.open .nav__cta { display: inline-flex; margin-top: 8px; align-self: flex-start; }
}

/* ============================================================
   PRZYCISKI
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  transition: all .25s cubic-bezier(.34, 1.56, .64, 1);
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--black);
  color: white;
}
.btn--primary:hover {
  background: var(--iblue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.btn--secondary {
  background: white;
  color: var(--black);
  border: 1.5px solid var(--border-strong);
}
.btn--secondary:hover {
  border-color: var(--black);
  background: var(--black);
  color: white;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--iblue-700);
  padding: 12px 0;
}
.btn--ghost:hover { color: var(--iblue); }
.btn__arrow {
  display: inline-block;
  transition: transform .25s;
  font-weight: 400;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.precta {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--black);
  color: white;
  overflow: hidden;
}
.precta::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61,169,224,.4) 0%, transparent 60%);
  border-radius: 50%;
}
.precta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .precta__inner { grid-template-columns: 1fr; gap: 32px; } }
.precta h2 { color: white; font-size: clamp(36px, 5vw, 64px); }
.precta p { color: rgba(255,255,255,.7); font-size: 19px; line-height: 1.6; margin-top: 20px; max-width: 600px; }
.precta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 32px;
  background: var(--iblue);
  color: white;
  font-size: 17px;
  font-weight: 600;
  border-radius: 999px;
  transition: all .25s;
  margin-top: 36px;
}
.precta__btn:hover { background: white; color: var(--black); transform: translateY(-2px); }
.precta__contact {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(20px);
}
.precta__contact h3 { color: white; font-size: 18px; margin-bottom: 24px; }
.precta__contact-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.precta__contact-row:last-child { border-bottom: none; }
.precta__contact-row span {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.precta__contact-row a {
  font-size: 15px;
  color: white;
  font-weight: 500;
}
.precta__contact-row a:hover { color: var(--iblue); }

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 80px 0 32px;
}
.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}
@media (max-width: 900px) { .footer__main { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px) { .footer__main { grid-template-columns: 1fr; } }
.footer__brand {
  max-width: 360px;
}
.footer .logo .logo__letter { background: var(--iblue); }
.footer__tagline {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
}
.footer__col-title {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: white;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.footer__links a:hover { color: var(--iblue); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  font-family: 'Geist Mono', monospace;
  letter-spacing: .04em;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transition: background .2s, border-color .2s;
}
.footer__social a:hover { background: var(--iblue); border-color: var(--iblue); }
.footer__legal {
  margin-top: 32px;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
  max-width: 800px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s, transform .8s;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s, transform .6s;
}
.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .4s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .48s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .56s; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: .64s; }
.reveal-stagger.in > *:nth-child(10) { transition-delay: .72s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
  margin: 0;
}
/* ============================================================
   PODSTRONY — hero, treść, artykuły, formularz
   ============================================================ */
.page-hero {
  padding: calc(72px + clamp(48px, 7vw, 96px)) 0 clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--iblue-50) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 {
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--black);
  max-width: 860px;
}
.page-hero .lead {
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
}
.page-hero__ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.breadcrumbs {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 22px;
  font-family: 'Geist Mono', monospace;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--iblue); }

.section { padding: var(--section-pad) 0; }
.section h2 { margin-bottom: 20px; }
.section .lead { font-size: 19px; color: var(--text-muted); line-height: 1.6; max-width: 720px; }

/* Karty / siatki */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 900px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-muted); line-height: 1.55; }
.card .mono-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--iblue);
  display: block;
  margin-bottom: 12px;
}

/* Lista zaleceń / błędów */
.risk-list { margin-top: 40px; display: grid; gap: 14px; }
.risk-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: white; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 24px;
}
.risk-item__num {
  font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 14px;
  color: var(--iblue); min-width: 28px; padding-top: 2px;
}
.risk-item strong { display: block; margin-bottom: 4px; font-size: 16px; }
.risk-item p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

/* Tabela porównawcza */
.cmp-table { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cmp-table th { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.cmp-table td:first-child { font-weight: 600; color: var(--black); }
.cmp-table td { color: var(--text-muted); }
@media (max-width: 700px) { .cmp-table { font-size: 13.5px; } .cmp-table th, .cmp-table td { padding: 10px 8px; } }

/* FAQ na podstronach */
.faq-list { margin-top: 44px; display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-item h3 { font-size: 18px; margin-bottom: 10px; }
.faq-item p { font-size: 15.5px; color: var(--text-muted); line-height: 1.6; max-width: 800px; }

/* Artykuły — indeks */
.article-card {
  display: block; text-decoration: none; color: inherit;
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 30px; transition: all .25s ease; box-shadow: var(--shadow-sm);
}
.article-card:hover { border-color: var(--iblue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card .meta {
  font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--text-light);
  display: flex; gap: 14px; margin-bottom: 14px;
}
.article-card h3 { font-size: 21px; line-height: 1.25; margin-bottom: 12px; color: var(--black); }
.article-card p { font-size: 15px; color: var(--text-muted); line-height: 1.55; }
.article-card .more { display: inline-block; margin-top: 16px; color: var(--iblue); font-weight: 600; font-size: 14.5px; }

/* Artykuł — treść */
.article { max-width: 760px; margin: 0 auto; }
.article-meta {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--text-light);
  margin: 26px 0 0;
}
.article-body { padding: clamp(40px, 6vw, 72px) 0 var(--section-pad); }
.article-body h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 48px 0 18px; }
.article-body h3 { font-size: 21px; margin: 34px 0 12px; }
.article-body p { font-size: 17px; line-height: 1.7; color: var(--text); margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { font-size: 17px; line-height: 1.65; color: var(--text); margin-bottom: 8px; }
.article-body strong { color: var(--black); }
.article-body .callout {
  background: var(--iblue-50); border-left: 3px solid var(--iblue);
  border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 28px 0;
}
.article-body .callout p { margin: 0; font-size: 16px; }
.article-cta {
  background: var(--bg-dark); border-radius: 20px; padding: 40px;
  margin-top: 56px; color: white;
}
.article-cta h3 { color: white; font-size: 24px; margin-bottom: 12px; }
.article-cta p { color: rgba(255,255,255,.7); font-size: 16px; margin-bottom: 24px; }

/* Formularz kontaktowy */
.cform { display: grid; gap: 14px; margin-top: 32px; max-width: 560px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .cform__row { grid-template-columns: 1fr; } }
.cform label { display: block; }
.cform label span {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px;
  color: rgba(255,255,255,.85);
}
.cform input, .cform textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: white; font-family: 'Geist', sans-serif; font-size: 15px;
  transition: border-color .2s, background .2s;
}
.cform input::placeholder, .cform textarea::placeholder { color: rgba(255,255,255,.35); }
.cform input:focus, .cform textarea:focus {
  outline: none; border-color: var(--iblue); background: rgba(255,255,255,.1);
}
.cform textarea { min-height: 120px; resize: vertical; }
.cform__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--iblue); color: white; font-family: 'Geist', sans-serif;
  font-weight: 700; font-size: 16px; transition: all .25s ease;
}
.cform__submit:hover { background: white; color: var(--black); transform: translateY(-2px); }
.cform__submit:disabled { opacity: .6; cursor: wait; transform: none; }
.cform__status { font-size: 14.5px; line-height: 1.5; display: none; padding: 14px 18px; border-radius: 10px; }
.cform__status.ok { display: block; background: rgba(61,169,224,.15); border: 1px solid rgba(61,169,224,.4); color: #BFE5F7; }
.cform__status.err { display: block; background: rgba(224,90,61,.12); border: 1px solid rgba(224,90,61,.4); color: #F7CFC5; }
.cform__privacy { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.5; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
