/* ============================================================
   OPEN UK STUDY — Design System & Styles
   Premium dark theme, Poppins, mobile-first
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --bg: #1b1b1d;
  --bg-elevated: #212121;
  --text: #fafaff;
  --primary: #562cdd;
  --accent: #ba2c73;
  --text-muted: #9999a3;
  --border: #2a2a2d;

  --font: 'Poppins', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease);

  --container: 1200px;
  --gutter: 1.5rem;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Noise Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Typography --- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-title {
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 0;
}

.section-subtitle {
  max-width: 600px;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.section-subtitle__link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-subtitle__link:hover {
  color: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  padding: 0.75rem 1.75rem;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(86, 44, 221, 0);
}

.btn--primary:hover {
  background: #6b3ff0;
  box-shadow: 0 0 30px rgba(86, 44, 221, 0.4);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(86, 44, 221, 0.15);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--ease);
}

.header.scrolled {
  background: rgba(27, 27, 29, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo img {
  height: 32px;
  width: auto;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 2px;
}

.lang-switch__btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.lang-switch__btn--active {
  background: var(--primary);
  color: #fff;
}

/* Hamburger */
.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.header__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MENU OVERLAY — fullscreen nav
   ============================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  visibility: hidden;
}

.menu-overlay.open {
  pointer-events: auto;
  visibility: visible;
}

/* Background — CSS transition fallback + GSAP enhancement */
.menu-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 29, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  clip-path: circle(0% at calc(100% - 3rem) 2rem);
  transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay.open .menu-overlay__bg {
  clip-path: circle(150% at calc(100% - 3rem) 2rem);
}

.menu-overlay__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem var(--gutter) 1.5rem;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
}

.menu-overlay.open .menu-overlay__content {
  opacity: 1;
}

/* Nav links list */
.menu-overlay__nav {
  display: flex;
  flex-direction: column;
}

/* Each item: overflow hidden for slide-up reveal */
.menu-overlay__item {
  overflow: hidden;
}

.menu-overlay__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.5rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.menu-overlay__item:first-child .menu-overlay__link {
  border-top: 1px solid var(--border);
}

.menu-overlay__link:hover {
  color: var(--primary);
  transform: translateX(0.5rem);
}

.menu-overlay__arrow {
  font-size: 1.2em;
  opacity: 0;
  transform: translateX(-0.5rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.menu-overlay__link:hover .menu-overlay__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Bottom: CTA + lang + socials */
.menu-overlay__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
}

.menu-overlay__cta {
  font-size: 0.9rem;
}

.menu-overlay__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-overlay__socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-overlay__socials a {
  display: inline-flex;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.menu-overlay__socials a:hover {
  color: var(--primary);
}

/* Responsive: desktop tweaks */
@media (min-width: 768px) {
  .menu-overlay__content {
    padding-top: 5.5rem;
  }

  .menu-overlay__link {
    padding: 0.75rem 0.75rem;
  }

  .menu-overlay__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(180px);
}

.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  opacity: 0.2;
  top: -10%;
  left: -10%;
}

.hero__glow--2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  opacity: 0.15;
  bottom: -10%;
  right: -10%;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 600px;
}

.hero__eyebrow {
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__word {
  display: inline-block;
  margin-right: 0.2em;
}

.hero__word--accent {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.hero__stars {
  display: flex;
  gap: 2px;
}

.hero__proof-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__certified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0.06));
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fde68a;
  white-space: nowrap;
}

.hero__flag-icon {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero__certified-text {
  line-height: 1;
}

.hero__image-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  align-self: flex-end;
}

.hero__image-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.25;
  filter: blur(60px);
  border-radius: 50%;
}

.hero__image {
  position: relative;
  object-fit: contain;
  width: 100%;
  height: auto;
  max-height: 580px;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

.hero__image-name {
  position: absolute;
  bottom: 1.5rem;
  right: -0.5rem;
  font-family: 'Shadows Into Light', cursive;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(86, 44, 221, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.3rem 1rem 0.4rem;
  border-radius: 8px;
  z-index: 2;
  transform: rotate(-3deg);
  line-height: 1.3;
  text-align: center;
}

.hero__image-role {
  font-family: var(--font);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  font-weight: 500;
}

@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .hero__content {
    flex: 1;
  }

  .hero__image-wrap {
    flex: 0 0 auto;
    max-width: 380px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 10rem 0 6rem;
  }

  .hero__image-wrap {
    max-width: 440px;
  }

  .hero__title {
    font-size: clamp(3rem, 5.5vw, 4.5rem);
  }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  position: relative;
  padding: 2rem 0 20rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .stats {
    padding: 3rem 0 22rem;
  }
}

.stats__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 29, 0.45);
}

.stats .container {
  position: relative;
  z-index: 1;
}

.stats__awards {
  text-align: center;
  opacity: 0;
}

