:root {
  --bg-main: #050712;
  --bg-alt: #0d1117;
  --accent-amber: #f5be0b; /*#f3b76a; <- przytłumiony     /* taki sam odcień jak nagłówek  #f59e0b; */
  --accent-amber-dark: #d29045; /* ciemniejsza wersja na hover *//* #d97706; */
  --accent-teal: #0d9488;
  --accent-teal-soft: #14b8a6;
  --accent-violet: #8b5cf6;
  --text-main: #e5e7de;
  --text-muted: #9ca3af;
  --border-soft: #1f2933;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --max-width: 1120px;
}

/* global */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.section {
  padding: 64px 0;
}

.section.alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.8), var(--bg-main));
}

.section-why {
  background: radial-gradient(circle at top, rgba(48, 31, 75, 0.35), #020617); /* było rgba(76, 29, 149, 0.35) */
}

.section h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 28px;
  margin: 0 0 16px;
  /* color: var(--accent-teal-soft); /* ten sam kolor co eyebrow w HERO */
}

.section-lead {
  max-width: 640px;
  margin-top: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
}

/* header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5,7,18,0.96), rgba(5,7,18,0.78));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #fbbf24, var(--accent-amber-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.logo-text {
  font-size: 16px;
}

/* ─── Hamburger toggle (mobile only) ─── */
.nav-toggle {
  display: none;          /* hidden on desktop */
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 22px;
  padding: 4px 10px;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.15s ease;
}
.nav-toggle:hover {
  border-color: var(--accent-teal-soft);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.main-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  background-color: rgba(15, 118, 110, 0.16);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--text-main);
}

/* hero */

.hero {
  padding-top: 72px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 320px;
}

.hero-image {
  flex: 1 1 320px;
  min-width: 280px;
}

.hero-image img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-teal-soft);
  margin: 0 0 8px;
}

.hero h1 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(24px, 3.2vw, 34px); /* trochę mniejszy */
  margin: 0 0 12px;
  color: #5eead4;/*#e5e7de; /* #e9aa63 /* #f2b46b /* #f3b76a; /* delikatniejszy, mniej nasycony pomarańcz */
  /*color: var(--accent-amber);          /* pomarańczowy nagłówek */
}

.hero-docs {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.09em; /* delikatne rozstrzelenie */
  margin: 4px 0 18px;
  color: var(--accent-amber); 
  /*color: #5eead4; /* możesz potem podmienić na bursztyn, jeśli wolisz cieplej */
}

.hero-subtitle {
  color: var(--text-main);
  margin: 0 0 24px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero {
  padding-top: 72px;
}

/* wrapper na banner + tekst */
.hero-banner-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* sam wielki obrazek 3:1 */
.hero-banner-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

/* tekst pod spodem, wyśrodkowany */
.hero-text-centered {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}

/* przyciski na środku, ale tylko w hero */
.hero-text-centered .hero-cta {
  justify-content: center;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

/* lewy przycisk – bursztynowy kontur, ciemne wnętrze, mocny glow */
.btn-primary {
  background: rgba(15, 23, 42, 0.96);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: radial-gradient(circle at 30% 0%, #fbbf24, var(--accent-amber-dark));
  color: #111827;
  box-shadow: 0 22px 55px rgba(245, 158, 11, 0.5);
}

/* prawy przycisk – turkusowy kontur */
.btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.85);
}

.btn-outline:hover {
  border-color: var(--accent-teal-soft);
  background: radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.98));
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.35);
}

/* layout helpers */

.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.two-column.contact-top {
  align-items: flex-start;
}

.section-image,
.section-text {
  flex: 1 1 320px;
}

/* obraz równo z h2 */
.section-image img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-soft);
  margin-top: 4px; /* lekko w dół, żeby linia z h2 wyglądała bardziej równo */
}

.section-text p {
  margin-top: 0;
  margin-bottom: 12px;
}

.section-text h3 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 17px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #e5f4ff;
}

/* dodatkowy obrazek w tekście koncepcji */

.section-image-inline {
  margin: 18px 0;
}

.section-image-inline img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-soft);
}

/* text styles */

.muted {
  color: var(--text-muted);
}

.micro-story {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(88, 28, 135, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #ede9fe;
}

/* pills / lists */

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pill-list li {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0% 0%, rgba(15,118,110,0.25), transparent);
}

.inline-links {
  margin-top: 16px;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(13, 148, 136, 0.18);
  border: 1px solid rgba(45, 212, 191, 0.5);
  font-size: 13px;
}

