/* ============================================================
   BLOG — listing (home/archiwum), karta, strona artykułu.
   Zależy od santier.css (tokeny, .btn-primary) + subpages.css
   (.page-hero, .breadcrumbs, .section, .eyebrow, .section-head).
   ============================================================ */

.eyebrow--light { color: rgba(255,255,255,0.92); }
.eyebrow--light::before { background: var(--accent); }

/* ---------- Listing: hero kompaktowy (jak Kontakt) ---------- */
.page-hero--compact { min-height: 58svh; }
.page-hero--compact .page-hero-inner { padding-top: 168px; padding-bottom: 72px; }
.page-hero--compact .lead { margin-bottom: 0; }
@media (max-width: 720px) {
  .page-hero--compact { min-height: auto; }
  .page-hero--compact .page-hero-inner { padding-top: 124px; padding-bottom: 44px; }
}

/* ---------- Infinite scroll: sentinel + stan ładowania filtra ---------- */
.blog-sentinel { height: 1px; width: 100%; }
.blog-grid.is-loading { opacity: 0.45; transition: opacity 0.2s ease; pointer-events: none; }

/* ---------- Listing: filtr ---------- */
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.blog-filter .chip {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  font-size: 13.5px; font-weight: 600;
  color: var(--gray-700); background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 999px;
  text-decoration: none; transition: all 0.18s ease;
}
.blog-filter .chip:hover { border-color: var(--accent); color: var(--accent); }
.blog-filter .chip.is-active { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

/* ---------- Listing: siatka kart ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.blog-card:hover { box-shadow: 0 18px 40px -24px rgba(10,31,56,0.45); transform: translateY(-3px); }
.blog-card-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-100); }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-cover img { transform: scale(1.05); }
.blog-card-cover-ph { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.blog-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-block; padding: 5px 11px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: #fff; background: var(--accent); text-decoration: none;
}
.blog-card-body { display: flex; flex-direction: column; gap: 9px; padding: 22px 22px 24px; flex: 1; }
.blog-card-title { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.3px; margin: 0; }
.blog-card-title a { color: var(--navy-deep); text-decoration: none; transition: color 0.2s ease; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--gray-700); margin: 0; flex: 1; }
.blog-card-date { font-size: 12.5px; color: var(--gray-500); margin-top: 4px; }
.blog-empty { font-size: 16px; color: var(--gray-700); }

/* ---------- Paginacja ---------- */
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  font-size: 14px; font-weight: 600; color: var(--navy-deep);
  background: var(--white); border: 1px solid var(--gray-200); text-decoration: none;
  transition: all 0.18s ease;
}
.blog-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.blog-pagination .page-numbers.current { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.blog-pagination .page-numbers.dots { border: 0; background: transparent; }

/* ---------- Artykuł: foto-hero ---------- */
.article-hero {
  position: relative; overflow: hidden;
  min-height: 56svh; display: flex; align-items: flex-end;
  background: var(--navy-deep);
}
.article-hero--plain { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); min-height: 42svh; }
.article-hero .page-hero-bg { position: absolute; inset: 0; z-index: 0; }
/* transform:none — bazowy .page-hero-bg img (subpages.css) odbija scaleX(-1);
   na podstronach usługowych to celowe, ale zdjęcie wyróżniające wpisu nie może być lustrzane. */
.article-hero .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: none; }
.article-hero .page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(7,18,38,0.94) 0%, rgba(7,18,38,0.62) 48%, rgba(7,18,38,0.34) 100%);
}
.article-hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 880px; margin: 0 auto;
  padding: 150px 28px 52px;
}
.article-hero .breadcrumbs { margin-bottom: 18px; }
.blog-badge--link { position: static; margin-bottom: 16px; }
.article-title { font-size: clamp(28px, 4vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -0.8px; color: #fff; margin: 0 0 16px; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.78); }
.article-meta-sep { opacity: 0.5; }

/* ---------- Artykuł: treść ---------- */
.article-body { background: var(--white); padding: 56px 0 64px; }
.article-content {
  max-width: 760px; margin: 0 auto; padding: 0 28px;
  font-size: 17px; line-height: 1.78; color: var(--gray-900, #1c2533);
}
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 22px; }
.article-content h2 { font-size: 27px; line-height: 1.25; font-weight: 700; letter-spacing: -0.4px; color: var(--navy-deep); margin: 44px 0 16px; }
.article-content h3 { font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--navy-deep); margin: 34px 0 12px; }
.article-content h4 { font-size: 18px; font-weight: 700; color: var(--navy-deep); margin: 26px 0 10px; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { text-decoration: none; }
.article-content strong { color: var(--navy-deep); font-weight: 700; }
.article-content ul, .article-content ol { margin: 0 0 22px; padding-left: 24px; }
.article-content li { margin-bottom: 9px; }
.article-content ul li::marker { color: var(--accent); }
.article-content img { max-width: 100%; height: auto; display: block; margin: 28px auto; }
.article-content figure { margin: 28px 0; }
.article-content figcaption { font-size: 13px; color: var(--gray-500); text-align: center; margin-top: 8px; }
.article-content blockquote {
  margin: 28px 0; padding: 6px 0 6px 24px;
  border-left: 3px solid var(--accent);
  font-size: 18px; line-height: 1.6; color: var(--navy-deep); font-style: italic;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px; }
.article-content th, .article-content td { border: 1px solid var(--gray-200); padding: 10px 14px; text-align: left; }
.article-content th { background: var(--gray-50); font-weight: 700; color: var(--navy-deep); }
.article-content iframe { max-width: 100%; }

/* ---------- Artykuł: powiązane ---------- */
.article-related .blog-grid { margin-top: 8px; }

/* ---------- Artykuł: pasek CTA ---------- */
.article-cta { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); color: #fff; }
.article-cta-inner {
  max-width: 1100px; margin: 0 auto; padding: 56px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.article-cta h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -0.4px; color: #fff; margin: 8px 0 10px; }
.article-cta p { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,0.75); margin: 0; max-width: 560px; }
.article-cta .btn-primary { flex-shrink: 0; }

/* ---------- Responsywność ---------- */
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-hero-inner { padding: 124px 20px 40px; }
  .article-body { padding: 40px 0 48px; }
  .article-content { font-size: 16.5px; padding: 0 20px; }
  .article-cta-inner { flex-direction: column; align-items: flex-start; padding: 44px 20px; }
}