.award-single {
  max-width: 540px;
  margin: 0 auto;
  background: rgba(15, 15, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
  .award-single {
    padding: 2.5rem 2rem;
  }
}

.award-single .eyebrow {
  margin-bottom: 0.5rem;
}

.stats__awards-title {
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .stats__awards-title {
    margin-bottom: 1.5rem;
  }
}

.award-single__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.award-single__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.award-single__medal {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.award-single__item:last-child {
  border-bottom: none;
}

.award-single__year {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(86, 44, 221, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.award-single__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

@media (min-width: 768px) {
  .award-single__name {
    font-size: 1rem;
  }
}

.award-single__note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ============================================================
   QUIZ TEASER
   ============================================================ */
.quiz-teaser {
  padding: 6rem 0;
  overflow: hidden;
}

.quiz-teaser__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.quiz-teaser__content {
  max-width: 540px;
}

.quiz-teaser__desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

.quiz-teaser__visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-teaser__visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(60px);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.quiz-card {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 250px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition);
}

.quiz-card:hover {
  border-color: var(--primary);
}

.quiz-card--1 {
  transform: rotate(-6deg);
  z-index: 3;
  left: 5%;
  top: 5%;
}

.quiz-card--2 {
  transform: rotate(3deg);
  z-index: 2;
  left: 35%;
  top: 25%;
}

.quiz-card--3 {
  transform: rotate(-2deg);
  z-index: 1;
  left: 15%;
  top: 55%;
}

.quiz-card__q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.quiz-card__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

/* Image variant — replaces the 3 cards when admin uploads a graphic.
   Założenie: grafika ma przezroczyste tło (PNG/WebP), więc renderujemy ją
   bez ramki, radius i shadow — żadnych dekoracji wokół. */
.quiz-teaser__visual--image {
  min-height: auto;
  padding: 0;
  background: transparent;
}

.quiz-teaser__visual--image::before {
  display: none;
}

.quiz-teaser__image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
  background: transparent;
}

@media (min-width: 768px) {
  .quiz-teaser__inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .quiz-teaser__content {
    flex: 1;
  }

  .quiz-teaser__visual {
    flex: 1;
    min-height: 350px;
  }
}

/* ============================================================
   HOW IT WORKS — 4-card responsive layout
   Mobile (<768px): 1 column stack.
   Tablet (768–1023): 2x2 grid, arrows hidden.
   Desktop (1024+): zig-zag timeline — central vertical line,
   cards alternating left/right (1 L, 2 R, 3 L, 4 R).
   ============================================================ */
.how-it-works {
  padding: 6rem 0;
  overflow: hidden;
  position: relative;
}

/* Ambient glow behind the grid */
.how-it-works::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 500px;
  transform: translate(-50%, -40%);
  background: radial-gradient(ellipse, rgba(86, 44, 221, 0.10) 0%, rgba(186, 44, 115, 0.05) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hiw__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Tablet: 2x2 grid, arrows hidden */
@media (min-width: 768px) and (max-width: 1023px) {
  .hiw__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

/* Arrows — hidden on mobile + tablet + desktop (zig-zag uses central line instead) */
.hiw__arrow {
  display: none;
}

/* Desktop zig-zag timeline */
@media (min-width: 1024px) {
  .hiw__grid {
    display: block;
    position: relative;
    padding: 1rem 0;
    max-width: 1080px;
    margin: 0 auto;
  }

  /* Central vertical line */
  .hiw__grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
      transparent 0%,
      rgba(86, 44, 221, 0.6) 12%,
      rgba(186, 44, 115, 0.6) 88%,
      transparent 100%);
    border-radius: 1px;
    pointer-events: none;
  }

  .hiw__card {
    width: 46%;
    margin-bottom: 2.5rem;
  }

  .hiw__card:last-child {
    margin-bottom: 0;
  }

  /* card 1 + card 3 → left side (4n+1: 1, 5, ... — accounts for arrows in DOM) */
  .hiw__card:nth-child(4n+1) {
    margin-left: 0;
    margin-right: auto;
  }

  /* card 2 + card 4 → right side (4n+3: 3, 7, ...) */
  .hiw__card:nth-child(4n+3) {
    margin-left: auto;
    margin-right: 0;
  }
}

/* Card — outer wrapper for gradient border trick */
.hiw__card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Karta z tłem-zdjęciem (sesja 8I) — ciemna nakładka pod treścią dla czytelności */
.hiw__card--has-image {
  color: #fff;
  border: 0;
  background-origin: border-box;
  background-clip: border-box;
}

.hiw__card--has-image:hover {
  border: 0;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hiw__card--has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 18, 32, 0.72) 0%, rgba(20, 18, 32, 0.55) 55%, rgba(20, 18, 32, 0.72) 100%);
  z-index: 0;
  border-radius: 16px;
  transition: background 0.4s var(--ease);
  pointer-events: none;
}

.hiw__card--has-image:hover::after {
  background: linear-gradient(135deg, rgba(20, 18, 32, 0.55) 0%, rgba(20, 18, 32, 0.4) 55%, rgba(20, 18, 32, 0.55) 100%);
}

.hiw__card--has-image > * {
  position: relative;
  z-index: 1;
}

