/* ===================================
   DoseWise - Style globalne
   =================================== */

/* Reset i podstawy */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Kolory */
  --bg-dark: #0A1612;
  --bg-dark-2: #0F1F1A;
  --card-dark: rgba(255, 255, 255, 0.04);
  --card-dark-solid: #16221D;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-dark-2: rgba(255, 255, 255, 0.12);

  --bg-light: #FFFFFF;
  --bg-light-2: #F7F9F8;
  --card-light: #FFFFFF;
  --border-light: #E5E9E7;

  --green-primary: #22C55E;
  --green-hover: #16A34A;
  --green-light: #4ADE80;
  --green-dark: #15803D;
  --green-bg: rgba(34, 197, 94, 0.1);
  --green-glow: rgba(34, 197, 94, 0.25);

  --text-white: #FFFFFF;
  --text-light: #E8EDEB;
  --text-muted: #9CA8A4;
  --text-dark: #0F1F1A;
  --text-dark-muted: #5F6B66;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 8px rgba(15, 31, 26, 0.04), 0 0 0 1px rgba(15, 31, 26, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  display: block;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
}

.site-header.on-light {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border-light);
}

.site-header.on-light .nav-link,
.site-header.on-light .logo-text,
.site-header.on-light .btn-ghost {
  color: var(--text-dark);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-white);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover { color: var(--green-light); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--green-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-light {
  background: white;
  color: var(--text-dark);
}
.btn-light:hover { background: #f1f5f3; }

.btn-outline-dark {
  background: white;
  color: var(--text-dark);
  border-color: var(--border-light);
}
.btn-outline-dark:hover { background: #f7f9f8; }

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  padding: 8px 14px;
}
.btn-ghost:hover { color: var(--green-light); }

.btn-lg { padding: 14px 24px; font-size: 15px; }

.btn-block { width: 100%; }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,0.06);
}
.site-header.on-light .menu-toggle { color: var(--text-dark); background: var(--bg-light-2); }

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-white);
  overflow: hidden;
  padding: 64px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 80% 0%, rgba(34, 197, 94, 0.15), transparent),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(34, 197, 94, 0.08), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 24px;
}
.eyebrow::before,
.eyebrow span {
  display: inline-block;
}
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-primary); }

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--green-light);
  display: block;
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-light);
  opacity: 0.85;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  opacity: 0.9;
}

.hero-feature svg {
  width: 16px;
  height: 16px;
  color: var(--green-light);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  margin-left: -8px;
  background: var(--green-primary);
  background-size: cover;
  background-position: center;
}
.avatar:first-child { margin-left: 0; }

.rating-line {
  font-size: 13px;
  color: var(--text-light);
}
.stars {
  color: #FBBF24;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.rating-text { opacity: 0.7; }

/* Hero dashboard mockup */
.hero-dashboard {
  position: relative;
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr 1.4fr;
  grid-template-rows: auto auto;
}

.dash-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.dash-stack {
  grid-row: span 2;
}

.dash-card-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack-group { margin-bottom: 14px; }
.stack-group:last-child { margin-bottom: 0; }

.stack-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-light);
  margin-bottom: 8px;
}
.stack-group-label svg { width: 14px; height: 14px; }

.stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 6px;
}
.stack-item-name { color: var(--text-white); font-weight: 500; }
.stack-item-dose { color: var(--text-muted); font-size: 12px; }

.dash-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ring-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 8px;
}

.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--green-primary); stroke-width: 8; stroke-linecap: round; }

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.dash-score-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.trend-chart {
  width: 100%;
  height: 80px;
  margin-top: 8px;
}

.trend-x-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.dash-recommendation {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-rec-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
}
.dash-rec-icon svg { width: 22px; height: 22px; }

.dash-rec-text { flex: 1; }
.dash-rec-title { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green-light); margin-bottom: 2px; }
.dash-rec-body { font-size: 13px; color: var(--text-light); }

.dash-rec-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: white;
}

