/* ===========================================
   NOWOCZESNY DESIGN - KALKULATORY 2025
   =========================================== */

:root {
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --accent: #06b6d4;
  --accent-2: #14b8a6;
  --pink: #ec4899;
  --orange: #f59e0b;

  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;

  --bg: #fafafa;
  --bg-soft: #f5f5f7;
  --surface: #ffffff;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 4px 12px rgba(15,23,42,0.06);
  --shadow: 0 10px 30px rgba(15,23,42,0.08);
  --shadow-lg: 0 30px 60px rgba(15,23,42,0.12);
  --shadow-glow: 0 20px 50px rgba(99,102,241,0.25);

  --grad-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --grad-3: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --grad-mesh: radial-gradient(at 20% 30%, rgba(99,102,241,0.35) 0, transparent 50%),
               radial-gradient(at 80% 20%, rgba(236,72,153,0.25) 0, transparent 50%),
               radial-gradient(at 70% 80%, rgba(6,182,212,0.3) 0, transparent 50%);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtelny wzór tła */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(99,102,241,0.04) 0, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(6,182,212,0.04) 0, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Selekcja */
::selection { background: var(--primary); color: white; }

h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-2); }

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  transition: all 0.3s var(--ease);
  border: none;
}
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }

.btn-primary, .bg-primary {
  background: var(--grad-1) !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99,102,241,0.45);
  color: white !important;
}
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.btn-outline-secondary {
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  background: white;
}
.btn-outline-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: white;
}
.text-primary { color: var(--primary) !important; }

/* ===========================================
   TOPBAR
   =========================================== */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  position: relative;
  overflow: hidden;
}
.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.35;
  pointer-events: none;
}
.topbar > * { position: relative; }
.topbar i { color: #fbbf24; }
.topbar strong { color: white; }

/* ===========================================
   HEADER - nowoczesny sticky
   =========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,0.75);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  transition: all 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
  border-bottom-color: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s;
}
.brand:hover { color: var(--ink); transform: translateY(-1px); }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-1);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(99,102,241,0.3);
  position: relative;
}
.brand-logo::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: var(--grad-1);
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s;
  z-index: -1;
}
.brand:hover .brand-logo::after { opacity: 0.7; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-tagline {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-soft);
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.nav-link-m {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link-m:hover {
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow-xs);
}

/* MEGA MENU */
.mega-wrap { position: relative; }
.mega-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 680px;
  max-width: 95vw;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  pointer-events: none;
}
.mega-wrap:hover .mega-menu,
.mega-wrap:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
}
.mega-item:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.mega-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef2ff, #ede9fe);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s;
}
.mega-item:hover .mega-icon {
  background: var(--grad-1);
  color: white;
  transform: scale(1.05);
}
.mega-title { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; }
.mega-desc { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.mega-footer {
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}
.mega-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-soft);
  border-radius: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.mega-cta:hover { background: var(--grad-1); color: white; }
.mega-cta i:last-child { transition: transform 0.2s; }
.mega-cta:hover i:last-child { transform: translateX(4px); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: white;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}
.kbd {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

/* Burger */
.burger {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.burger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}
.mobile-drawer.open { pointer-events: auto; }
.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-drawer.open .mobile-drawer-overlay { opacity: 1; }
.mobile-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: 340px;
  max-width: 90vw;
  height: 100%;
  background: white;
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: -20px 0 50px rgba(0,0,0,0.2);
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s;
}
.mobile-nav a:hover { background: var(--bg-soft); color: var(--primary); }
.mobile-nav a i { color: var(--primary); width: 20px; }
.mobile-nav-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 1.25rem 1rem 0.5rem;
}

/* SEARCH MODAL (command palette) */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}
.search-modal.open { pointer-events: auto; }
.search-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}
.search-modal.open .search-modal-overlay { opacity: 1; }
.search-modal-panel {
  position: absolute;
  top: 12vh;
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.98);
  width: 600px;
  max-width: 92vw;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.35s var(--ease);
  overflow: hidden;
}
.search-modal.open .search-modal-panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.search-modal-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.search-modal-input i { font-size: 1.25rem; color: var(--muted); }
.search-modal-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--ink);
}
.search-modal-input input::placeholder { color: var(--muted); }
.esc-btn {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.05em;
}
.search-modal-hints {
  padding: 0.85rem 1.25rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.hint-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-right: 0.3rem; }