.hiw__card--has-image .hiw__title {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hiw__card--has-image .hiw__desc {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hiw__card--has-image .hiw__icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.hiw__card--has-image:hover .hiw__icon {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

/* Gradient top stripe */
.hiw__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.7;
  transition: opacity 0.4s var(--ease);
  z-index: 2;
}

.hiw__card:hover {
  border-color: rgba(86, 44, 221, 0.4);
  box-shadow:
    0 8px 40px rgba(86, 44, 221, 0.15),
    0 0 0 1px rgba(86, 44, 221, 0.1);
  transform: translateY(-6px);
}

.hiw__card:hover::before {
  opacity: 1;
}

/* Icon box */
.hiw__icon {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(86, 44, 221, 0.1);
  border: 1px solid rgba(86, 44, 221, 0.15);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hiw__card:hover .hiw__icon {
  background: rgba(86, 44, 221, 0.15);
  box-shadow: 0 0 20px rgba(86, 44, 221, 0.2);
}

/* Step number — gradient text */
.hiw__step-num {
  font-size: 2.75rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hiw__card--has-image .hiw__step-num {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hiw__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hiw__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   COURSES
   ============================================================ */
.courses {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

/* Collapse wrapper — CSS-first collapsed state prevents CLS on mobile */
.courses__collapse {
  position: relative;
  overflow: hidden;
  transition: max-height 0.6s ease;
  max-height: 520px; /* ~5 rows (mobile 1-col) — JS refines on load */
}

@media (min-width: 480px) {
  .courses__collapse {
    max-height: 310px; /* ~3 rows (1 column, taller cards) */
  }
}

@media (min-width: 768px) {
  .courses__collapse {
    max-height: 310px; /* ~3 rows (2 columns) */
  }
}

@media (min-width: 1024px) {
  .courses__collapse {
    max-height: 300px; /* ~3 rows (3 columns) */
  }
}

.courses__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-elevated));
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.courses__collapse.is-expanded .courses__fade {
  opacity: 0;
}

.courses__toggle {
  text-align: center;
  margin-top: 1.5rem;
}

.courses__toggle-icon {
  transition: transform 0.3s ease;
}

.courses__collapse.is-expanded ~ .courses__toggle .courses__toggle-icon {
  transform: rotate(180deg);
}

.courses__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.course-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
}

.course-card:hover {
  border-color: var(--primary);
  background: #252528;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(86, 44, 221, 0.08);
}

.course-card__rank {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(86, 44, 221, 0.12);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.course-card:hover .course-card__rank {
  background: var(--primary);
  color: #fff;
}

.course-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.course-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .courses__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .courses__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   TESTIMONIALS MARQUEE
   ============================================================ */
.testimonials {
  padding: 6rem 0;
  overflow: hidden;
}

.marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0;
}

.marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
}

.marquee--left .marquee__track {
  animation: marqueeLeft 40s linear infinite;
}

.marquee--right .marquee__track {
  animation: marqueeRight 45s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.testimonial-card {
  flex: 0 0 380px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  opacity: 1;
}

.testimonial-card__quote {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.testimonial-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
}

/* --- Mobile: replace marquee with swipeable horizontal scroll --- */
@media (max-width: 767px) {
  .testimonials {
    padding: 4rem 0;
  }

  /* Hide the second marquee row on mobile — one row is enough */
  .marquee--right {
    display: none;
  }

  /* Disable marquee animation, use native horizontal scroll */
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 var(--gutter);
  }

  .marquee__track {
    animation: none !important;
    width: max-content;
  }

  .testimonial-card {
    flex: 0 0 85vw;
    scroll-snap-align: center;
  }

  /* Hide the duplicate cards (used for infinite marquee effect) */
  .marquee__track .testimonial-card:nth-child(n+5) {
    display: none;
  }

  /* Hide scrollbar but keep scroll functionality */
  .marquee::-webkit-scrollbar {
    display: none;
  }
  .marquee {
    scrollbar-width: none;
  }
}

/* ============================================================
   CASE STUDIES
   ============================================================ */
/* ---- Stories (Video) ---- */
.stories {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

.stories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .stories__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.story-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: all var(--transition);
}

.story-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(86, 44, 221, 0.12);
}

.story-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.story-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  transition: background var(--transition);
}