/* tiles */

.paths {
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), #020617);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.08), rgba(15,23,42,1));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tile img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

#library .tile img {
  object-fit: contain;
  background: rgba(15, 23, 42, 0.6);
}

.tile-body {
  padding: 16px 18px 18px;
}

.tile h3 {
  margin: 0 0 6px;
  font-family: "DM Sans", system-ui, sans-serif;
}

.tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-teal-soft);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
}

/* skeptics */

.skeptics {
  background: radial-gradient(circle at top, rgba(76, 29, 149, 0.45), var(--bg-main));
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.qa {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.88);
}

.qa h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: "DM Sans", system-ui, sans-serif;
}

.ai-voice {
  margin: 0 0 8px;
  color: #e5e7eb;
}

.link-button {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--accent-amber);
  font-size: 13px;
  cursor: pointer;
}

/* === skeptics: nowa wersja (banner + 2 kolumny accordionów) === */

#skeptics .hero-banner-image img {
  /* żeby nie wyglądało jak HERO: bardziej jak contact-banner */
  width: 100%;
  max-height: 320px;      /* jeśli nadal “za duży”: daj 280px */
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

#skeptics .section-lead {
  /* lead ma iść szeroko, nie na 2/3 ekranu */
  max-width: 100%;
  margin: 0 0 8px;
}

#skeptics .eyebrow { /* odległość tekstu lead od "jesteś tutaj - więc... */
  margin: 10px 0 20px;
}

#skeptics .skeptics-cta-top {
  margin: 25px 0 28px;
}

#skeptics .skeptics-cta-top .btn {
  /* przycisk jak w HERO (bursztyn + glow) */
  background: rgba(15, 23, 42, 0.96);
  border-color: var(--accent-amber-dark);
  color: var(--accent-amber-dark);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.35);
}

#skeptics .skeptics-cta-top .btn:hover {
  transform: translateY(-1px);
  background: radial-gradient(circle at 30% 0%, #fbbf24, var(--accent-amber-dark));
  color: #111827;
  box-shadow: 0 22px 55px rgba(245, 158, 11, 0.5);
}

#skeptics .skeptics-accordion-grid {
  /* ZAMIANA flex-wrap na grid = koniec “spadania” drugiej kolumny */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

#skeptics .skeptics-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* nasze elementy są też .faq-item, więc tylko dopieszczamy w #skeptics */
#skeptics .skeptics-item {
  margin-bottom: 0; /* bo gap robi odstępy */
  padding: 12px 14px;
}

#skeptics .skeptics-item summary {
  font-weight: 700;
}

/* podtytuł: inny kolor, ale NIE mniejszy */
#skeptics .skeptics-desc {
  margin-top: 8px;
  margin-bottom: 6px;
  margin: 8px 0 8px;
  font-size: inherit;
  line-height: 1.45;
  color: var(--accent-teal-soft); /*--text-main*/
  /*font-style: italic;*/
  opacity: 0.95;
}

/* pytania: jak zwykły tekst, bez “akapitowych” odstępów */
#skeptics .skeptics-q {
  margin:0; /*0 0 6px;*/
  line-height: 1.55;
  color: var(--text-muted);
}


/* oddech pod blokiem pytań*/
#skeptics .skeptics-accordion-grid {
  margin: 18px 0 30px;
}
/* oddech nad "pytania otwarte" */
#skeptics .open-questions {
  margin-top: 30px;
}


/* etykiety SCEPTYK / AI – wielkie litery */
#skeptics .skeptics-q strong {
  font-weight: 700;
  color: var(--text-main); 
  text-transform: none; /*uppercase;*/
  letter-spacing: 0.0em;
}

/* CTA w środku ma być bursztynowe */
#skeptics .skeptics-cta {
  margin-top: 8px;
}

#skeptics .highlight-link {
  color: var(--accent-amber-dark);
  font-weight: 600;
}

#skeptics .highlight-link:hover {
  text-decoration: underline;
}

/* dolny link – trochę oddechu */
#skeptics .skeptics-cta-bottom {
  margin-top: 14px;
}

/* responsywność – na mobile jedna kolumna */
@media (max-width: 900px) {
  #skeptics .skeptics-accordion-grid {
    grid-template-columns: 1fr;
  }

  #skeptics .hero-banner-image img {
    max-height: 240px;
  }
}


/* library */

.library {
  background: radial-gradient(circle at top, rgba(15, 118, 110, 0.5), var(--bg-main));
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.doc-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}

