/* =========================================================
   Dieta i Suplementy — arkusz stylów główny
   ========================================================= */

:root {
  --c-primary: #059669;
  --c-primary-dark: #065f46;
  --c-primary-light: #34d399;
  --c-accent: #f59e0b;
  --c-accent-dark: #b45309;
  --c-accent-2: #7c3aed;
  --c-bg: #f8faf7;
  --c-bg-alt: #f0f4ed;
  --c-surface: #ffffff;
  --c-text: #142016;
  --c-text-muted: #57685c;
  --c-border: #e2e8e0;
  --c-success: #16a34a;
  --c-warning: #d97706;
  --c-danger: #dc2626;
  --c-info: #2563eb;

  --gradient-brand: linear-gradient(135deg, #059669 0%, #d97706 100%);
  --gradient-science: linear-gradient(135deg, #7c3aed 0%, #059669 100%);

  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(20, 33, 20, 0.06);
  --shadow-md: 0 12px 30px rgba(20, 33, 20, 0.10);
  --shadow-lg: 0 25px 60px rgba(5, 150, 105, 0.18);

  --header-h: 76px;
  --container-w: 1180px;
}

:root[data-theme="dark"] {
  --c-bg: #0a140f;
  --c-bg-alt: #0e1c15;
  --c-surface: #12241a;
  --c-text: #eaf5ee;
  --c-text-muted: #9cb8a8;
  --c-border: #1f3a2b;
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 25px 60px rgba(5, 150, 105, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #0a140f;
    --c-bg-alt: #0e1c15;
    --c-surface: #12241a;
    --c-text: #eaf5ee;
    --c-text-muted: #9cb8a8;
    --c-border: #1f3a2b;
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 25px 60px rgba(5, 150, 105, 0.3);
  }
}

* , *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  font-size: clamp(15px, 1.5vw, 16.5px);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--c-text-muted); }

ul, ol { padding-left: 1.3em; color: var(--c-text-muted); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  border-color: var(--c-border);
  color: var(--c-text);
}
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--c-surface) 88%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--c-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(0.8rem, 4vw, 1.1rem);
  color: var(--c-text);
  min-width: 0;
  flex-shrink: 1;
}
.brand > span { overflow-wrap: anywhere; min-width: 0; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}
.site-header:hover .brand-mark { transform: rotateY(20deg) rotateX(8deg); }
.brand-mark svg { width: 22px; height: 22px; }
.brand span em { color: var(--c-primary); font-style: normal; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-text-muted);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--c-bg-alt);
  color: var(--c-primary-dark);
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--c-text);
  font-size: 1.1rem;
}