/* Hero stats */
.hero-stats {
  position: relative;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.hero-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-light);
  flex-shrink: 0;
}
.hero-stat-icon svg { width: 22px; height: 22px; }

.hero-stat-num { font-size: 20px; font-weight: 700; color: white; line-height: 1; }
.hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===================================
   BRAND BAR
   =================================== */

.brand-bar {
  padding: 36px 0;
  background: white;
  border-bottom: 1px solid var(--border-light);
}

.brand-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.brand-bar-label {
  font-size: 13px;
  color: var(--text-dark-muted);
  white-space: nowrap;
}

.brand-list {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.brand-logo {
  font-weight: 700;
  font-size: 18px;
  color: #2D3B36;
  letter-spacing: -0.02em;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.brand-logo:hover { opacity: 1; }
.brand-logo small { font-weight: 400; opacity: 0.7; font-size: 14px; }

/* ===================================
   SECTIONS
   =================================== */

section.section {
  padding: 88px 0;
}

.section-light { background: var(--bg-light-2); }
.section-dark { background: var(--bg-dark); color: var(--text-white); position: relative; overflow: hidden; }
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 0%, rgba(34, 197, 94, 0.1), transparent);
  pointer-events: none;
}
.section-dark .container { position: relative; }

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  justify-content: center;
  display: flex;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-dark-muted);
  max-width: 640px;
  margin: 0 auto;
}

.section-dark .section-subtitle { color: var(--text-muted); }

/* ===================================
   CALCULATOR GRID
   =================================== */

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.calc-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.calc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 31, 26, 0.08), 0 0 0 1px rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.3);
}

.calc-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 18px;
}

.icon-mg { background: #DCFCE7; color: #15803D; }
.icon-omega { background: #DBEAFE; color: #1D4ED8; }
.icon-d3 { background: #FEF3C7; color: #B45309; }
.icon-kre { background: #EDE9FE; color: #6D28D9; }
.icon-bia { background: #DCFCE7; color: #15803D; }
.icon-kol { background: #FCE7F3; color: #BE185D; }
.icon-cbd { background: #D1FAE5; color: #047857; }
.icon-elek { background: #CFFAFE; color: #0E7490; }

.calc-card-icon svg { width: 24px; height: 24px; }

.calc-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.calc-card p {
  font-size: 14px;
  color: var(--text-dark-muted);
  margin-bottom: 16px;
  line-height: 1.5;
  flex: 1;
}

.calc-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all var(--transition);
}

.calc-card:hover .calc-card-arrow {
  background: var(--green-primary);
  color: white;
  transform: translateX(4px);
}

/* ===================================
   STACK BUILDER
   =================================== */

.stack-builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.stack-builder-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-weight: 700;
}
.stack-builder-text h2 .num { color: var(--green-light); }

.stack-builder-text p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 440px;
}

.stack-builder-text .btn-primary { margin-bottom: 32px; }

.stack-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stack-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-light);
}
.stack-feature-icon svg { width: 20px; height: 20px; }
.stack-feature-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.stack-builder-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.goals-card, .stack-card-demo {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 20px;
}

.goals-card-title {
  font-size: 14px; font-weight: 600;
  color: white;
  margin-bottom: 4px;
}
.goals-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.goal-pill {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.goal-pill:hover { background: rgba(255,255,255,0.07); }
.goal-pill.active { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.4); color: white; }
.goal-pill .goal-icon { display: inline-flex; gap: 8px; align-items: center; color: var(--green-light); }
.goal-check { color: var(--green-primary); opacity: 0; transition: opacity var(--transition); }
.goal-pill.active .goal-check { opacity: 1; }

/* ===================================
   STEPS / HOW IT WORKS
   =================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--green-primary);
}
.step-icon svg { width: 28px; height: 28px; }

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-dark-muted);
  font-size: 15px;
  max-width: 280px;
  margin: 0 auto;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-light) 0 6px, transparent 6px 12px);
}

/* ===================================
   METHODOLOGY / TRANSPARENCY
   =================================== */

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.method-text h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-weight: 700;
}

.method-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 380px;
}

.method-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.method-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.method-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-light);
  margin-bottom: 16px;
}
.method-card-icon svg { width: 22px; height: 22px; }

