/* ==========================================================================
   LEX NOSTRA Review - design system (v1.0)
   "Fakty. Analiza. Strategia."
   ========================================================================== */

:root {
  /* PALETA - think-tank, redakcyjna */
  --c-bg:           #F4ECDE;     /* krem pergaminowy */
  --c-bg-deep:      #E8DFC9;     /* ciemniejszy krem */
  --c-paper:        #FFFAEF;     /* "papier" - kartki artykułów */
  --c-ink:          #0B1733;     /* granat głęboki - tekst */
  --c-ink-soft:     #1A2548;     /* granat jaśniejszy */
  --c-text:         #243049;     /* tekst zwykły */
  --c-text-soft:    #4A5468;
  --c-text-mute:    #7A8194;
  --c-line:         #D8CFB8;     /* linie na kremie */
  --c-line-soft:    #E5DDC8;
  --c-accent:       #8B1A1A;     /* burgund - akcent */
  --c-accent-deep:  #6F1414;     /* ciemniejszy burgund - hover */
  --c-accent-soft:  #B85544;     /* burgund jasny */
  --c-gold:         #B8763E;     /* miedz dla detali */
  --c-dark:         #07112A;     /* hero, manifest */
  --c-dark-deep:    #050B1F;     /* najgłębszy granat */

  /* TYPOGRAFIA */
  --f-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --f-serif:   'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --f-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* SPACING */
  --container:  1280px;
  --container-narrow: 760px;
  --container-wide: 1440px;
  --gutter: clamp(1.25rem, 3vw, 2rem);

  /* MOTION */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET ===== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga', 'calt';
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-deep); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--c-ink); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }

p { margin: 0 0 1rem 0; }

em.accent {
  font-style: italic;
  color: var(--c-accent);
  font-family: var(--f-display);
  font-weight: 400;
}

::selection { background: var(--c-accent); color: var(--c-paper); }

/* ===== KONTENERY ===== */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-paper { background: var(--c-paper); }
.section-dark {
  background: var(--c-dark);
  color: rgba(255, 255, 255, 0.85);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--c-paper);
}

/* ===== ELEMENTY TYPOGRAFICZNE ===== */

.eyebrow {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--c-accent);
  display: inline-block;
}

.eyebrow-light { color: var(--c-accent-soft); }

.lead {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--c-text);
  font-weight: 400;
}

.gold-rule {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--c-accent);
  margin: 1.25rem 0 1.5rem;
}

.section-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  border-bottom: 1px solid var(--c-accent);
  padding-bottom: 0.3rem;
  transition: all 0.25s var(--ease);
}

.arrow-link:hover {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
  gap: 0.75rem;
}

/* ===== PRZYCISKI ===== */

.btn {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.95rem 1.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-align: center;
  line-height: 1;
}

