/* ===========================================================
   Jedziemy to Sprawdzić — style.css
   =========================================================== */

:root {
  --navy:       #061426;
  --navy-2:     #0a1f38;
  --teal:       #006d89;
  --teal-dark:  #005f7f;
  --cream:      #f7efe2;
  --cream-2:    #fff8ee;
  --rust:       #d65a1f;
  --rust-dark:  #b9481425;
  --ink:        #082033;
  --ink-soft:   #3a4d5e;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 6px 18px rgba(6, 20, 38, .08);
  --shadow-md: 0 14px 34px rgba(6, 20, 38, .14);
  --shadow-lg: 0 24px 60px rgba(6, 20, 38, .22);

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-head: "Poppins", var(--font-body);
  --font-script: "Parisienne", "Segoe Script", cursive;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: clip;
}

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--rust); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-yt {
  background: var(--rust); color: #fff;
  box-shadow: 0 8px 20px rgba(214, 90, 31, .35);
}
.btn-yt:hover { background: #e06425; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(214, 90, 31, .42); }

.btn-ghost {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.yt-icon { width: 24px; height: 17px; flex: none; }
.play-mini { width: 22px; height: 22px; flex: none; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.35); }

.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: var(--navy);
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.brand-name {
  color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: 1.02rem; line-height: 1.12; letter-spacing: .2px;
}

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-link {
  display: inline-block; color: rgba(255,255,255,.82);
  font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px;
  position: relative; transition: color .15s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--rust); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav-link:hover { color: #fff; }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after { transform: scaleX(1); }

.header-yt { margin-left: 6px; flex: none; padding: 11px 20px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 42px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.08); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/banner-jts.png") center/cover no-repeat;
  background-position: 20% center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(6,20,38,.10) 0%,
      rgba(6,20,38,.30) 34%,
      rgba(6,20,38,.78) 56%,
      rgba(6,20,38,.92) 100%),
    linear-gradient(0deg, rgba(6,20,38,.55) 0%, rgba(6,20,38,0) 36%);
}
.hero-inner {
  display: flex; justify-content: flex-end;
  min-height: clamp(440px, 62vh, 640px);
  padding-block: 60px;
}
.hero-content {
  max-width: 540px; color: #fff; text-align: left;
}
.hero-eyebrow {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: .3px; margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.hero-eyebrow span { color: var(--rust); padding: 0 4px; }
.hero-title {
  font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -.5px; margin: 0 0 16px; text-shadow: 0 3px 22px rgba(0,0,0,.55);
}
.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.92);
  margin: 0 0 30px; max-width: 460px; text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===========================================================
   SECTIONS — shared
   =========================================================== */
.section { padding-block: clamp(56px, 7vw, 96px); }

.section-title {
  font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  color: var(--ink); position: relative; display: inline-block;
  padding-bottom: 12px; margin-bottom: 34px;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; border-radius: 3px; background: var(--rust);
}
.section-title.light { color: #fff; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 30px;
}
.section-head .section-title { margin-bottom: 0; }
.head-link {
  font-family: var(--font-head); font-weight: 600; color: var(--rust);
  font-size: .98rem; transition: opacity .15s ease, transform .15s ease;
}
.head-link:hover { opacity: .8; transform: translateX(2px); }