.hint-chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: all 0.15s;
  font-weight: 500;
}
.hint-chip:hover {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

/* ===========================================
   HERO
   =========================================== */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  background: var(--ink);
  color: white;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  z-index: -1;
}
/* Animowane blobi */
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.5), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: blob 20s ease-in-out infinite;
  z-index: -1;
}
.hero .container::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.4), transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: blob 25s ease-in-out infinite reverse;
  z-index: -1;
}
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, -50px) scale(1.1); }
  66% { transform: translate(-60px, 60px) scale(0.9); }
}
/* Siatka w tle */
.hero .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  z-index: -1;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.95);
}
.hero .eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  line-height: 1.05;
}
.hero h1 .gradient-text {
  background: linear-gradient(90deg, #fbbf24, #f472b6, #60a5fa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 4s linear infinite;
}
@keyframes shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero .lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-weight: 400;
}
.hero .search-box {
  max-width: 620px;
  margin: 0 auto;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem;
  border-radius: 999px;
  display: flex;
  gap: 0.4rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero .search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  outline: none;
}
.hero .search-box input::placeholder { color: rgba(255,255,255,0.6); }
.hero .search-box button {
  background: white;
  color: var(--ink);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.hero .search-box button:hover {
  transform: scale(1.05);
  background: #f5f5f7;
}
.hero .stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero .stats .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .stats .stat-lbl {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===========================================
   SEKCJE
   =========================================== */
section { padding: 5rem 0; position: relative; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 3rem;
}
.section-header { margin-bottom: 3rem; }

/* ===========================================
   KARTY KATEGORII
   =========================================== */
.cat-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  height: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  isolation: isolate;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-1);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.cat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
  color: inherit;
}
.cat-card:hover::after { opacity: 1; }
.cat-card .icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--grad-1);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 25px rgba(99,102,241,0.3);
  transition: transform 0.4s var(--ease);
}
.cat-card:hover .icon-lg { transform: scale(1.1) rotate(-5deg); }
.cat-card h5 { font-weight: 700; margin-bottom: 0.5rem; font-size: 1.15rem; }
.cat-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 0; }
.cat-card .arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s;
  opacity: 0;
}
.cat-card:hover .arrow {
  opacity: 1;
  background: var(--primary);
  color: white;
  transform: translateX(4px);
}

/* ===========================================
   DUŻA KARTA KATEGORII (strona /kategoria)
   =========================================== */
.cat-big {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  isolation: isolate;
}
.cat-big::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  border-radius: 50%;
  transition: all 0.5s var(--ease);
  z-index: -1;
}
.cat-big::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.cat-big:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: inherit;
}
.cat-big:hover::before {
  transform: scale(1.3);
  background: radial-gradient(circle, rgba(99,102,241,0.22), transparent 70%);
}
.cat-big:hover::after { transform: scaleX(1); }

.cat-big-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cat-big-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--grad-1);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(99,102,241,0.3);
  transition: transform 0.4s var(--ease);
}
.cat-big:hover .cat-big-icon {
  transform: scale(1.08) rotate(-5deg);
}
.cat-big-title-wrap { flex: 1; min-width: 0; }
.cat-big-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem 0;
  color: var(--ink);
}
.cat-big-count {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99,102,241,0.08);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}
.cat-big-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: all 0.3s;
}
.cat-big:hover .cat-big-arrow {
  background: var(--grad-1);
  color: white;
  transform: translateX(3px);
}

.cat-big-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.cat-big-preview {
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
}
.cat-big-preview-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.cat-big-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.cat-big-chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.2s;
}
.cat-big:hover .cat-big-chip {
  background: white;
  border-color: rgba(99,102,241,0.25);
  color: var(--ink);
}