.btn-accent {
  background: var(--c-accent);
  color: var(--c-paper);
}
.btn-accent:hover {
  background: var(--c-accent-deep);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(139, 26, 26, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-ghost:hover { background: var(--c-ink); color: var(--c-paper); }

.btn-ghost-light {
  background: transparent;
  color: var(--c-paper);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost-light:hover { background: var(--c-paper); color: var(--c-ink); }

/* ===== HEADER / NAWIGACJA ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 236, 222, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--c-ink);
}

.brand-mark {
  height: 38px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--c-line);
}

.brand-tag {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-tag .review-suffix {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--c-accent);
  font-weight: 500;
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.85rem;
}

.nav-menu a {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-text);
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
}

.nav-menu a:hover { color: var(--c-ink); }

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--c-ink);
  display: block;
  transition: all 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  padding: 1rem 0;
}

.mobile-menu.open { display: block; }

.mobile-menu ul { list-style: none; padding: 0 var(--gutter); margin: 0; }
.mobile-menu li { border-bottom: 1px solid var(--c-line-soft); }
.mobile-menu a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  color: var(--c-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
}

/* ===== HERO (strona główna) ===== */

.hero {
  position: relative;
  background: var(--c-dark-deep);
  color: var(--c-paper);
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(0.85) brightness(0.55);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg,
      rgba(5, 11, 31, 0.55) 0%,
      rgba(5, 11, 31, 0.30) 45%,
      rgba(5, 11, 31, 0.10) 100%);
}

.hero .container,
.hero .container-wide,
.hero .container-narrow {
  position: relative;
  z-index: 2;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-accent-soft);
  display: inline-block;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(184, 85, 68, 0.4);
}

.hero-title {
  font-family: var(--f-display);
  color: var(--c-paper);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
  margin-top: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.hero-title .review-mark {
  font-style: italic;
  color: var(--c-accent-soft);
  font-weight: 400;
  display: block;
  font-size: 0.95em;
  margin-top: -0.1em;
}

.hero-tagline {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #E89788;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
  margin-top: 2rem;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
  max-width: 58ch;
  margin: 2.5rem 0 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 4rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-meta-5 {
  grid-template-columns: repeat(5, 1fr);
}

.hero-meta-3 {
  grid-template-columns: repeat(3, 1fr);
}

.hero-meta > div {
  padding-right: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-meta > div:last-child { border-right: none; }

.hero-meta dt {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero-meta dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--c-paper);
  line-height: 1.2;
}

.hero-meta dd small {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
  font-weight: 400;
  margin-top: 0.5rem;
  text-transform: none;
}

@media (max-width: 768px) {
  .hero-meta,
  .hero-meta-5,
  .hero-meta-3 { grid-template-columns: 1fr; gap: 1.75rem 0; padding: 2rem 0 0; }
  .hero-meta > div { border-right: none; padding-right: 0; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .hero-meta > div:last-child { border-bottom: none; padding-bottom: 0; }
  .hero-meta dd { font-size: 1.2rem; }
}

/* ===== HERO STORIES (featured artykuły) ===== */

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.featured-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  transition: background 0.3s var(--ease);
}

.featured-item:last-child { border-right: none; }
.featured-item:hover { background: var(--c-bg); }

.featured-item.featured-main {
  background: var(--c-bg-deep);
  padding: 3rem 2.5rem;
}

.featured-kicker {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.featured-title {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.featured-main .featured-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.featured-item:not(.featured-main) .featured-title {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.featured-lede {
  font-family: var(--f-serif);
  font-size: 1rem;
  color: var(--c-text);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

.featured-meta {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-mute);
  font-weight: 500;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.featured-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-item { border-right: none; border-bottom: 1px solid var(--c-line); }
  .featured-item:last-child { border-bottom: none; }
}

/* ===== TRZY FILARY ===== */

.pillars-lnr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}

.pillar-lnr {
  background: var(--c-paper);
  padding: 2.5rem 2rem;
  transition: background 0.3s var(--ease);
  position: relative;
}

.pillar-lnr:hover { background: var(--c-bg); }

.pillar-lnr-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 3rem;
  color: var(--c-accent);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 1rem;
}

.pillar-lnr h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--c-ink);
}

.pillar-lnr p {
  color: var(--c-text);
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .pillars-lnr { grid-template-columns: 1fr; }
}

/* ===== SEKCJA DOSSIER / RAPORT NUMERU ===== */

.dossier {
  background: var(--c-dark);
  color: var(--c-paper);
  position: relative;
  overflow: hidden;
}

.dossier::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/lnr-dossier.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: saturate(0.85);
}

.dossier::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(7, 17, 42, 0.94) 0%, rgba(11, 23, 51, 0.85) 100%);
}

.dossier .container,
.dossier .container-wide,
.dossier .container-narrow {
  position: relative;
  z-index: 2;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.dossier-label {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--c-accent-soft);
  margin-bottom: 1rem;
}