.method-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: white;
}

.method-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ===================================
   TESTIMONIALS
   =================================== */

.testimonials {
  background: var(--bg-light-2);
}

.testimonials-wrap {
  position: relative;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.testimonial {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .avatar {
  width: 40px;
  height: 40px;
  margin: 0;
  border: none;
}

.testimonial-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.testimonial-meta {
  font-size: 12px;
  color: var(--text-dark-muted);
}

.testimonial-stars {
  margin-top: 4px;
  color: #FBBF24;
  font-size: 12px;
  letter-spacing: 1px;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 50%;
  left: -20px;
  right: -20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  color: var(--text-dark);
  transition: all var(--transition);
}
.carousel-btn:hover { background: var(--green-primary); color: white; }

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--green-primary);
  width: 24px;
  border-radius: 4px;
}

/* ===================================
   BLOG SECTION
   =================================== */

.blog-section-grid {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 48px;
  align-items: start;
}

.blog-side h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-weight: 700;
}

.blog-side p {
  color: var(--text-dark-muted);
  margin-bottom: 24px;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-light-2);
}

.blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--green-bg);
  color: var(--green-dark);
}

.blog-card h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  flex: 1;
}

.blog-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 72px 0 24px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  right: -100px;
  top: 60px;
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 2fr;
  gap: 32px;
  position: relative;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 220px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--green-primary); color: white; }

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--green-light); }

.footer-newsletter h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.footer-newsletter p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px;
  border-radius: 12px;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  color: white;
  font-size: 14px;
}
.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-form button {
  background: var(--green-primary);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--green-hover); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================================
   CALCULATOR PAGES
   =================================== */

.page-hero {
  background: var(--bg-dark);
  color: white;
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 400px at 70% 0%, rgba(34, 197, 94, 0.12), transparent);
  pointer-events: none;
}
.page-hero-inner { position: relative; max-width: 780px; }
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 17px;
  color: var(--text-light);
  opacity: 0.85;
  max-width: 580px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumbs a:hover { color: var(--green-light); }
.breadcrumbs .sep { opacity: 0.5; }

.calculator-section {
  padding: 64px 0;
  background: var(--bg-light-2);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.calc-form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.calc-form-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.calc-form-card .calc-subtitle {
  color: var(--text-dark-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 15px;
  background: white;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: 0;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px var(--green-bg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.radio-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: white;
}
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill:hover { border-color: var(--green-primary); }
.radio-pill.checked,
.radio-pill input:checked + span {
  background: var(--green-bg);
  border-color: var(--green-primary);
  color: var(--green-dark);
}

.checkbox-group {
  display: grid;
  gap: 8px;
}
.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  background: white;
  font-size: 14px;
}
.checkbox-pill:hover { border-color: var(--green-primary); }
.checkbox-pill input { width: 18px; height: 18px; accent-color: var(--green-primary); }
.checkbox-pill.checked { border-color: var(--green-primary); background: var(--green-bg); }

.calc-result-card {
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  position: sticky;
  top: 92px;
  overflow: hidden;
  position: -webkit-sticky;
}
.calc-result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 300px at 100% 0%, rgba(34, 197, 94, 0.18), transparent);
  pointer-events: none;
}
.calc-result-card > * { position: relative; }

.calc-result-card .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.calc-result-value {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.calc-result-value small { font-size: 22px; opacity: 0.7; }

.calc-result-card .desc {
  font-size: 14px;
  color: var(--text-light);
  opacity: 0.85;
  margin-bottom: 24px;
  line-height: 1.6;
}

.calc-result-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.calc-result-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.calc-result-list .key { color: var(--text-muted); }
.calc-result-list .val { font-weight: 600; color: white; }

.calc-tips {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  gap: 10px;
}
.calc-tips svg { flex-shrink: 0; color: var(--green-light); }

/* ===================================
   ARTICLE / GENERIC PAGE
   =================================== */

.article-section {
  padding: 64px 0;
  background: white;
}
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.article h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.article p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.7;
}
.article ul, .article ol {
  margin: 0 0 16px 24px;
  color: var(--text-dark);
}
.article li { margin-bottom: 8px; line-height: 1.6; }

