:root {
  --article-border: rgba(255, 255, 255, 0.08);
  --article-card-bg: rgba(15, 15, 15, 0.82);
  --article-glow: rgba(255, 0, 0, 0.15);
}

body.light-theme {
  --article-border: rgba(214, 0, 0, 0.12);
  --article-card-bg: rgba(255, 255, 255, 0.98);
  --article-glow: rgba(214, 0, 0, 0.08);
}

body.blog-article-page main {
  padding-bottom: 6rem;
}

.article-hero {
  padding: 8rem 6% 3rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 7, 0.96) 0%,
    rgba(5, 5, 7, 0.9) 60%,
    rgba(5, 5, 7, 0.85) 100%
  );
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 3rem 10% auto;
  height: 320px;
  border-radius: 32px;
  background: radial-gradient(circle, var(--article-glow) 0%, transparent 70%);
  filter: blur(25px);
  z-index: -1;
  pointer-events: none;
}

.article-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--article-border);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  font-weight: 600;
}

/* --- LIGHT THEME OVERHAUL --- */
body.light-theme {
  --article-border: rgba(0, 0, 0, 0.1);
  --article-card-bg: #ffffff;
  --article-glow: rgba(214, 0, 0, 0.05);
  background-color: #f8f9fa;
  color: #1a1a1c;
}

body.light-theme .article-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f6 100%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

body.light-theme .article-hero h1 {
  color: #050507 !important;
}

body.light-theme .article-hero .hero-lede,
body.light-theme .article-hero .article-lead {
  color: #333333 !important;
  font-weight: 500;
  opacity: 1;
}

body.light-theme .article-hero .hero-eyebrow {
  background: rgba(214, 0, 0, 0.08);
  color: var(--accent-red);
  border-color: rgba(214, 0, 0, 0.2);
}

body.light-theme .article-hero .hero-actions .cta-button.secondary {
  border-color: rgba(0, 0, 0, 0.3);
  color: #050507;
}

body.light-theme .article-hero .hero-actions .cta-button.secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Sidebar & TOC Light Mode */
body.light-theme .article-toc,
body.light-theme .quick-links {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.light-theme .article-toc strong,
body.light-theme .quick-links h3 {
  color: #000;
}

body.light-theme .article-toc li a,
body.light-theme .quick-links a {
  color: #444;
}

body.light-theme .article-toc li a:hover {
  color: var(--accent-red);
}

/* Cards Light Mode */
body.light-theme .tech-report-box {
  background: #fff;
  color: #333;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 4px solid var(--accent-red);
}

body.light-theme .logic-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  color: #333;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

body.light-theme .article-content h2 {
  color: #000;
}

body.light-theme .article-content p,
body.light-theme .article-content li {
  color: #222;
}

body.light-theme .article-content strong {
  color: #000;
}

.article-layout {
  padding: 0 6%;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 2.5rem;
}

.quick-links {
  margin-bottom: 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    145deg,
    rgba(8, 8, 12, 0.92),
    rgba(4, 4, 6, 0.92)
  );
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
}

.quick-links h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.quick-links a::before {
  content: "→";
  color: var(--accent-red);
}

.article-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-toc, .quick-links {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.article-toc strong, .quick-links h3 {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent-red);
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.article-toc ul, .quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-toc li a, .quick-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-toc li a:hover, .quick-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

.article-toc li a::before {
  content: "—";
  color: var(--accent-red);
  opacity: 0.5;
}

/* --- TECH REPORT BOX (Dekonstruujemy mit) --- */
.tech-report-box {
  background: rgba(255, 0, 0, 0.03);
  border: 1px solid rgba(255, 0, 0, 0.15);
  border-left: 6px solid var(--accent-red);
  padding: 3rem;
  margin: 4rem 0;
  border-radius: 0 32px 32px 0;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 1000px;
}

.tech-report-box::before {
  content: "💡";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 50px;
  height: 50px;
  background: var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

.tech-report-box h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: left;
}

.tech-report-box p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-style: italic;
  font-size: 1.25rem !important;
  line-height: 1.7 !important;
}