.doc-media {
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.doc-body {
  flex: 1 1 auto;
}

.doc-body h3 {
  margin: 0 0 8px;
  font-family: "DM Sans", system-ui, sans-serif;
}

.doc-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--accent-teal-soft);
}

.doc-links a {
  color: var(--accent-amber);
  font-size: 14px;
}

/* abstracts */

.abstracts-inner {
  margin-top: 40px;
}

.abstract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.abstract-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

/* about */

.about .author-footer {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.about-block-2 {
  margin-top: 32px;
}

.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(248, 250, 252, 0.85);
}
/* początek wklejki
/* Library — consistent vertical rhythm (local only) */
#library .doc-grid {
  margin-bottom: 28px; /* przerwa: karty -> streszczenia */
}

/* abstracts is nested .section in HTML, so we neutralize section padding here */
#library .abstracts-inner.section {
  padding: 0;
}

#library .abstracts-inner {
  margin-top: 60px;
  scroll-margin-top: 50px;
}

#library .abstracts-inner .abstract-grid {
  margin-top: 16px;
}

/* make abstract cards consistent with main doc cards */
#library .abstract-card {
  box-shadow: var(--shadow-soft);
}

/* extras list */
#library .library-extras {
  margin-top: 40px;    /* przerwa: streszczenia -> inne */
  margin-bottom: 32px; /* przerwa: inne -> kolejna sekcja */
}
/*dopisane*/
#library .library-extras .section-lead {
  margin: 0 0 16px;
}

#library .library-extras h3 {
  margin: 0 0 20px;
}

/* frame ONLY around the list, not the header/lead */
#library .library-extras .extras-list {
  margin: 30px 0 0; /* zmienione 16px 0 0; */
  padding: 18px 18px 18px 44px; /* miejsce na numerki */
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-soft);
}

#library .library-extras .extra-item {
  margin: 0 0 16px;
}

#library .library-extras .extra-item:last-child {
  margin-bottom: 0;
}

#library .library-extras .extra-item h4 {
  margin: 0 0 6px;
}

#library .library-extras .extra-item p {
  margin: 0 0 8px;
}

#library .library-extras .extra-item .muted {
  font-style: italic;
}

#library .library-extras .extra-item .doc-links {
  margin: 6px 0 0;
}

/*koniec wklejki


/* FAQ */

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.94);
  padding: 10px 14px;
  margin-bottom: 10px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
}

.faq-item p {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* contact */

.contact .highlight-link {
  color: var(--accent-amber);
  font-weight: 500;
}

.contact-form {
  margin: 16px 0 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
}

.contact-form-wrapper {
  flex: 1 1 320px;
  margin-top: 0;
}

.contact-banner {
  margin-top: 32px;
}

.contact-banner img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-soft);
}

/* Żeby "Napisz do mnie" wyglądało jak nagłówek sekcji */
.contact-top h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 28px;      /* tak jak .section h2 */
  font-weight: 700;
  margin: 0 0 16px;     /* zabiera górny margines, zostawia dół */
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.form-row label {
  font-size: 13px;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text-main);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-teal-soft);
}

.form-submit {
  margin-top: 4px;
}

/* footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: #020617;
  padding: 18px 0 24px;
}

.footer-inner {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* responsive */

@media (max-width: 900px) {
  .nav-container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .nav-toggle {
    display: block;         /* visible on mobile */
    margin-left: auto;
  }

  .main-nav {
    display: none;          /* collapsed by default */
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
  }
  .main-nav.open {
    display: flex;          /* shown when toggled */
  }

  .main-nav a {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
  }

  .main-nav .nav-lang {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 0;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero {
    padding-top: 88px;
  }

  .doc-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-media {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }

  .section-image img {
    border-radius: 18px;
  }
}

/* === Essays page: sceptycy-ai.html (v2 reading layout) === */

/* Hero / top */
.page-essays .hero-banner-image img{
  width:100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
}

.page-essays .back-link{
  display:inline-block;
  margin-top: 14px;
  color: var(--accent-amber-dark);
  text-decoration: none;
  font-weight: 600;
}
.page-essays .back-link:hover{ text-decoration: underline; }

/* Make the lead not feel "in the air" */
.page-essays .section-lead{
  max-width: 980px;
  margin-top: 14px;
  margin-bottom: 26px;
}

/* TOC as a simple vertical list of clickable frames */
.page-essays .toc-card{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.80);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 8px;
}

.page-essays .toc-list{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-essays .toc-item{
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.94);
  padding: 10px 14px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}