.lang-toggle {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
  cursor: pointer;
  color: var(--c-text);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .nav-actions { gap: 8px; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    z-index: 999;
    background: var(--c-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.32s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 15px 18px; font-size: 1.05rem; border-bottom: 1px solid var(--c-border); border-radius: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 90px;
  overflow: hidden;
  perspective: 1400px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  animation: float-blob 14s ease-in-out infinite;
}
.hero-blob.b1 { width: 420px; height: 420px; background: var(--c-primary-light); top: -120px; left: -100px; }
.hero-blob.b2 { width: 380px; height: 380px; background: var(--c-accent); bottom: -140px; right: -80px; animation-delay: -6s; }
.hero-blob.b3 { width: 260px; height: 260px; background: var(--c-accent-2); top: 40%; left: 46%; opacity: 0.28; animation-delay: -3s; }

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--c-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.7rem; font-family: var(--font-heading); color: var(--c-primary-dark); }
.hero-stats div span { font-size: 0.85rem; color: var(--c-text-muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Hero visual (statyczna ilustracja) ---------- */
.hero-visual-card {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  border: 1px solid var(--c-border);
}
.supp-badges { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.supp-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  animation: floaty 5s ease-in-out infinite;
}
.supp-badge:nth-child(2) { animation-delay: -1.6s; }
.supp-badge:nth-child(3) { animation-delay: -3.2s; }
.supp-badge:nth-child(4) { animation-delay: -4.4s; }
.supp-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.supp-badge strong { display: block; font-family: var(--font-heading); font-size: 0.98rem; }
.supp-badge .hint { display: block; font-size: 0.8rem; color: var(--c-text-muted); margin-top: 2px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .supp-badge { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.05rem; }

.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards (tilt) ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.1s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--gradient-brand);
  color: #fff;
  margin-bottom: 18px;
  transform: translateZ(18px);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 14px; }
.card-link { font-weight: 700; color: var(--c-primary-dark); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

.card-flat { box-shadow: none; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-bg-alt);
  color: var(--c-primary-dark);
  margin-bottom: 10px;
}

/* ---------- Article ---------- */
.article-hero { padding: 50px 0 20px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--c-text-muted); font-size: 0.88rem; margin-bottom: 22px; }
.article-body { max-width: 760px; margin: 0 auto; padding: 10px 0 60px; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.3em; }
.article-body p, .article-body li { font-size: 1.02rem; }
.article-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--c-primary);
  background: var(--c-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.callout {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 5px solid var(--c-accent-2);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 26px 0;
}
.callout strong { color: var(--c-text); }
.source-note { font-size: 0.82rem; color: var(--c-text-muted); border-top: 1px solid var(--c-border); padding-top: 14px; margin-top: 40px; }

.toc {
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 20px 0 30px;
}
.toc strong { display: block; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--c-primary-dark); font-weight: 600; }

/* ---------- Tabs ---------- */
.tabs-shell {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px;
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
}
.tab-btn {
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--c-text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}
.tab-btn:hover { background: var(--c-surface); }
.tab-btn.is-active { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-sm); }
.tab-panels { padding: 36px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade-in 0.35s ease; }

@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.disclaimer {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 20px;
}

.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius-sm); border: 1px solid var(--c-border); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--c-border); font-size: 0.92rem; }
@media (max-width: 640px) {
  table { min-width: 0; table-layout: fixed; }
  th, td { padding: 10px 10px; font-size: 0.82rem; overflow-wrap: break-word; }
}
th { background: var(--c-bg-alt); font-family: var(--font-heading); }
tr:last-child td { border-bottom: none; }

/* ---------- Stats / charts ---------- */
.chart-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.bar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.bar-row .label { width: 150px; font-size: 0.85rem; font-weight: 600; flex-shrink: 0; }
.bar-track { flex: 1; height: 16px; background: var(--c-bg-alt); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--gradient-brand); width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.bar-row .val { width: 55px; text-align: right; font-weight: 700; font-size: 0.85rem; }

.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.donut-legend li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }

.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-tiles { grid-template-columns: 1fr; } }
.stat-tile { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-tile strong { display: block; font-family: var(--font-heading); font-size: 2.1rem; color: var(--c-primary-dark); }
.stat-tile span { font-size: 0.85rem; }

/* ---------- Publications ---------- */
.pub-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.pub-year {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--c-primary-dark);
  background: var(--c-bg-alt);
  border-radius: 14px;
  padding: 10px 16px;
  text-align: center;
  min-width: 70px;
}
.pub-item h3 { margin-bottom: 4px; }
.pub-authors { font-size: 0.86rem; color: var(--c-text-muted); margin-bottom: 8px; }
@media (max-width: 560px) { .pub-item { grid-template-columns: 1fr; } .pub-year { width: fit-content; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-info-item .ico {
  width: 46px; height: 46px; border-radius: 14px; background: var(--gradient-brand);
  color: #fff; display: grid; place-items: center; flex-shrink: 0;
}
.form-status { display: none; padding: 14px 18px; border-radius: 12px; margin-top: 16px; font-weight: 600; font-size: 0.9rem; }
.form-status.is-visible { display: block; }
.form-status.ok { background: #dcfce7; color: #15803d; }
.form-status.err { background: #fee2e2; color: #b91c1c; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; }
.field .hint { color: var(--c-text-muted); font-size: 0.8rem; margin-top: 5px; }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Accordion (FAQ) ---------- */
.faq-item { border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--c-surface); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--c-text);
}
.faq-q .plus { transition: transform 0.25s ease; font-size: 1.3rem; color: var(--c-primary); }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 22px; }
.faq-item.is-open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1a13; color: #cdd9d0; padding: 60px 0 26px; margin-top: 60px; }
:root[data-theme="dark"] .site-footer, body:not([data-force-light]) .site-footer { background: #071008; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #a6c2ae; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #7d9a8a;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; font-weight: 800; font-family: var(--font-heading); }
.footer-brand .brand-mark { width: 36px; height: 36px; }
.contact-link-btn { background: none; border: none; padding: 0; cursor: pointer; font: inherit; color: #a6c2ae; text-decoration: underline; }
.contact-link-btn:hover { color: #fff; }

/* ---------- Misc / utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.breadcrumbs { font-size: 0.82rem; color: var(--c-text-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }

.page-hero {
  padding: 46px 0 10px;
  text-align: center;
}
.page-hero p { max-width: 640px; margin: 0 auto; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.pill-list a {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  font-size: 0.85rem;
  font-weight: 600;
}
.pill-list a:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }

.legal h2 { margin-top: 1.8em; }
.legal { max-width: 800px; margin: 0 auto; }
.legal .table-scroll { overflow-x: auto; margin: 22px 0; }
.legal th { background: var(--c-bg-alt); }

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

/* ---------- Komponenty przebudowy 2026-08-14 ------------------------------
   Baza badan, baza suplementow, statystyki ze zrodlem, kalkulator zestawow.
   Blok celowo umieszczony PRZED sekcjami GEO i autopilota, bo tamte
   narzedzia dopisuja sie na koncu arkusza.
   ------------------------------------------------------------------------ */

/* ---------- Poprawka: zamkniete menu mobilne rozciagalo kanwe ------------
   Szuflada nawigacji jest odsunieta poza ekran przez translateX(100%), ale
   nadal powiekszala obszar przewijania dokumentu (scrollWidth = 2x szerokosc
   okna). body ma overflow-x:hidden, wiec uzytkownik tego nie widzial, jednak
   html nadal raportowal przewijanie w poziomie — a to jedna z rzeczy
   sprawdzanych przy ocenie uzytecznosci mobilnej.
   Rozwiazanie dwuczesciowe:
   1. overflow-x: clip na html — w odroznieniu od hidden NIE tworzy kontenera
      przewijania, wiec przyklejony naglowek dziala dalej;
   2. visibility na zamknietej szufladzie — dodatkowo zapobiega wchodzeniu
      tabulatorem w niewidoczne linki menu.
   ---------------------------------------------------------------------- */
html { overflow-x: clip; }

@media (max-width: 1080px) {
  .main-nav {
    visibility: hidden;
    transition: transform 0.32s ease, visibility 0s linear 0.32s;
  }
  .main-nav.is-open {
    visibility: visible;
    transition: transform 0.32s ease, visibility 0s linear 0s;
  }
}

.hero-note {
  max-width: 720px;
  margin-top: 14px;
  padding: 14px 18px;
  border-left: 3px solid var(--c-primary);
  background: var(--c-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}
.hero-note a { color: var(--c-primary); font-weight: 600; text-decoration: underline; }

/* ---------- Ramki objasniajace ---------- */
.db-note {
  margin: 0 0 34px;
  padding: 26px 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.db-note h2 { font-size: 1.3rem; margin-bottom: 0.5em; }
.db-note ul { margin: 0 0 1em; }
.db-note li { margin-bottom: 8px; }
.db-note-warn {
  margin-bottom: 0;
  padding: 14px 16px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--c-warning);
  font-size: 0.94rem;
}
.db-note-end { margin: 40px 0 0; }
.db-note-end a { color: var(--c-primary); font-weight: 600; text-decoration: underline; }
.db-section-head { margin-top: 50px; }

/* ---------- Pasek filtrow ---------- */
.db-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.db-filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.db-filter:hover { border-color: var(--c-primary); color: var(--c-primary); }
.db-filter.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.db-count {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 26px;
}

/* ---------- Karta badania ---------- */
.study {
  margin-bottom: 26px;
  padding: 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.study[hidden] { display: none; }
.study-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.study-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c-bg-alt);
  color: var(--c-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.study-year {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text-muted);
}
.study-topic { margin: 0 0 6px; font-size: 1.28rem; }
.study-title {
  margin: 0 0 8px;
  font-size: 0.93rem;
  font-style: italic;
  color: var(--c-text-muted);
}
.study-cite { margin: 0 0 10px; font-size: 0.9rem; }
.study-ids { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.study-ids a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-info);
  font-variant-numeric: tabular-nums;
}
.study-ids a:hover { border-color: var(--c-info); background: var(--c-bg-alt); }

.study-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
  padding: 16px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
}
.study-facts dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  margin-bottom: 3px;
}
.study-facts dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
}

.study-sub {
  margin: 0 0 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-muted);
  font-family: var(--font-body);
  font-weight: 700;
}
.study-list { margin: 0 0 22px; padding-left: 1.2em; }
.study-list li { margin-bottom: 7px; font-size: 0.96rem; }
.study-limits li { color: var(--c-text-muted); }