/* Light Theme Adjustments */
body.light-theme .article-toc, 
body.light-theme .quick-links {
  background: #fff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 20px 45px rgba(0,0,0,0.05);
}

body.light-theme .article-toc li a,
body.light-theme .quick-links a {
  color: #4a5568;
}

body.light-theme .tech-report-box {
  background: rgba(214, 0, 0, 0.02);
  border-color: rgba(214, 0, 0, 0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.06);
}

body.light-theme .tech-report-box h4 {
  color: #000;
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
}

.article-content p {
  max-width: 820px;
  line-height: 1.85;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

body.light-theme .article-content p {
  color: #2d3748;
}

.article-content h2 {
  font-size: 2.2rem;
  margin: 4.5rem 0 2rem;
  color: #fff;
  text-align: left;
  letter-spacing: -0.01em;
}

body.light-theme .article-content h2 {
  color: #000;
}

/* Nagłówki H3/H4 w treści — wyrównanie do lewej, spójnie z H2 i akapitami.
   Bez tego dziedziczą globalne text-align:center (main.core.css), co dawało
   wyśrodkowane podtytuły nad tekstem do lewej. */
.article-content h3,
.article-content h4 {
  text-align: left;
}

.tech-report-box {
  background: linear-gradient(145deg, rgba(255, 0, 0, 0.12), rgba(20, 20, 20, 0.6));
  border-left: 5px solid var(--accent-red);
  padding: 3rem;
  margin: 3.5rem 0;
  border-radius: 0 32px 32px 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  max-width: 1000px;
}

.tech-report-box p {
  margin-bottom: 0;
  max-width: 100%;
  font-size: 1.2rem;
  font-weight: 500;
}

.logic-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 24px;
  margin: 2.5rem 0;
  max-width: 950px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.logic-card h4 {
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  max-width: 800px;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

body.light-theme .article-content li {
  color: #333;
}

.article-intro-text {
  font-size: 1.3rem !important;
  line-height: 1.7 !important;
  color: #fff !important;
  max-width: 900px !important;
  margin-bottom: 3rem !important;
}

body.light-theme .article-intro-text {
  color: #000 !important;
}

.callout-card,
.checklist-card,
.case-study-card {
  position: relative;
  border-radius: 24px;
  padding: 1.75rem;
  background: linear-gradient(
    145deg,
    rgba(10, 10, 14, 0.92),
    rgba(4, 4, 6, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 35px 65px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.callout-card::before,
.checklist-card::before,
.case-study-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(214, 0, 0, 0.35), transparent 55%);
  opacity: 0.4;
  pointer-events: none;
}

.callout-card > *,
.checklist-card > *,
.case-study-card > * {
  position: relative;
  z-index: 1;
}

body.light-theme .callout-card,
body.light-theme .checklist-card,
body.light-theme .case-study-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(250, 250, 252, 0.92)
  );
  border-color: rgba(214, 0, 0, 0.15);
  box-shadow: 0 30px 60px rgba(214, 0, 0, 0.15);
}

body.light-theme .callout-card::before,
body.light-theme .checklist-card::before,
body.light-theme .case-study-card::before {
  background: linear-gradient(120deg, rgba(214, 0, 0, 0.12), transparent 55%);
  opacity: 1;
}

.callout-card strong {
  font-size: 1.05rem;
}

.scenario-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.scenario-stack article {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.75rem;
  background: linear-gradient(
    145deg,
    rgba(12, 12, 18, 0.9),
    rgba(4, 4, 6, 0.9)
  );
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  position: relative;
}

.scenario-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

body.light-theme .scenario-stack article {
  border-color: rgba(214, 0, 0, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 248, 252, 0.92)
  );
  box-shadow: 0 20px 45px rgba(214, 0, 0, 0.12);
}

