/* pomocnik-ksiegowej.pl — wspólne style */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-text: #0f172a;
  --c-text-muted: #475569;
  --c-border: #e2e8f0;

  --c-brand-50:  #eff6ff;
  --c-brand-100: #dbeafe;
  --c-brand-200: #bfdbfe;
  --c-brand-300: #93c5fd;
  --c-brand-400: #60a5fa;
  --c-brand-500: #3b82f6;
  --c-brand-600: #2563eb;
  --c-brand-700: #1d4ed8;
  --c-brand-800: #1e40af;
  --c-brand-900: #1e3a8a;

  --c-accent-500: #0ea5e9;
  --c-accent-600: #0284c7;

  --radius: 14px;
  --font-sans: 'Inter', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--c-brand-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-brand-800); }

/* --- Top Nav --- */
.topnav {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: saturate(180%) blur(10px);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-family: var(--font-display);
}
.topnav-brand:hover { color: #dbeafe; }
.topnav-brand .logo-glyph {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  display: inline-flex; align-items: center; justify-content: center;
  color: #0b1020; font-weight: 900; font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.topnav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.topnav-links a {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.topnav-links a:hover { color: #ffffff; }

/* --- Footer --- */
.page-footer {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 1.5rem 1.5rem;
  font-size: 0.85rem;
}
.page-footer a { color: #cbd5e1; }
.page-footer a:hover { color: #ffffff; }

/* --- Utility --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

@media (max-width: 480px) {
  .topnav { padding: 0.6rem 1rem; }
  .topnav-brand span:not(.logo-glyph) { display: none !important; }
  .topnav-links { gap: 0.65rem; overflow-x: auto; }
  .topnav-links a { font-size: 0.78rem; white-space: nowrap; }
  .topnav-links a:nth-child(n+4) { display: none !important; }
}