/* ===================================
   PRICING
   =================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card.featured {
  border-color: var(--green-primary);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.12);
  transform: translateY(-4px);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Najpopularniejszy';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-primary);
  color: white;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card h3 { font-size: 16px; font-weight: 700; }
.pricing-card .price {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.pricing-card .price small { font-size: 14px; color: var(--text-dark-muted); font-weight: 500; }
.pricing-card .desc { color: var(--text-dark-muted); font-size: 14px; margin-bottom: 8px; }
.pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-card ul li {
  font-size: 14px;
  display: flex;
  gap: 8px;
  color: var(--text-dark);
}
.pricing-card ul li::before {
  content: '✓';
  color: var(--green-primary);
  font-weight: 700;
}

/* ===================================
   FORMS - LOGIN / CONTACT
   =================================== */

.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.auth-wrap h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.auth-wrap p.sub { color: var(--text-dark-muted); margin-bottom: 28px; font-size: 14px; }
.auth-foot { margin-top: 20px; font-size: 13px; color: var(--text-dark-muted); text-align: center; }
.auth-foot a { color: var(--green-dark); font-weight: 600; }

/* ===================================
   BLOG LIST
   =================================== */

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===================================
   STACK BUILDER WIZARD
   =================================== */

.wizard-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 36px;
}

.wizard-step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.wizard-step-indicator div {
  flex: 1;
  height: 4px;
  background: var(--border-light);
  border-radius: 999px;
  transition: background var(--transition);
}
.wizard-step-indicator div.active { background: var(--green-primary); }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}

.stack-result {
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 24px;
  display: none;
  position: relative;
  overflow: hidden;
}
.stack-result.show { display: block; }
.stack-result::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 300px at 100% 0%, rgba(34, 197, 94, 0.15), transparent);
  pointer-events: none;
}
.stack-result > * { position: relative; }

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-track { grid-template-columns: repeat(2, 1fr); }
  .blog-cards { grid-template-columns: repeat(2, 1fr); }
  .blog-list { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .hero-grid,
  .stack-builder-grid,
  .method-grid,
  .blog-section-grid,
  .calculator-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-newsletter { grid-column: 1 / -1; max-width: 420px; }
  .hero-dashboard { max-width: 520px; margin: 0 auto; }
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid var(--border-dark);
  }
  .site-header.on-light .nav-menu.open { background: white; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step:not(:last-child)::after { display: none; }
  .stack-features { grid-template-columns: repeat(2, 1fr); }
  .calc-result-card { position: static; }
}

