:root {
  --bg: #081015;
  --bg-soft: #10202a;
  --text: #f6f8f9;
  --muted: #c8d3d8;
  --accent: #ff6a3d;
  --accent-2: #44d9e6;
  --glass: rgba(7, 17, 23, 0.56);
  --border: rgba(255, 255, 255, 0.2);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: #000;
  z-index: -3;
}

.bg-video::-webkit-media-controls,
.bg-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 24%, rgba(68, 217, 230, 0.16), transparent 38%),
    radial-gradient(circle at 82% 76%, rgba(255, 106, 61, 0.2), transparent 42%),
    linear-gradient(155deg, rgba(4, 8, 11, 0.45), rgba(5, 9, 13, 0.62));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem 1rem;
  padding: 0.65rem 1rem;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(4, 8, 11, 0.58), rgba(4, 8, 11, 0.18));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.logo-wrap {
  display: block;
  width: clamp(120px, 16vw, 188px);
  margin: 0;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  transition: 0.25s ease;
  background: rgba(255, 255, 255, 0.08);
}

.main-nav a:hover,
.main-nav a.active {
  border-color: rgba(255, 106, 61, 0.7);
  background: rgba(255, 106, 61, 0.18);
  transform: translateY(-1px);
}

.content {
  width: min(1080px, calc(100vw - 2rem));
  margin: 1.3rem auto 0;
  padding-bottom: 2.5rem;
}

.hero {
  padding: 2rem 1.35rem;
}

.hero-minimal {
  padding: 0;
  min-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.9rem;
}

.hero-home {
  width: min(760px, 100%);
  margin: auto 0 1rem;
  padding: 1.35rem 1.2rem;
}

.hero-home h1 {
  max-width: 10.5ch;
}

.hero-lead {
  max-width: 58ch;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  color: rgba(246, 248, 249, 0.92);
}

.home-signature {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  color: rgba(246, 248, 249, 0.95);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  margin: 0;
  color: var(--accent-2);
}

h1,
h2 {
  margin: 0 0 0.8rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 0.95;
  max-width: 13ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
}

p {
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.7;
  margin: 0.45rem 0 0;
}

.glass-card {
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.page-card {
  max-width: 980px;
}

.page-home {
  min-height: calc(100vh - 112px);
  display: flex;
  align-items: center;
}

.about-page-content {
  width: min(1380px, calc(100vw - 2rem));
  min-height: calc(100vh - 126px);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
}

.about-layout {
  width: 100%;
  padding: 0 0 1rem;
}

.about-card {
  width: min(920px, 70vw);
  max-width: 920px;
  margin: 0;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
  gap: 0.6rem 1rem;
}

.about-copy {
  min-width: 0;
}

.about-card h1 {
  max-width: none;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: stretch;
  pointer-events: none;
}

.about-photo {
  display: block;
  width: 100%;
  max-width: 210px;
  max-height: 310px;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
  mix-blend-mode: screen;
  opacity: 0.98;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.cta {
  display: inline-block;
  margin-top: 0;
  text-decoration: none;
  color: #111;
  background: linear-gradient(120deg, var(--accent), #ffb25f);
  border-radius: 999px;
  padding: 0.66rem 1.05rem;
  font-weight: 800;
}

.cta-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.home-page .page-home {
  width: min(1280px, calc(100vw - 2rem));
  min-height: calc(100vh - 94px);
  margin-top: 0;
  align-items: stretch;
}

.home-page .bg-video {
  filter: saturate(1.18) contrast(1.06) brightness(1.03);
}

.home-page .bg-overlay {
  background:
    radial-gradient(circle at 22% 20%, rgba(68, 217, 230, 0.13), transparent 36%),
    radial-gradient(circle at 78% 80%, rgba(255, 106, 61, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(5, 9, 12, 0.22), rgba(5, 9, 12, 0.44));
}

.link-list {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.link-list li {
  margin-bottom: 0.45rem;
}

a {
  color: #fff;
}

.link-list a,
.contact-grid a {
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.pill-row span {
  border: 1px solid rgba(68, 217, 230, 0.5);
  color: #ddfbff;
  background: rgba(68, 217, 230, 0.08);
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.video-list {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
}

.video-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.video-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 61, 0.7);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.video-title {
  padding: 0.72rem 0.8rem 0;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #ffffff;
}

.video-meta {
  padding: 0 0.8rem 0.82rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.social-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.75rem 0.86rem;
  background: rgba(255, 255, 255, 0.06);
}

.social-card i,
.contact-grid i {
  font-size: 1.2rem;
}

.contact-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.58rem;
}

.contact-grid a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  padding: 0.62rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
}

.contact-note {
  margin-top: 0.85rem;
  font-size: 0.88rem;
}

.backstage-gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.workshop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: start;
  gap: 1rem;
}

.workshop-copy {
  min-width: 0;
}

.workshop-poster {
  display: flex;
  justify-content: center;
}

.workshop-poster img {
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.workshop-bottom-action {
  margin-top: 2.1rem;
  display: flex;
  justify-content: center;
}

.cta-online {
  min-width: 320px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.92rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(120deg, #ff8f2a, #ffd27b);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.embed-card {
  margin-top: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.embed-card iframe {
  display: block;
  width: 100%;
  min-height: 340px;
  border: 0;
}

.video-preview-link {
  position: relative;
  display: block;
  text-decoration: none;
}

.video-preview-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-preview-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45));
}

.video-preview-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(7, 17, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-preview-badge i {
  font-size: 1.15rem;
}

.archive-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.archive-shot img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.archive-shot figcaption {
  display: none;
}

/* ── Drugie logo (J&D) – prawy dolny róg, stałe ── */
.co-logo-wrap {
  position: fixed;
  bottom: 1.1rem;
  right: 1.1rem;
  z-index: 11;
  display: block;
  width: clamp(88px, 11vw, 140px);
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.co-logo-wrap:hover {
  opacity: 0.85;
}

.co-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.rap-poker-logo-wrap {
  position: fixed;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 11;
  display: block;
  width: clamp(92px, 12vw, 170px);
  opacity: 0.72;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.rap-poker-logo-wrap:hover {
  transform: translateY(-2px) scale(1.02);
  opacity: 1;
}

.rap-poker-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    margin-bottom: 0;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: center;
    padding-bottom: 0.2rem;
  }

  .main-nav.open {
    display: flex;
  }

  .content {
    width: calc(100vw - 1rem);
  }

  .hero {
    padding-top: 1.4rem;
  }

  .hero-minimal {
    min-height: calc(100vh - 132px);
    justify-content: flex-end;
    padding-bottom: 0.8rem;
  }

  .page-home {
    min-height: calc(100vh - 96px);
    align-items: flex-start;
  }

  .about-page-content {
    width: calc(100vw - 1rem);
    min-height: auto;
    display: block;
  }

  .about-layout {
    width: 100%;
    padding: 0;
  }

  .about-card {
    width: 100%;
    max-width: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .about-visual {
    justify-content: center;
  }

  .about-photo {
    width: min(100%, 220px);
    max-height: none;
  }

  .workshop-layout {
    grid-template-columns: 1fr;
  }

  .workshop-poster img {
    max-width: 260px;
  }

  .home-page .page-home {
    width: calc(100vw - 1rem);
  }

  .rap-poker-logo-wrap,
  .co-logo-wrap {
    width: clamp(78px, 24vw, 118px);
    bottom: 0.7rem;
  }

  .rap-poker-logo-wrap {
    left: 0.7rem;
  }

  .co-logo-wrap {
    right: 0.7rem;
  }
}