.study-verdict {
  margin: 0 0 22px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.09), rgba(217, 119, 6, 0.07));
  border: 1px solid rgba(5, 150, 105, 0.22);
}
.study-verdict h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--c-primary-dark);
}
:root[data-theme="dark"] .study-verdict h4 { color: var(--c-primary-light); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .study-verdict h4 { color: var(--c-primary-light); }
}
.study-verdict p { margin: 0; color: var(--c-text); }

.study-related {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  font-size: 0.9rem;
}
.study-related a { color: var(--c-primary); font-weight: 600; text-decoration: underline; }
.study-doc { border-style: dashed; }

@media (max-width: 640px) {
  .study { padding: 20px 18px; }
  .study-topic { font-size: 1.12rem; }
  .db-note { padding: 20px 18px; }
}

/* ---------- Hero ze zdjeciem (strona glowna) ----------------------------
   Zdjecie ma szeroka pusta strefe po lewej, wiec tekst idzie wlasnie tam.
   Pomiar luminancji zrodla pokazal jednak, ze sama ciemna sciana daje kontrast
   ok. 15:1, ale swiatlo okna przy lewej krawedzi i jasny blat u dolu schodza
   do 1.1:1 — bialy tekst bylby tam nieczytelny. Dlatego pod tekstem lezy
   gradientowa przeslona, mocna po lewej i zanikajaca w strone przedmiotow.

   Sekcja jest celowo jednolicie ciemna w obu motywach: zdjecie sie nie zmienia,
   wiec kolory tekstu ustawiamy wprost, a nie zmiennymi motywu.
   ------------------------------------------------------------------------ */
.hero-photo {
  position: relative;
  isolation: isolate;
  padding: 96px 0 104px;
  overflow: hidden;
  background: #0b1410;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(97deg,
      rgba(8, 18, 13, 0.95) 0%,
      rgba(8, 18, 13, 0.92) 34%,
      rgba(8, 18, 13, 0.72) 50%,
      rgba(8, 18, 13, 0.30) 66%,
      rgba(8, 18, 13, 0.05) 82%);
}
.hero-photo-grid { position: relative; z-index: 1; }
.hero-copy { max-width: 620px; }

.hero-photo .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #eafaf1;
}
.hero-photo h1 { color: #fff; }
.hero-photo h1 em { color: #6ee7b7; font-style: normal; }
.hero-lead {
  font-size: 1.12rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
}
.hero-photo .hero-stats div strong { color: #fff; }
.hero-photo .hero-stats div span { color: rgba(255, 255, 255, 0.72); }

/* wariant przycisku na zdjeciu — obrys w bieli zamiast w kolorze marki */
.btn-onphoto {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(2px);
}
.btn-onphoto:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }

@media (max-width: 860px) {
  /* na waskim ekranie tekst zajmuje cala szerokosc, wiec przeslona musi byc
     rownomierna — gradient poziomy przestaje cokolwiek chronic */
  .hero-photo { padding: 64px 0 72px; }
  .hero-bg { object-position: 72% 62%; }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(8, 18, 13, 0.93) 0%,
      rgba(8, 18, 13, 0.90) 55%,
      rgba(8, 18, 13, 0.94) 100%);
  }
  .hero-lead { font-size: 1.02rem; }
}