body.light-theme .scenario-icon {
  background: rgba(214, 0, 0, 0.12);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

body.light-theme .fact-pill {
  background: rgba(214, 0, 0, 0.12);
}

.two-column-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.two-column-highlights > div {
  border-radius: 24px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    145deg,
    rgba(11, 11, 16, 0.9),
    rgba(6, 6, 9, 0.9)
  );
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.two-column-highlights > div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(110deg, rgba(214, 0, 0, 0.28), transparent 60%);
  opacity: 0.35;
  pointer-events: none;
}

.two-column-highlights > div > * {
  position: relative;
  z-index: 1;
}

body.light-theme .two-column-highlights > div {
  border-color: rgba(214, 0, 0, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 248, 252, 0.92)
  );
  box-shadow: 0 24px 55px rgba(214, 0, 0, 0.12);
}

body.light-theme .two-column-highlights > div::before {
  background: linear-gradient(110deg, rgba(214, 0, 0, 0.12), transparent 60%);
  opacity: 1;
}

.case-study-card h3 {
  margin-bottom: 0.5rem;
}

.article-cta {
  margin: 0 6%;
  margin-top: 3rem;
  border-radius: 32px;
  padding: 3rem;
  border: 1px solid var(--article-border);
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 0.25),
    rgba(0, 0, 0, 0.85)
  );
  text-align: center;
}

body.light-theme .article-cta {
  background: linear-gradient(
    135deg,
    rgba(214, 0, 0, 0.14),
    rgba(255, 255, 255, 0.95)
  );
}

.article-cta h2 {
  margin-bottom: 0.75rem;
}

.article-cta p {
  margin-bottom: 1.5rem;
}

.article-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-cta .cta-button.secondary {
  background: transparent;
  border: 1px solid var(--article-border);
}

.article-meta-footer {
  margin: 3rem 6% 0;
  padding: 2rem;
  border-radius: 24px;
  border: 1px dashed var(--article-border);
  background: rgba(0, 0, 0, 0.4);
}

body.light-theme .article-meta-footer {
  background: rgba(255, 255, 255, 0.9);
}

.article-meta-footer h3 {
  margin-top: 0;
}

