/* ============================================================
   BLOG / AKTUALNOSCI
   ============================================================ */
.blog-page,
.post-single {
  background:
    linear-gradient(180deg, rgba(246,244,236,0.92) 0, rgba(255,255,255,1) 360px),
    var(--paper);
}

.blog-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  color: white;
  background: var(--black);
}

.blog-hero::before,
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,21,28,0.96) 0%, rgba(20,21,28,0.84) 44%, rgba(20,21,28,0.36) 100%),
    linear-gradient(180deg, rgba(20,21,28,0.18), rgba(20,21,28,0.82));
  z-index: 1;
}

.blog-hero::after,
.post-hero::after {
  content: '';
  position: absolute;
  right: -110px;
  top: -120px;
  width: 380px;
  height: 380px;
  background: var(--yellow);
  opacity: 0.1;
  transform: rotate(45deg);
  z-index: 1;
}

.blog-hero__media {
  position: absolute;
  inset: 0;
  background:
    url('../images/page-headers/header-aktualnosci.jpg') center/cover no-repeat,
    var(--black);
  opacity: 0.9;
  transform: scale(1.02);
}

.blog-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1340px;
  margin: 0 auto;
  padding: 72px 28px 84px;
}

.blog-hero .breadcrumb,
.blog-hero .breadcrumb a,
.post-hero .breadcrumb,
.post-hero .breadcrumb a {
  color: rgba(255,255,255,0.62);
}

.blog-hero .breadcrumb a:hover,
.post-hero .breadcrumb a:hover {
  color: var(--yellow);
}

.blog-hero h1,
.post-hero h1 {
  max-width: 860px;
  font-family: var(--serif);
  font-size: clamp(48px, 6.5vw, 86px);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-hero h1 span,
.post-hero__cat {
  color: var(--yellow);
}

.blog-hero p {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255,255,255,0.76);
  font-size: 17px;
  line-height: 1.7;
}

.blog-hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.blog-hero__stats strong {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 0.85;
  color: var(--yellow);
}

.blog-hero__stats span {
  max-width: 130px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  padding-top: 64px;
  padding-bottom: 96px;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  min-height: 390px;
  margin-bottom: 30px;
  overflow: hidden;
  color: inherit;
  background: var(--black);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(20,21,28,0.16);
}

.blog-featured__image,
.blog-card__image {
  position: relative;
  background:
    linear-gradient(135deg, var(--black-soft), var(--navy-deep));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.blog-featured__image::after,
.blog-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,21,28,0.04) 30%, rgba(20,21,28,0.78) 100%);
}

.blog-featured__image span,
.blog-card__image span {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  padding: 6px 11px;
  background: var(--yellow);
  color: var(--black);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-featured__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  color: white;
}

