/* Artykuły i baza wiedzy: wspólny układ (spis treści, W skrócie, tabele, wykresy, FAQ) */
.art { padding: 28px 0 80px; }
.art .wrap { max-width: 1180px; }
.art-crumbs { font-size: .82rem; color: var(--ink-mute); margin-bottom: 16px; }
.art-crumbs a { color: var(--accent-dk); }
.art-head { max-width: 820px; margin-bottom: 26px; }
.art-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 14px; }
.art-lead { font-size: 1.12rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 14px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--ink-mute); }
.art-meta span::before { content: "•"; margin-right: 8px; color: var(--line); }
.art-meta span:first-child::before { display: none; }

.art-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.art-body { min-width: 0; }
.art-body > section { scroll-margin-top: 90px; margin: 0 0 44px; }
.art-body h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 0 0 12px; }
.art-body h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.art-body p, .art-body li { color: var(--ink-soft); line-height: 1.7; }
.art-body ul, .art-body ol { padding-left: 22px; }
.art-body li { margin-bottom: 6px; }
.art-body a { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 2px; }
.art-body strong { color: var(--ink); }

/* spis treści */
.art-toc { position: relative; }
.art-toc details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.art-toc summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.art-toc summary::after { content: "▾"; color: var(--ink-mute); }
.art-toc details[open] summary::after { content: "▴"; }
.art-toc ol { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: t; }
.art-toc li { counter-increment: t; margin: 0; }
.art-toc ol a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: .9rem; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.art-toc ol a::before { content: counter(t); flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-alt); color: var(--ink-mute); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.art-toc ol a:hover, .art-toc ol a.is-on { background: var(--accent-lt); color: var(--accent-dk); }
.art-toc ol a.is-on::before { background: var(--accent); color: #fff; }
.art-toc__cta { display: none; }

/* W skrócie */
.art-tldr { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 20px 22px; margin-bottom: 32px; }
.art-tldr h2 { font-size: 1.1rem !important; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dk); margin-bottom: 10px !important; }
.art-tldr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.art-tldr li { position: relative; padding-left: 28px; margin: 0; }
.art-tldr li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: #eef7f1; color: var(--green); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

/* liczby */
.art-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0 26px; }
.art-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.art-stats b { display: block; font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.art-stats span { font-size: .8rem; color: var(--ink-mute); line-height: 1.4; display: block; margin-top: 2px; }

/* wykres słupkowy */
.art-bars { display: grid; gap: 8px; margin: 14px 0 6px; }
.art-bar { display: grid; grid-template-columns: 110px 1fr 52px; gap: 10px; align-items: center; font-size: .86rem; }
.art-bar__t { height: 22px; background: var(--bg-alt); border-radius: 6px; overflow: hidden; }
.art-bar__f { height: 100%; background: linear-gradient(90deg, var(--accent), #e09a5a); border-radius: 6px; }
.art-bar b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.art-cap { font-size: .78rem; color: var(--ink-mute); margin: 4px 0 18px; }

/* tabele */
.art-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 12px 0 8px; }
.art-tab { width: 100%; border-collapse: collapse; font-size: .9rem; }
.art-tab th { text-align: left; background: var(--bg-alt); padding: 10px 12px; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); white-space: nowrap; }
.art-tab td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: middle; color: var(--ink-soft); }
.art-tab td:first-child { color: var(--ink); }
.art-tab tbody tr:hover { background: #fdf8f2; }
.art-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.art-more summary { cursor: pointer; display: inline-block; margin: 8px 0; padding: 8px 14px; border-radius: 999px; background: var(--bg-alt); font-weight: 700; font-size: .86rem; color: var(--ink); }
.art-more[open] summary { background: var(--accent-lt); color: var(--accent-dk); }

/* ramki */
.art-note { background: var(--accent-lt); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.art-note p:last-child { margin-bottom: 0; }
.art-note b { color: var(--ink); }
.art-warn { background: #fbf3f1; border: 1px solid #f0d6d0; border-radius: 14px; padding: 14px 18px; margin: 16px 0; }
.art-steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.art-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 0; }
.art-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }

/* FAQ */
.art-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 16px; margin-bottom: 10px; }
.art-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.art-faq summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.art-faq details[open] summary::after { content: "–"; }
.art-faq details p { margin: 0 0 14px; }

/* CTA miękkie */
.art-soft { display: grid; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 26px 0; }
.art-soft h3 { margin: 0 0 4px; }
.art-soft p { margin: 0; }
.art-soft .btn { justify-self: start; }

/* dane do pobrania */
.art-dl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.art-dl a.btn { text-decoration: none; }
.art-src { font-size: .82rem; color: var(--ink-mute); }
.art-src li { color: var(--ink-mute); line-height: 1.5; }

/* szkic płyty */
.art-fig { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 16px 0; }
.art-fig svg { width: 100%; height: auto; display: block; }
.art-fig figcaption { font-size: .8rem; color: var(--ink-mute); margin-top: 8px; }

@media (min-width: 760px) {
  .art-stats { grid-template-columns: repeat(4, 1fr); }
  .art-soft { grid-template-columns: 1fr auto; }
}
@media (min-width: 1040px) {
  .art-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
  .art-toc details { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; }
  .art-toc summary { pointer-events: none; }
  .art-toc summary::after { display: none; }
  .art-toc__cta { display: block; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--accent-lt); font-size: .84rem; color: var(--ink-soft); }
  .art-toc__cta a { color: var(--accent-dk); font-weight: 700; }
}