@media (max-width: 640px) {
  section.section { padding: 64px 0; }
  .calc-grid { grid-template-columns: 1fr; }
  .testimonial-track { grid-template-columns: 1fr; }
  .blog-cards { grid-template-columns: 1fr; }
  .blog-list { grid-template-columns: 1fr; }
  .method-cards { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .hero-stat { justify-content: flex-start; }
  .stack-builder-demo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .brand-list { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .calc-form-card, .calc-result-card { padding: 24px; }
  .calc-result-value { font-size: 40px; }
}

/* Tooltips and small UI */
.kbd {
  font-family: monospace;
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Utility */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.hidden { display: none !important; }

/* ===================================
   ANIMACJE HERO
   =================================== */

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4), 0 20px 50px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(34,197,94,0), 0 20px 50px rgba(0,0,0,0.4); }
}
@keyframes drawLine {
  from { stroke-dashoffset: 600; }
  to { stroke-dashoffset: 0; }
}
@keyframes fillRing {
  from { stroke-dashoffset: 263; }
  to { stroke-dashoffset: 20; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes itemSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulseSoft {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero-dashboard .dash-card {
  animation: fadeUp 700ms cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.hero-dashboard .dash-stack { animation-delay: 100ms; }
.hero-dashboard .dash-score { animation-delay: 250ms; }
.hero-dashboard .dash-card:nth-child(3) { animation-delay: 400ms; }
.hero-dashboard .dash-recommendation { animation: fadeUp 700ms 600ms cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }

.hero-dashboard .dash-score {
  animation: fadeUp 700ms 250ms cubic-bezier(0.34, 1.56, 0.64, 1) backwards, floatY 4500ms 1s ease-in-out infinite;
}

.ring-fg { animation: fillRing 1.8s 800ms cubic-bezier(0.4,0,0.2,1) backwards; }

.dash-rec-icon { animation: pulseGlow 2.5s ease-in-out 1.5s infinite; border-radius: 50%; }

.stack-item { animation: itemSlideIn 500ms cubic-bezier(0.4,0,0.2,1) backwards; }
.stack-group:nth-child(2) .stack-item:nth-child(2) { animation-delay: 800ms; }
.stack-group:nth-child(2) .stack-item:nth-child(3) { animation-delay: 880ms; }
.stack-group:nth-child(2) .stack-item:nth-child(4) { animation-delay: 960ms; }
.stack-group:nth-child(3) .stack-item:nth-child(2) { animation-delay: 1040ms; }
.stack-group:nth-child(4) .stack-item:nth-child(2) { animation-delay: 1120ms; }
.stack-group:nth-child(4) .stack-item:nth-child(3) { animation-delay: 1200ms; }

.trend-chart path:nth-of-type(2) {
  stroke-dasharray: 600;
  animation: drawLine 2.2s 1.2s cubic-bezier(0.4,0,0.2,1) backwards;
}

.ring-label {
  background: linear-gradient(90deg, white 30%, #4ade80 50%, white 70%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s 2s linear infinite;
}

.eyebrow-dot {
  animation: pulseSoft 2s ease-in-out infinite;
}

.hero h1, .hero p.lead, .hero-features, .hero-actions, .hero-social-proof {
  animation: fadeUp 700ms cubic-bezier(0.4,0,0.2,1) backwards;
}
.hero h1 { animation-delay: 50ms; }
.hero p.lead { animation-delay: 150ms; }
.hero-features { animation-delay: 250ms; }
.hero-actions { animation-delay: 350ms; }
.hero-social-proof { animation-delay: 450ms; }

/* Floating dots in hero background */
.hero-bg-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-dots::before, .hero-bg-dots::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--green-primary);
  filter: blur(60px);
  opacity: 0.18;
  animation: floatY 8s ease-in-out infinite;
}
.hero-bg-dots::before { top: 20%; right: 10%; width: 200px; height: 200px; }
.hero-bg-dots::after { bottom: 10%; left: 5%; width: 160px; height: 160px; animation-delay: 2s; }

/* Animacja zlicznika dla statystyk */
.hero-stat-num { display: inline-block; }
.counter { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================
   ARTYKUŁ BLOGOWY (POJEDYNCZY POST)
   =================================== */

.post-hero {
  background: var(--bg-dark);
  color: white;
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 400px at 30% 0%, rgba(34, 197, 94, 0.18), transparent);
}
.post-hero-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.post-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 16px;
}
.post-hero p {
  font-size: 18px;
  color: var(--text-light);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}
.post-cover {
  max-width: 900px;
  margin: -32px auto 0;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}
.post-cover-img {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.post-content {
  padding: 56px 0 80px;
  background: white;
}
.post-content .article p { font-size: 17px; }
.post-content .article blockquote {
  border-left: 4px solid var(--green-primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-light-2);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-dark);
}
.post-content .article .callout {
  background: var(--green-bg);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
}
.post-content .article .callout svg {
  flex-shrink: 0;
  color: var(--green-primary);
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.post-content .article .callout p { margin: 0; font-size: 15px; }
.post-content .article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.post-content .article table th,
.post-content .article table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.post-content .article table th {
  background: var(--bg-light-2);
  font-weight: 600;
}
.post-content .article table tr:hover td { background: var(--bg-light-2); }

.post-share {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
}
.post-share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-light-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark-muted);
  transition: all 0.2s;
}
.post-share-btn:hover { background: var(--green-primary); color: white; }

.related-posts {
  background: var(--bg-light-2);
  padding: 64px 0;
}

/* ===================================
   FAQ
   =================================== */

.faq-category {
  margin-bottom: 40px;
}
.faq-category h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-category h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--green-primary);
  border-radius: 2px;
}
.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item:hover { border-color: rgba(34, 197, 94, 0.3); }
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  padding: 18px 24px;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--green-primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--green-primary); box-shadow: 0 4px 16px rgba(34,197,94,0.08); }
.faq-item .answer {
  padding: 0 24px 20px;
  color: var(--text-dark-muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item .answer p { margin-bottom: 10px; }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 40px;
}
.faq-search input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 15px;
  background: white;
  box-shadow: var(--shadow-card);
}
.faq-search input:focus {
  outline: 0;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px var(--green-bg);
}
.faq-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark-muted);
}

