/* Style modułu Blog SEO — spójne z główną stroną projektu (granat + złoto, mobile-first) */
:root {
  --navy-950: #08172b;
  --navy-900: #0b1f3a;
  --navy-800: #12345e;
  --navy-700: #1a477d;
  --gold-500: #e0b038;
  --gold-400: #f3c95b;
  --gold-100: #fff8e6;
  --support-500: #d9385a;
  --support-600: #be2a4a;
  --bg-light: #f6f8fb;
  --bg-white: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-soft: #e2e8f0;
  --ok-bg: #ecfdf5;
  --ok-border: #a7f3d0;
  --ok-text: #065f46;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #92400e;
  --shadow-sm: 0 4px 16px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 14px 36px rgba(11, 31, 58, 0.10);
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand-name {
  line-height: 1.25;
  margin-top: 0;
  color: var(--navy-950);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.container-article { max-width: 920px; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  z-index: 1200;
  transform: scaleX(0);
  transform-origin: left center;
}

/* Nawigacja */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11, 31, 58, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; color: #ffffff; flex-shrink: 0; }
.brand-logo { border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.1rem; font-weight: 800; color: #ffffff; }
.brand-by { font-size: 0.7rem; color: var(--gold-400); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-link {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem; font-weight: 500; padding: 6px 2px;
  position: relative; transition: color var(--transition);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold-400); transform: scaleX(0); transition: transform var(--transition);
}
.nav-link:hover, .nav-link.is-active { color: #ffffff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-support {
  color: #ffd6df; font-size: 0.88rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(217, 56, 90, 0.16); border: 1px solid rgba(217, 56, 90, 0.35);
}
.heart { color: #ff6b8b; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px; padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: #ffffff; border-radius: 2px; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 15px; font-size: 0.86rem; }
.btn-md { padding: 11px 20px; font-size: 0.94rem; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  box-shadow: 0 8px 20px rgba(224, 176, 56, 0.28);
}
.btn-navy { background: var(--navy-800); color: #ffffff; }
.btn-navy:hover { background: var(--navy-900); }
.btn-outline {
  background: var(--bg-white); color: var(--navy-800);
  border-color: var(--border-soft);
}
.btn-outline:hover { border-color: var(--navy-700); }

/* Hero bloga */
.blog-hero {
  background: radial-gradient(circle at 15% 15%, #17447a 0%, var(--navy-900) 52%, var(--navy-950) 100%);
  color: #ffffff;
  padding: 52px 0 46px;
}
.blog-hero h1 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3.1vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.blog-hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  max-width: 740px;
  margin: 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(243, 201, 91, 0.38);
  color: var(--gold-400);
  padding: 5px 13px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 14px;
}
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.84rem; color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}
.breadcrumbs a:hover { color: var(--gold-400); text-decoration: underline; }

/* Filtry kategorii */
.blog-controls {
  padding: 24px 0 10px;
}
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.filter-pill {
  background: var(--bg-white);
  color: var(--navy-800);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--navy-700); }
.filter-pill.is-active {
  background: var(--navy-900);
  color: var(--gold-400);
  border-color: var(--navy-900);
}

/* Siatka kart artykułów */
.blog-list-section { padding: 20px 0 64px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(224, 176, 56, 0.65);
}
.post-card[hidden] { display: none; }
.post-card-planned {
  background: #fbfcfe;
  border-style: dashed;
  opacity: 0.9;
}
.post-meta-top {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 12px; font-size: 0.8rem;
}
.cat-tag {
  background: rgba(26, 71, 125, 0.09);
  color: var(--navy-700);
  font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.cat-tag-gold {
  background: var(--gold-100);
  color: #8a6304;
}
.status-tag-planned {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.post-date { color: var(--text-muted); font-weight: 500; }
.post-card h2 {
  font-size: 1.2rem; font-weight: 800; margin-bottom: 10px;
}
.post-card h2 a:hover { color: var(--navy-700); }
.post-excerpt {
  color: var(--text-muted); font-size: 0.94rem; margin: 0 0 18px;
}
.post-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.88rem;
}
.read-more {
  color: var(--navy-800); font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.read-more:hover { color: #9e7308; }

/* Sekcja harmonogramu cyklicznych publikacji */
.schedule-banner {
  margin-top: 38px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.schedule-banner h2 { font-size: 1.18rem; margin-bottom: 8px; }
.schedule-banner p { margin: 0 0 14px; color: var(--text-muted); font-size: 0.94rem; }
.upcoming-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px;
  margin: 0; padding: 0; list-style: none; font-size: 0.9rem;
}
.upcoming-list li {
  padding: 8px 12px; background: var(--bg-light); border-radius: 8px;
  border: 1px solid var(--border-soft);
}
.upcoming-list strong { color: var(--navy-900); }

/* Widok artykułu */
.article-wrap { padding: 34px 0 68px; }
.article-paper {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}
.article-meta-bar {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  margin-top: 14px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.82);
}
.article-lead {
  font-size: 1.08rem;
  color: #1e293b;
  font-weight: 500;
  border-left: 4px solid var(--gold-500);
  padding: 4px 0 4px 16px;
  margin: 0 0 24px;
}

.toc-card {
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 26px;
}
.toc-card strong {
  display: block; font-size: 0.86rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--navy-700); margin-bottom: 8px;
}
.toc-card ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 0.93rem; }
.toc-card a { color: var(--navy-800); font-weight: 600; }
.toc-card a:hover { text-decoration: underline; }

.article-body h2 {
  font-size: 1.45rem; font-weight: 800;
  margin: 34px 0 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--gold-100);
}
.article-body h3 {
  font-size: 1.12rem; font-weight: 700;
  margin: 22px 0 8px; color: var(--navy-800);
}
.article-body p { margin: 0 0 14px; color: #1e293b; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }

/* Ramki i wzory */
.box {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0 22px;
  border: 1px solid var(--border-soft);
}
.box-formula {
  background: #f0f6ff;
  border-color: #bfdbfe;
  border-left: 4px solid var(--navy-700);
}
.box-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  border-left: 4px solid #d97706;
}
.box-ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  border-left: 4px solid #059669;
}
.box-title {
  font-weight: 800; font-size: 0.96rem; margin-bottom: 6px; color: var(--navy-950);
}
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

/* Tabele porównawcze (mieszczą się na desktopie bez suwaka; scroll dopiero na wąskim telefonie) */
.table-scroll {
  width: 100%; overflow-x: auto;
  margin: 16px 0 22px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.87rem; background: var(--bg-white);
  line-height: 1.4;
}
.data-table th {
  background: var(--navy-900); color: #ffffff;
  text-align: left; padding: 9px 10px; font-weight: 700;
  white-space: normal;
  vertical-align: bottom;
}
.data-table th.num {
  text-align: right;
  white-space: normal;
}
.data-table td {
  padding: 9px 10px; border-top: 1px solid var(--border-soft);
  vertical-align: top;
}
.data-table td small {
  display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px;
}
.data-table tr:nth-child(even) td { background: #f8fafc; }
.data-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.diff-plus { color: #065f46; font-weight: 700; }
.diff-minus { color: #b91c1c; font-weight: 700; }

/* Karta CTA w artykule */
.cta-strip {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #ffffff;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 24px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.cta-strip h3 { color: #ffffff; margin: 0 0 4px; font-size: 1.12rem; }
.cta-strip p { color: rgba(255, 255, 255, 0.84); margin: 0; font-size: 0.92rem; max-width: 540px; }
.cta-strip-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Źródła (zwięzłe chipy bez długich URL-i) */
.sources-box {
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 28px;
}
.sources-box h3 { font-size: 0.98rem; margin: 0 0 10px; }
.sources-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.source-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-white); border: 1px solid var(--border-soft);
  color: var(--navy-800); font-size: 0.84rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  transition: border-color var(--transition), background var(--transition);
}
.source-chip:hover { border-color: var(--gold-500); background: var(--gold-100); }

/* FAQ w artykule */
.faq-list { display: grid; gap: 10px; margin: 14px 0 22px; }
.faq-item {
  border: 1px solid var(--border-soft); border-radius: 10px;
  background: var(--bg-light); overflow: hidden;
}
.faq-item.is-open { background: var(--bg-white); border-color: rgba(18, 52, 94, 0.3); }
.faq-question {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 15px 18px; font-size: 0.97rem; font-weight: 700; color: var(--navy-950);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.is-open .faq-answer { max-height: 360px; }
.faq-answer p { margin: 0; padding: 0 18px 15px; font-size: 0.93rem; color: var(--text-muted); }

.legal-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Stopka */
.footer {
  background: var(--navy-950); color: rgba(255, 255, 255, 0.82);
  padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold-400); }

@media (max-width: 820px) {
  .posts-grid, .upcoming-list { grid-template-columns: 1fr; }
  .article-paper { padding: 24px 18px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-950); flex-direction: column; align-items: stretch;
    padding: 16px 22px 22px; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-links.is-open { display: flex; }
}