/* ---------- Cards: Co sprawdzamy ---------- */
.cards-section { background: var(--cream); }
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.topic-card {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.topic-card img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ---------- Episodes ---------- */
.episodes-section { background: var(--cream-2); }
.episodes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.episode {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.episode:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.episode-thumb {
  position: relative; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
}
.thumb-a { background: linear-gradient(135deg, #0b3d4f 0%, var(--teal) 60%, #0d2b44 100%); }
.thumb-b { background: linear-gradient(135deg, #7a2f12 0%, var(--rust) 55%, #3a1407 100%); }
.thumb-c { background: linear-gradient(135deg, #0a1f38 0%, var(--teal-dark) 55%, #06304a 100%); }
.episode-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.14), transparent 55%);
}
.soon-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(6,20,38,.62); color: #fff; backdrop-filter: blur(3px);
  font-family: var(--font-head); font-weight: 600; font-size: .72rem;
  letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.play-btn {
  position: relative; z-index: 2;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .2s ease;
}
.play-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.episode:hover .play-btn { transform: scale(1.08); }
.episode-body { padding: 18px 18px 22px; }
.episode-title {
  font-size: 1.06rem; font-weight: 600; color: var(--ink); margin: 0 0 6px; line-height: 1.3;
}
.episode-meta { margin: 0; color: var(--rust); font-weight: 600; font-size: .9rem; }

.center-cta { text-align: center; margin-top: 44px; }

/* ---------- Rating ---------- */
.rating-section { background: var(--cream); }
.rating-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.rating-item {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.rating-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rating-icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,109,137,.10); color: var(--teal); margin-bottom: 16px;
}
.rating-icon svg { width: 30px; height: 30px; }
.rating-item h3 { font-size: 1.16rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.rating-item p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- O nas ---------- */
.about-section { background: var(--cream-2); }
.about-inner {
  display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: center;
}
.about-logo img {
  width: 100%; max-width: 280px; border-radius: 50%; margin-inline: auto;
  box-shadow: var(--shadow-md); border: 6px solid #fff;
}
.about-text .section-title { margin-bottom: 22px; }
.about-text p { margin: 0 0 14px; color: var(--ink-soft); font-size: 1.05rem; }
.about-hi { font-weight: 700; color: var(--ink) !important; font-size: 1.18rem !important; }
.about-strong {
  font-weight: 700; color: var(--ink) !important; font-size: 1.12rem !important;
  border-left: 4px solid var(--rust); padding-left: 16px; margin-block: 20px 18px;
}
.about-sign {
  font-family: var(--font-script); font-weight: 400; color: var(--rust) !important;
  font-size: 2.35rem !important; line-height: 1.1; margin-top: 14px;
}
.about-sign .sign-heart { font-size: .7em; margin-left: 4px; vertical-align: 2px; }

/* ---------- Kontakt ---------- */
.contact-section { background: var(--navy); }
.contact-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.contact-inner .section-title { display: block; margin-inline: auto; margin-bottom: 22px; }
.contact-inner .section-title::after { left: 50%; transform: translateX(-50%); }
.contact-lead { color: rgba(255,255,255,.86); font-size: 1.12rem; margin: 0 0 26px; }
.contact-email {
  display: inline-block; max-width: 100%; overflow-wrap: anywhere;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem); color: #fff;
  padding: 12px 4px; border-bottom: 3px solid var(--rust); transition: color .15s ease;
}
.contact-email:hover { color: var(--rust); }

.socials {
  display: flex; justify-content: center; gap: 16px;
  list-style: none; padding: 0; margin: 40px 0 0;
}
.socials a {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.10); color: #fff;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.socials a:hover { background: var(--rust); transform: translateY(-3px); }
.socials svg { width: 24px; height: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #04101f; color: rgba(255,255,255,.78); padding-top: 46px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); }
.footer-name { font-family: var(--font-head); font-weight: 700; color: #fff; margin: 0; }
.footer-domain { margin: 2px 0 0; color: var(--rust); font-weight: 500; font-size: .92rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: .95rem; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-block: 22px 28px; }
.footer-bottom p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.55); }

/* ===========================================================
   PODSTRONA PRAWNA (Polityka prywatności)
   =========================================================== */
.legal-hero {
  background: var(--navy);
  padding-block: clamp(48px, 7vw, 84px) clamp(36px, 5vw, 60px);
  text-align: center;
}
.legal-hero h1 {
  color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 10px;
}
.legal-hero p { color: rgba(255,255,255,.7); margin: 0; font-size: .98rem; }

.legal-section { background: var(--cream-2); padding-block: clamp(44px, 6vw, 76px); }
.legal-content { max-width: 820px; margin-inline: auto; }
.legal-content h2 {
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 36px 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid rgba(0,109,137,.18);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--ink-soft); margin: 0 0 14px; font-size: 1.02rem; }
.legal-content ul { color: var(--ink-soft); margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--rust); font-weight: 600; }
.legal-content a:hover { text-decoration: underline; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 36px; font-family: var(--font-head); font-weight: 600; color: var(--teal);
}
.legal-back:hover { color: var(--rust); }
.legal-updated {
  display: inline-block; background: rgba(0,109,137,.10); color: var(--teal-dark);
  font-weight: 600; font-size: .88rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; z-index: 90;
    background: var(--navy); margin: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .main-nav.open { max-height: 70vh; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav-link { padding: 14px 22px; border-radius: 0; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-link.is-active { background: rgba(255,255,255,.06); }

  .header-yt { display: none; }
  .nav-toggle { display: flex; }
  .brand { margin-right: auto; }

  .hero-inner { justify-content: center; }
  .hero-content { text-align: center; max-width: 600px; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-bg { background-position: 38% center; }

  .cards-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .episodes-grid { grid-template-columns: repeat(2, 1fr); }
  .rating-grid { grid-template-columns: repeat(2, 1fr); }

  .about-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .about-logo img { max-width: 220px; }
  .about-text .section-title { display: block; }
  .about-text .section-title::after { left: 50%; transform: translateX(-50%); }
  .about-strong { text-align: left; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .episodes-grid { grid-template-columns: 1fr; }
  .rating-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: .92rem; }
  .brand-logo { width: 42px; height: 42px; }
  .hero-eyebrow { font-size: clamp(1.3rem, 6.4vw, 1.7rem); }
  .hero-eyebrow span { padding: 0 2px; }
  .hero-inner { min-height: clamp(420px, 70vh, 560px); padding-block: 48px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
