/* SPARX — artykuł blogowy */

.sparx-article-wrap {
  max-width: 50rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.sparx-article-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: Montserrat, sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(0,0,0,.45);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.sparx-article-breadcrumb a { color: rgba(0,0,0,.45); text-decoration: none; transition: color .15s ease; }
.sparx-article-breadcrumb a:hover { color: #f32730; }
.sparx-article-breadcrumb .sep { opacity: .4; }
.sparx-article-breadcrumb .current { color: #f32730; max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sparx-article {
  font-family: "Open Sans", Arial, sans-serif;
  color: #1a1a1a;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.sparx-article__title {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #0c0c0c;
  margin: 0 0 1.25rem;
}

.sparx-article__byline {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: Montserrat, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  margin: 0 0 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(0,0,0,.1);
  flex-wrap: wrap;
}
.sparx-article__byline .dot { width: 4px; height: 4px; border-radius: 50%; background: #f32730; }
.sparx-article__byline .author { color: #0c0c0c; }

.sparx-article__lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #2b2b2b;
  font-weight: 400;
  margin: 0 0 2rem;
}

.sparx-article__heading {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #0c0c0c;
  margin: 3rem 0 1.1rem;
}

.sparx-article__subheading {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  margin: 2.25rem 0 .85rem;
}

.sparx-article__paragraph { margin: 0 0 1.25rem; }

.sparx-article__section,
.sparx-article__subsection { margin-bottom: .5rem; }

.sparx-article__link {
  color: #f32730;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: opacity .15s ease;
}
.sparx-article__link:hover { opacity: .7; }

/* Listy */
.sparx-article__list {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}
.sparx-article__list-item { margin-bottom: .6rem; }
.sparx-article__list-item .sparx-article__paragraph { margin: 0; }
.sparx-article__list li::marker { color: #f32730; }

/* Blok "W skrócie" */
.sparx-article__list--key-points {
  list-style: none;
  padding: 1.75rem 2rem;
  margin: 0 0 1.5rem;
  background: #f7f7f8;
  border: 1px solid rgba(0,0,0,.07);
  border-left: 4px solid #f32730;
  border-radius: .85rem;
}
.sparx-article__list--key-points .sparx-article__list-item {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .9rem;
}
.sparx-article__list--key-points .sparx-article__list-item:last-child { margin-bottom: 0; }
.sparx-article__list--key-points .sparx-article__list-item::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f32730;
}

/* Spis treści */
.sparx-article__section--table-of-contents {
  background: #0c0c0c;
  border-radius: 1rem;
  padding: 1.9rem 2rem;
  margin: 2.5rem 0;
}
.sparx-article__section--table-of-contents .sparx-article__heading {
  margin: 0 0 1.1rem;
  font-size: 1.1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.sparx-article__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: grid;
  gap: .15rem;
}
.sparx-article__toc-item { counter-increment: toc; }
.sparx-article__toc-link {
  display: flex;
  gap: .85rem;
  padding: .6rem .4rem;
  border-radius: .5rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: .95rem;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.sparx-article__toc-link::before {
  content: counter(toc, decimal-leading-zero);
  color: #f32730;
  font-weight: 700;
  flex-shrink: 0;
}
.sparx-article__toc-link:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Tabela */
.sparx-article__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.75rem;
  font-size: .98rem;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: .75rem;
  overflow: hidden;
}
.sparx-article__table-caption {
  caption-side: top;
  text-align: left;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: rgba(0,0,0,.5);
  margin-bottom: .65rem;
}
.sparx-article__table-head { background: #0c0c0c; }
.sparx-article__table-head .sparx-article__table-heading {
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  text-align: left;
  padding: .85rem 1rem;
  font-size: .9rem;
}
.sparx-article__table-cell,
.sparx-article__table-body .sparx-article__table-heading--row {
  padding: .85rem 1rem;
  border-top: 1px solid rgba(0,0,0,.08);
  text-align: left;
  vertical-align: top;
}
.sparx-article__table-body .sparx-article__table-heading--row {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  background: #f7f7f8;
  white-space: nowrap;
}
.sparx-article__table-row:nth-child(even) .sparx-article__table-cell { background: #fafafa; }
.sparx-article__table p { margin: 0; }

/* Wyrób medyczny — nota */
.sparx-article__medical-notice {
  font-size: .85rem;
  color: rgba(0,0,0,.55);
  font-style: italic;
  border-top: 1px solid rgba(0,0,0,.1);
  padding-top: 1rem;
  margin: 1.5rem 0 0;
}

.sparx-article strong { font-weight: 700; color: #0c0c0c; }

/* CTA na końcu artykułu */
.sparx-article-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  background: #0c0c0c;
  border-radius: 1.25rem;
  text-align: center;
}
.sparx-article-cta h2 {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 .75rem;
  letter-spacing: -.01em;
}
.sparx-article-cta p { color: rgba(255,255,255,.7); margin: 0 auto 1.75rem; max-width: 34rem; }
.sparx-article-cta .button-group { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; width: -moz-fit-content; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.sparx-article-cta .button { margin-bottom: 0; }

.sparx-article-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 2.5rem;
  font-family: Montserrat, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #f32730;
  text-decoration: none;
}
.sparx-article-back svg { width: 14px; height: 14px; transform: rotate(180deg); }

@media (max-width: 600px) {
  .sparx-article-wrap { padding: 1.5rem 1.1rem 3rem; }
  .sparx-article__list--key-points { padding: 1.4rem 1.25rem; }
  .sparx-article__section--table-of-contents { padding: 1.5rem 1.25rem; }
  .sparx-article__table { display: block; overflow-x: auto; white-space: nowrap; }
  .sparx-article-cta { padding: 1.75rem 1.25rem; }
}