/* ---------- Teza serwisu pod hero ---------- */
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}
.thesis-example {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
}
.thesis-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 16px;
}
.thesis-row {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--c-bg-alt);
  border-left: 3px solid var(--c-border);
}
.thesis-row p:last-child { margin-bottom: 0; font-size: 0.94rem; }
.thesis-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.thesis-yes { border-left-color: var(--c-success); }
.thesis-yes .thesis-label { color: var(--c-success); }
.thesis-no { border-left-color: var(--c-warning); margin-bottom: 0; }
.thesis-no .thesis-label { color: var(--c-warning); }

@media (max-width: 860px) {
  .thesis-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Zdjecie wprowadzajace w artykule ----------------------------
   Zrodlowe pliki maja rozne proporcje (jeden panoramiczny baner, reszta
   pionowa), wiec kadr do wspolnego ksztaltu robi przegladarka przez
   object-fit. Dzieki temu jeden plik obsluguje i szeroki ekran, i telefon,
   a zestaw zdjec na roznych stronach wyglada spojnie.
   ------------------------------------------------------------------------ */
.art-photo {
  max-width: 860px;
  margin: 26px auto 6px;
  padding: 0;
}
.art-photo img {
  width: 100%;
  /* height: auto jest tu konieczne: atrybuty width/height w znaczniku sluza
     rezerwacji miejsca (zeby uklad nie skakal przy wczytywaniu), ale bez tej
     reguly przegladarka uzywa ich jako wysokosci uzytej i aspect-ratio nie
     dziala — zdjecie wychodzi w zlych proporcjach. */
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
  display: block;
}
.art-photo figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--c-text-muted);
  padding-left: 14px;
  border-left: 2px solid var(--c-primary);
}
/* Zdjecie juz wykadrowane panoramicznie w zrodle — nie ma sensu przycinac go
   drugi raz do 3:2, bo kompozycja rozjezdza sie na boki. */
.art-photo--wide img { aspect-ratio: 12 / 5; }

@media (max-width: 640px) {
  .art-photo img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
  .art-photo--wide img { aspect-ratio: 16 / 9; }
  .art-photo figcaption { font-size: 0.82rem; }
}

/* ---------- Bloki redakcyjne w artykulach ---------- */
.art-verdict {
  margin: 40px 0 30px;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.09), rgba(217, 119, 6, 0.07));
  border: 1px solid rgba(5, 150, 105, 0.22);
}
.art-verdict h2 { margin-top: 0; font-size: 1.45rem; color: var(--c-primary-dark); }
:root[data-theme="dark"] .art-verdict h2 { color: var(--c-primary-light); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .art-verdict h2 { color: var(--c-primary-light); }
}
.art-verdict p { color: var(--c-text); }
.art-verdict p:last-child { margin-bottom: 0; }

.art-limits { margin: 0 0 26px; padding-left: 1.25em; }
.art-limits li { margin-bottom: 9px; color: var(--c-text-muted); }

/* Stopka redakcyjna pod artykulem. Markup ac-about stal na 15 podstronach,
   ale nie mial w tym arkuszu ani jednej reguly - renderowal sie jako goly
   tekst. Zmienne motywu te same, ktorych uzywa reszta arkusza. */