/* ===================================
   CHECKOUT / PŁATNOŚCI
   =================================== */

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.checkout-form {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.checkout-summary {
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  position: sticky;
  top: 92px;
  overflow: hidden;
}
.checkout-summary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 300px at 100% 0%, rgba(34,197,94,0.18), transparent);
  pointer-events: none;
}
.checkout-summary > * { position: relative; }
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.payment-method {
  position: relative;
  cursor: pointer;
  padding: 14px 12px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  background: white;
}
.payment-method input { position: absolute; opacity: 0; pointer-events: none; }
.payment-method:hover { border-color: var(--green-primary); }
.payment-method.active {
  border-color: var(--green-primary);
  background: var(--green-bg);
  color: var(--green-dark);
}
.payment-method-icon {
  display: block;
  margin: 0 auto 8px;
  font-size: 22px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}
.summary-row.total {
  font-size: 22px;
  font-weight: 700;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 12px;
  padding-top: 16px;
}
.discount-code-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.discount-code-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 14px;
}
.discount-code-form input::placeholder { color: var(--text-muted); }
.discount-code-form button {
  background: rgba(255,255,255,0.08);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

.card-input-wrap {
  position: relative;
}
.card-brand-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: auto;
  opacity: 0.6;
}

.payment-success {
  text-align: center;
  padding: 48px;
}
.payment-success .check-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pulseGlow 2s ease-in-out infinite;
}
.payment-success h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

/* ===================================
   PANEL KLIENTA
   =================================== */

body.panel-body {
  background: var(--bg-light-2);
}
.panel-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}
.panel-sidebar {
  background: white;
  border-right: 1px solid var(--border-light);
  padding: 24px 16px;
  position: sticky;
  top: 72px;
  align-self: flex-start;
  height: calc(100vh - 72px);
  overflow-y: auto;
}
.panel-user {
  padding: 12px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--bg-light-2);
  display: flex;
  gap: 12px;
  align-items: center;
}
.panel-user .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  margin: 0;
  border: 0;
}
.panel-user-info { flex: 1; min-width: 0; }
.panel-user-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-user-plan {
  font-size: 11px;
  color: var(--green-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.panel-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.panel-nav-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  padding: 16px 12px 8px;
}
.panel-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s;
}
.panel-nav a:hover { background: var(--bg-light-2); }
.panel-nav a.active {
  background: var(--green-bg);
  color: var(--green-dark);
}
.panel-nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.panel-main { padding: 32px; }
.panel-section { display: none; }
.panel-section.active { display: block; animation: fadeUp 400ms ease-out; }
.panel-section h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.panel-section .panel-section-sub {
  color: var(--text-dark-muted);
  margin-bottom: 24px;
}