@media (max-width: 576px) {
  .cat-big { padding: 1.5rem; }
  .cat-big-icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .cat-big-title { font-size: 1.15rem; }
}

/* ===========================================
   KARTY KALKULATORÓW
   =========================================== */
.calc-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.calc-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
  color: inherit;
}
.calc-card:hover::before { transform: scaleX(1); }
.calc-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #ede9fe);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}
.calc-card:hover .icon {
  background: var(--grad-1);
  color: white;
  transform: scale(1.08);
}
.calc-card h5 { font-weight: 700; margin-bottom: 0.5rem; font-size: 1rem; line-height: 1.3; }
.calc-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  flex: 1;
}
.calc-card .badge-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink-2);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  align-self: flex-start;
}

/* ===========================================
   STRONA KALKULATORA - nowoczesny layout
   =========================================== */
.breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }
.breadcrumb-item.active { color: rgba(255,255,255,0.95); }

/* Reading progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-1);
  z-index: 9999;
  transition: width 0.15s ease-out;
}

/* HERO kalkulatora */
.calc-hero {
  position: relative;
  background: var(--ink);
  color: white;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
  isolation: isolate;
}
.calc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.65;
  z-index: -1;
}
.calc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  z-index: -1;
}
.calc-hero .breadcrumb { margin-bottom: 1rem; }