/* baza wiedzy */
.kb-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 20px 0 40px; }
.kb-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.kb-card__tag { align-self: flex-start; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dk); background: var(--accent-lt); padding: 3px 9px; border-radius: 999px; }
.kb-card h3 { margin: 4px 0 0; font-size: 1.2rem; color: var(--ink); }
.kb-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
.kb-card__more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent-dk); font-size: .9rem; }
.kb-card--soon { opacity: .6; pointer-events: none; }
@media (min-width: 760px) { .kb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .kb-grid { grid-template-columns: repeat(3, 1fr); } }
.art-body a.wym-fit, .art-body a.btn, .art-body a.kb-card, .art-body .rk-card h3 a { text-decoration: none; }
.art-body a.btn--primary { color: #fff; }
@media (max-width: 600px) { .art-fig svg { min-width: 520px; } .art-fig { overflow-x: auto; } .art-tab { font-size: .84rem; } .art-tab th, .art-tab td { padding: 8px 9px; } }

/* Nagłówek z obrazem wyróżniającym */
.art-head--img { max-width: none; display: grid; gap: 22px; }
.art-hero { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.art-hero img { display: block; width: 100%; height: auto; }
@media (min-width: 1040px) { .art-head--img { grid-template-columns: minmax(0, 1fr) 470px; gap: 48px; align-items: center; } }

/* Boczny pasek: spis treści + reklama, razem przyklejone */
.art-promo { display: none; }
@media (min-width: 1040px) {
  .art-toc { align-self: stretch; }
  .art-toc details { position: static; max-height: none; overflow: visible; }
  .art-toc > details, .art-toc > .art-promo { }
  .art-toc { display: block; }
  .art-toc__stick { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 40px); }
  .art-toc__stick details { flex: 0 1 auto; min-height: 0; overflow: auto; }
  .art-promo { flex: none; display: block; border-radius: 18px; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
  .art-promo:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .art-promo img { display: block; width: 100%; height: 130px; object-fit: cover; object-position: 30% 75%; }
  .art-promo__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
  .art-promo__tag { align-self: flex-start; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #f1b37a; }
  .art-promo b { font-size: 1.02rem; line-height: 1.25; color: #fff; }
  .art-promo__txt { font-size: .82rem; line-height: 1.45; color: #c9ccd1; }
  .art-promo__list { display: flex; flex-direction: column; gap: 3px; margin: 2px 0 4px; font-size: .78rem; color: #e7e8ea; }
  .art-promo__list span::before { content: "✓ "; color: #7fcf9d; font-weight: 800; }
  .art-promo__cta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; font-size: .88rem; }
  .art-promo__cta i { font-style: normal; font-weight: 600; font-size: .78rem; opacity: .9; }
  .art-promo:hover .art-promo__cta { background: var(--accent-dk); }
}

/* Karty bazy wiedzy z obrazem */
.kb-card__img { display: block; margin: -22px -22px 8px; border-bottom: 1px solid var(--line); }
.kb-card__img img { display: block; width: 100%; height: auto; }
.kb-card { overflow: hidden; }
/* Spis treści bez wewnętrznego przewijania; przykleja się tylko reklama */
@media (min-width: 1040px) {
  .art-toc__stick { display: contents; }
  .art-toc__stick details { overflow: visible; max-height: none; }
  .art-toc .art-promo { position: sticky; top: 20px; margin-top: 14px; }
}
/* Artykuły o markach: logo marki i zdjęcie własne */
.art-brand { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: .82rem; color: var(--ink-mute); }
.art-brand img { height: 22px; width: auto; }
.art-photo { padding: 0; overflow: hidden; }
.art-photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: 50% 70%; }
.art-photo figcaption { padding: 10px 16px 14px; }
.art-sizes { display: flex; flex-wrap: wrap; gap: 8px; } .art-body .art-sizes a { padding: 8px 16px; border-radius: 999px; background: var(--bg-alt); font-weight: 700; text-decoration: none; color: var(--ink); } .art-body .art-sizes a:hover { background: var(--accent-lt); color: var(--accent-dk); }
/* Reklama w pasku bocznym: przykleja się pod nagłówkiem (68 px), cała widoczna */
@media (min-width: 1040px) {
  .art-toc .art-promo { top: 88px; }
  .art-body > section { scroll-margin-top: 90px; }
}
@media (min-width: 1040px) and (max-height: 760px) { .art-promo img { height: 90px; } }

/* Ramka o skali researchu na końcu artykułu */
.art-research { display: flex; gap: 16px; align-items: flex-start; margin: 40px 0 8px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 16px; box-shadow: var(--shadow); }
.art-research__ico { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-lt); color: var(--accent-dk); }
.art-research__t { display: block; font-size: 1.12rem; color: var(--ink); margin-bottom: 6px; }
.art-research p { margin: 0 0 14px; font-size: .95rem; }
.art-body .art-research__nums { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.art-research__nums li { margin: 0; padding: 8px 14px; background: var(--accent-lt); border-radius: 999px; font-size: .86rem; color: var(--ink-soft); }
.art-research__nums li::before { content: none; }
.art-research__nums b { color: var(--accent-dk); margin-right: 4px; }
@media (max-width: 620px) { .art-research { flex-direction: column; padding: 20px 18px; } }
