/* ==========================================================================
   Przełomy — motyw Ghost
   Struktura pliku:
   1. Tokeny (custom properties)
   2. Reset i podstawy
   3. Typografia
   4. Warstwa pomocnicza (layout, przyciski)
   5. Treść posta (prose + karty kg-*)
   6. Nagłówek / stopka        (Task 2)
   7. Strona główna            (Task 3)
   8. Artykuł                  (Task 4)
   9. Odcinek                  (Task 5)
   10. Listy / archiwa / błędy (Task 6)
   11. Responsywność
   ========================================================================== */

/* 1. TOKENY ================================================================ */
:root {
  --blue: #45AFE3;
  --blue-dark: #10465F;
  --blue-soft: #7FC7EC;
  --magenta: #D00352;
  --magenta-dark: #A80243;
  --orange: #EA430C;
  --ink: #0C0F13;
  --ink-2: #1D2127;
  --pink: #EE6A9E;

  --gray-900: #1D2127;
  --gray-700: #353A42;
  --gray-600: #4E545E;
  --gray-500: #6E7580;
  --gray-400: #989FA9;
  --gray-300: #C9CDD3;
  --border: #E3E6EA;
  --gray-bg: #F1F3F5;
  --white: #FFFFFF;

  /* Fonty: Ghost może nadpisać --gh-font-* z ustawień Brandingu; fallback Poppins. */
  --font-body: var(--gh-font-body, 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif);
  --font-heading: var(--gh-font-heading, 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1312px;
  --wrap-text: 720px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 150ms;
}

/* 2. RESET I PODSTAWY ====================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--magenta);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--magenta-dark); }

input, button, textarea, select { font: inherit; }
input::placeholder { color: var(--gray-500); }

button { cursor: pointer; }

/* 3. TYPOGRAFIA ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 4. WARSTWA POMOCNICZA ==================================================== */
.wrap { max-width: var(--wrap); margin: 0 auto; }

.section { padding: 96px 64px; }
.section--tight { padding: 48px 64px; }

/* Marka w logo/stopce: „Przeło<my>" — akcent na końcówce */
.brand-accent { color: var(--magenta); }

/* Bazowe przyciski (warianty dokładane w sekcjach) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--primary { background: var(--magenta); color: var(--white); }
.btn--primary:hover { background: var(--magenta-dark); color: var(--white); }
.btn--outline { border: 2px solid var(--ink); color: var(--ink); padding: 12px 26px; background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
}
.chip--blue { background: var(--blue); color: var(--ink); }
.chip--orange { background: var(--orange); color: var(--ink); }

/* Dekoracyjna kompozycja geometryczna (fallback okładki) */
.geo { position: relative; overflow: hidden; }
.geo__circle { position: absolute; border-radius: 999px; }
.geo__steps { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; }

/* 5. TREŚĆ POSTA (prose + karty kg-*) ===================================== */
.prose { max-width: var(--wrap-text); margin: 0 auto; }
.prose > * + * { margin-top: 28px; }
.prose p { font-size: 16px; line-height: 1.6; color: var(--gray-900); margin: 0; }
.prose h2 { font-size: 31px; font-weight: 700; line-height: 1.2; margin: 16px 0 0; }
.prose h3 { font-size: 25px; font-weight: 600; line-height: 1.3; margin: 8px 0 0; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; font-size: 16px; line-height: 1.8; color: var(--gray-900); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 0;
  border-left: 4px solid var(--magenta);
  padding: 8px 0 8px 28px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.35;
}
.prose figure { margin: 0; }
.prose figcaption { font-size: 13px; color: var(--gray-600); padding-top: 8px; }

/* Karty edytora Koenig/Lexical (kg-*) — wymagane przez GScan */
.kg-card-begin, .kg-card-end { }
figure.kg-image-card, figure.kg-embed-card, figure.kg-gallery-card,
figure.kg-bookmark-card, figure.kg-audio-card, figure.kg-video-card { margin: 0; }
.kg-image { width: 100%; margin: 0 auto; }
.kg-width-wide { position: relative; width: 85vw; max-width: 1040px; left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; max-width: 100vw; left: 50%; transform: translateX(-50%); }
.kg-width-full img { width: 100%; }

.kg-embed-card { display: flex; flex-direction: column; align-items: center; width: 100%; }
.kg-embed-card iframe { max-width: 100%; }

.kg-gallery-container { display: flex; flex-direction: column; gap: 10px; }
.kg-gallery-row { display: flex; gap: 10px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card { width: 100%; }
.kg-bookmark-container {
  display: flex;
  min-height: 148px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}
.kg-bookmark-content { flex: 1; padding: 20px; display: flex; flex-direction: column; }
.kg-bookmark-title { font-weight: 600; }
.kg-bookmark-description { color: var(--gray-600); font-size: 15px; margin-top: 6px; }
.kg-bookmark-thumbnail { max-width: 33%; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card { display: flex; gap: 12px; padding: 20px 28px; border-radius: 6px; background: var(--gray-bg); }
.kg-callout-card-blue { background: color-mix(in srgb, var(--blue) 22%, white); }
.kg-callout-emoji { font-size: 20px; }

.kg-audio-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px; }

.kg-btn {
  display: inline-flex; align-items: center;
  padding: 12px 28px; font-weight: 600;
  background: var(--magenta); color: var(--white); border-radius: 4px;
}

/* 6. NAGŁÓWEK / STOPKA ===================================================== */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 20px;
}
.skip-link:focus { left: 0; color: var(--white); }

.site-header { background: var(--blue); padding: 0 64px; position: relative; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; height: 88px;
}
.site-brand {
  font-size: 25px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink);
  flex: none;
}
.site-brand:hover { color: var(--ink); }
.site-brand__logo { max-height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav__list { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.site-nav__link:hover { color: var(--magenta-dark); }
.site-nav__link.is-active {
  text-decoration: underline; text-decoration-color: var(--magenta);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.site-nav__badge { font-size: 11px; padding: 2px 8px; }
.site-nav__cta { padding: 12px 24px; font-size: 14px; }

/* Hamburger — ukryty na desktopie */
.site-nav__toggle {
  display: none;
  width: 44px; height: 44px; background: transparent; border: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.site-nav__toggle span { width: 22px; height: 3px; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.site-nav__toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.site-nav__toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-footer { background: var(--ink); border-top: 1px solid var(--ink-2); padding: 64px; }
.site-footer__inner { display: flex; flex-direction: column; gap: 48px; }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__logo { font-size: 25px; font-weight: 800; letter-spacing: -0.015em; color: var(--white); }
.site-footer__tagline { margin: 0; font-size: 14px; line-height: 1.6; color: var(--gray-400); max-width: 280px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__heading { color: var(--gray-500); }
.site-footer__link { font-size: 14px; color: var(--white); }
.site-footer__link:hover { color: var(--pink); }
.site-footer__bar {
  display: flex; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--ink-2); padding-top: 24px;
}
.site-footer__copy { font-size: 13px; color: var(--gray-500); }

/* 7. STRONA GŁÓWNA ======================================================== */
/* Warianty tła sekcji */
.section--gray { background: var(--gray-bg); }
.section--blue { background: var(--blue); }

.stack { display: flex; flex-direction: column; gap: 32px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head__titles { display: flex; flex-direction: column; gap: 8px; }
.section-head__h { font-size: 39px; font-weight: 700; letter-spacing: -0.01em; }
.section-head .btn { flex: none; }

.empty-note { color: var(--gray-600); font-size: 16px; grid-column: 1 / -1; }

/* --- Hero --- */
.hero { background: var(--blue); padding: 48px 64px 96px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero__content { display: flex; flex-direction: column; gap: 24px; }
.hero__content .kicker { color: var(--ink); }
.hero__title { font-size: 61px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.hero__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.hero__platforms .kicker { color: var(--ink); }
.pill { border: 2px solid var(--ink); color: var(--ink); padding: 6px 16px; font-size: 13px; font-weight: 600; border-radius: 999px; }
.pill:hover { background: var(--ink); color: var(--white); }

.hero__visual { position: relative; min-height: 520px; }
.hero__blob { position: absolute; border-radius: 999px; }
.hero__blob--magenta { top: 24px; right: 96px; width: 320px; height: 320px; background: var(--magenta); }
.hero__blob--mic { top: 160px; right: 240px; width: 200px; height: 200px; background: var(--white); display: flex; align-items: center; justify-content: center; }
.hero__steps { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: flex-end; }
.hero__steps i { display: block; height: 56px; background: var(--orange); }
.hero__steps i:nth-child(1) { width: 56px; }
.hero__steps i:nth-child(2) { width: 112px; }
.hero__steps i:nth-child(3) { width: 168px; }

.hero__episode { position: absolute; left: 0; bottom: 0; width: 380px; max-width: 100%; background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 32px rgba(12,15,19,0.16); }
.hero__episode-top { display: flex; align-items: center; gap: 10px; }
.hero__episode-date { font-size: 13px; color: var(--gray-600); }
.hero__episode-title { font-size: 20px; font-weight: 600; line-height: 1.35; }
.hero__episode-play { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; color: var(--magenta); }
.hero__episode-cta { color: var(--magenta); }

.play-dot { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--magenta); border-radius: 999px; flex: none; transition: background var(--dur) var(--ease); }
.play-dot--lg { width: 48px; height: 48px; }
a:hover > .play-dot, .episode-card__play:hover .play-dot, .hero__episode-play:hover .play-dot { background: var(--magenta-dark); }

/* --- Siatka kart --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 32px; }

/* Karta odcinka */
.episode-card { background: var(--white); border: 1px solid var(--border); display: flex; flex-direction: column; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.episode-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 4px 12px rgba(12,15,19,0.12); }
.episode-card__cover { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--blue); }
.episode-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.episode-card__geo-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62%; aspect-ratio: 1 / 1; background: var(--magenta); border-radius: 999px; }
.episode-card__geo-steps { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; }
.episode-card__geo-steps i { display: block; height: 32px; background: var(--orange); }
.episode-card__geo-steps i:nth-child(1) { width: 32px; }
.episode-card__geo-steps i:nth-child(2) { width: 64px; }
/* Rotacja kolorów okładek dekoracyjnych */
.episode-card:nth-child(4n+2) .episode-card__cover { background: var(--magenta); }
.episode-card:nth-child(4n+2) .episode-card__geo-circle { background: var(--white); }
.episode-card:nth-child(4n+3) .episode-card__cover { background: var(--orange); }
.episode-card:nth-child(4n+3) .episode-card__geo-circle { background: var(--blue); }
.episode-card:nth-child(4n+4) .episode-card__cover { background: var(--ink); }
.episode-card:nth-child(4n+4) .episode-card__geo-circle { background: var(--magenta); }
.episode-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.episode-card__meta { font-size: 13px; color: var(--gray-600); }
.episode-card__title { font-size: 20px; font-weight: 600; line-height: 1.35; flex: 1; }
.episode-card__title a { color: var(--ink); }
.episode-card__title a:hover { color: var(--magenta); }
.episode-card__play { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--magenta); }

/* Karta artykułu */
.article-card { border: 1px solid var(--border); display: flex; flex-direction: column; background: var(--white); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.article-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 4px 12px rgba(12,15,19,0.12); }
.article-card__bar { display: block; height: 12px; background: var(--blue); }
.article-card:nth-child(3n+2) .article-card__bar { background: var(--magenta); }
.article-card:nth-child(3n+3) .article-card__bar { background: var(--orange); }
.article-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.article-card__meta { display: flex; align-items: center; gap: 10px; }
.article-card__time { font-size: 13px; color: var(--gray-600); }
.article-card__title { font-size: 20px; font-weight: 600; line-height: 1.35; }
.article-card__title a { color: var(--ink); }
.article-card__title a:hover { color: var(--magenta); }
.article-card__excerpt { margin: 0; font-size: 16px; line-height: 1.6; color: var(--gray-700); flex: 1; }
.article-card__more { font-size: 14px; font-weight: 600; }

/* --- O nas --- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about__portraits { display: flex; gap: 24px; justify-content: center; }
.about__person { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.about__person--offset { margin-top: 48px; }
.about__avatar { position: relative; width: 220px; height: 220px; border-radius: 999px; }
.about__avatar span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 999px; }
.about__avatar i { position: absolute; width: 40px; height: 40px; }
.about__avatar--a { background: var(--blue); }
.about__avatar--a span { background: var(--ink); }
.about__avatar--a i { right: 8px; bottom: 8px; background: var(--magenta); }
.about__avatar--b { background: var(--magenta); }
.about__avatar--b span { background: var(--white); }
.about__avatar--b i { left: 8px; top: 8px; background: var(--orange); }
.about__name { font-size: 16px; font-weight: 600; text-align: center; }
.about__role { font-size: 13px; color: var(--gray-600); text-align: center; }
.about__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.about__h { font-size: 39px; font-weight: 700; letter-spacing: -0.01em; }
.about__text p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--gray-700); }

/* --- Opinie --- */
.testimonials__h { font-size: 39px; font-weight: 700; letter-spacing: -0.01em; text-align: center; }
.quote { margin: 0; background: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.quote__mark { font-size: 49px; font-weight: 800; line-height: 0.6; color: var(--magenta); }
.quote__text { margin: 0; font-size: 16px; line-height: 1.6; flex: 1; }
.quote__author { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray-600); }
.quote__author b { font-size: 14px; color: var(--ink); }
.quote__dot { width: 40px; height: 40px; border-radius: 999px; flex: none; }
.quote__dot--blue { background: var(--blue); }
.quote__dot--magenta { background: var(--magenta); }
.quote__dot--orange { background: var(--orange); }

/* --- Książka --- */
.book { background: var(--ink); overflow: hidden; }
.book__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.book__content { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.book__h { font-size: 49px; font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; color: var(--white); }
.book__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--gray-400); max-width: 520px; }
.book__note { font-size: 13px; color: var(--gray-500); }
.book__visual { position: relative; height: 420px; }
.book__cover-back { position: absolute; top: 40px; right: 40px; width: 260px; height: 360px; background: var(--magenta); box-shadow: 0 12px 32px rgba(12,15,19,0.16); }
.book__cover { position: absolute; top: 64px; right: 64px; width: 260px; height: 360px; background: var(--blue); display: flex; flex-direction: column; justify-content: space-between; padding: 24px; box-sizing: border-box; }
.book__cover-title { font-size: 25px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.book__cover-steps { display: flex; flex-direction: column; align-items: flex-start; }
.book__cover-steps i { display: block; height: 24px; background: var(--orange); }
.book__cover-steps i:nth-child(1) { width: 32px; }
.book__cover-steps i:nth-child(2) { width: 64px; }
.book__cover-steps i:nth-child(3) { width: 96px; }

/* --- Formularz newslettera --- */
.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 520px; width: 100%; }
.newsletter-form__input { flex: 1; min-width: 240px; background: var(--ink-2); border: 1px solid var(--gray-700); color: var(--white); padding: 14px 16px; font-size: 16px; border-radius: 4px; }
.newsletter-form__input:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.newsletter-form__btn { border-radius: 4px; }
.newsletter-form__error { flex-basis: 100%; font-size: 13px; color: var(--orange); }

/* 8. ARTYKUŁ ============================================================== */
.avatar { width: 44px; height: 44px; border-radius: 999px; flex: none; object-fit: cover; }
.avatar--lg { width: 56px; height: 56px; }
.avatar--blue { background: var(--blue); }

.article-header { max-width: 880px; margin: 0 auto; padding: 80px 64px 48px; display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.article-header__meta { display: flex; align-items: center; gap: 12px; }
.article-header__time { font-size: 13px; color: var(--gray-600); }
.article-header__title { font-size: 49px; font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; }
.article-header__lead { margin: 0; font-size: 20px; line-height: 1.5; color: var(--gray-700); max-width: 720px; }
.article-header__author { display: flex; align-items: center; gap: 12px; }
.article-header__byline { text-align: left; }
.article-header__name { font-size: 14px; font-weight: 600; }
.article-header__date { font-size: 13px; color: var(--gray-600); }

.article-hero { padding: 0 64px; }
.article-hero__img { width: 100%; max-height: 520px; object-fit: cover; }
.article-hero__geo { position: relative; height: 400px; background: var(--blue); overflow: hidden; }
.article-hero__steps { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; }
.article-hero__steps i { display: block; height: 64px; background: var(--orange); }
.article-hero__steps i:nth-child(1) { width: 64px; }
.article-hero__steps i:nth-child(2) { width: 128px; }
.article-hero__steps i:nth-child(3) { width: 192px; }
.article-hero__caption { font-size: 13px; color: var(--gray-600); padding: 12px 0; border-bottom: 1px solid var(--border); max-width: 1312px; margin: 0 auto; }

.article-body { padding: 64px; }

.podcast-crosslink { background: var(--ink); padding: 28px 32px; display: flex; align-items: center; gap: 20px; margin: 16px 0; }
.podcast-crosslink__play { flex: none; }
.podcast-crosslink__play .play-dot { width: 56px; height: 56px; }
.podcast-crosslink__text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.podcast-crosslink__title { font-size: 16px; font-weight: 600; color: var(--white); line-height: 1.4; }
.podcast-crosslink__btn { flex: none; border-color: var(--white); color: var(--white); padding: 10px 20px; font-size: 14px; }
.podcast-crosslink__btn:hover { background: var(--white); color: var(--ink); }

.article-author { border-top: 3px solid var(--ink); margin-top: 24px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.article-author__who { display: flex; align-items: center; gap: 16px; }
.article-author__name { font-size: 16px; font-weight: 600; }
.article-author__bio { font-size: 13px; color: var(--gray-600); }
.article-author__share { display: flex; gap: 8px; flex-wrap: wrap; }

/* 9. ODCINEK ============================================================= */
.episode-hero { background: var(--blue); padding: 48px 64px 64px; }
.episode-hero__back { font-size: 14px; font-weight: 600; color: var(--ink); align-self: flex-start; }
.episode-hero__back:hover { color: var(--magenta-dark); }
.episode-hero__grid { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: center; }
.episode-hero__content { display: flex; flex-direction: column; gap: 20px; }
.episode-hero__meta { color: var(--ink); }
.episode-hero__title { font-size: 49px; font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); }
.episode-hero__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 560px; }
.episode-hero__guest { display: flex; align-items: center; gap: 12px; }
.episode-hero__guest-name { font-size: 14px; font-weight: 600; }
.episode-hero__guest-role { font-size: 13px; color: var(--blue-dark); }

.episode-cover { position: relative; width: 360px; max-width: 100%; height: 360px; background: var(--magenta); overflow: hidden; box-shadow: 0 12px 32px rgba(12,15,19,0.16); justify-self: end; }
.episode-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.episode-cover__steps { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; }
.episode-cover__steps i { display: block; height: 40px; background: var(--orange); }
.episode-cover__steps i:nth-child(1) { width: 40px; }
.episode-cover__steps i:nth-child(2) { width: 80px; }

.episode-player { background: var(--ink); padding: 24px 32px; display: flex; align-items: center; gap: 24px; }
.episode-player__play { flex: none; }
.episode-player__label { flex: 1; min-width: 0; font-size: 14px; color: var(--gray-400); }
.episode-player__platforms { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill--dark { border: 1px solid var(--gray-700); color: var(--white); padding: 6px 14px; font-size: 13px; }
.pill--dark:hover { border-color: var(--white); color: var(--white); background: transparent; }

.episode-main { padding-top: 64px; padding-bottom: 96px; }
.episode-main__grid { display: grid; grid-template-columns: 1fr 360px; gap: 96px; align-items: start; }
.episode-main__col { display: flex; flex-direction: column; gap: 48px; max-width: 720px; }
.episode-main .prose { margin: 0; max-width: 720px; }

.episode-guest { background: var(--gray-bg); padding: 32px; display: flex; gap: 24px; align-items: flex-start; }
.episode-guest__avatar { position: relative; width: 96px; height: 96px; flex: none; border-radius: 999px; overflow: hidden; }
.episode-guest__img { width: 100%; height: 100%; object-fit: cover; }
.episode-guest__text { display: flex; flex-direction: column; gap: 8px; }
.episode-guest__name { font-size: 20px; font-weight: 600; }
.episode-guest__text p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--gray-700); }
.episode-guest__link { font-size: 14px; font-weight: 600; }

.episode-sidebar { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 24px; }
.episode-sidebar__newsletter { background: var(--ink); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.episode-sidebar__nl-title { font-size: 20px; font-weight: 600; color: var(--white); line-height: 1.35; }
.episode-sidebar__newsletter .newsletter-form { flex-direction: column; max-width: none; }
.episode-sidebar__newsletter .newsletter-form__input { min-width: 0; }
.episode-sidebar__share { border: 1px solid var(--border); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.episode-sidebar__share-links { display: flex; gap: 8px; flex-wrap: wrap; }

.more-episodes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.episode-mini { background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; gap: 20px; padding: 20px; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.episode-mini:hover { transform: translateY(-4px); border-color: var(--ink); }
.episode-mini__cover { position: relative; width: 88px; height: 88px; background: var(--blue); flex: none; overflow: hidden; }
.episode-mini__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.episode-mini__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.episode-mini__meta { font-size: 13px; color: var(--gray-600); }
.episode-mini__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.episode-mini__title a { color: var(--ink); }
.episode-mini__title a:hover { color: var(--magenta); }

/* 10. LISTY / ARCHIWA / BŁĘDY =========================================== */
.archive__desc { max-width: 720px; font-size: 16px; line-height: 1.6; color: var(--gray-700); }
.archive-author { display: flex; align-items: center; gap: 24px; }
.archive-author__text { display: flex; flex-direction: column; gap: 8px; }
.avatar--xl { width: 80px; height: 80px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); padding-top: 24px; }
.pagination__link { font-size: 14px; font-weight: 600; }
.pagination__link.is-disabled { color: var(--gray-400); pointer-events: none; }
.pagination__pages { font-size: 13px; color: var(--gray-600); }

.error-page { background: var(--gray-bg); }
.error-page__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 48px 0; overflow: hidden; }
.error-page__blob { position: absolute; top: 0; right: 12%; width: 180px; height: 180px; background: var(--blue); border-radius: 999px; z-index: 0; opacity: 0.35; }
.error-page__code { position: relative; z-index: 1; font-size: 120px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--magenta); }
.error-page__title { position: relative; z-index: 1; font-size: 39px; font-weight: 700; letter-spacing: -0.01em; }
.error-page__lead { position: relative; z-index: 1; margin: 0; font-size: 16px; color: var(--gray-600); max-width: 520px; }
.error-page__actions { position: relative; z-index: 1; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* 11. RESPONSYWNOŚĆ ======================================================= */
@media (max-width: 991px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual { min-height: 420px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .book__grid { grid-template-columns: 1fr; gap: 40px; }

  /* Odcinek: sidebar pod treścią, siatki jednokolumnowe */
  .episode-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .episode-cover { justify-self: start; }
  .episode-main__grid { grid-template-columns: 1fr; gap: 48px; }
  .episode-main__col { max-width: none; }
  .episode-sidebar { position: static; }
  .more-episodes__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .section, .section--tight { padding: 48px 20px; }
  .kg-width-wide, .kg-width-full { width: 100%; left: 0; transform: none; }
  .prose h2 { font-size: 26px; }
  .prose blockquote { font-size: 20px; }

  /* Nagłówek mobilny: hamburger + rozwijane menu */
  .site-header { padding: 0 20px; }
  .site-header__inner { height: 64px; }
  .site-nav__toggle { display: flex; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blue); padding: 0 20px;
    max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease), padding var(--dur) var(--ease);
  }
  .site-nav.is-open { max-height: 80vh; padding: 12px 20px 24px; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .site-nav__link { padding: 12px 0; }
  .site-nav__cta { margin-top: 12px; justify-content: center; }

  .site-footer { padding: 48px 20px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bar { flex-direction: column; }

  /* Hero mobilny: bez dekoracji tła, karta odcinka w układzie statycznym */
  .hero { padding: 32px 20px 48px; }
  .hero__title { font-size: 39px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__visual { min-height: 0; }
  .hero__blob, .hero__steps { display: none; }
  .hero__episode { position: static; width: 100%; }

  /* Nagłówki sekcji i siatki w jednej kolumnie */
  .section-head { flex-direction: column; align-items: flex-start; }
  .cards-grid { grid-template-columns: 1fr; }
  .section-head__h, .about__h, .testimonials__h { font-size: 31px; }
  .book__h { font-size: 36px; }

  /* O nas / książka */
  .about__portraits { flex-wrap: wrap; }
  .about__avatar { width: 160px; height: 160px; }
  .about__person--offset { margin-top: 0; }
  .book__visual { height: 320px; }
  .book__cover, .book__cover-back { right: 50%; transform: translateX(50%); }

  /* Artykuł */
  .article-header { padding: 48px 20px 32px; }
  .article-header__title { font-size: 34px; }
  .article-header__lead { font-size: 18px; }
  .article-hero { padding: 0 20px; }
  .article-hero__geo { height: 260px; }
  .article-body { padding: 40px 20px; }
  .podcast-crosslink { flex-direction: column; align-items: flex-start; }
  .article-author { flex-direction: column; align-items: flex-start; }

  /* Odcinek mobilny */
  .episode-hero { padding: 32px 20px 48px; }
  .episode-hero__title { font-size: 34px; }
  .episode-cover { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .episode-player { flex-direction: column; align-items: flex-start; }
  .episode-guest { flex-direction: column; }
}