.article-meta-footer ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.article-meta-footer li {
  margin-bottom: 0.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.related-grid article {
  border-radius: 16px;
  border: 1px solid transparent;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.related-grid article:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.related-grid h3 {
  margin-top: 0;
}

.related-grid a {
  text-decoration: none;
  color: inherit;
}

.related-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
}

body.light-theme .related-grid article {
  border-color: rgba(0, 0, 0, 0.05);
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

body.light-theme .related-grid article:hover {
  border-color: rgba(214, 0, 0, 0.2);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .related-grid p {
  color: rgba(5, 5, 7, 0.7);
}

.sticky-cta {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-red), #ff3737);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 20px 45px rgba(255, 0, 0, 0.35);
  z-index: 50;
}

.sticky-cta::before {
  content: "☎";
}

body.light-theme .sticky-cta {
  box-shadow: 0 20px 45px rgba(214, 0, 0, 0.25);
}

@media (max-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}

.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid var(--article-border);
  display: none;
  z-index: 1000;
}

body.light-theme .mobile-sticky-cta {
  background: rgba(255, 255, 255, 0.92);
}

.mobile-sticky-cta a {
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  gap: 0.5rem;
}

.mobile-sticky-cta a + a {
  border-left: 1px solid var(--article-border);
}

@media (max-width: 1024px) {
  .article-layout {
    display: block !important;
    padding: 0 5% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-sidebar {
    display: none; /* Ukrywamy TOC na mobile, by nie przeszkadzał */
  }

  .article-content {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .article-hero,
  .article-layout,
  .article-cta,
  .article-meta-footer {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-hero h1 {
    font-size: 2.2rem !important;
    word-wrap: break-word;
  }

  .article-content p, 
  .article-content li,
  .article-intro-text {
    font-size: 1.1rem !important;
    max-width: 100% !important;
  }

  .table-wrapper {
    margin: 2rem -1.2rem !important; /* Wyciągamy tabelę do krawędzi ekranu */
    width: calc(100% + 2.4rem) !important;
    border-radius: 0 !important;
  }
}

.faq-accordion {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.faq-accordion details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(12, 12, 16, 0.92), rgba(5, 5, 8, 0.92));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  align-self: start;
}

.faq-accordion summary {
  cursor: pointer;
  padding: 1.4rem 4rem 1.4rem 1.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
  position: relative;
  list-style: none;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, background 0.2s ease;
}

.faq-accordion summary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.faq-accordion summary::marker,
.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "＋";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent-red);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-accordion details[open] summary {
  color: #fff;
  background: rgba(255, 0, 0, 0.06);
}

.faq-accordion details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-accordion details p {
  padding: 0.25rem 1.75rem 1.5rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

.faq-accordion details p a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.light-theme .faq-accordion details {
  border-color: rgba(214, 0, 0, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 252, 0.95));
  box-shadow: 0 8px 25px rgba(214, 0, 0, 0.08);
}

body.light-theme .faq-accordion summary {
  color: #1a1a1c;
}

body.light-theme .faq-accordion summary:hover {
  background: rgba(214, 0, 0, 0.04);
  color: #000;
}

body.light-theme .faq-accordion details[open] summary {
  color: #000;
  background: rgba(214, 0, 0, 0.05);
}

body.light-theme .faq-accordion details p {
  color: #444;
}

body.light-theme .faq-accordion details p a {
  color: var(--accent-red);
}

/* --- COMPARISON TABLE ENHANCEMENTS --- */
.comparison-table {
  width: 100%;
  max-width: 900px;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--article-border);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  text-align: left;
  color: var(--accent-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--article-border);
}

.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--article-border);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

body.light-theme .comparison-table {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.light-theme .comparison-table th {
  background: #f8f9fa;
  color: var(--accent-red);
}

body.light-theme .comparison-table td {
  color: #2d3748;
}


/* --- MOBILE RESPONSIVENESS --- */
.table-wrapper {
  width: 100%;
  margin: 3rem 0;
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 650px) {
  .comparison-table, .tco-table,
  .comparison-table thead, .tco-table thead,
  .comparison-table tbody, .tco-table tbody,
  .comparison-table th, .tco-table th,
  .comparison-table td, .tco-table td,
  .comparison-table tr, .tco-table tr { 
    display: block; 
    width: 100%;
  }

  .comparison-table thead, .tco-table thead {
    display: none; 
  }

  .comparison-table tr, .tco-table tr {
    margin-bottom: 2rem;
    border: 1px solid var(--article-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
  }

  .comparison-table td, .tco-table td {
    text-align: left;
    padding: 1rem 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--article-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Pierwsza komórka (Parametr) jako nagłówek karty */
  .comparison-table td:first-child, .tco-table td:first-child {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--accent-red);
    position: static; 
  }

  /* Wyświetlanie etykiet z data-label */
  .comparison-table td[data-label]::before, .tco-table td[data-label]::before {
    content: attr(data-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-red);
    font-weight: 800;
    opacity: 0.8;
  }

  .comparison-table td:last-child, .tco-table td:last-child {
    border-bottom: none;
  }
}

@media (max-width: 1024px) {
  .article-layout {
    display: block !important;
    padding: 0 5% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .article-sidebar { display: none; }
  .article-content { width: 100% !important; max-width: 100% !important; }
  .faq-accordion { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .article-hero, .article-layout, .article-cta, .article-meta-footer {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .article-hero h1 { font-size: 2.2rem !important; }
  .article-content p, .article-content li { font-size: 1.1rem !important; }
  .table-wrapper {
    margin: 2rem -1.2rem !important;
    width: calc(100% + 2.4rem) !important;
    border-radius: 0 !important;
  }
}