.calc-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  transition: all 0.2s;
}
.calc-category-chip:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  transform: translateY(-1px);
}
.calc-category-chip i { color: #fbbf24; }

.calc-hero-title {
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: white;
  max-width: 900px;
}
.calc-hero-desc {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 720px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.calc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 500;
}
.meta-chip i { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.meta-chip-free {
  background: linear-gradient(135deg, rgba(74,222,128,0.25), rgba(34,197,94,0.2));
  border-color: rgba(74,222,128,0.4);
  color: #4ade80;
}
.meta-chip-free i { color: #4ade80; }

/* Sekcja z kalkulatorem */
.calc-section { padding: 3rem 0 4rem; background: var(--bg); }

/* KONTENER KALKULATORA */
.calc-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.calc-container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(99,102,241,0.04), transparent);
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(74,222,128,0.12), rgba(34,197,94,0.08));
  color: #16a34a;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.2); }
  50% { box-shadow: 0 0 0 7px rgba(34,197,94,0.05); }
}
.calc-actions { display: flex; gap: 0.35rem; }
.calc-action-btn {
  width: 34px; height: 34px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.calc-action-btn:hover {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.calc-action-btn.active {
  background: #dcfce7;
  border-color: #22c55e;
  color: #16a34a;
}

.calc-content {
  padding: 2rem;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 50%);
  min-height: 200px;
}

/* OBSZAR TREŚCI */
.content-area {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  line-height: 1.75;
}
.content-area h2 {
  font-size: 1.65rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 1rem;
}
.content-area h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 4px;
  background: var(--grad-1);
  border-radius: 4px;
}
.content-area h2:first-child { margin-top: 0; }
.content-area h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--ink-2);
  font-weight: 700;
}
.content-area p { color: var(--ink-2); margin-bottom: 1rem; }
.content-area ul, .content-area ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.content-area li { margin-bottom: 0.4rem; color: var(--ink-2); }
.content-area ul li::marker { color: var(--primary); }
.content-area code {
  background: linear-gradient(135deg, #eef2ff, #ede9fe);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--primary-2);
  font-weight: 500;
  border: 1px solid rgba(99,102,241,0.15);
}
.content-area strong { color: var(--ink); font-weight: 700; }
.content-area blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.25rem;
  background: var(--bg-soft);
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
  color: var(--ink-2);
  font-style: italic;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* SIDEBAR */
.calc-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.info-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.info-card-header i { color: var(--primary); font-size: 1rem; }

/* Share buttons */
.share-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}
.share-btn {
  aspect-ratio: 1;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.15rem;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.share-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: brightness(1.15);
  opacity: 0;
  transition: opacity 0.25s;
}
.share-btn:hover { transform: translateY(-3px); color: white; box-shadow: var(--shadow-sm); }
.share-btn:hover::before { opacity: 1; }
.share-fb { background: #1877f2; }
.share-tw { background: #0f1419; }
.share-in { background: #0a66c2; }
.share-wa { background: #25d366; }
.share-mail { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }

/* TOC */
.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: 380px;
  overflow-y: auto;
}
.toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.toc-link:hover { color: var(--ink); background: var(--bg-soft); }
.toc-link.active {
  color: var(--primary);
  background: rgba(99,102,241,0.08);
  border-left-color: var(--primary);
  font-weight: 600;
}
.toc-link.toc-h3 {
  padding-left: 1.5rem;
  font-size: 0.82rem;
}

/* Related list */
.related-list { display: flex; flex-direction: column; gap: 0.25rem; }
.related-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
  border: 1px solid transparent;
}
.related-item:hover {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--line);
}
.related-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef2ff, #ede9fe);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.25s;
}
.related-item:hover .related-icon {
  background: var(--grad-1);
  color: white;
}
.related-text { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.related-text strong {
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.related-text small { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.related-arrow { color: var(--muted); font-size: 0.85rem; transition: transform 0.2s; }
.related-item:hover .related-arrow { transform: translateX(3px); color: var(--primary); }

/* Info card dark */
.info-card-dark {
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  border: none;
  position: relative;
}
.info-card-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.3;
  pointer-events: none;
}
.info-card-dark-inner {
  position: relative;
  padding: 1.5rem;
}

/* Mobile: sidebar nie sticky */
@media (max-width: 991px) {
  .calc-sidebar { position: static; }
  .calc-hero { padding: 2.5rem 0 2rem; }
  .content-area { padding: 1.5rem; }
}
@media (max-width: 576px) {
  .calc-content { padding: 1.25rem; }
  .calc-container-header { padding: 0.75rem 1rem; }
  .calc-hero-title { font-size: 1.75rem; }
  .meta-chip { font-size: 0.72rem; padding: 0.3rem 0.7rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .calc-sidebar, .reading-progress,
  .calc-actions, .back-to-top, .topbar, .calc-hero::before, .calc-hero::after { display: none !important; }
  .calc-hero { background: white; color: var(--ink); padding: 1rem 0; }
  .calc-hero-title, .calc-hero-desc, .breadcrumb, .meta-chip { color: var(--ink) !important; }
}

/* ===========================================
   BENTO
   =========================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.bento-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento-item.bento-primary {
  background: var(--grad-1);
  color: white;
  border: none;
}
.bento-item.bento-primary .muted { color: rgba(255,255,255,0.8); }
.bento-item.bento-dark {
  background: var(--ink);
  color: white;
  border: none;
}

/* "Dlaczego my" - nowoczesna sekcja feature */
.feat {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.feat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #ede9fe);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.feat h5 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.feat p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ===========================================
   CTA BANNER
   =========================================== */
.cta-banner {
  position: relative;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.6;
  z-index: -1;
}
.cta-banner h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 550px; margin: 0 auto 1.75rem; }

/* ===========================================
   ALERTY / FORMS / INPUTS
   =========================================== */
.alert {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 1rem 1.25rem;
}
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  padding: 0.6rem 0.9rem;
  transition: all 0.2s;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
  outline: none;
}
.form-control-lg, .form-select-lg {
  padding: 0.85rem 1rem;
  font-size: 1rem;
}
.form-label { font-weight: 600; color: var(--ink-2); margin-bottom: 0.4rem; font-size: 0.9rem; }

.badge { border-radius: 999px; font-weight: 600; padding: 0.35em 0.8em; }

/* ===========================================
   FOOTER - nowoczesny
   =========================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.1;
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }

/* CTA / Newsletter */
.footer-cta {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(236,72,153,0.15));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.footer-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.4), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.footer-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-cta-eyebrow i { color: #fbbf24; }
.footer-cta h3 {
  color: white;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.footer-cta p { color: rgba(255,255,255,0.7); margin-bottom: 0; font-size: 0.95rem; }
.footer-cta-form small { color: rgba(255,255,255,0.5); font-size: 0.75rem; display: block; margin-top: 0.65rem; }
.footer-cta-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  padding: 0.4rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.footer-cta-input > i {
  color: var(--muted);
  padding-left: 1rem;
  font-size: 1.05rem;
}
.footer-cta-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.footer-cta-input button {
  background: var(--ink);
  color: white;
  border: none;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-size: 0.9rem;
}
.footer-cta-input button:hover { background: var(--primary); transform: scale(1.03); }

/* Main grid */
.footer-main { padding-bottom: 3rem; }
.site-footer h6 {
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-bottom: 1rem;
  color: white;
}
.footer-brand .brand-logo { width: 38px; height: 38px; font-size: 1.2rem; }
.footer-brand .brand-name { color: white; font-size: 1.05rem; }
.footer-about {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}
.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}
.footer-social a:hover {
  background: var(--grad-1);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99,102,241,0.35);
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s;
  display: inline-block;
  position: relative;
}
.footer-list a:hover {
  color: white;
  transform: translateX(4px);
}
.footer-list a::before {
  content: '→';
  position: absolute;
  left: -16px;
  opacity: 0;
  transition: all 0.2s;
  color: var(--primary);
}
.footer-list a:hover::before { opacity: 1; left: -18px; }
.footer-list-two {
  columns: 2;
  column-gap: 1.5rem;
}
.footer-list-two li { break-inside: avoid; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}
.footer-bottom-links { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-bottom-links a:hover { color: white; }
.footer-bottom-links .sep { color: rgba(255,255,255,0.25); }
.footer-made .heart {
  color: #ec4899;
  display: inline-block;
  animation: beat 1.4s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-1);
  color: white;
  border: none;
  box-shadow: 0 12px 28px rgba(99,102,241,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s var(--ease);
  z-index: 999;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(99,102,241,0.55); }

/* Mobile dostosowania footer */
@media (max-width: 768px) {
  .footer-cta {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    text-align: center;
  }
  .footer-cta h3 { font-size: 1.4rem; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .footer-list-two { columns: 1; }
  .back-to-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
}

/* Topbar mobile */
@media (max-width: 576px) {
  .topbar { font-size: 0.72rem; }
  .brand-tagline { display: none; }
  .brand-logo { width: 38px; height: 38px; font-size: 1.15rem; }
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 992px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 5rem 0 4rem; }
  .calc-container { padding: 1.5rem; }
  .calc-content { padding: 1.25rem; }
  .content-area { padding: 1.5rem; }
  .cta-banner { padding: 3rem 1.5rem; }
}
@media (max-width: 576px) {
  .hero { padding: 4rem 0 3rem; }
  .hero .search-box { flex-direction: column; border-radius: var(--radius); padding: 0.5rem; gap: 0.5rem; }
  .hero .search-box input { padding: 0.7rem 1rem; text-align: center; }
  .hero .search-box button { width: 100%; padding: 0.7rem; }
  .hero .stats { gap: 1.5rem; margin-top: 2rem; }
  .hero .stats .stat-num { font-size: 1.6rem; }
}

/* ===========================================
   PANEL ADMINISTRACYJNY
   =========================================== */
.admin-wrap { min-height: 100vh; display: flex; background: var(--bg-soft); }
.admin-sidebar {
  width: 260px;
  background: var(--ink);
  color: #cbd5e1;
  padding: 1.5rem 1rem;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.admin-sidebar .brand {
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0 0.5rem;
  letter-spacing: -0.01em;
}
.admin-sidebar .brand i {
  width: 32px; height: 32px;
  background: var(--grad-1);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.admin-sidebar a.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.admin-sidebar a.nav-item i { width: 18px; }
.admin-sidebar a.nav-item:hover { background: rgba(255,255,255,0.06); color: white; }
.admin-sidebar a.nav-item.active { background: var(--grad-1); color: white; box-shadow: 0 8px 20px rgba(99,102,241,0.35); }
.admin-sidebar hr { border-color: rgba(255,255,255,0.1); margin: 1.25rem 0; }

.admin-main {
  margin-left: 260px;
  flex: 1;
  padding: 2rem;
  width: calc(100% - 260px);
  min-height: 100vh;
}
.admin-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.stat-number { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }

@media (max-width: 900px) {
  .admin-sidebar { width: 100%; position: relative; height: auto; }
  .admin-main { margin-left: 0; width: 100%; padding: 1rem; }
  .admin-wrap { flex-direction: column; }
}

/* Logowanie */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
}
.login-card {
  position: relative;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  padding: 2.75rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
  max-width: 440px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Tabs */
.nav-tabs {
  border-bottom: 2px solid var(--line);
  gap: 0.25rem;
}
.nav-tabs .nav-link {
  border: none;
  color: var(--muted);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 10px 10px 0 0;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.nav-tabs .nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-tabs .nav-link.active {
  color: var(--primary);
  background: transparent;
  border-bottom: 2px solid var(--primary);
  margin-bottom: -2px;
}

/* Table */
.table { --bs-table-hover-bg: #f8fafc; }
.table thead th {
  background: var(--bg-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  border: none;
  padding: 0.85rem 1rem;
}
.table tbody td { padding: 1rem; vertical-align: middle; border-color: var(--line); }
.table-hover tbody tr:hover { background: var(--bg-soft); }

/* Utility */
.bg-white { background: var(--surface) !important; }
.bg-soft { background: var(--bg-soft); }

/* === REKLAMY (Ad slots) === */
.ad-slot {
  position: relative;
  margin: 2rem auto;
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  background: #fafbff;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  min-height: 100px;
}
.ad-slot .ad-label {
  position: absolute;
  top: 0.35rem;
  left: 0.75rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 600;
}
.ad-slot-sidebar_top, .ad-slot-sidebar_bottom {
  margin: 0 0 1rem;
  background: transparent;
  padding: 1rem 0.5rem 0.5rem;
}
.ad-slot-header, .ad-slot-before_footer {
  margin-left: auto;
  margin-right: auto;
  max-width: 970px;
}
.ad-slot ins, .ad-slot iframe, .ad-slot img {
  max-width: 100%;
  height: auto;
}

/* === KOMENTARZE I OCENY === */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line, #e2e8f0);
}
.comments-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

.rating-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fef3c7, #fce7f3);
  border-radius: 16px;
  margin-bottom: 2rem;
}
.rating-big { text-align: center; min-width: 140px; }
.rating-num { font-size: 3.5rem; font-weight: 800; line-height: 1; color: #0f172a; }
.rating-count { font-size: 0.85rem; color: #64748b; margin-top: 0.25rem; }
.rating-bars { display: flex; flex-direction: column; gap: 0.35rem; }
.rating-bar-row { display: grid; grid-template-columns: 30px 1fr 40px; gap: 0.75rem; align-items: center; font-size: 0.85rem; }
.rating-bar-label { color: #64748b; font-weight: 600; }
.rating-bar-track { background: rgba(255,255,255,0.6); height: 8px; border-radius: 99px; overflow: hidden; }
.rating-bar-fill { background: linear-gradient(90deg, #fbbf24, #f59e0b); height: 100%; border-radius: 99px; transition: width 0.6s; }
.rating-bar-count { color: #64748b; font-size: 0.8rem; text-align: right; }

.comment-form-wrap {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Klikane gwiazdki (input) */
.star-input { display: flex; align-items: center; gap: 0.35rem; font-size: 1.75rem; }
.star-input label { cursor: pointer; color: #e2e8f0; transition: transform 0.15s, color 0.15s; line-height: 1; }
.star-input label:hover { transform: scale(1.2); }
.star-input label.active { color: #fbbf24; }
.star-input .star-label { font-size: 0.85rem; }

/* Lista komentarzy */
.comments-list { display: flex; flex-direction: column; gap: 1rem; }
.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: box-shadow 0.2s;
}
.comment-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.comment-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
.comment-content { color: #334155; line-height: 1.6; word-wrap: break-word; }
.comment-reply {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  border-left: 3px solid #6366f1;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #334155;
}

.rating-stars i { margin-right: 1px; }

@media (max-width: 640px) {
  .rating-summary { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .rating-big { min-width: auto; }
}