/* Wspólny arkusz podstron avenit.pl (homepage trzyma CSS inline dla LCP).
   Tokeny spójne z index.html. */
:root {
  --bg: #0b1120; --bg2: #0f172a; --surface: #141d31; --surface2: #1e293b;
  --border: #24324a; --border2: #334155; --text: #e2e8f0; --muted: #94a3b8;
  --dim: #64748b; --amber: #f59e0b; --amber2: #d97706;
  --grad: linear-gradient(135deg, #fbbf24, #f59e0b 45%, #d97706);
  --radius: 18px; --nav-h: 68px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(245, 158, 11, .35); }
img, svg { max-width: 100%; }
.container { width: min(880px, 100% - 48px); margin: 0 auto; }
@media (max-width: 640px) { .container { width: calc(100% - 36px); } }

/* nawigacja */
nav.topnav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(11, 17, 32, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topnav .inner {
  width: min(1160px, 100% - 48px); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
}
.logo {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em; text-decoration: none;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.topnav .links { margin-left: auto; display: flex; gap: 4px; }
.topnav .links a {
  text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 10px;
}
.topnav .links a:hover { color: var(--text); background: rgba(148, 163, 184, .08); }
@media (max-width: 720px) { .topnav .links { display: none; } }
.nav-cta {
  margin-left: 8px; text-decoration: none; font-size: 14.5px; font-weight: 700;
  padding: 9px 20px; border-radius: 11px; color: #fff; background: var(--amber2);
}
.nav-cta:hover { box-shadow: 0 6px 24px rgba(217, 119, 6, .45); }

/* treść artykułu */
main { padding: 48px 0 72px; }
.breadcrumb { font-size: 13.5px; color: var(--dim); margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
h1 {
  font-size: clamp(30px, 5vw, 44px); line-height: 1.15; letter-spacing: -.02em;
  margin-bottom: 18px; font-weight: 800;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 18.5px; color: var(--muted); margin-bottom: 36px; }
article h2 { font-size: 25px; letter-spacing: -.01em; margin: 42px 0 12px; }
article h3 { font-size: 18px; margin: 26px 0 8px; }
article p { color: var(--muted); margin-bottom: 14px; font-size: 16px; }
article ul { margin: 0 0 16px 22px; color: var(--muted); }
article li { margin-bottom: 8px; }
article li strong, article p strong { color: var(--text); font-weight: 600; }
article a { color: var(--amber); }
code { background: var(--surface2); border-radius: 6px; padding: 1px 7px; font-size: .92em; }

/* tabela porównawcza */
.cmp { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 15px; }
.cmp th, .cmp td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.cmp th { background: var(--surface); font-weight: 700; }
.cmp td { color: var(--muted); }
.cmp .yes { color: #4ade80; font-weight: 600; }
.cmp .no { color: var(--dim); }
.cmp-scroll { overflow-x: auto; }

/* boks CTA */
.cta-box {
  margin: 48px 0 8px; padding: 34px; text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--bg2));
  border: 1px solid var(--border2); border-radius: var(--radius);
}
.cta-box h2 { margin: 0 0 8px; font-size: 26px; }
.cta-box p { color: var(--muted); margin-bottom: 20px; }
.btn-primary {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 13px 30px; border-radius: 13px; color: #fff; background: var(--amber2);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(217, 119, 6, .5); }

/* powiązane podstrony */
.related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.related h2 { font-size: 17px; margin-bottom: 12px; color: var(--muted); }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a {
  text-decoration: none; color: var(--text); font-size: 14px;
  padding: 9px 16px; border: 1px solid var(--border2); border-radius: 999px;
  background: var(--surface);
}
.related-links a:hover { border-color: var(--amber); color: var(--amber); }

/* stopka */
footer.site {
  border-top: 1px solid var(--border); padding: 30px 0 40px;
  font-size: 13.5px; color: var(--dim);
}
footer.site .inner {
  width: min(1160px, 100% - 48px); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
footer.site a { color: var(--muted); text-decoration: none; margin-left: 16px; }
footer.site a:hover { color: var(--text); }