.dossier h2 {
  color: var(--c-paper);
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.dossier .dossier-label,
.dossier .dossier-num,
.dossier-list-content strong {
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.dossier h2 em.accent {
  color: var(--c-accent-soft);
}

.dossier-num {
  font-family: var(--f-display);
  font-size: clamp(6rem, 12vw, 9rem);
  font-weight: 400;
  color: var(--c-accent-soft);
  line-height: 1;
  letter-spacing: -0.02em;
}

.dossier-num small {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.dossier-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.dossier-list li {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dossier-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dossier-num-mini {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--c-accent-soft);
  font-weight: 600;
  min-width: 32px;
  line-height: 1.4;
}

.dossier-list-content strong {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--c-paper);
  display: block;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.dossier-list-content small {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  font-weight: 500;
}

@media (max-width: 900px) {
  .dossier-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== MANIFEST ===== */

.manifest-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--c-ink);
  text-align: center;
  margin: 0;
  position: relative;
  padding: 0 2rem;
}

.manifest-quote::before,
.manifest-quote::after {
  font-family: var(--f-display);
  font-size: 4rem;
  color: var(--c-accent);
  line-height: 0;
  font-style: normal;
  vertical-align: -0.4em;
}

.manifest-quote::before { content: '"'; margin-right: 0.5rem; }
.manifest-quote::after { content: '"'; margin-left: 0.25rem; }

.manifest-attrib {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-text-mute);
  text-align: center;
  margin-top: 2rem;
}

/* ===== ZAŁOŻYCIEL ===== */

.founder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.founder-photo {
  position: relative;
  background: var(--c-dark);
  aspect-ratio: 4/5;
  overflow: hidden;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.founder-info .eyebrow { margin-bottom: 1rem; }

.founder-name {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
}

.founder-role {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--c-text-soft);
  margin-bottom: 1.5rem;
}

.founder-bio {
  font-family: var(--f-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 240px; }
}

/* ===== NEWSLETTER ===== */

.newsletter {
  background: var(--c-bg-deep);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
}

.newsletter-eyebrow {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.newsletter h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0 auto 1rem;
  max-width: 22ch;
}

.newsletter p {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  color: var(--c-text);
  max-width: 50ch;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  color: var(--c-ink);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--c-accent);
}

.newsletter-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--c-text-mute);
}

/* ===== ARTYKUŁ - LAYOUT ===== */

.article-header {
  background: var(--c-dark);
  color: var(--c-paper);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.article-header .article-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.article-header .article-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.85);
}

.article-header .article-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(7, 17, 42, 0.85) 0%, rgba(11, 23, 51, 0.55) 100%);
}

.article-header .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.article-crumbs {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

.article-crumbs a {
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid transparent;
}
.article-crumbs a:hover { border-bottom-color: var(--c-accent-soft); color: var(--c-accent-soft); }

.article-kicker {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-accent-soft);
  margin-bottom: 1rem;
  display: inline-block;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(184, 85, 68, 0.5);
}

.article-title {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 500;
  color: var(--c-paper);
  margin: 1.5rem 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.article-lede {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 68ch;
  margin-bottom: 2rem;
}

.article-byline {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--f-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.article-byline strong {
  color: var(--c-paper);
  font-weight: 600;
}

.article-byline .meta-dot {
  width: 4px;
  height: 4px;
  background: var(--c-accent-soft);
  border-radius: 50%;
}

/* ===== ARTYKUŁ - CIAŁO ===== */

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  font-family: var(--f-serif);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--c-text);
}

.article-body p { margin-bottom: 1.5rem; }

.article-body p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 4.5rem;
  float: left;
  line-height: 0.9;
  padding: 0.45rem 0.85rem 0 0;
  color: var(--c-accent);
  font-weight: 500;
}

.article-body h2 {
  font-family: var(--f-display);
  font-size: 2rem;
  margin: 3rem 0 1.25rem;
  color: var(--c-ink);
  font-weight: 500;
}

.article-body h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--c-ink);
}

.article-body blockquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--c-ink);
  line-height: 1.4;
  border-left: 3px solid var(--c-accent);
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin: 2rem 0;
}

.article-body ul, .article-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-body li { margin-bottom: 0.75rem; }

.article-body a {
  color: var(--c-accent);
  border-bottom: 1px solid var(--c-accent-soft);
  transition: all 0.2s var(--ease);
}
.article-body a:hover {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
}

.article-body strong { color: var(--c-ink); font-weight: 600; }

.article-callout {
  background: var(--c-bg-deep);
  padding: 2rem;
  border-left: 4px solid var(--c-accent);
  margin: 2.5rem 0;
  font-family: var(--f-serif);
  font-size: 1.05rem;
  line-height: 1.65;
}

.article-callout strong {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
}

.article-source {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
  font-family: var(--f-sans);
  font-size: 0.85rem;
  color: var(--c-text-soft);
}

.article-source strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
}

/* ===== ARTYKUŁY POWIĄZANE ===== */

