/* ClimaWell: wspólne style artykułów w /baza-wiedzy/<slug> (META "css": "artykul") */
#cw-hero {
  position: relative;
  width: 100%;
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: linear-gradient(180deg, #05363a 0%, #052a2d 100%);
}
.cw-sub-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(120px, 13vw, 190px) clamp(18px, 5vw, 72px) clamp(50px, 6vw, 90px);
}
.cw-sub-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: clamp(.8rem, .95vw, .88rem);
  color: rgba(196,223,230,0.7);
  margin-bottom: 18px;
}
.cw-sub-crumbs a { color: rgba(196,223,230,0.7); text-decoration: none; transition: color .25s ease; }
.cw-sub-crumbs a:hover { color: #fff; text-decoration: underline; }
.cw-sub-crumbs span[aria-current] { color: #fff; }
.cw-art-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: clamp(.74rem, .85vw, .8rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(196,223,230,0.75);
}
.cw-art-tags .cw-art-cat {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: .1em;
  color: #04262a;
  background: var(--cw-light);
  padding: 5px 11px;
}
.cw-art-tags i { width: 18px; height: 1px; background: rgba(196,223,230,0.4); display: block; }
#cw-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 16px;
  max-width: 22ch;
}
.cw-sub-lead {
  font-size: clamp(.96rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: rgba(196,223,230,0.82);
  margin: 0;
  max-width: 62ch;
}

/* ===== treść ===== */
.cw-art {
  position: relative;
  background: #fff;
  padding: clamp(40px, 5vw, 72px) clamp(18px, 5vw, 72px) clamp(56px, 6.5vw, 100px);
  font-family: 'Lato', sans-serif;
  color: var(--cw-ink);
}
.cw-art *, .cw-art *::before, .cw-art *::after { box-sizing: border-box; }
.cw-art-wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 340px);
  justify-content: space-between;
  gap: clamp(32px, 5vw, 90px);
  align-items: start;
}
.cw-art-body { min-width: 0; }
.cw-art-fig { margin: 0 0 clamp(28px, 3.4vw, 44px); }
.cw-art-fig img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.cw-art-fig figcaption { font-size: clamp(.82rem, .95vw, .88rem); color: var(--cw-muted); margin-top: 10px; }
.cw-art-body p, .cw-art-body li {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.75;
  color: #22393b;
}
.cw-art-body p { margin: 0 0 1.25em; }
.cw-art-body > p:first-of-type { font-size: clamp(1.05rem, 1.25vw, 1.18rem); }
.cw-art-body h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--cw-ink);
  margin: clamp(38px, 4.4vw, 56px) 0 16px;
  scroll-margin-top: 90px;
}
.cw-art-body h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.25;
  color: var(--cw-dark);
  margin: clamp(26px, 3vw, 36px) 0 10px;
}
.cw-art-body a { color: var(--cw-dark); text-decoration: underline; text-decoration-color: rgba(5,87,91,0.4); text-underline-offset: 3px; transition: text-decoration-color .25s ease, color .25s ease; }
.cw-art-body a:hover { color: var(--cw-blue); text-decoration-color: currentColor; }
.cw-art-body ul, .cw-art-body ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.cw-art-body li { margin-bottom: .45em; }
.cw-art-body li::marker { color: var(--cw-teal); }
.cw-art-body strong { color: var(--cw-ink); }
.cw-art-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; }
.cw-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: clamp(.88rem, 1.02vw, .96rem); }
.cw-table th, .cw-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid rgba(5,87,91,0.14); line-height: 1.6; }
.cw-table th {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cw-dark);
  background: #eef2f3; border-bottom: 1px solid rgba(5,87,91,0.2);
}
.cw-table td { color: #22393b; }
.cw-art-note { font-size: clamp(.84rem, .95vw, .9rem) !important; color: var(--cw-muted) !important; }
.cw-art-tip {
  margin: clamp(22px, 2.6vw, 32px) 0;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.4vw, 28px);
  background: #eef2f3;
  border-left: 3px solid var(--cw-blue);
}
.cw-art-tip p { margin: 0; font-size: clamp(.94rem, 1.05vw, 1rem); }
.cw-art-tip p + p { margin-top: .8em; }
.cw-art-tip strong { font-family: 'Poppins', sans-serif; color: var(--cw-dark); }

/* FAQ w artykule: markup i JS wspólne z resztą strony (.cw-faq-item w global.css) */
.cw-art-faq { margin-top: clamp(38px, 4.4vw, 56px); }
.cw-art-faq .cw-faq-q {
  grid-template-columns: minmax(0, 1fr) 40px; gap: 16px; padding: 18px 0;
}
.cw-art-faq .cw-faq-q h3 { margin: 0; color: var(--cw-ink); font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.3; }
.cw-art-faq .cw-faq-item.cw-open .cw-faq-q h3 { color: var(--cw-dark); }
.cw-art-faq .cw-faq-ic { width: 38px; height: 38px; }
.cw-art-faq .cw-faq-a-in { padding: 0 56px 20px 0; max-width: 100ch; }
.cw-art-faq .cw-faq-a-in p { margin: 0 0 1em; font-size: clamp(.94rem, 1.05vw, 1rem); color: var(--cw-muted); }
.cw-art-faq .cw-faq-a-in p:last-child { margin-bottom: 0; }