.panel-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.panel-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--border-light);
}
.panel-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark-muted);
  margin-bottom: 8px;
}
.panel-card-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.panel-card-value small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark-muted);
}
.panel-card-trend {
  font-size: 12px;
  color: var(--green-primary);
  font-weight: 600;
  margin-top: 4px;
}
.panel-card-trend.down { color: #ef4444; }

.panel-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.panel-block {
  background: white;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.panel-block h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-block h3 a {
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 600;
}

.panel-stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-light-2);
  border-radius: 10px;
  margin-bottom: 8px;
}
.panel-stack-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.panel-stack-item .info { flex: 1; }
.panel-stack-item .name { font-weight: 600; font-size: 14px; }
.panel-stack-item .dose { font-size: 12px; color: var(--text-dark-muted); }
.panel-stack-item .time {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-bg);
  padding: 4px 10px;
  border-radius: 999px;
}
.panel-stack-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-light);
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.panel-stack-checkbox.checked {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: white;
}

.history-chart {
  width: 100%;
  height: 200px;
}

.table-clean {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table-clean th, .table-clean td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.table-clean th {
  font-weight: 600;
  color: var(--text-dark-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--green-bg);
  color: var(--green-dark);
}
.badge-tag.gray { background: #e5e9e7; color: #5f6b66; }
.badge-tag.red { background: #fee2e2; color: #b91c1c; }
.badge-tag.amber { background: #fef3c7; color: #b45309; }

.panel-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-primary);
  color: white;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(34,197,94,0.4);
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .panel-layout { grid-template-columns: 1fr; }
  .panel-sidebar {
    position: fixed;
    top: 72px;
    left: -260px;
    width: 260px;
    transition: left 0.3s;
    z-index: 50;
    height: calc(100vh - 72px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }
  .panel-sidebar.open { left: 0; }
  .panel-mobile-toggle { display: flex; }
  .panel-cards { grid-template-columns: repeat(2, 1fr); }
  .panel-grid-2 { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}
@media (max-width: 640px) {
  .panel-cards { grid-template-columns: 1fr; }
  .panel-main { padding: 20px 16px; }
  .payment-methods { grid-template-columns: 1fr; }
}

/* ===================================
   REJESTRACJA — WIZARD WIDE
   =================================== */

.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
}
.reg-side {
  background: var(--bg-dark);
  color: white;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.reg-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 100% 0%, rgba(34,197,94,0.18), transparent),
    radial-gradient(ellipse 400px 300px at 0% 100%, rgba(34,197,94,0.08), transparent);
  pointer-events: none;
}
.reg-side > * { position: relative; }
.reg-side h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 700;
}
.reg-side p { color: var(--text-light); opacity: 0.85; max-width: 360px; margin-bottom: 32px; }
.reg-side ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.reg-side li { font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.reg-side li svg { color: var(--green-light); flex-shrink: 0; margin-top: 2px; }
.reg-main {
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reg-form-inner {
  width: 100%;
  max-width: 440px;
}
.reg-form-inner h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}
.reg-form-inner .sub {
  color: var(--text-dark-muted);
  margin-bottom: 28px;
}
.reg-step { display: none; animation: fadeUp 400ms ease-out; }
.reg-step.active { display: block; }
.password-strength {
  margin-top: 6px;
  height: 4px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}
.password-strength-bar {
  height: 100%;
  width: 0;
  background: #ef4444;
  transition: all 0.3s;
}
.password-hint {
  font-size: 12px;
  color: var(--text-dark-muted);
  margin-top: 6px;
}
.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: white;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  margin-bottom: 8px;
}
.social-login-btn:hover { background: var(--bg-light-2); border-color: var(--text-dark-muted); }
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-dark-muted);
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

@media (max-width: 1024px) {
  .reg-grid { grid-template-columns: 1fr; }
  .reg-side { padding: 40px 32px; }
  .reg-main { padding: 40px 24px; }
}