.related-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}

.related-card {
  background: var(--c-paper);
  padding: 2rem;
  transition: background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.related-card:hover { background: var(--c-bg); }

.related-card .featured-kicker { margin-bottom: 0.85rem; }

.related-card h4 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.related-card p {
  font-family: var(--f-serif);
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .related-articles { grid-template-columns: 1fr; }
}

/* ===== STOPKA ===== */

.site-footer {
  background: var(--c-dark-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .brand { margin-bottom: 1.5rem; }
.footer-brand .brand-tag,
.footer-brand .brand-tag .review-suffix { color: var(--c-paper); }
.footer-brand .brand-tag .review-suffix { color: var(--c-accent-soft); }
.footer-brand .brand-divider { background: rgba(255, 255, 255, 0.15); }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  max-width: 40ch;
}

.site-footer h5 {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-paper);
  margin: 0 0 1.25rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.6rem; line-height: 1.5; }
.site-footer a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }
.site-footer a:hover { color: var(--c-accent-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; }
}

/* ===== ANIMACJE ===== */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  /* Fallback: jeśli JS się nie wczyta lub IntersectionObserver nie odpali, treść pokazuje się po 1.5s */
  animation: fade-up-fallback 0.7s var(--ease-out) 1.5s forwards;
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

@keyframes fade-up-fallback {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ============================================ */
/* MOBILE TYPOGRAPHY FIX — 2026-06-10           */
/* Powiększa małe fonty na ekranach <768px      */
/* żeby były czytelne na Androidach z DPR 2-3.5 */
/* ============================================ */

@media (max-width: 768px) {
  /* Baseline body i html — niech będzie 17px zamiast 16px na mobile */
  html, body {
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* H1 hero — minimum 38px na mobile (zamiast clamp 40px+) */
  h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem) !important;
    line-height: 1.15;
  }

  /* H2 sekcje — minimum 28px */
  h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
    line-height: 1.2;
  }

  /* H3 / podsekcje */
  h3 {
    font-size: clamp(1.35rem, 5vw, 1.75rem) !important;
  }

  /* H5 - małe nagłówki (uppercase labels) - minimum 14px */
  h5 {
    font-size: 0.95rem !important;
  }

  /* PARAGRAFY i tekst content — czytelny rozmiar bazowy */
  p, li, blockquote {
    font-size: 1.05rem !important;
    line-height: 1.65;
  }

  /* EYEBROWS / META labels - minimum 13px (było 11.52px) */
  .eyebrow, .meta, .label, .tag,
  [class*="eyebrow"], [class*="-meta"], [class*="-label"],
  .hero-meta, .article-meta, .section-meta {
    font-size: 0.85rem !important;
    letter-spacing: 0.12em;
  }

  /* NAWIGACJA - minimum 15px */
  nav a, .nav a, .menu a, .navigation a,
  header a, .header a {
    font-size: 1rem !important;
  }

  /* PRZYCISKI - minimum 15px */
  button, .btn, a.btn, .cta, [class*="button"] {
    font-size: 1rem !important;
    padding: 0.85rem 1.5rem;
  }

  /* STOPKA - labels typu WYDAWCA, DOMENA, REDAKCJA - minimum 12px */
  footer .label,
  footer .col-title,
  footer h6,
  footer h5 {
    font-size: 0.82rem !important;
    letter-spacing: 0.15em;
  }

  /* Stopka - normalne teksty */
  footer p, footer a, footer li {
    font-size: 0.95rem !important;
  }

  /* KAFELKI / KARTY - tekst we wszystkich kafelkach */
  .card, .tile, .item,
  [class*="card"], [class*="tile"] {
    font-size: 1rem !important;
  }

  /* Specyficzne małe elementy — globalny floor 12px */
  small, .small, .micro,
  [class*="small"], [class*="caption"] {
    font-size: 0.8rem !important; /* min 13.6px */
  }

  /* CYTATY i fakty (jeśli są) */
  blockquote, .quote, .fact {
    font-size: 1.1rem !important;
    line-height: 1.6;
  }
}

/* Bardzo małe ekrany - bonus padding */
@media (max-width: 400px) {
  html, body {
    font-size: 17px;
  }
  
  .hero, .section, section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