.page-essays .toc-item:hover{
  border-color: rgba(248, 250, 252, 0.65);
}
.page-essays .toc-num{
  color: var(--accent-amber-dark);
  font-weight: 800;
}

/* Article cards: "paper" reading mode to reduce eye strain */
.page-essays .essay{
  margin-top: 26px;
}

.page-essays .essay-card{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 26px 26px 22px; /*18px 18px 16px;*/
  color: rgba(11, 18, 32, 0.95);
}

.page-essays .essay-card a{
  color: var(--accent-amber-dark);
  text-decoration: none;
  font-weight: 700;
}
.page-essays .essay-card a:hover{ text-decoration: underline; }

/* Header layout: image ~1/3, text ~2/3 */
.page-essays .essay-head{
  display: grid;
  grid-template-columns: minmax(220px, 33%) 1fr;
  gap: 30px; /*odstęp tekstu od obrazka w nagłówku*/
  align-items: start;
  margin-bottom: 18px;
}

/* Anchor offset for fixed top menu (so titles aren't hidden under navbar) */
:root{
  --nav-offset: 40px; /* ustaw: wysokość menu + ok. 10–20px oddechu */
}

html{
  scroll-padding-top: var(--nav-offset);
}

/* extra safety for direct anchors on articles / toc */
.page-essays .essay,
.page-essays #toc,
.page-essays #czytaj{
  scroll-margin-top: var(--nav-offset);
}

.page-essays .essay-media img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: var(--shadow-soft);
}


.page-essays .essay-title{
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: rgba(11, 18, 32, 0.98);
}

.page-essays .essay-subtitle{
  /* margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(15, 118, 110, 0.92);*/
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 15px;      
  font-weight: 700;
  /*color: var(--accent-teal-soft); albo jeśli masz inny turkus w hero */
  color: rgba(24, 138, 128, 0.92);
  opacity: 0.95;
  margin-bottom: 25px;
}

.page-essays .essay-questions{
  margin: 0;
  color: rgba(11, 18, 32, 0.78);
  line-height: 1.6;
}
.page-essays .essay-questions strong{
  font-weight: 800;
  color: rgba(11, 18, 32, 0.96);
}

/* Body typography */
.page-essays .essay-body{
  margin-top: 28px;
  line-height: 1.78;
  font-size: 16px;
}
.page-essays .essay-body p{
  margin: 0 0 12px;
}
.page-essays .essay-h4{
  margin: 14px 0 10px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}
.page-essays .essay-body ul,
.page-essays .essay-body ol{
  margin: 0 0 12px;
  padding-left: 2.2em; /* mocniejsze wcięcie - wcześniej - 1.25 */
  list-style-position: outside;  /* punktory NIE chowają się przy krawędzi */
}
.page-essays .essay-body li{
  margin: 0 0 3px;
  margin: 0;
}

/* Summary */
.page-essays .essay-summary{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.15);
}
.page-essays .essay-summary h3{
  margin: 0 0 10px;
  font-size: 18px;
}
.page-essays .essay-summary p{
  margin: 0 0 10px;
}