/* pasek CTA na końcu artykułu */
.cw-art-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  margin-top: clamp(38px, 4.4vw, 56px);
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 2.6vw, 36px);
  padding-top: calc(34px + clamp(22px, 2.6vw, 34px));
  background: linear-gradient(180deg, #05363a 0%, #052a2d 100%);
  clip-path: polygon(0 34px, 38% 34px, 46% 0, 100% 0, 100% 100%, 0 100%);
}
.cw-art-bar h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.cw-art-bar p { color: rgba(196,223,230,0.82); margin: 0; max-width: 56ch; font-size: clamp(.88rem, 1vw, .96rem); }
.cw-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(.84rem, 1vw, .93rem);
  padding: 14px 28px; border-radius: 100px; text-decoration: none; white-space: nowrap;
  transition: background .28s ease, color .28s ease, border-color .28s ease, transform .25s ease;
}
.cw-btn svg { width: 16px; height: 16px; transition: transform .3s ease; }
.cw-btn-main { background: var(--cw-light); color: #04262a; border: 1.5px solid var(--cw-light); }
.cw-btn-main:hover { background: #fff; border-color: #fff; transform: translateY(-2px); }
.cw-btn-main:hover svg { transform: translateX(4px); }
.cw-btn-dark { background: var(--cw-dark); color: #fff; border: 1.5px solid var(--cw-dark); }
.cw-btn-dark:hover { background: #04464a; transform: translateY(-2px); }
.cw-btn-dark:hover svg { transform: translateX(4px); }

/* ===== kolumna boczna ===== */
.cw-art-aside { position: sticky; top: 92px; display: grid; gap: clamp(18px, 2vw, 26px); }
.cw-art-toc {
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(5,87,91,0.16);
}
.cw-art-toc h2 {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cw-dark); margin: 0 0 12px;
}
.cw-art-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.cw-art-toc li { counter-increment: toc; }
.cw-art-toc li + li { margin-top: 8px; }
.cw-art-toc a {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px;
  font-size: clamp(.88rem, 1vw, .94rem); line-height: 1.4;
  color: #22393b; text-decoration: none; transition: color .25s ease;
}
.cw-art-toc a::before { content: counter(toc, decimal-leading-zero); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .78rem; color: var(--cw-teal); padding-top: 2px; }
.cw-art-toc a:hover { color: var(--cw-dark); text-decoration: underline; }
.cw-art-card {
  padding: clamp(20px, 2.4vw, 28px);
  background: linear-gradient(180deg, #05363a 0%, #052a2d 100%);
  color: #fff;
}
.cw-art-card .cw-art-card-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cw-light); opacity: .85; margin-bottom: 10px;
}
.cw-art-card .cw-art-card-eyebrow i { width: 8px; height: 8px; background: var(--cw-blue); display: block; }
.cw-art-card h2 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.25; color: #fff; margin: 0 0 8px; }
.cw-art-card p { font-size: clamp(.88rem, 1vw, .94rem); line-height: 1.6; color: rgba(196,223,230,0.82); margin: 0 0 16px; }
.cw-art-card .cw-btn { width: 100%; justify-content: center; }
.cw-art-card .cw-art-tel {
  display: block; margin-top: 14px; text-align: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: #fff; text-decoration: none;
}
.cw-art-card .cw-art-tel small { display: block; font-family: 'Lato', sans-serif; font-weight: 400; font-size: .78rem; color: rgba(196,223,230,0.7); margin-top: 2px; }
.cw-art-rating {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(196,223,230,0.18);
  font-size: .84rem; color: rgba(196,223,230,0.85); text-decoration: none;
}
.cw-art-rating strong { color: #fff; font-family: 'Poppins', sans-serif; }
.cw-art-rating svg { width: 14px; height: 14px; color: #f5b301; }
.cw-art-rating:hover { color: #fff; }

/* ===== powiązane wpisy ===== */
.cw-art-rel { background: #eef2f3; padding: clamp(44px, 5.5vw, 84px) clamp(18px, 5vw, 72px); font-family: 'Lato', sans-serif; }
.cw-art-rel-wrap { max-width: 1400px; margin: 0 auto; }
.cw-art-rel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 40px); }
.cw-art-rel-head h2 { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(1.4rem, 2.3vw, 1.9rem); letter-spacing: -0.02em; color: var(--cw-ink); margin: 0; }
.cw-art-rel-all { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(.84rem, 1vw, .92rem); color: var(--cw-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.cw-art-rel-all svg { width: 16px; height: 16px; transition: transform .3s ease; }
.cw-art-rel-all:hover svg { transform: translateX(4px); }
.cw-art-rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 38px); }
.cw-art-rel-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(16px, 2vw, 26px); align-items: center; text-decoration: none; color: inherit; background: #fff; padding: 16px; }
.cw-art-rel-card .cw-art-rel-thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.cw-art-rel-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.cw-art-rel-card:hover img { transform: scale(1.05); }
.cw-art-rel-card span { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--cw-dark); margin-bottom: 6px; }
.cw-art-rel-card h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.3; color: var(--cw-ink); margin: 0; transition: color .25s ease; }
.cw-art-rel-card:hover h3 { color: var(--cw-dark); }

@media (max-width: 1000px) {
  .cw-art-wrap { grid-template-columns: 1fr; }
  .cw-art-aside { position: static; grid-template-columns: 1fr; }
  .cw-art-toc { display: none; }
  .cw-art-rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  #cw-hero h1 { max-width: 100%; }
  .cw-art-faq .cw-faq-a-in { padding-right: 0; }
  .cw-art-faq .cw-faq-q { grid-template-columns: minmax(0, 1fr) 34px; gap: 12px; }
  .cw-art-bar { grid-template-columns: 1fr; clip-path: polygon(0 24px, 46% 24px, 54% 0, 100% 0, 100% 100%, 0 100%); padding-top: calc(24px + 22px); }
  .cw-art-bar .cw-btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .cw-art-rel-card { grid-template-columns: 110px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .cw-art *, .cw-art-rel * { transition: none !important; }
  .cw-art-rel-card:hover img { transform: none; }
}