.ac-about { margin: 34px 0 0; padding: 20px 22px; border-radius: 12px;
            background: var(--c-surface, #fff); border: 1px solid var(--c-border, #e5e7eb);
            font-size: .92rem; }
.ac-about h2 { margin: 0 0 10px; font-size: 1.05rem; }
.ac-about p { margin: 0 0 10px; }
.ac-about p:last-child { margin-bottom: 0; }
.ac-about .ac-about-h { font-weight: 600; margin-top: 14px; }
.ac-about ul { margin: 6px 0 0; padding-left: 20px; }
.ac-about li { margin: 4px 0; }
.ac-about a { color: var(--c-primary-dark, #047857); font-weight: 600; }

.art-sources { margin: 0 0 26px; padding-left: 1.25em; }
.art-sources li { margin-bottom: 10px; font-size: 0.94rem; }
.art-sources a { color: var(--c-primary); font-weight: 600; text-decoration: underline; }

@media (max-width: 640px) {
  .art-verdict { padding: 20px 18px; }
  .art-verdict h2 { font-size: 1.25rem; }
}

/* ---------- Baza suplementow ---------- */
.sup-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 30px 0 40px;
}
.sup-stat {
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.sup-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--c-primary);
  line-height: 1.1;
}
.sup-stat span { font-size: 0.88rem; color: var(--c-text-muted); }

.sup-table-wrap { overflow-x: auto; margin: 0 0 16px; }
.sup-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.sup-table th, .sup-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.sup-table thead th {
  background: var(--c-bg-alt);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.sup-table tbody tr:hover { background: var(--c-bg-alt); }
.sup-table a { color: var(--c-primary); font-weight: 600; text-decoration: underline; }

.evi {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.evi-3 { background: rgba(22, 163, 74, 0.15); color: #15803d; }
.evi-2 { background: rgba(217, 119, 6, 0.15); color: #b45309; }
.evi-1 { background: rgba(100, 116, 139, 0.15); color: #475569; }
:root[data-theme="dark"] .evi-3 { color: #4ade80; }
:root[data-theme="dark"] .evi-2 { color: #fbbf24; }
:root[data-theme="dark"] .evi-1 { color: #cbd5e1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .evi-3 { color: #4ade80; }
  :root:not([data-theme="light"]) .evi-2 { color: #fbbf24; }
  :root:not([data-theme="light"]) .evi-1 { color: #cbd5e1; }
}

.sup-card {
  display: block;
  padding: 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sup-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary);
}
.sup-card h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.sup-card p { margin: 0 0 12px; font-size: 0.92rem; }
.sup-card-ico { font-size: 1.7rem; line-height: 1; }
.sup-card-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; }
.sup-card-links span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-bg-alt);
  color: var(--c-text-muted);
}

/* ---------- Statystyki ze zrodlem ---------- */
.stat-card {
  margin-bottom: 26px;
  padding: 26px 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--c-primary);
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 0 0 18px;
  line-height: 1.45;
  letter-spacing: 0;
}
.stat-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
}
.stat-meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  margin-bottom: 2px;
}
.stat-meta dd { margin: 0; font-size: 0.9rem; font-weight: 600; }
.stat-meta dd a { color: var(--c-info); text-decoration: underline; }
.stat-interp {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.09), rgba(217, 119, 6, 0.07));
  border: 1px solid rgba(5, 150, 105, 0.22);
  margin-bottom: 16px;
}
.stat-interp h3 { margin: 0 0 8px; font-size: 1rem; color: var(--c-primary-dark); }
:root[data-theme="dark"] .stat-interp h3 { color: var(--c-primary-light); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stat-interp h3 { color: var(--c-primary-light); }
}
.stat-interp p { margin: 0; color: var(--c-text); }
.stat-limits { margin: 0; padding-left: 1.2em; font-size: 0.9rem; }
.stat-limits li { margin-bottom: 6px; color: var(--c-text-muted); }
.stat-method { font-size: 0.88rem; margin-bottom: 10px; }
.stat-method strong { color: var(--c-text); }

.stat-bars { margin: 18px 0; }
.stat-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 150px) 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.stat-bar-track {
  height: 12px;
  border-radius: 999px;
  background: var(--c-bg-alt);
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient-brand);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-bar-val { font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .stat-card { padding: 20px 18px; }
  .stat-bar-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Kalkulator zestawow ---------- */
.kalk {
  margin: 26px 0 34px;
  padding: 26px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.kalk-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.kalk-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
}
.kalk-row label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}
.kalk-row input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-text);
}
.kalk-row input:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.kalk-row input[type="number"] { font-variant-numeric: tabular-nums; }
.kalk-del {
  padding: 10px 13px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-danger);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.kalk-del:hover { border-color: var(--c-danger); background: rgba(220, 38, 38, 0.08); }