/* Article nav */
.page-essays .essay-nav{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.page-essays .essay-nav-sep{
  opacity: 0.45;
}

/* Responsive */
@media (max-width: 900px){
  .page-essays .essay-head{
    grid-template-columns: 1fr;
  }
  .page-essays .essay-title{
    font-size: 24px;
  }
}

/* reading section: softer background between dark page and white cards */
.page-essays .reading-zone{
  margin-top: 24px;
  padding: 28px 0;
  background: rgba(30, 41, 59, 0.45);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.page-essays .reading-zone--papers{
  padding-top: 12px;
  margin-top: 0;
}

.page-essays .reading-zone--papers .essay:first-child{
  margin-top: 0 !important;
}

.page-essays .reading-zone--papers .essay-card{
  margin-top: 0; /* na wypadek gdyby karta miała własny odstęp */
}

/* sceptycy-ai: bez borderów w treści (menu i footer zostają) */
.page-essays section{
  border: none !important;
}
.page-essays .toc-card,
.page-essays .essay-card{
  border: none !important;
}
/* sceptycy-ai: jaśniejsza "strefa czytania" (tło między kartami) */
.page-essays{
  --reading-bg: rgba(148, 163, 184, 0.10); /* <-- to kręcisz: 0.06–0.16 */
}

.page-essays .reading-zone,
.page-essays .reading-zone--papers{
  background: var(--reading-bg);
}

/* =========================
   SCEPTYCY-AI: STREFA CZYTANIA (jedno miejsce kontroli)
   ========================= */

/* jaśniejsza mgiełka pod kartkami (działa na ciemnym tle!)*/
.page-essays .reading-zone,
.page-essays .reading-zone--papers{
  background: rgba(255, 255, 255, 0.1) !important; /* kręć: 0.025–0.07*/
}
/*turkusowa mgła
.page-essays .reading-zone,
.page-essays .reading-zone--papers{
  background: linear-gradient(
    180deg,
    rgba(16, 185, 129, 0.07),
    rgba(148, 163, 184, 0.06)
  );
}*/

/* ═══════════════════════════════════════════
   SHARED: Logo icon, nav-lang, nav-active
   ═══════════════════════════════════════════ */

/* Logo: favicon image instead of PI circle */
.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

/* Nav: active page highlight */
.nav-active {
  color: var(--text-main) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  background-color: rgba(15, 118, 110, 0.16) !important;
}

/* Nav: language switcher 
.nav-lang {
  padding: 4px 10px !important;
  font-weight: 700 !important;
  color: var(--accent-amber) !important;
  border: 1px solid var(--accent-amber) !important;
  border-radius: 999px;
  font-size: 12px !important;
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
}
.nav-lang:hover {
  background: var(--accent-amber) !important;
  color: #111827 !important;
}
*/
/* Nav: language switcher - new */
.nav-lang {
  font-size: 13px !important;
  color: var(--accent-amber) !important;
}

/* ═══════════════════════════════════════════
   DOWNLOADS PAGES (downloads-pl / downloads-en)
   ═══════════════════════════════════════════ */

/* Mini hero */
.page-downloads .dlp-hero {
  padding-top: 64px;
  padding-bottom: 24px;
}

.page-downloads .hero-banner-image img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
}
.page-downloads .dlp-hero h1 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 16px 0 12px;
  /* color: #5eead4; */
}
.page-downloads .dlp-hero .section-lead {
  max-width: 780px;
}
.dlp-back {
  display: inline-block;
  color: var(--accent-amber-dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.dlp-back:hover { text-decoration: underline; }

/* Scroll offset under sticky nav */
.page-downloads [id] {
  scroll-margin-top: 70px;
}

/* Section backgrounds — 3 odcienie jak na index */
.dlp-sec-1 {
  background: radial-gradient(circle at top, rgba(48, 31, 75, 0.35), var(--bg-main));
}
.dlp-sec-2 {
  background: radial-gradient(circle at top, rgba(15, 118, 110, 0.30), var(--bg-main));
}
.dlp-sec-3 {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.8), var(--bg-main));
}

/* Metadata line */
.dlp-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

/* License as inline link */
.dlp-license-link {
  color: var(--accent-amber) !important;
  font-weight: 500;
  text-decoration: none;
}
.dlp-license-link:hover {
  text-decoration: underline;
}

/* ─── Download tile (wzór: .tile z "Wybierz ścieżkę") ─── */
.dlp-tile {
  display: flex;
  flex-direction: column;
  max-width: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.08), rgba(15, 23, 42, 1));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dlp-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-teal-soft);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
}

.dlp-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0; /* Asia dodane */
  margin-top: -1px
}

.dlp-tile-label {
  display: block;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  /* border-top: 1px solid rgba(148, 163, 184, 0.2); */
}
.dlp-tile:hover .dlp-tile-label {
  color: var(--text-main);
}

/* ─── Expandable description ─── */
.dlp-expand {
  margin: 14px 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.5);
}
.dlp-expand summary {
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-teal-soft);
  transition: color 0.15s ease;
}
.dlp-expand summary:hover {
  color: var(--text-main);
}
.dlp-expand[open] summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.dlp-expand-body {
  padding: 14px 16px;
}
.dlp-expand-body p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}
.dlp-expand-body strong {
  color: var(--text-main);
}
.dlp-expand-body em {
  color: var(--accent-teal-soft);
}

/* ─── Note (subtelna, bez żółtego) ─── */
.dlp-note {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 14px;
  color: var(--text-muted);
  margin: 10px 0;
}
.dlp-note a {
  color: var(--accent-teal-soft) !important;
  font-weight: 600;
}
.dlp-note a:hover {
  text-decoration: underline;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .dlp-tile {
    max-width: 220px;
  }
}
@media (max-width: 640px) {
  .dlp-tile {
    max-width: 200px;
  }
}