.story-card:hover .story-card__overlay {
  background: linear-gradient(180deg, rgba(86, 44, 221, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.story-card__play {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.story-card__play svg {
  margin-left: 4px;
}

.story-card:hover .story-card__play {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.story-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.story-card__name {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.story-card__desc {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}

/* ---- Stories collapse (videos + photos) ---- */
.stories__collapse {
  position: relative;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.stories__photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .stories__photos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stories__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.stories__collapse.is-expanded .stories__fade {
  opacity: 0;
}

.stories__toggle {
  text-align: center;
  margin-top: 1.5rem;
}

.stories__toggle-icon {
  transition: transform 0.3s ease;
}

.stories__collapse.is-expanded ~ .stories__toggle .stories__toggle-icon {
  transform: rotate(180deg);
}

.certificate-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.certificate-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 5;
}

/* ---- Gallery Lightbox (video + images) ---- */
.certificate-card {
  cursor: pointer;
}

.gallery-lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lb.is-active {
  opacity: 1;
  visibility: visible;
}

.gallery-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  cursor: pointer;
}

.gallery-lb__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 3;
  padding: 0;
}

.gallery-lb__close:hover {
  opacity: 1;
}

/* Arrows */
.gallery-lb__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 3;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gallery-lb__arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.gallery-lb__arrow--prev { left: 16px; }
.gallery-lb__arrow--next { right: 16px; }

/* Stage — holds active slide */
.gallery-lb__stage {
  position: relative;
  z-index: 2;
  max-width: 420px;
  max-height: 85vh;
  width: 90vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lb__stage video {
  width: 100%;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
  background: #000;
}

.gallery-lb__stage img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}

@media (max-width: 767px) {
  .story-card__play {
    width: 56px;
    height: 56px;
  }

  .story-card__play svg {
    width: 36px;
    height: 36px;
  }

  .gallery-lb__stage {
    max-width: 100vw;
    width: 100vw;
  }

  .gallery-lb__stage video,
  .gallery-lb__stage img {
    border-radius: 0;
  }

  .gallery-lb__arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-lb__arrow--prev { left: 8px; }
  .gallery-lb__arrow--next { right: 8px; }
}

/* ============================================================
   WEBINAR
   ============================================================ */
.webinar {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

.webinar__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.webinar__video-wrap {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.webinar__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.webinar__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background var(--transition);
}

.webinar__play svg {
  width: 72px;
  height: 72px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  margin-left: 6px;
  transition: transform var(--transition);
}

.webinar__video-wrap:hover .webinar__play {
  background: rgba(86, 44, 221, 0.25);
}

.webinar__video-wrap:hover .webinar__play svg {
  transform: scale(1.15);
}

.webinar__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.webinar__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.webinar__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.webinar__list li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.webinar__list li strong {
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 768px) {
  .webinar__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

/* ============================================================
   BLOG
   ============================================================ */
section.blog {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(86, 44, 221, 0.08);
}

.blog-card__image {
  height: 160px;
  overflow: hidden;
}

.blog-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f1f22 0%, #2a2a3a 50%, #1f1f22 100%);
  position: relative;
}

.blog-card__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(86, 44, 221, 0.04) 10px, rgba(86, 44, 221, 0.04) 20px);
}

.blog-card__placeholder--2 {
  background: linear-gradient(135deg, #1f1f22 0%, #302a3a 50%, #1f1f22 100%);
}

.blog-card__placeholder--3 {
  background: linear-gradient(135deg, #1f1f22 0%, #2a3030 50%, #1f1f22 100%);
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition);
}

.blog-card__link:hover {
  gap: 0.6rem;
}

section.blog .blog__cta {
  text-align: center;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Featured image — gdy karta ma własny obrazek z mediów */
.blog-card__image {
  display: block;
  position: relative;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tytuł jest linkiem — kolor dziedziczy z karty, podkreślenie tylko na hover */
.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.blog-card:hover .blog-card__title a,
.blog-card__title a:hover {
  color: var(--primary);
}

.blog__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  font-size: 1rem;
}

/* ============================================================
   BLOG PAGE — /blog/, archive, kategorie
   ============================================================ */
.blog-page {
  background: var(--bg);
  min-height: 60vh;
}

.blog-page__hero {
  padding: 7rem 0 3rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.blog-page__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
  max-width: 820px;
}

.blog-page__intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 720px;
}

.blog-page__intro p {
  margin: 0 0 0.75rem;
}

.blog-page__list {
  padding: 4rem 0 6rem;
}

.blog-page__empty {
  text-align: center;
  padding: 4rem 1rem;
}

.blog-page__empty h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.blog-page__empty p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Paginacja */
.blog-pagination {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

.blog-pagination ul,
.blog-pagination .page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-pagination li {
  display: block;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg);
  transition: all var(--transition);
}

.blog-pagination a.page-numbers:hover {
  border-color: var(--primary);
  color: var(--text);
}

.blog-pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.blog-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post {
  background: var(--bg);
}

.article-hero {
  padding: 7rem 0 0;
  background: var(--bg-elevated);
}

.article-hero__inner {
  max-width: 820px;
  text-align: left;
  padding-bottom: 3rem;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-hero__back {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.article-hero__back:hover {
  color: var(--primary);
}

.article-hero__category a {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.7rem;
  text-decoration: none;
}

.article-hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.article-hero__dateline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-hero__image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.article-hero__image img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article__container {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.article-prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.article-prose > * + * {
  margin-top: 1.2rem;
}

.article-prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.5rem;
}

.article-prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
}

.article-prose p {
  margin: 0;
}

.article-prose ul,
.article-prose ol {
  padding-left: 1.4rem;
}

.article-prose li + li {
  margin-top: 0.35rem;
}

.article-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose a:hover {
  color: var(--accent);
}

.article-prose strong {
  color: var(--text);
  font-weight: 700;
}

.article-prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 1.5rem auto;
}

.article-prose code {
  background: var(--bg-elevated);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

/* Powiązane wpisy */
.article-related {
  background: var(--bg-elevated);
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border);
}

.article-related__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 2rem;
  text-align: center;
}

/* ============================================================
   SKILLS CHART
   ============================================================ */

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 6rem 0;
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(86, 44, 221, 0.3);
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-item__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.faq-item__icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--text-muted);
  transition: all 0.4s var(--ease);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-item__body {
  height: 0;
  overflow: hidden;
}

.faq-item__content {
  padding: 0 1.5rem 1.5rem;
}

.faq-item__content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   LEAD MAGNET (PDF)
   ============================================================ */
.lead-magnet {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.lead-magnet__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.lead-magnet__content {
  max-width: 560px;
}

.lead-magnet__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.lead-magnet__benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lead-magnet__benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.lead-magnet__benefits svg {
  flex-shrink: 0;
}

.lead-magnet__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lead-magnet__form .form-group--checkbox {
  margin-bottom: 1.25rem;
}

.lead-magnet__form .form-group--checkbox label {
  position: static;
  transform: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  pointer-events: auto;
}

.lead-magnet__form .form-group--checkbox label a {
  color: var(--primary);
  text-decoration: underline;
}

/* Book mockup placeholder */
.lead-magnet__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lead-magnet__mockup {
  position: relative;
  perspective: 800px;
}

.lead-magnet__book {
  width: 280px;
  transform: rotateY(-8deg);
  transition: transform 0.4s var(--ease);
}

.lead-magnet__book:hover {
  transform: rotateY(-2deg) translateY(-4px);
}

.lead-magnet__book-cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    12px 12px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.lead-magnet__book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.lead-magnet__book-logo {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
}

.lead-magnet__book-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-top: auto;
}

.lead-magnet__book-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin-top: 0.5rem;
}

.lead-magnet__book-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .lead-magnet__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .lead-magnet__fields {
    grid-template-columns: 1fr 1fr;
  }

  .lead-magnet__book {
    width: 320px;
  }
}