.kalk-del[disabled] { opacity: 0.35; cursor: not-allowed; }

.kalk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.kalk-add {
  padding: 11px 20px;
  border: 1px dashed var(--c-primary);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.kalk-add:hover { background: var(--c-bg-alt); }
.kalk-reset {
  padding: 11px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-text-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.kalk-out {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.kalk-out-item {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  text-align: center;
}
.kalk-out-item.is-main {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.13), rgba(217, 119, 6, 0.10));
  border-color: rgba(5, 150, 105, 0.3);
}
.kalk-out-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  margin-bottom: 5px;
}
.kalk-out-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.kalk-out-item.is-main .kalk-out-val { font-size: 1.9rem; }

.kalk-breakdown { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 8px; }
.kalk-breakdown th, .kalk-breakdown td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--c-border);
  font-variant-numeric: tabular-nums;
}
.kalk-breakdown th:first-child, .kalk-breakdown td:first-child { text-align: left; }
.kalk-breakdown thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
}
.kalk-breakdown tfoot td { font-weight: 700; border-top: 2px solid var(--c-border); border-bottom: 0; }
.kalk-share { font-size: 0.82rem; color: var(--c-text-muted); }

.kalk-warn {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--c-bg-alt);
  border-left: 3px solid var(--c-warning);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .kalk { padding: 18px 16px; }
  .kalk-row { grid-template-columns: 1fr 1fr; }
  .kalk-row > :first-child { grid-column: 1 / -1; }
  .kalk-del { grid-column: 1 / -1; }
}

/* ---------- GEO: blok "W skrócie" (dodane 2026-08-01) ---------------------
   Odpowiedź podana wprost, na samej górze strony — to ten fragment cytują
   wyszukiwarki generatywne. Styl korzysta ze zmiennych motywu tej witryny,
   więc działa w wersji jasnej i ciemnej bez osobnych reguł.                */
