/* ==========================================================================
   MIĘSNE FAKTY — shared foundation
   Fonts: Barlow (headlines) + Inter (body)
   ========================================================================== */

:root {
  /* --- Color palette (normalized — one value per role, used everywhere) --- */
  --color-green-900: #14241c;   /* breadcrumb strip, footer top border */
  --color-green-800: #1c3329;   /* footer bg, dark stat card, hero panels */
  --color-green-700: #213228;   /* photo-hero overlay panel */
  --color-cream-100: #faf6ea;   /* light section bg (alternating white/cream) */
  --color-cream-200: #f2e6c9;   /* deeper tan — hero panels, newsletter box */
  --color-white: #ffffff;
  --color-off-white: #fbfaf8;
  --color-ink: #1c1c1a;         /* body copy, headings on light bg */
  --color-ink-soft: #4a4a45;    /* secondary text */
  --color-red: #c4283a;         /* CTA buttons, links */
  --color-red-dark: #a41f2f;
  --color-gold: #c99a3e;        /* eyebrow labels, gold accent headline */
  --color-border: #e7e0d0;

  /* --- Type --- */
  --font-display: 'Barlow', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Layout --- */
  --max-width: 1280px;
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

p { margin: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.eyebrow.on-dark { color: #e0b559; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-red {
  background: var(--color-red);
  color: #fff;
}
.btn-red:hover { background: var(--color-red-dark); }

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-ink);
}
.btn-outline.on-dark {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline.on-dark:hover { background: rgba(255,255,255,0.08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-red);
}
.link-arrow svg { transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  position: relative;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 32px;
  max-width: 1360px;
  margin: 0 auto;
}
.header-logo img { height: 44px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.header-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--color-ink);
  padding: 6px 1px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--color-red); }
.header-nav a.active {
  font-weight: 700;
  border-bottom-color: var(--color-red);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.social-icons {
  display: flex;
  gap: 8px;
}
.social-icons a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icons img { width: 34px; height: 34px; }

.header-pma img { height: 34px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Breadcrumb strip ---------- */
.breadcrumb-strip {
  background: var(--color-green-900);
  padding: 13px 0;
}
.breadcrumb-strip .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.breadcrumb-strip a { color: rgba(255,255,255,0.75); }
.breadcrumb-strip a:hover { color: #fff; }
.breadcrumb-strip .current { color: #fff; font-weight: 600; }
.breadcrumb-strip svg { width: 12px; height: 12px; opacity: 0.6; }

/* ==========================================================================
   SHARED BOTTOM MODULES — newsletter + stats, footer
   ========================================================================== */
.cta-band {
  padding: 64px 0;
  background: var(--color-white);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.cta-card {
  background: var(--color-cream-200);
  border-radius: 16px;
  padding: 44px;
}
.cta-card h3 {
  font-size: 30px;
  margin-bottom: 6px;
}
.cta-gold {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--color-gold);
  margin-bottom: 18px;
}
.cta-card p {
  color: var(--color-ink-soft);
  font-size: 15px;
  max-width: 44ch;
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
}
.newsletter-form input:focus { outline: 2px solid var(--color-red); }

.stats-card {
  background: var(--color-green-800);
  border-radius: 16px;
  padding: 44px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stats-card img { height: 46px; width: auto; margin-bottom: 22px; }
.stats-card p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  max-width: 40ch;
  margin-bottom: 26px;
}
.stats-row {
  display: flex;
  gap: 36px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-green-800);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1.4fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-logo img { height: 40px; margin-bottom: 14px; }
.footer-grid p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.65); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0b559;
  margin-bottom: 14px;
}
.footer-col p, .footer-col a { font-size: 14px; color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: #fff; }
.footer-col .footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-col .footer-social a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.footer-col .footer-social img { width: 32px; height: 32px; }
.footer-badges {
  background: #fff;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: fit-content;
}
.footer-badges img:first-child { height: 34px; }
.footer-badges img:last-child { height: 58px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ==========================================================================
   Article / listing card components (reused across Fakty, Nauka, Analiza…)
   ========================================================================== */
.tag-pill {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red);
}

.section-label {
  display: inline-block;
  background: var(--color-green-800);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  margin-bottom: 22px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .wrap { padding: 0 24px; }
  .header-inner { padding: 16px 24px; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .header-nav.is-open { display: flex; }
  .header-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .stats-row { flex-wrap: wrap; row-gap: 16px; }
}