@media (min-width: 1024px) {
  .lead-magnet__inner {
    gap: 6rem;
  }

  .lead-magnet__book {
    width: 340px;
  }
}

/* Featured PDF tytuł nad opisem */
.lead-magnet__pdf-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.01em;
}

/* Cover image dla featured (zamiast mockup placeholder) */
.lead-magnet__cover {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.5s var(--ease);
}

.lead-magnet__cover:hover {
  transform: translateY(-4px) scale(1.01);
}

/* Sekcja "więcej materiałów" pod featured */
.lead-magnet__more {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.lead-magnet__more-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.lead-magnet__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .lead-magnet__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .lead-magnet__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lead-magnet__card {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top left, rgba(86, 44, 221, 0.08) 0%, transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.lead-magnet__card:hover {
  transform: translateY(-3px);
  border-color: rgba(86, 44, 221, 0.4);
}

.lead-magnet__card-cover {
  aspect-ratio: 4 / 5;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lead-magnet__card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-magnet__card-placeholder {
  color: var(--text-muted);
  opacity: 0.4;
}

.lead-magnet__card-body {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.lead-magnet__card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.lead-magnet__card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}

.lead-magnet__card-btn {
  align-self: flex-start;
  margin-top: auto;
}

.lead-magnet__view-all {
  margin-top: 2rem;
  text-align: center;
}

/* ============================================================
   Materials page (/materialy) — full PDF list
   ============================================================ */
.materials-page {
  padding-top: 100px;
}

.materials-page__hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.materials-page__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
  color: var(--text);
}

.materials-page__intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.materials-page__intro p {
  margin-bottom: 1rem;
}

.materials-page__list {
  padding: 2rem 0 6rem;
}

.materials-page__grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .materials-page__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .materials-page__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.materials-page__empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.materials-page__empty h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.materials-page__empty p {
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact__form-wrap .section-title {
  margin-bottom: 0.75rem;
}

.contact__form-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form-group {
  position: relative;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  padding-top: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(86, 44, 221, 0.15);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s var(--ease);
  transform-origin: left top;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-0.6rem) scale(0.75);
  color: var(--primary);
}

/* Checkbox */
.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-group--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Override floating-label color rule that matches checkbox via :not(:placeholder-shown) */
.form-group--checkbox input[type="checkbox"] ~ label,
.form-group--checkbox label {
  position: static;
  font-size: 0.8rem;
  color: #fff;
  pointer-events: auto;
  transform: none;
  cursor: pointer;
  line-height: 1.5;
}

.form__submit {
  justify-self: start;
}

/* Contact info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__info-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.contact__phone {
  font-size: 1rem;
  color: var(--text);
  transition: color var(--transition);
}

.contact__phone:hover {
  color: var(--primary);
}

.contact__email {
  font-size: 1rem;
  color: var(--text);
  transition: color var(--transition);
}

.contact__email:hover {
  color: var(--primary);
}

.contact__socials {
  display: flex;
  gap: 0.75rem;
}

.contact__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.contact__social:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact__response-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .contact-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact__inner {
    grid-template-columns: 1.4fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

/* ============================================================
   CONTACT PAGE (/kontakt/ + /en/contact/)
   Standalone — używa tej samej sekcji .contact co dawniej na home.
   Dodajemy tylko padding-top żeby ominąć fixed header.
   ============================================================ */
.contact-page .contact {
  padding-top: 8rem;
}

.contact-page .contact__company {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.contact-page .contact__company strong {
  color: var(--text);
}

@media (max-width: 720px) {
  .contact-page .contact {
    padding-top: 6rem;
  }
}

/* ============================================================
   LEGAL / GENERIC PAGES (Privacy, Terms, etc.)
   ============================================================ */
.legal-page {
  padding: 8rem 0 6rem;
  background: var(--bg);
  color: var(--text);
}

.legal-page__inner {
  max-width: 920px;
}

.legal-page__header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-page__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 0%, #c7c0e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-page__content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-page__content p {
  margin: 0 0 1.25rem;
}

.legal-page__content p strong,
.legal-page__content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-page__content h2,
.legal-page__content h3,
.legal-page__content h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
}

.legal-page__content h2 {
  font-size: 1.75rem;
}

.legal-page__content h3 {
  font-size: 1.35rem;
  position: relative;
  padding-left: 1rem;
}

.legal-page__content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  bottom: 0.4em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.legal-page__content h4 {
  font-size: 1.1rem;
}

.legal-page__content ul,
.legal-page__content ol {
  margin: 0 0 1.5rem 1.5rem;
  padding-left: 0.5rem;
}

.legal-page__content li {
  margin-bottom: 0.6rem;
}

.legal-page__content li::marker {
  color: var(--primary);
}

.legal-page__content a {
  color: #b9a8ff;
  text-decoration: underline;
  text-decoration-color: rgba(86, 44, 221, 0.5);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.legal-page__content a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

.legal-page__content figure {
  margin: 1.5rem 0 2rem;
}

.legal-page__content table,
.legal-page__content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.95rem;
}

.legal-page__content thead {
  background: rgba(86, 44, 221, 0.15);
}

.legal-page__content th,
.legal-page__content td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.legal-page__content th {
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-page__content tr:last-child td {
  border-bottom: 0;
}

.legal-page__content td ul {
  margin: 0.5rem 0 0 1.25rem;
}

.legal-page__content td ul li {
  margin-bottom: 0.4rem;
}

.legal-page__content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(86, 44, 221, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
}

@media (max-width: 720px) {
  .legal-page {
    padding: 6rem 0 4rem;
  }
  .legal-page__content figure {
    margin-inline: -1rem;
    width: calc(100% + 2rem);
    overflow-x: auto;
  }
  .legal-page__content table {
    font-size: 0.85rem;
    min-width: 520px;
  }
  .legal-page__content th,
  .legal-page__content td {
    padding: 0.7rem 0.85rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 4rem 0 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__brand {
  max-width: 280px;
}

.footer__logo img {
  height: 28px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__company {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 0.5rem;
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer__socials a {
  display: inline-flex;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__socials a:hover {
  color: var(--primary);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__credit a {
  color: var(--primary);
  font-weight: 500;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }

  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
}

.toast svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* ============================================================
   SCROLL REVEAL (initial state — GSAP handles animation)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: rgba(86, 44, 221, 0.3);
  color: var(--text);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3d;
}

/* ============================================================
   WORDPRESS FIXES
   ============================================================ */

/* Admin bar pushes fixed header down */
.admin-bar .header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

/* Ensure main has no spacing and hero slides under fixed header */
main {
  display: block;
  margin: 0;
  padding: 0;
}

/* Override WP admin bar margin-top on html (causes bottom gap) */
html,
html.wp-toolbar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#wpadminbar {
  position: fixed !important;
}

/* Admin bar: offset hero padding so content clears the bar + header */
.admin-bar .hero {
  padding-top: calc(8rem + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .hero {
    padding-top: calc(8rem + 46px);
  }
}

/* Hide any WP-injected SVG filters that may take space */
body > svg:first-of-type {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ============================================================
   QUIZ — INTRO
   ============================================================ */
.quiz-intro {
  padding: 10rem 0 4rem;
  text-align: center;
}

.quiz-intro__inner {
  max-width: 640px;
  margin: 0 auto;
}

.quiz-intro__desc {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.quiz-intro__mockup {
  margin-top: 3rem;
}

.quiz-intro__mockup img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* 2x2 character grid with centered caption overlay */
.quiz-intro__characters {
  position: relative;
  margin: 3.5rem auto 0;
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.quiz-character {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.quiz-character img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.5s var(--ease);
}

.quiz-intro__characters:hover .quiz-character img {
  transform: scale(1.04);
}

/* Subtle vignette so caption stays readable on busy photos */
.quiz-character::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.quiz-intro__caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.01em;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(86, 44, 221, 0.45), 0 0 0 4px rgba(27, 27, 29, 0.85);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .quiz-intro__caption {
    font-size: 0.95rem;
    padding: 0.7rem 1.1rem;
    white-space: normal;
    max-width: 80%;
  }
}

/* ============================================================
   QUIZ — WIZARD
   ============================================================ */
.quiz-wizard {
  padding: 8rem 0 4rem;
}

.quiz-wizard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  background: var(--bg);
  z-index: 50;
}

.quiz-wizard__progress {
  flex: 1;
  max-width: 280px;
  text-align: center;
}

.quiz-wizard__step-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.quiz-wizard__bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-wizard__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

.quiz-wizard__step-header {
  margin-bottom: 1.5rem;
}

.quiz-wizard__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
}

.quiz-wizard__error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ============================================================
   QUIZ — CHOICE CARDS
   ============================================================ */
.quiz-choices {
  display: grid;
  gap: 1rem;
}

.quiz-choices--grid {
  grid-template-columns: repeat(2, 1fr);
}

.quiz-choices--row {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .quiz-choices--grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .quiz-choices--row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .quiz-choices--grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quiz-choice {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  outline: none;
}

.quiz-choice:hover,
.quiz-choice:focus-visible {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.quiz-choice[aria-checked="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), inset 0 0 0 1px var(--primary);
  background: rgba(86, 44, 221, 0.08);
}

.quiz-choice__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.quiz-choice__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.quiz-choice:hover .quiz-choice__img img {
  transform: scale(1.05);
}

.quiz-choice__label {
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* English level cards */
.quiz-choice--level .quiz-choice__level {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.quiz-choice__level--yellow span {
  background: linear-gradient(135deg, #eab308, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quiz-choice__level--red span {
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quiz-choice__level--blue span {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   QUIZ — RESULTS (siatka kart, sesja 8b)
   ============================================================ */
.quiz-results__inner {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 0;
}

.quiz-results__heading {
  margin-bottom: 1rem;
}

.quiz-results__note {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 0.875rem 1.25rem;
  background: rgba(186, 44, 115, 0.08);
  border: 1px solid rgba(186, 44, 115, 0.25);
  color: var(--text);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
}

.quiz-results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  text-align: left;
}

@media (min-width: 640px) {
  .quiz-results__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .quiz-results__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quiz-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.quiz-result-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.quiz-result-card__name {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.quiz-result-card__uni {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted, #9ca3af);
}

.quiz-result-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.quiz-result-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.quiz-result-card__chip--city {
  background: rgba(86, 44, 221, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(86, 44, 221, 0.35);
}

.quiz-result-card__chip--level {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.quiz-results__hard-empty {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  padding: 2rem 1rem;
}

.quiz-results__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive tweaks ── */
@media (max-width: 639px) {
  .quiz-wizard__header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .quiz-wizard__progress {
    order: -1;
    max-width: 100%;
    flex-basis: 100%;
  }
  .hide-desktop {
    display: inline;
  }
}

@media (min-width: 640px) {
  .hide-desktop {
    display: none;
  }
}

/* ============================================================
   SECTION DIVIDERS — gradient lines between sections
   ============================================================ */
.how-it-works::before,
.courses::before,
.quiz-teaser::before,
.testimonials::before,
.stories::before,
.webinar::before,
.lead-magnet::before,
section.blog::before,
.faq::before,
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(86, 44, 221, 0.5) 20%,
    rgba(186, 44, 115, 0.5) 50%,
    rgba(86, 44, 221, 0.5) 80%,
    transparent 100%
  );
  z-index: 1;
}

.courses,
.testimonials,
.faq,
.contact,
.quiz-teaser,
.stories,
.webinar,
section.blog {
  position: relative;
}

/* ============================================================
   AMBIENT GLOWS — depth & atmosphere for flat sections
   ============================================================ */

/* --- Courses: purple glow top-right --- */
.courses::after {
  content: '';
  position: absolute;
  top: -5%;
  right: -10%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(86, 44, 221, 0.07) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* --- FAQ: accent glow bottom-left --- */
.faq::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(186, 44, 115, 0.06) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* --- Contact: dual glow for warmth --- */
.contact::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(86, 44, 221, 0.06) 0%, rgba(186, 44, 115, 0.03) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* --- Lead Magnet: glow behind mockup area --- */
.lead-magnet::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(86, 44, 221, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above glows */
.courses .container,
.faq .container,
.contact .container,
.lead-magnet .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   TESTIMONIALS — atmosphere & accent
   ============================================================ */
.testimonials::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(186, 44, 115, 0.05) 0%, rgba(86, 44, 221, 0.03) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.marquee-wrap {
  position: relative;
  z-index: 1;
}

.testimonial-card__quote {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
}

.testimonial-card {
  transition: border-color var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(186, 44, 115, 0.3);
  box-shadow: 0 4px 24px rgba(186, 44, 115, 0.08);
}

/* ============================================================
   FAQ — active state visual enhancement
   ============================================================ */
.faq-item {
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.faq-item.active::before {
  opacity: 1;
}

.faq-item.active {
  background: rgba(86, 44, 221, 0.03);
  box-shadow: 0 0 30px rgba(86, 44, 221, 0.08);
}

/* ============================================================
   COURSE CARDS — gradient rank badges
   ============================================================ */
.course-card .course-card__rank {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(86, 44, 221, 0.3);
}

.course-card:hover .course-card__rank {
  box-shadow: 0 0 24px rgba(186, 44, 115, 0.4);
}

.course-card {
  border-left: 2px solid var(--accent);
}

/* ============================================================
   CONTACT — form card & gradient accents
   ============================================================ */

/* Form wrapper: elevated purple card */
.contact__form-wrap {
  background: rgba(86, 44, 221, 0.08);
  border: 1px solid rgba(86, 44, 221, 0.18);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}

.contact__form-wrap .form-group input,
.contact__form-wrap .form-group textarea {
  background: rgba(27, 27, 29, 0.6);
  border-color: rgba(86, 44, 221, 0.2);
}

@media (min-width: 768px) {
  .contact__form-wrap {
    padding: 3rem 2.5rem;
  }
}

.contact__social:hover {
  background: linear-gradient(135deg, rgba(86, 44, 221, 0.15), rgba(186, 44, 115, 0.1));
  border-color: rgba(86, 44, 221, 0.4);
  color: #fff;
  box-shadow: 0 0 20px rgba(86, 44, 221, 0.15);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(86, 44, 221, 0.12), 0 0 20px rgba(86, 44, 221, 0.08);
}

.contact .btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.contact .btn--primary:hover {
  background: linear-gradient(135deg, #6b3ff0, #d4347f);
  box-shadow: 0 0 30px rgba(186, 44, 115, 0.3);
}

/* ============================================================
   BLOG — enhanced cards & category badges
   ============================================================ */
.blog-card__placeholder {
  background: linear-gradient(135deg, #1f1f22 0%, #2a2a3a 40%, rgba(86, 44, 221, 0.08) 100%);
}

.blog-card__placeholder::after {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(86, 44, 221, 0.06) 10px,
    rgba(86, 44, 221, 0.06) 20px
  );
}

.blog-card__placeholder--2 {
  background: linear-gradient(135deg, #1f1f22 0%, #302a3a 40%, rgba(186, 44, 115, 0.06) 100%);
}

.blog-card__placeholder--3 {
  background: linear-gradient(135deg, #1f1f22 0%, #2a3030 40%, rgba(86, 44, 221, 0.06) 100%);
}

.blog-card__category {
  background: rgba(186, 44, 115, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.blog-card:hover {
  border-color: rgba(186, 44, 115, 0.3);
  box-shadow: 0 8px 40px rgba(186, 44, 115, 0.08);
}

/* ============================================================
   SECTION BACKGROUNDS — subtle inner gradients for depth
   ============================================================ */
.courses,
.stories,
.webinar,
section.blog,
.contact {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(255, 255, 255, 0.015) 0%, transparent 50%),
    var(--bg-elevated);
}

.faq {
  background:
    radial-gradient(ellipse at 30% 100%, rgba(86, 44, 221, 0.02) 0%, transparent 50%),
    var(--bg);
}

/* ============================================================
   PDF Lead Magnet — Modal
   ============================================================ */

.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.pdf-modal--open {
  display: flex;
}

.pdf-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.pdf-modal--open .pdf-modal__backdrop {
  opacity: 1;
}

.pdf-modal__dialog {
  position: relative;
  background:
    radial-gradient(ellipse at top left, rgba(86, 44, 221, 0.15) 0%, transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.pdf-modal--open .pdf-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pdf-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.pdf-modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.pdf-modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.pdf-modal__pdf-title {
  display: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.pdf-modal__pdf-title:not(:empty) {
  display: block;
}

.pdf-modal__lead {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.pdf-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdf-modal__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .pdf-modal__fields {
    grid-template-columns: 1fr;
  }
  .pdf-modal__dialog {
    padding: 2rem 1.25rem 1.5rem;
  }
}

.pdf-modal__consent {
  margin-top: 0.25rem;
}

.pdf-modal__consent label {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.pdf-modal__feedback {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  line-height: 1.4;
}

.pdf-modal__feedback--success {
  display: block;
  background: rgba(56, 189, 124, 0.12);
  border: 1px solid rgba(56, 189, 124, 0.35);
  color: #6bd49a;
}

.pdf-modal__feedback--error {
  display: block;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #f08080;
}

.pdf-modal__submit {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

.pdf-modal__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Blokujemy scroll body gdy modal otwarty */
body.pdf-modal-open {
  overflow: hidden;
}

/* ============================================================
   QUIZ — Sesja 9 (2026-06-19)
   1-step (multi-city) → accordion wynikow po kategoriach
   ============================================================ */

/* Hint pod tytulem kroku (np. „Mozesz wybrac kilka miast.") */
.quiz-wizard__hint {
  margin: 0.5rem 0 0;
  color: var(--text-muted, #9ca3af);
  font-size: 0.95rem;
}

/* Footnote pod siatka miast i pod siatka wynikow (Postgrad Law also-in) */
.quiz-wizard__footnote,
.quiz-results__footnote {
  margin: 1.5rem auto 0;
  padding: 0.875rem 1.25rem;
  max-width: 760px;
  background: rgba(86, 44, 221, 0.07);
  border: 1px solid rgba(86, 44, 221, 0.22);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

/* Margin po footnote w wynikach — odstep miedzy kafelka Postgrad Law a CTA. */
.quiz-results__footnote {
  margin-bottom: 2.5rem;
}

/* Drugi „Pokaz wynik" — pod siatka miast w stepie 1. Centered, oddech od footnote. */
.quiz-wizard__submit-bottom {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.quiz-wizard__footnote strong,
.quiz-results__footnote strong {
  color: #c4b5fd;
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

/* Bristol placeholder card — gradient zamiast img */
.quiz-choice--placeholder .quiz-choice__img {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.quiz-choice--placeholder .quiz-choice__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.quiz-choice__placeholder {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ── Wyniki — accordion kategorii ── */
.quiz-results__grid {
  /* override starego grid-3 — teraz to lista accordion-sekcji */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.quiz-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.quiz-category:hover {
  border-color: rgba(86, 44, 221, 0.4);
}

.quiz-category__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.quiz-category__header:hover,
.quiz-category__header:focus-visible {
  background: rgba(86, 44, 221, 0.06);
  outline: none;
}

.quiz-category__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(86, 44, 221, 0.12);
  color: #c4b5fd;
}

.quiz-category__icon--business    { background: rgba(86, 44, 221, 0.12);  color: #c4b5fd; }
.quiz-category__icon--it          { background: rgba(59, 130, 246, 0.14); color: #93c5fd; }
.quiz-category__icon--law         { background: rgba(186, 44, 115, 0.14); color: #f9a8d4; }
.quiz-category__icon--health      { background: rgba(239, 68, 68, 0.14);  color: #fca5a5; }
.quiz-category__icon--engineering { background: rgba(245, 158, 11, 0.14); color: #fcd34d; }
.quiz-category__icon--creative    { background: rgba(168, 85, 247, 0.14); color: #d8b4fe; }
.quiz-category__icon--psychology  { background: rgba(20, 184, 166, 0.14); color: #5eead4; }
.quiz-category__icon--hospitality { background: rgba(34, 197, 94, 0.14);  color: #86efac; }

.quiz-category__titlewrap {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex: 1;
  flex-wrap: wrap;
}

.quiz-category__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.quiz-category__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.15rem 0.55rem;
  background: rgba(86, 44, 221, 0.18);
  color: #c4b5fd;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.quiz-category__chevron {
  flex-shrink: 0;
  display: flex;
  color: var(--text-muted, #9ca3af);
  transition: transform 0.25s var(--ease);
}

.quiz-category.is-open .quiz-category__chevron {
  transform: rotate(180deg);
}

.quiz-category__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.quiz-category.is-open .quiz-category__body {
  max-height: 5000px; /* arbitrary cap — pozwala na rozwiniecie duzych kategorii */
}

.quiz-category__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.25rem 1.25rem 1.25rem;
}

@media (min-width: 640px) {
  .quiz-category__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .quiz-category__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Karty kursow w accordionie — kompaktowa wersja .quiz-result-card */
.quiz-category__grid .quiz-result-card {
  padding: 0.875rem 1rem 0.75rem;
}

.quiz-category__grid .quiz-result-card__name {
  font-size: 0.95rem;
  line-height: 1.3;
}

.quiz-category__grid .quiz-result-card__uni {
  font-size: 0.8rem;
}

/* ── Hide submit button when displaying results ── */
.quiz-wizard__results { width: 100%; }