.geo-tldr {
  margin: 26px 0 30px;
  padding: 20px 24px;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-left: 5px solid var(--c-primary, #2563eb);
  border-radius: 12px;
}
.geo-tldr-head {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary, #2563eb);
}
.geo-tldr-answer {
  margin: 0 0 12px;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--c-text, #111827);
}
.geo-tldr-list { margin: 0; padding-left: 20px; }
.geo-tldr-list li {
  margin: 5px 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--c-text-muted, #4b5563);
}
@media (max-width: 640px) {
  .geo-tldr { padding: 16px 18px; }
  .geo-tldr-answer { font-size: 1rem; }
}

/* ---------- Komponenty autopilota tresci (ac-*) --------------------------
   Uzywane przez podstrony dokladane automatycznie co dwa dni. Kolory,
   typografia i zaokraglenia biora sie ze zmiennych motywu tej witryny,
   wiec komponent wyglada u siebie w kazdym z pieciu serwisow.            */
/* Szerokosc i wysrodkowanie ustawiamy tutaj, a nie liczymy na klase kontenera
   witryny: czesc serwisow uzywa `.container`, czesc `.wrap`, a cwiczwdomu.pl
   nie ma zadnej z nich. Komponent musi wygladac poprawnie wszedzie. */
.ac-page { max-width: 860px; margin-left: auto; margin-right: auto;
           padding: 26px 20px 56px; }
.ac-crumbs { font-size: .86rem; color: var(--c-text-muted, #64748b); margin: 0 0 18px; }
.ac-crumbs a { color: inherit; }
.ac-kicker {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--c-primary, #2563eb); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.ac-page h1 { margin: 14px 0 10px; line-height: 1.18; }
.ac-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .86rem;
           color: var(--c-text-muted, #64748b); margin-bottom: 6px; }
.ac-toc { margin: 26px 0; padding: 18px 22px; border: 1px solid var(--c-border, #e5e7eb);
          border-radius: 12px; background: var(--c-surface, #fff); }
.ac-toc strong { display: block; margin-bottom: 8px; font-size: .82rem;
                 letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted, #64748b); }
.ac-toc ol { margin: 0; padding-left: 20px; }
.ac-toc li { margin: 4px 0; }
.ac-page h2 { margin: 34px 0 12px; line-height: 1.28; }
.ac-page p, .ac-page li { line-height: 1.72; }
.ac-note { margin: 22px 0; padding: 16px 20px; border-radius: 12px;
           background: var(--c-surface, #fff); border: 1px solid var(--c-border, #e5e7eb);
           border-left: 5px solid var(--c-primary, #2563eb); }
.ac-faq { margin: 10px 0; border: 1px solid var(--c-border, #e5e7eb); border-radius: 12px;
          background: var(--c-surface, #fff); overflow: hidden; }
.ac-faq > summary { cursor: pointer; padding: 15px 20px; font-weight: 600;
                    list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ac-faq > summary::-webkit-details-marker { display: none; }
.ac-faq > summary::after { content: "+"; font-weight: 700; color: var(--c-primary, #2563eb); }
.ac-faq[open] > summary::after { content: "\2013"; }
.ac-faq > div { padding: 0 20px 16px; color: var(--c-text-muted, #4b5563); }
.ac-src { margin-top: 30px; font-size: .84rem; color: var(--c-text-muted, #64748b); }

/* kalkulator */
.ac-calc { margin: 26px 0; padding: 22px; border-radius: 14px;
           border: 1px solid var(--c-border, #e5e7eb); background: var(--c-surface, #fff); }
.ac-field { margin-bottom: 14px; }
.ac-field label { display: block; margin-bottom: 5px; font-size: .88rem; font-weight: 600; }
.ac-field input, .ac-field select {
  width: 100%; padding: 11px 13px; font-size: 1rem; font: inherit;
  border: 1px solid var(--c-border, #cbd5e1); border-radius: 10px;
  background: var(--c-surface, #fff); color: var(--c-text, #111827);
}
.ac-btn { width: 100%; padding: 13px 18px; border: 0; border-radius: 10px; cursor: pointer;
          background: var(--c-primary, #2563eb); color: #fff; font-size: 1rem; font-weight: 700; }
.ac-out { margin-top: 18px; padding: 18px; border-radius: 12px;
          background: var(--c-surface, #fff); border: 1px dashed var(--c-border, #cbd5e1); }
.ac-out-main { font-size: 1.9rem; font-weight: 800; color: var(--c-primary, #2563eb); line-height: 1.2; }
.ac-out-label { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase;
                color: var(--c-text-muted, #64748b); }
.ac-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0;
          border-top: 1px solid var(--c-border, #e5e7eb); font-size: .95rem; }
.ac-row b { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .ac-calc { padding: 16px; } .ac-out-main { font-size: 1.5rem; } }

/* ---------- Banner zgody na cookies ---------- */
.consent-banner {
  position: fixed;
  z-index: 2000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.consent-banner.is-visible { opacity: 1; transform: translateY(0); }
.consent-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.consent-text { flex: 1 1 420px; }
.consent-text strong { display: block; font-family: var(--font-heading); font-size: 1.02rem; margin-bottom: 6px; }
.consent-text p { margin: 0; font-size: 0.88rem; color: var(--c-text-muted); line-height: 1.6; }
.consent-text a { color: var(--c-primary-dark, var(--c-primary)); font-weight: 600; text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { white-space: nowrap; }

@media (max-width: 620px) {
  .consent-inner { padding: 16px; gap: 14px; }
  .consent-text p { font-size: 0.8rem; line-height: 1.5; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 auto; justify-content: center; padding: 12px 18px; }
}