.blog-date {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-featured h2,
.blog-card h2,
.blog-panel h3 {
  font-family: var(--serif);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: 1px;
}

.blog-featured h2 {
  color: white;
  font-size: clamp(34px, 4vw, 54px);
}

.blog-featured p {
  margin-top: 18px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

.blog-featured strong {
  margin-top: 26px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--black);
  box-shadow: 0 18px 46px rgba(20,21,28,0.12);
}

.blog-card__image {
  aspect-ratio: 16/9;
}

.blog-card__body {
  padding: 24px;
}

.blog-card h2 {
  color: var(--black);
  font-size: 27px;
}

.blog-card p {
  margin-top: 14px;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.65;
}

.blog-sidebar,
.post-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.blog-panel {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.blog-panel--dark {
  color: white;
  background:
    linear-gradient(135deg, rgba(62,64,143,0.94), rgba(20,21,28,0.98)),
    var(--black);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 18px 48px rgba(20,21,28,0.18);
}

.blog-panel h3 {
  margin-bottom: 14px;
  color: inherit;
  font-size: 30px;
}

.blog-panel p {
  margin-bottom: 20px;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.65;
}

.blog-panel--dark p {
  color: rgba(255,255,255,0.7);
}

.topic-archive-layout {
  padding-top: 56px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.topic-archive-layout > aside {
  position: sticky;
  top: 24px;
}

.topic-showcase {
  background: linear-gradient(180deg, var(--bone), #fff);
  border-bottom: 1px solid var(--line);
}

.topic-showcase__inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 34px 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: stretch;
}

.topic-showcase__copy {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 34px;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(115deg, rgba(20,21,28,.98), rgba(20,21,28,.86) 62%, rgba(254,240,19,.92) 62%, rgba(254,240,19,.98)),
    url('/assets/images/wlastal-premium-series/05-kategoria-rabek-stojacy-ral7016.png') right 18px bottom -20px / 360px auto no-repeat;
  color: white;
  box-shadow: 0 18px 44px rgba(20,21,28,.12);
}

.topic-showcase__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.topic-showcase__copy h2 {
  max-width: 720px;
  color: white;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 900;
  line-height: .88;
  text-transform: uppercase;
}

.topic-showcase__copy h2 span {
  color: var(--yellow);
}

.topic-showcase__copy p {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(255,255,255,.9);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.7;
}

.topic-showcase__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.topic-showcase__stats div {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(20,21,28,.07);
}

.topic-showcase__stats strong {
  display: block;
  color: var(--black);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.topic-showcase__stats span {
  display: block;
  margin-top: 8px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.blog-filter {
  margin-bottom: 0;
  background: white;
}

.blog-pagination {
  margin-top: 46px;
}

.blog-pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
}

.blog-pagination a,
.blog-pagination span {
  min-width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.blog-pagination .current,
.blog-pagination a:hover {
  background: var(--black);
  border-color: var(--black);
  color: white;
}

.blog-pagination--rich {
  position: relative;
  margin-top: 52px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(254,240,19,.2), rgba(255,255,255,0) 36%),
    linear-gradient(180deg, #fff, var(--bone));
  box-shadow: 0 18px 44px rgba(20,21,28,.07);
}

.blog-pagination--rich::before {
  content: '';
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--red), var(--navy));
  border-radius: 0 0 4px 4px;
}

.blog-pagination--rich a,
.blog-pagination--rich span {
  min-width: 46px;
  height: 46px;
  border-radius: 6px;
}

.blog-pagination--rich a {
  box-shadow: 0 8px 20px rgba(20,21,28,.05);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.blog-pagination--rich a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20,21,28,.14);
}

.blog-pagination--rich .current {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  box-shadow: 0 12px 28px rgba(254,240,19,.3);
}

.blog-pagination--rich .prev,
.blog-pagination--rich .next {
  gap: 8px;
  padding: 0 18px;
  background: var(--black);
  border-color: var(--black);
  color: white;
}

.blog-pagination--rich .prev:hover,
.blog-pagination--rich .next:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.blog-pagination--rich .dots {
  min-width: 34px;
  border-color: transparent;
  background: transparent;
  color: var(--steel);
}

.blog-pagination--rich .pg-arrow {
  min-width: auto;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
}

.blog-empty {
  padding: 72px 32px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
  background: var(--black);
  background-size: cover;
  background-position: center;
}

.post-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 72px 28px 82px;
}

.post-hero__cat {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  background: var(--yellow);
  color: var(--black);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.post-hero h1 {
  max-width: 940px;
  color: white;
}

.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.post-hero__meta span {
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.76);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 340px;
  justify-content: space-between;
  gap: 58px;
  padding-top: 60px;
  padding-bottom: 96px;
  align-items: start;
}

.post-content {
  min-width: 0;
}

.post-cover {
  margin-bottom: 38px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(20,21,28,0.12);
}

.post-cover img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-body {
  color: #343643;
  font-size: 17px;
  line-height: 1.85;
}

.article-body > * + * {
  margin-top: 20px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--serif);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: var(--black);
}

.article-body h2 {
  margin-top: 46px;
  font-size: clamp(34px, 4vw, 46px);
}

.article-body h3 {
  margin-top: 34px;
  font-size: 30px;
  color: var(--navy);
}

.article-body ul,
.article-body ol {
  margin-left: 22px;
  list-style: revert;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body a {
  color: var(--navy);
  font-weight: 800;
  border-bottom: 2px solid var(--yellow);
}

.article-body blockquote {
  margin: 34px 0;
  padding: 26px 30px;
  border-left: 5px solid var(--yellow);
  background: var(--bone);
  color: var(--black);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.post-tags strong {
  margin-right: 8px;
  color: var(--steel);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.post-tags a {
  padding: 7px 11px;
  background: var(--bone);
  color: var(--ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.post-nav a {
  display: block;
  min-height: 100%;
  padding: 18px;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.post-nav a:hover {
  transform: translateY(-2px);
  border-color: var(--black);
}

.post-nav span {
  display: block;
  margin-bottom: 8px;
  color: var(--steel);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.post-nav strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.post-related {
  padding-bottom: 14px;
}

.post-related a {
  display: block;
  padding: 14px 0;
  color: inherit;
  border-top: 1px solid var(--line);
}

.post-related a span {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-related a strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .blog-layout,
  .post-layout,
  .topic-archive-layout,
  .topic-showcase__inner {
    grid-template-columns: 1fr;
  }

  .blog-sidebar,
  .post-sidebar,
  .topic-archive-layout > aside {
    position: static;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured__image {
    min-height: 310px;
  }
}

@media (max-width: 720px) {
  .blog-hero {
    min-height: 0;
  }

  .blog-hero__inner,
  .post-hero__inner {
    padding-top: 50px;
    padding-bottom: 58px;
  }

  .blog-hero h1,
  .post-hero h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .blog-layout,
  .post-layout,
  .topic-archive-layout {
    padding-top: 42px;
    padding-bottom: 68px;
  }

  .topic-showcase__inner {
    padding-top: 24px;
  }

  .topic-showcase__copy {
    min-height: auto;
    padding: 26px;
    background: var(--black);
  }

  .topic-showcase__stats strong {
    font-size: 28px;
  }

  .blog-grid,
  .post-nav {
    grid-template-columns: 1fr;
  }

  .blog-featured__content,
  .blog-card__body,
  .blog-panel {
    padding: 22px;
  }

  .post-hero {
    min-height: 460px;
  }

  .article-body {
    font-size: 16px;
  }
}
