:root {
  --article-shell: 1220px;
  --article-copy: 760px;
}

.article-page,
.article-page * {
  box-sizing: border-box;
}

.article-page {
  padding-top: 138px;
}

.article-shell {
  max-width: var(--article-shell);
  margin: 0 auto;
  padding: 0 32px 88px;
}

.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(200, 169, 110, 0.72);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-breadcrumb a {
  color: inherit;
}

.article-breadcrumb span {
  color: rgba(240, 230, 208, 0.32);
}

.article-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 110, 0.14);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17, 17, 17, 0.96), rgba(8, 8, 8, 0.98));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

/* Mini-hero background image */
.article-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.article-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.42) saturate(0.75);
}
.article-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(4,4,10,0.92) 0%, rgba(4,4,10,0.60) 55%, rgba(4,4,10,0.30) 100%),
    linear-gradient(to top, rgba(4,4,10,0.95) 0%, transparent 40%);
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at top right, rgba(200, 169, 110, 0.10), transparent 32%);
  pointer-events: none;
}

.article-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 42px;
}

.article-hero__copy {
  max-width: 720px;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--copper);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.article-title {
  margin: 0 0 18px;
  color: var(--paper);
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.article-title em {
  color: var(--copper);
  font-style: normal;
}

.article-lead {
  margin: 0;
  max-width: 62ch;
  color: rgba(240, 230, 208, 0.72);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.82;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(200, 169, 110, 0.18);
  border-radius: 999px;
  padding: 10px 16px;
  color: rgba(240, 230, 208, 0.74);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.article-summary {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border: 1px solid rgba(200, 169, 110, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.article-summary__label {
  color: var(--copper);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-summary ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(240, 230, 208, 0.7);
  font-family: "Inter", sans-serif;
  line-height: 1.75;
}

.article-summary li + li {
  margin-top: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-copy)) minmax(280px, 1fr);
  gap: 34px;
  margin-top: 34px;
}

.article-main {
  display: grid;
  gap: 24px;
}

.article-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.article-reveal.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .article-reveal { opacity: 1; transform: none; transition: none; }
}

.article-section {
  padding: 28px;
  border: 1px solid rgba(200, 169, 110, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.article-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(200, 169, 110, 0.76);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-section__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.article-section h2 {
  margin: 0 0 14px;
  color: var(--paper);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.article-section p,
.article-section li {
  color: rgba(240, 230, 208, 0.72);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.82;
}

.article-section p + p {
  margin-top: 12px;
}

.article-section ul,
.article-section ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

.article-section li + li {
  margin-top: 10px;
}

.article-note {
  margin-top: 18px;
  border-left: 3px solid rgba(200, 169, 110, 0.42);
  padding: 14px 0 14px 18px;
  color: rgba(240, 230, 208, 0.66);
}

.article-aside {
  display: grid;
  gap: 20px;
  align-content: start;
}

.article-card {
  border: 1px solid rgba(200, 169, 110, 0.12);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.article-card__label {
  margin-bottom: 10px;
  color: var(--copper);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-card p,
.article-card li {
  color: rgba(240, 230, 208, 0.7);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.76;
}

.article-card ul {
  margin: 0;
  padding-left: 18px;
}

.article-card li + li {
  margin-top: 8px;
}

.article-faq {
  display: grid;
  gap: 16px;
}

.article-faq__item {
  border: 1px solid rgba(200, 169, 110, 0.12);
  border-radius: 20px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.article-faq__item h3 {
  margin: 0 0 10px;
  color: var(--paper);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.article-faq__item p {
  margin: 0;
}

.article-cta {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid rgba(200, 169, 110, 0.14);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(15, 15, 15, 0.96), rgba(10, 10, 10, 0.98)),
    radial-gradient(circle at top right, rgba(200, 169, 110, 0.12), transparent 28%);
  transition: border-color .5s ease, box-shadow .5s ease;
}
.article-cta.is-revealed {
  animation: articleCtaGlow 1.8s ease-out .3s 1;
}
@keyframes articleCtaGlow {
  0% { border-color: rgba(200, 169, 110, 0.14); box-shadow: 0 0 0 rgba(200, 169, 110, 0); }
  40% { border-color: rgba(200, 169, 110, 0.5); box-shadow: 0 0 32px rgba(200, 169, 110, 0.12); }
  100% { border-color: rgba(200, 169, 110, 0.14); box-shadow: 0 0 0 rgba(200, 169, 110, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .article-cta.is-revealed { animation: none; }
}

.article-cta__eyebrow {
  margin-bottom: 10px;
  color: rgba(200, 169, 110, 0.78);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-cta__title {
  margin: 0 0 12px;
  color: var(--paper);
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.article-cta__body {
  margin: 0 0 22px;
  max-width: 58ch;
  color: rgba(240, 230, 208, 0.7);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

.article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

body[data-article-theme="import"] .article-hero {
  background: linear-gradient(145deg, rgba(17, 9, 5, 0.70), rgba(8, 8, 8, 0.85));
}
body[data-article-theme="costs"] .article-hero {
  background: linear-gradient(145deg, rgba(8, 18, 26, 0.70), rgba(8, 8, 8, 0.85));
}
body[data-article-theme="transport"] .article-hero {
  background: linear-gradient(145deg, rgba(7, 16, 13, 0.70), rgba(8, 8, 8, 0.85));
}
body[data-article-theme="auctions"] .article-hero {
  background: linear-gradient(145deg, rgba(19, 9, 8, 0.70), rgba(8, 8, 8, 0.85));
}

/* ─── Tabele porównawcze ─────────────────────────────────── */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
}
.article-table th {
  padding: 10px 14px;
  background: rgba(200, 169, 110, 0.10);
  color: var(--copper);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(200, 169, 110, 0.16);
  text-align: left;
}
.article-table td {
  padding: 10px 14px;
  border: 1px solid rgba(200, 169, 110, 0.10);
  color: rgba(240, 230, 208, 0.78);
  line-height: 1.55;
  vertical-align: top;
}
.article-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}
.article-table tr {
  transition: background-color .2s ease;
}
.article-table tr:hover td {
  background: rgba(200, 169, 110, 0.08);
}
.article-table td:first-child {
  color: rgba(240, 230, 208, 0.92);
  font-weight: 600;
}
.article-table td strong {
  color: var(--copper);
}

/* ─── Timeline kroków ───────────────────────────────────── */
.article-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 18px 0 8px;
}
.article-timeline__step {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(200, 169, 110, 0.10);
  align-items: flex-start;
}
.article-timeline__step:last-child { border-bottom: none; }
.article-timeline__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.12);
  border: 1px solid rgba(200, 169, 110, 0.30);
  color: var(--copper);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-timeline__body { flex: 1; }
.article-timeline__label {
  color: rgba(240, 230, 208, 0.92);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}
.article-timeline__time {
  color: var(--copper);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.article-timeline__desc {
  color: rgba(240, 230, 208, 0.62);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 2px;
}

/* ─── Karta dokumentu / wyróżnienia ─────────────────────── */
.article-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(200, 169, 110, 0.06);
  border: 1px solid rgba(200, 169, 110, 0.18);
  margin-top: 14px;
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  color: rgba(240, 230, 208, 0.80);
  line-height: 1.55;
}
.article-highlight__ic {
  flex-shrink: 0;
  color: var(--copper);
  margin-top: 1px;
}

/* ─── .cch-fact — ciekawostka w kartach katalogu ─────────── */
.cch-row {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(240, 230, 208, 0.85);
}
.cch-fact {
  font-size: 11px;
  color: var(--copper, #c8a96e);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(200, 169, 110, 0.20);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .article-table { font-size: 12px; }
  .article-table th,
  .article-table td { padding: 8px 10px; }
}

@media (max-width: 1080px) {
  .article-hero__inner,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-summary {
    order: -1;
  }
}

@media (max-width: 720px) {
  .article-page {
    padding-top: 118px;
  }

  .article-shell {
    padding: 0 18px 72px;
    max-width: 100%;
    overflow-x: clip;
  }

  .article-hero__inner,
  .article-layout,
  .article-main,
  .article-aside,
  .article-section,
  .article-card,
  .article-faq__item,
  .article-cta {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .article-hero__inner,
  .article-section,
  .article-card,
  .article-faq__item,
  .article-cta {
    padding: 22px;
  }

  .article-meta {
    gap: 10px;
  }

  .article-hero {
    border-radius: 18px;
  }

  .article-hero__inner {
    width: 100%;
    max-width: 100%;
    gap: 18px;
  }

  .article-hero__copy,
  .article-title,
  .article-lead {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .article-title {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .article-title em {
    display: inline;
  }

  .article-lead {
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .article-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-meta__item {
    width: 100%;
    justify-content: center;
  }

  .article-cta__actions {
    display: grid;
  }
}


/* Pasek postepu czytania */
.reading-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:1000;pointer-events:none;background:rgba(255,255,255,.05);}
.reading-progress span{display:block;height:100%;transform:scaleX(0);transform-origin:left center;background:linear-gradient(90deg,#ff1230,#ffb000);box-shadow:0 0 10px rgba(255,18,48,.55);will-change:transform;}
