/**
 * Strona kursu (Marketingowy Samuraj): warstwa wizualna tylko dla template-course.php.
 * Hero z warstwami ilustracji (parallax), cięcie przy wejściu sekcji, program jako droga, pieczęć ceny.
 * Bazowe style sekcji są w main.css (sekcja "kurs").
 */

/* --- Hero: parallax warstwowy na papierze washi --- */
.course-ink {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  /* niższe niż ekran: u dołu widać początek kolejnej sekcji */
  min-height: clamp(600px, calc(100svh - 110px), 860px);
  display: flex;
  align-items: center;
  padding: 112px 0 48px;
  background: #f4f1ea;
  color: var(--c-text);
}

.course-ink__layers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.course-ink__layer {
  position: absolute;
  max-width: none;
  will-change: transform;
  user-select: none;
}

.course-ink__layer--bg { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.course-ink__layer--mtn { left: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.course-ink__layer--samurai { right: 3%; bottom: -3%; height: 92%; width: auto; }
.course-ink__layer--fg { left: 0; bottom: -2px; width: 100%; height: auto; min-height: 30%; object-fit: cover; object-position: 50% 0; }

/* iskry / żar (rysowane w course.js) */
.course-ink__embers { inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; opacity: 0.9; }

/* mgła: bezszwowa w poziomie tekstura (fog.webp, krawędzie wygaszone w obrazku), przesuwana powoli */
.course-ink__fog { left: 0; right: 0; overflow: hidden; pointer-events: none; }
.course-ink__fog::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 300%;
  background: url('../img/course/fog.webp') repeat-x 0 0 / 33.3333% 100%;
  animation: course-fog 90s linear infinite;
}
.course-ink__fog--mid { top: 34%; height: 46%; opacity: 0.85; }
.course-ink__fog--low { bottom: 0; height: 40%; opacity: 0.9; }
.course-ink__fog--low::before { animation-duration: 60s; animation-direction: reverse; background-position: 40% 0; }

@keyframes course-fog { to { transform: translateX(-33.3333%); } }

/* mgła przed samurajem, od ziemi do pasa: smuga płynie w poprzek, druga faluje w górę i w dół */
.course-ink__waist {
  right: 0;
  bottom: 0;
  width: min(52vw, 820px);
  height: 52%;
  pointer-events: none;
  -webkit-mask: radial-gradient(ellipse 55% 70% at 52% 85%, #000 35%, transparent 78%);
          mask: radial-gradient(ellipse 55% 70% at 52% 85%, #000 35%, transparent 78%);
}
.course-ink__waist::before,
.course-ink__waist::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 300%;
  background: url('../img/course/fog.webp') repeat-x 0 0 / 33.3333% 100%;
}
.course-ink__waist::before { opacity: 0.95; animation: course-fog 40s linear infinite; }
.course-ink__waist::after { opacity: 0.7; background-position: 60% 0; animation: course-fog 26s linear infinite reverse, course-swell 9s ease-in-out infinite; }

@keyframes course-swell {
  0%, 100% { top: 18%; }
  50% { top: 0; }
}

/* mgła unosząca się za samurajem: dwie smugi wznoszą się i rozpływają na zmianę */
.course-ink__rise {
  right: 6%;
  bottom: 8%;
  width: min(42vw, 640px);
  height: 78%;
  pointer-events: none;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 60%, #000 30%, transparent 75%);
          mask: radial-gradient(ellipse 50% 50% at 50% 60%, #000 30%, transparent 75%);
}
.course-ink__rise::before,
.course-ink__rise::after {
  content: '';
  position: absolute;
  inset: 20% -20% 0;
  background: url('../img/course/fog.webp') repeat-x 0 0 / 160% 100%;
  opacity: 0;
  animation: course-rise 16s ease-in-out infinite;
}
.course-ink__rise::after { background-position: 55% 0; animation-delay: -8s; }

@keyframes course-rise {
  0%   { transform: translate3d(0, 18%, 0) scale(1); opacity: 0; }
  25%  { opacity: 0.85; }
  70%  { opacity: 0.6; }
  100% { transform: translate3d(-6%, -32%, 0) scale(1.25); opacity: 0; }
}

/* 侍 (samuraj) na tarczy słońca, jak pieczęć */
.course-ink__kanji {
  right: 31%;
  top: max(13%, 118px);
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: clamp(100px, 9.5vw, 170px);
  line-height: 1;
  color: #0f1010;
  opacity: 0.88;
}

/* jasny welon pod tekstem, żeby czytało się na ilustracji */
.course-ink::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(244,241,234,0.94) 0%, rgba(244,241,234,0.82) 38%, rgba(244,241,234,0) 62%);
}

.course-ink__wrap { position: relative; }
.course-ink__copy { max-width: 740px; will-change: transform; }

.course-ink__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text);
}

.course-ink__eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--c-text); }

.course-ink h1, .course-ink .course-ink__title {
  margin: 0 0 18px;
  font-size: clamp(36px, min(3.9vw, 7.2vh), 60px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #0f1010;
}

.course-ink__hl {
  background: linear-gradient(transparent 62%, var(--c-yellow) 62%, var(--c-yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.course-ink__lead { max-width: 640px; margin: 0 0 22px; font-size: 16.5px; line-height: 1.6; color: #3d3d3a; }

.course-ink .course-cta__btn { background: #0f1010; color: var(--c-yellow); box-shadow: 0 16px 34px -16px rgba(15,16,16,0.6); }
.course-ink .course-cta__btn:hover { color: var(--c-yellow); box-shadow: 0 22px 40px -16px rgba(15,16,16,0.7); }


@media (max-width: 900px) {
  /* telefon: najpierw kadr z samurajem (pod pływającym menu), niżej tekst na papierze */
  .course-ink { --scene: max(118vw, 440px); display: block; min-height: 0; padding: 0 0 44px; }
  .course-ink::after { background: linear-gradient(180deg, rgba(244,241,234,0) 0, rgba(244,241,234,0) calc(var(--scene) - 150px), #f4f1ea calc(var(--scene) - 20px)); }
  .course-ink__layers { top: 0; bottom: auto; height: var(--scene); }
  .course-ink__wrap { padding-top: calc(var(--scene) - 70px); }
  .course-ink__layer--bg { object-position: 66% 20%; }
  .course-ink__layer--mtn { object-position: 70% 100%; }
  .course-ink__layer--samurai { right: -4%; left: auto; height: 70%; width: auto; bottom: 7%; }
  .course-ink__rise { right: 0; width: 80vw; }
  .course-ink__waist { width: 100vw; height: 46%; }
  .course-ink__kanji { right: auto; left: 7%; top: 30%; font-size: 24vw; }
  .course-ink__fog--mid { top: 40%; }
  .course-ink h1, .course-ink .course-ink__title { font-size: clamp(34px, 9.6vw, 50px); }
  .course-ink__lead { font-size: 16px; }
  .course-ink__eyebrow { font-size: 11px; letter-spacing: 0.12em; }
  .course-ink__eyebrow::before { display: none; }
  .course-ink .course-cta__price > b { font-size: 52px; }
  .course-ink .course-cta__btn { width: 100%; }
}

/* --- Cena premierowa jako pieczęć hanko --- */
.is-course-page .course-cta__badge {
  position: relative;
  padding: 6px 12px;
  border-radius: 4px;
  background: transparent;
  color: var(--c-yellow);
  box-shadow: inset 0 0 0 2px currentColor, inset 0 0 0 4px transparent, inset 0 0 0 5px currentColor;
  letter-spacing: 0.08em;
}

.is-course-page .course-program .course-cta__badge { display: none; }

/* --- CTA w programie: gwiazdki (tylko z prawdziwych opinii) i korzyści --- */
.course-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 18px; color: #4a4a47; font-size: 14px; }
.course-rating b { color: #0f1010; font-size: 15px; }
.course-rating small { flex-basis: 100%; color: #8a877d; font-size: 12px; }
.course-rating__stars { font-size: 19px; line-height: 1; letter-spacing: 2px; background: linear-gradient(90deg, #f2b600 var(--r, 100%), #d9d6cc var(--r, 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.course-cta__perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 2px; padding: 0; list-style: none; }
.course-cta__perks li { position: relative; padding-left: 22px; color: #3c3c39; font-size: 14px; line-height: 1.4; }
.course-cta__perks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.2' fill='none' stroke='%230f1010' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
/* licznik w programie: prosty tekst jak w hero, bez żółtej pigułki */
.is-course-page .course-program .course-cta__timer { padding: 0; border: 0; background: none; color: #0f1010; font-size: 14.5px; font-weight: 600; }
.is-course-page .course-program .course-cta__timer b { background: linear-gradient(transparent 58%, var(--c-yellow) 58%, var(--c-yellow) 92%, transparent 92%); font-weight: 800; }

/* --- Cena i przycisk w programie: cena z żółtym podkreśleniem i kwotą oszczędności, szeroki przycisk z błyskiem --- */
.course-program .course-rating { margin: -2px 0 16px; }
.course-program .course-cta__price, .course-ink .course-cta__price { align-items: center; gap: 6px 16px; margin-bottom: 6px; }
.course-program .course-cta__price > s, .course-ink .course-cta__price > s { order: 1; font-size: 24px; color: #6b6b68; opacity: 1; text-decoration-thickness: 2px; }
.course-program .course-cta__price > b, .course-ink .course-cta__price > b {
  order: 2; font-size: clamp(56px, 5.2vw, 76px); letter-spacing: -0.045em; color: #0f1010;
  background: linear-gradient(transparent 62%, var(--c-yellow) 62%, var(--c-yellow) 90%, transparent 90%); padding: 0 4px;
}
.course-cta__save { order: 0; flex-basis: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 4px; color: #0f1010; font-family: var(--f-heading); font-size: 19px; font-weight: 700; }
.course-ink .course-cta__badge { display: none; }
.course-cta__save b { padding: 5px 10px; border-radius: 6px; background: #0f1010; color: var(--c-yellow); font-size: 16px; font-weight: 800; letter-spacing: 0.02em; }
.course-program .course-cta__btn {
  position: relative; overflow: hidden; min-width: 340px; min-height: 70px; padding: 0 48px; font-size: 19px;
  box-shadow: 0 18px 40px -16px rgba(233, 196, 0, 0.75); transition: transform .25s ease, box-shadow .25s ease;
}
.course-program .course-cta__btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.65), transparent); transform: translateX(-160%) skewX(-18deg);
  animation: course-btn-shine 4.5s ease-in-out 1.5s infinite;
}
.course-program .course-cta__btn span { transition: transform .25s ease; }
.course-program .course-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -16px rgba(233, 196, 0, 0.9); }
.course-program .course-cta__btn:hover span { transform: translateX(5px); }
.course-program .course-cta__btn:active { transform: translateY(0) scale(0.98); }
@keyframes course-btn-shine { 0%, 62% { transform: translateX(-160%) skewX(-18deg); } 100% { transform: translateX(320%) skewX(-18deg); } }
@media (max-width: 760px) {
  .course-program .course-cta__btn { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .course-program .course-cta__btn::after, .course-offer__card .course-cta__btn::after, .course-offer__award::after, .course-final .course-cta__btn::after { animation: none; display: none; }
}

/* strzałka od kursora do przycisku w programie (canvas na całym oknie, course.js) */
.course-aim-canvas { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; }

/* --- Cięcie: żółta linia przecina sekcję, treść odsłania się po skosie --- */
[data-course-cut] { position: relative; overflow: hidden; }

.course-cut {
  position: absolute;
  z-index: 3;
  left: -10%;
  top: 0;
  width: 120%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-yellow) 18%, #fff6b0 50%, var(--c-yellow) 82%, transparent);
  box-shadow: 0 0 18px rgba(255,215,0,0.7);
  transform-origin: left center;
  transform: rotate(-4deg) scaleX(0);
  opacity: 0;
  pointer-events: none;
}

.fx-on [data-course-cut] > .container {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.9s 0.35s cubic-bezier(.7,0,.2,1);
}

.fx-on [data-course-cut].is-cut > .container { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

.fx-on [data-course-cut].is-cut .course-cut { animation: course-slash 0.75s cubic-bezier(.7,0,.2,1) forwards; }

@keyframes course-slash {
  0%   { top: 30%; opacity: 1; transform: rotate(-4deg) scaleX(0); }
  55%  { top: 30%; opacity: 1; transform: rotate(-4deg) scaleX(1); }
  100% { top: 30%; opacity: 0; transform: rotate(-4deg) scaleX(1) translateY(-6px); }
}

/* --- Program jako droga --- */
.course-program__list[data-course-path] { position: relative; --path: 0; }

.course-program__list[data-course-path]::before,
.course-program__list[data-course-path]::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 39px;
  top: 38px;
  width: 2px;
  bottom: 38px;
  border-radius: 2px;
  pointer-events: none;
}

.course-program__list[data-course-path]::before { background: var(--c-border); }

.course-program__list[data-course-path]::after {
  background: linear-gradient(to bottom, var(--c-yellow-dim), var(--c-yellow));
  box-shadow: 0 0 12px rgba(255,215,0,0.6);
  transform-origin: top;
  transform: scaleY(var(--path));
}

.course-program__list[data-course-path] .course-module__num {
  position: relative;
  z-index: 2;
  transition: background 0.35s, box-shadow 0.35s, transform 0.35s;
}

.course-module.is-lit .course-module__num {
  background: var(--c-dark-bg);
  color: var(--c-yellow);
  box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-yellow);
  transform: scale(1.04);
}

.course-module.is-lit.is-open .course-module__num { background: var(--c-yellow); color: var(--c-text); }

/* --- Znasz to?: nagłówek po lewej (przyklejony), po prawej pytania z odpowiedzią kursu --- */
.course-know { padding: 130px 0 120px; background: #f4f1ea; }
.course-know[data-course-cut] { overflow: clip; } /* hidden psuje sticky */
.course-know__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 88px; align-items: start; }
.course-know__head { position: sticky; top: 140px; }
.course-know__mark {
  position: absolute; z-index: 0; left: -0.12em; top: -0.42em; pointer-events: none;
  font-family: 'Noto Serif JP', serif; font-weight: 900; font-size: clamp(200px, 20vw, 320px); line-height: 1;
  color: rgba(15, 16, 16, 0.055);
}
.course-know__head > *:not(.course-know__mark) { position: relative; z-index: 1; }
.course-know .eyebrow { color: #7a6400; }
.course-know h2 { margin: 14px 0 26px; font-size: clamp(56px, 7vw, 108px); line-height: 0.95; letter-spacing: -0.045em; }
.course-know__head p { max-width: 430px; margin: 0; padding-left: 20px; border-left: 3px solid var(--c-yellow); color: #3c3c39; font-size: 17.5px; line-height: 1.65; }
.course-know__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid rgba(15, 16, 16, 0.16); }
.course-know__item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 28px; padding: 36px 0 34px; border-top: 1px solid rgba(15, 16, 16, 0.16); }
.course-know__item::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: #0f1010; transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.7,0,.2,1); }
.course-know__item:hover::before { transform: scaleX(1); }
.course-know__num {
  grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-yellow); color: #0f1010; font-family: var(--f-heading); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; line-height: 1;
}
.course-know__q { margin: 4px 0 14px; color: #0f1010; font-family: var(--f-heading); font-weight: 700; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.28; letter-spacing: -0.015em; }
.course-know__a { margin: 0; color: #3c3c39; font-size: 16.5px; line-height: 1.6; }
.course-know__a b { display: inline-block; margin-right: 8px; padding: 3px 8px 2px; border-radius: 3px; background: #0f1010; color: var(--c-yellow); font-family: var(--f-heading); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; vertical-align: 2px; }
.fx-on .course-know__item { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(0.9s + var(--i) * 0.16s); }
.fx-on .course-know.is-cut .course-know__item { opacity: 1; transform: none; }

/* Znasz to?: kartka washi zakrywa sekcję, ostrze tnie ją po skosie, połowy rozjeżdżają się, na końcu katana wbija się w trawę */
.course-know__sheet, .course-know__slash { display: none; }
.fx-on .course-know > .container { clip-path: none; transition: none; }
.fx-on .course-know__sheet { display: block; position: absolute; inset: -2px; z-index: 5; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(15, 16, 16, 0.18)); }
.course-know__sheet i {
  position: absolute; inset: 0; background-color: #efe9dc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.course-know__sheet--a i { clip-path: polygon(0 0, 100% 0, 100% 37%, 0 63%); }
.course-know__sheet--b i { clip-path: polygon(0 63%, 100% 37%, 100% 100%, 0 100%); }
.fx-on .course-know.is-cut .course-know__sheet { transition: transform 1.05s cubic-bezier(.6,0,.25,1) .42s, opacity .3s ease 1.25s; opacity: 0; }
.fx-on .course-know.is-cut .course-know__sheet--a { transform: translate(-4%, -78%) rotate(-5deg); }
.fx-on .course-know.is-cut .course-know__sheet--b { transform: translate(4%, 78%) rotate(4deg); }
.fx-on .course-know__slash { display: block; position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.course-know__slash line { stroke: #0f1010; stroke-width: 2.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 3px rgba(255, 215, 0, 1)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)); }
.fx-on .course-know.is-cut .course-know__slash line { animation: course-slash-draw .62s cubic-bezier(.7,0,.2,1) .05s forwards; }
@keyframes course-slash-draw {
  0%   { stroke-dashoffset: 1; opacity: 1; }
  55%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.fx-on .course-know__item { transition-delay: calc(1s + var(--i) * 0.14s); }

/* katana wbita w kępę trawy, za tekstem; ostrze chowa się za trawą */
.course-know__head > .course-know__blade { position: relative; z-index: 0; height: 380px; margin-top: -20px; clip-path: inset(-300vh -40% 0 -40%); pointer-events: none; }
.course-know__katana { position: absolute; left: 44%; bottom: -120px; width: 140px; height: auto; transform: rotate(5deg); transform-origin: 50% 100%; }
.course-know__grass { position: absolute; left: calc(44% + 70px); bottom: -6px; width: 400px; max-width: none; height: auto; transform: translateX(-50%); -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%); mask-image: linear-gradient(to top, transparent 0, #000 22%); }
.course-know__dust { position: absolute; left: calc(44% + 70px); bottom: 30px; }
.course-know__dust i { position: absolute; left: 0; top: 0; width: 4px; height: 4px; background: #2b2a26; opacity: 0; }
.fx-on .course-know__katana { transform: translateY(-160vh) rotate(5deg); }
.fx-on .course-know.is-cut .course-know__katana { animation: course-katana-drop .42s cubic-bezier(.55,0,1,.5) 1.55s forwards, course-katana-hit .5s ease-out 1.97s; }
@keyframes course-katana-drop { to { transform: translateY(0) rotate(5deg); } }
@keyframes course-katana-hit {
  0% { transform: translateY(6px) rotate(5deg); }
  30% { transform: translateY(0) rotate(7deg); }
  60% { transform: translateY(0) rotate(4deg); }
  100% { transform: translateY(0) rotate(5deg); }
}
.fx-on .course-know.is-cut .course-know__grass { animation: course-grass-hit .5s ease-out 1.97s; transform-origin: 50% 100%; }
@keyframes course-grass-hit { 0% { transform: translateX(-50%) scaleY(1); } 30% { transform: translateX(-50%) scaleY(1.06); } 100% { transform: translateX(-50%) scaleY(1); } }
.fx-on .course-know.is-cut .course-know__dust i { animation: course-dust .7s cubic-bezier(.2,.7,.3,1) 1.97s forwards; }
.course-know__dust i:nth-child(1) { --dx: -46px; --dy: -34px; }
.course-know__dust i:nth-child(2) { --dx: -24px; --dy: -52px; width: 3px; height: 3px; }
.course-know__dust i:nth-child(3) { --dx: -8px; --dy: -40px; }
.course-know__dust i:nth-child(4) { --dx: 18px; --dy: -56px; width: 3px; height: 3px; }
.course-know__dust i:nth-child(5) { --dx: 38px; --dy: -30px; }
.course-know__dust i:nth-child(6) { --dx: 56px; --dy: -44px; width: 3px; height: 3px; background: #b39200; }
@keyframes course-dust { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(90deg); } }

@media (max-width: 900px) {
  .course-know__head > .course-know__blade { position: absolute; right: -6px; top: -72px; width: 130px; height: 210px; margin: 0; }
  .course-know__katana { left: 50%; width: 64px; bottom: -56px; margin-left: -32px; }
  .course-know__grass { left: 50%; width: 200px; bottom: -4px; }
  .course-know__dust { left: 50%; bottom: 14px; }
  .course-know h2, .course-know .eyebrow { max-width: calc(100% - 120px); }
}

/* --- Fakty: pas z liczbami, każda wskazuje moduł kursu --- */
.course-stats { padding: 110px 0 120px; background: #fff; }
.course-stats__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 48px; }
.course-stats__head h2 { flex: 0 1 640px; margin: 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; order: -1; }
.course-stats .eyebrow { color: #7a6400; }
.course-stats__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 2px solid #0f1010; }
.course-stats__list li { display: flex; flex-direction: column; padding: 34px 36px 6px; border-left: 1px solid rgba(15, 16, 16, 0.14); }
.course-stats__list li:first-child { padding-left: 0; border-left: 0; }
.course-stats__num {
  align-self: flex-start; margin-bottom: 20px; color: #0f1010; font-family: var(--f-heading); font-weight: 800;
  font-size: clamp(72px, 7.6vw, 124px); line-height: 0.9; letter-spacing: -0.055em; font-variant-numeric: tabular-nums;
  background: linear-gradient(transparent 62%, var(--c-yellow) 62%, var(--c-yellow) 90%, transparent 90%) no-repeat 0 0 / var(--hl, 100%) 100%;
  transition: background-size 1s .2s cubic-bezier(.7,0,.2,1);
}
.fx-on .course-stats__num { --hl: 0%; }
.fx-on .course-stats.is-in .course-stats__num { --hl: 100%; }
.course-stats__text { color: #0f1010; font-size: 17.5px; font-weight: 500; line-height: 1.45; }
.course-stats__src { margin-top: 10px; color: #6b6b68; font-size: 12.5px; line-height: 1.5; }
.course-stats__mod { margin-top: auto; padding-top: 22px; color: #0f1010; font-family: var(--f-heading); font-size: 14px; font-weight: 700; text-decoration: none; }
.course-stats__mod::before { content: "→ "; color: #b39200; }
.course-stats__mod:hover { text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }

@media (max-width: 900px) {
  .course-know { padding: 84px 0 80px; }
  .course-know__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .course-know__head { position: relative; top: 0; }
  .course-know__mark { font-size: 190px; }
  .course-know h2 { font-size: clamp(52px, 15vw, 76px); }
  .course-know__item { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding: 28px 0 26px; }
  .course-know__num { width: 44px; height: 44px; font-size: 15px; }
  .course-stats { padding: 80px 0 84px; }
  .course-stats__head { margin-bottom: 28px; }
  .course-stats__list { grid-template-columns: minmax(0, 1fr); }
  .course-stats__list li, .course-stats__list li:first-child { padding: 28px 0 28px; border-left: 0; border-bottom: 1px solid rgba(15, 16, 16, 0.14); }
  .course-stats__num { font-size: clamp(72px, 22vw, 96px); }
}

/* samuraj w tuszu za nagłówkiem sekcji pytań; dół wygaszony, kafle przykrywają go od dołu */
.course-asks { position: relative; overflow: hidden; }
.course-asks > .container { position: relative; }
.course-asks__head, .course-bento { position: relative; z-index: 1; }
.course-asks__head h2, .course-asks__head p { text-shadow: 0 1px 2px rgba(13, 14, 14, 0.9), 0 0 18px rgba(13, 14, 14, 0.85); }
.course-asks__head p { color: #c9c6bc; }
.course-asks__warrior {
  position: absolute; z-index: 0; top: 150px; left: calc(50% + min(720px, 50vw - 60px)); height: 1780px; width: auto; max-width: none; pointer-events: none; transform: translateX(-59%);
  opacity: 0.6; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 52% 40%, #000 60%, transparent 100%), linear-gradient(to right, transparent 4%, #000 36%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 58% 62% at 52% 40%, #000 60%, transparent 100%), linear-gradient(to right, transparent 4%, #000 36%);
  mask-composite: intersect;
}
/* dym spowijający samuraja od pasa w dół (ta sama oś co postać) */
.course-asks__smoke {
  position: absolute; z-index: 0; top: 720px; height: 1200px; width: 1300px; left: calc(50% + min(720px, 50vw - 60px)); transform: translateX(-50%);
  overflow: hidden; pointer-events: none; mix-blend-mode: screen; opacity: 0.95;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 72%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 72%);
}
.course-asks__smoke::before, .course-asks__smoke::after { content: ""; position: absolute; left: 0; width: 300%; background: url("../img/course/fog.webp") repeat-x 0 0 / 33.3333% 100%; animation: course-fog 46s linear infinite; }
.course-asks__smoke::before { top: 18%; height: 55%; }
.course-asks__smoke::after { top: 34%; height: 50%; animation: course-fog 30s linear infinite reverse, course-smoke-swell 9s ease-in-out infinite alternate; }
@keyframes course-smoke-swell { from { top: 38%; opacity: 0.7; } to { top: 24%; opacity: 1; } }
.course-asks .course-bento__tile { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 215, 0, 0.07), transparent 60%), rgba(22, 23, 23, 0.78); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
@media (max-width: 900px) {
  .course-asks__warrior { top: 80px; left: 78%; height: 1100px; opacity: 0.35; }
  .course-asks__smoke { top: 520px; left: 78%; width: 900px; height: 800px; opacity: 0.4; }
}

/* --- Pytania z grup: bento, każdy kafel z inną wizualizacją z treści pytania --- */
.course-bento {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none;
}
.course-bento__tile {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 215, 0, 0.07), transparent 60%), #161717;
  transition: border-color .3s ease, box-shadow .4s ease, transform .4s ease;
}
.course-bento__tile:hover { border-color: rgba(255, 215, 0, 0.32); box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.08), 0 24px 70px -24px rgba(255, 215, 0, 0.38); }
.course-bento__tile--a, .course-bento__tile--wide { grid-column: span 2; }
.course-bento__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.course-bento__tile--wide .course-bento__q { font-family: var(--f-heading); font-weight: 700; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.35; letter-spacing: -0.01em; }
.course-bento__q { margin: 0; color: #f4f1ea; font-size: 16px; line-height: 1.55; }
.course-bento__tile--a .course-bento__q { font-family: var(--f-heading); font-weight: 700; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.28; letter-spacing: -0.015em; }
.course-bento__why { margin: -10px 0 0; color: #a9a69c; font-size: 14.5px; line-height: 1.6; }
.course-bento__row .course-bento__why { margin-top: 12px; }
.course-bento__lesson { display: grid; gap: 3px; margin-top: auto; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #e6e3da; font-size: 14px; line-height: 1.45; text-decoration: none; }
.course-bento__lesson b { color: var(--c-yellow); font-family: var(--f-heading); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.course-bento__lesson span { color: #f4f1ea; font-weight: 600; }
.course-bento__lesson em { color: #9a9a8e; font-style: normal; }
.course-bento__lesson:hover span { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }


/* A: lejek z pytania: kliknięcia -> koszyk -> sprzedaż */
.course-bento__funnel { display: grid; gap: 14px; }
.course-bento__funnel > span { display: grid; grid-template-columns: 130px minmax(0, 1fr) 56px; align-items: center; gap: 16px; }
.course-bento__funnel em { color: #c9c6bc; font-size: 14px; font-style: normal; }
.course-bento__funnel i { display: block; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.course-bento__funnel i::after { content: ""; display: block; height: 100%; width: var(--w); background: #e6e3da; transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.7,0,.2,1) .3s; }
.course-bento__funnel span:nth-child(3) i::after { transition-delay: .7s; }
.course-bento__funnel b { color: #f4f1ea; font-family: var(--f-heading); font-size: 26px; font-weight: 800; line-height: 1; text-align: right; letter-spacing: -0.03em; }
.course-bento__funnel .is-zero b { color: var(--c-yellow); font-size: 40px; }
.course-bento__funnel .is-zero i { box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.45); }
.course-bento.was-in .course-bento__funnel i::after { transform: scaleX(1); }

/* E: 30% budżetu */
.course-bento__split { display: flex; align-items: center; gap: 26px; }
.course-bento__big { flex: none; color: var(--c-yellow); font-family: var(--f-heading); font-size: clamp(56px, 5.4vw, 84px); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; }

/* C: chmura pojęć */
.course-bento__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.course-bento__chips span { padding: 6px 11px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; color: #c9c6bc; font-size: 12.5px; animation: course-chip 3.6s ease-in-out infinite paused; }
.course-bento__chips span:nth-child(2n) { animation-delay: -1.2s; }
.course-bento__chips span:nth-child(3n) { animation-delay: -2.4s; border-color: rgba(255, 215, 0, 0.4); color: var(--c-yellow); }
@keyframes course-chip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) rotate(-1.5deg); } }

/* D: wykres spada do zera */
.course-bento__chart { width: 100%; height: auto; overflow: visible; }
.course-bento__chart polyline { fill: none; stroke: var(--c-yellow); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; transition: stroke-dashoffset 1.6s cubic-bezier(.6,0,.3,1) .3s; }
.course-bento__mark { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; stroke-dasharray: 3 4; }
.course-bento__chart text { fill: #9a9a8e; font-size: 10px; font-family: var(--f-body, inherit); }

/* B: kontakty czy sprzedaż (bez animacji) */
.course-bento__toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.course-bento__toggle span { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; color: #e6e3da; }
.course-bento__toggle em { color: #9a9a8e; font-style: normal; font-size: 13px; }

/* F: faza nauki */
.course-bento__learn { display: grid; gap: 8px; max-width: 360px; color: #9a9a8e; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.course-bento__learn em { font-style: normal; }
.course-bento__learn i { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.course-bento__learn i::after { content: ""; display: block; width: 100%; height: 100%; background: var(--c-yellow); transform-origin: left; transform: scaleX(0.04); animation: course-learn 7s ease-in-out infinite paused; }
@keyframes course-learn { 0% { transform: scaleX(0.04); } 85% { transform: scaleX(0.62); } 100% { transform: scaleX(0.62); } }

/* .was-in: siatka raz się pojawiła (wjazd, wykresy); .is-in: jest na ekranie (pętle animacji działają tylko wtedy) */
.course-bento.is-in .course-bento__chips span,
.course-bento.is-in .course-bento__learn i::after { animation-play-state: running; }
.course-bento.was-in .course-bento__chart polyline { stroke-dashoffset: 0; }
.fx-on .course-bento__tile { opacity: 0; transform: translateY(28px); transition: opacity .6s ease calc(var(--i) * .09s), transform .7s cubic-bezier(.2,.7,.2,1) calc(var(--i) * .09s), border-color .3s ease, box-shadow .4s ease; }
.fx-on .course-bento.was-in .course-bento__tile { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .course-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-bento__row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
  .course-bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .course-bento__tile--a, .course-bento__tile--wide { grid-column: auto; }
  .course-bento__tile, .course-bento__tile--a { padding: 22px; }
  .course-bento__funnel > span { grid-template-columns: 96px minmax(0, 1fr) 48px; gap: 10px; }
  .course-bento__funnel em { font-size: 12.5px; }
  .course-bento__split { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* --- Dla kogo: karty w stylu kafli z sekcji pytań (ramka, linie między punktami, poświata), ptaszki i krzyżyki z main.css --- */
.is-course-page .course-fit { position: relative; overflow: hidden; padding: 130px 0 140px; background: #f4f1ea; }
.is-course-page .course-fit > .container { position: relative; z-index: 1; }
/* gałąź sakury z lewego górnego rogu + spadające płatki (canvas, course.js) */
.course-fit__sakura { position: absolute; z-index: 0; left: -50px; top: -50px; width: min(40vw, 580px); height: auto; pointer-events: none; opacity: 0.5; }
.course-fit__petals { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.is-course-page .course-fit__head { margin-bottom: 40px; }
.is-course-page .course-fit__head h2 { margin-top: 10px; font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -0.03em; }
.is-course-page .course-fit__grid { gap: 20px; align-items: stretch; perspective: 1200px; }
/* przechył 3D za kursorem z odblaskiem (jak be-ui tilt-card z 21st.dev); --rx/--ry/--gx/--gy z course.js */
.is-course-page .course-fit__col { position: relative; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; will-change: transform; }
.is-course-page .course-fit__col::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--glare, 0); transition: opacity .3s ease; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.75), transparent 55%); mix-blend-mode: soft-light; }
.is-course-page .course-fit__col.is-tilting { transition: border-color .3s ease, box-shadow .4s ease; }
.is-course-page .course-fit__col:not(.is-tilting) { transition: transform .6s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .4s ease; }
.is-course-page .course-fit__col {
  padding: 34px 36px 26px; border-radius: 20px; border: 1px solid rgba(15, 16, 16, 0.1); background: #fff; box-shadow: none;
  transition: border-color .3s ease, box-shadow .4s ease;
}
.is-course-page .course-fit__col--yes { border-color: rgba(233, 196, 0, 0.55); background: linear-gradient(180deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.03)), #fff; }
.is-course-page .course-fit__col--yes:hover { box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.25), 0 24px 60px -28px rgba(233, 196, 0, 0.55); }
.is-course-page .course-fit__col--no { background: #f7f6f2; }
.is-course-page .course-fit__col--no:hover { border-color: rgba(15, 16, 16, 0.18); }
.is-course-page .course-fit__col h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.02em; color: #0f1010; }
.is-course-page .course-fit__col--no h3 { color: #4a4a47; }
.is-course-page .course-fit__col ul { gap: 0; }
.is-course-page .course-fit__col li { padding: 16px 0 16px 40px; border-top: 1px solid rgba(15, 16, 16, 0.08); font-size: 17px; line-height: 1.5; color: #1c1c1a; }
.is-course-page .course-fit__col li:first-child { border-top: 0; }
.is-course-page .course-fit__col--no li { color: #4a4a47; }
.is-course-page .course-fit__col li::before { top: 18px; }
@media (max-width: 760px) {
  .is-course-page .course-fit { padding: 96px 0 84px; }
  .course-fit__sakura { width: 82vw; left: -30px; top: -20px; }
  .is-course-page .course-fit__col { padding: 26px 22px 18px; }
  .is-course-page .course-fit__col li { font-size: 16px; padding: 14px 0 14px 38px; }
  .is-course-page .course-fit__col li::before { top: 15px; }
}

/* --- Wideo: kadr przechylony jak ekran, prostuje się przy przewijaniu (--tilt 0 -> 1 z course.js) --- */
.course-video { --tilt: 1; position: relative; overflow: hidden; padding: 120px 0 140px; background: #0f1010; color: #f4f1ea; }
.course-video__head { max-width: 760px; margin: 0 auto; text-align: center; transform: translateY(calc((1 - var(--tilt)) * 48px)); }
.course-video .eyebrow { color: var(--c-yellow); }
.course-video h2 { margin: 12px 0 14px; color: #f4f1ea; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
.course-video__head p { margin: 0 auto; max-width: 560px; color: #b9b6ac; font-size: 17px; line-height: 1.6; }
.course-video__stage { margin-top: 56px; perspective: 1100px; }
.course-video__frame {
  max-width: 1040px; margin: 0 auto; padding: 12px;
  background: #161717; border: 1px solid rgba(255, 215, 0, 0.28); border-radius: 22px;
  transform: rotateX(calc((1 - var(--tilt)) * 20deg)) scale(calc(1.05 - var(--tilt) * 0.05));
  transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 9px 20px rgba(0,0,0,0.29), 0 37px 37px rgba(0,0,0,0.26), 0 84px 50px rgba(0,0,0,0.15), 0 149px 60px rgba(0,0,0,0.04);
}
.course-video__screen {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px;
  overflow: hidden; background: #000; color: inherit; cursor: pointer;
}
.course-video__screen img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(0.8); transition: filter .3s ease; }
.course-video__screen:hover img { filter: brightness(0.65) saturate(0.9); }
.course-video__screen iframe, .course-video__screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.course-video__play {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: var(--c-yellow); box-shadow: 0 0 0 10px rgba(255, 215, 0, 0.16); transition: transform .25s ease, box-shadow .25s ease;
}
.course-video__play::before { content: ""; position: absolute; left: 38px; top: 30px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #0f1010; }
.course-video__screen:hover .course-video__play { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(255, 215, 0, 0.14); }
.course-video__screen:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 4px; }
.course-video__screen.is-empty { cursor: default; }
.course-video__screen.is-empty .course-video__play { background: transparent; border: 2px solid rgba(255, 215, 0, 0.7); box-shadow: none; transform: none; }
.course-video__screen.is-empty .course-video__play::before { left: 36px; top: 28px; border-left-color: rgba(255, 215, 0, 0.85); }
.course-video__soon { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-family: var(--f-heading); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244, 241, 234, 0.85); }

/* sosna wyrastająca spod lewego dolnego rogu kadru + pionowe 武士道 (bushidō, droga wojownika) */
.course-video__stage { position: relative; }
.course-video__frame { position: relative; z-index: 1; }
.course-video__pine { position: absolute; z-index: 0; left: max(-380px, calc((100vw - 100%) / -2 - 70px)); bottom: -110px; width: min(42vw, 560px); height: auto; pointer-events: none; opacity: 0.85; -webkit-mask-image: linear-gradient(to top, transparent 4%, #000 26%), linear-gradient(to left, transparent 2%, #000 22%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, transparent 4%, #000 26%), linear-gradient(to left, transparent 2%, #000 22%); mask-composite: intersect; }
.course-video__kanji {
  position: absolute; z-index: 0; top: -70px; left: max(-110px, calc((100vw - 100%) / -2 + 16px)); writing-mode: vertical-rl;
  font-family: 'Noto Serif JP', serif; font-weight: 900; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: 0.12em; color: var(--c-yellow); opacity: 0.9;
}
@media (max-width: 1300px) { .course-video__kanji { display: none; } }
@media (max-width: 760px) { .course-video__pine { left: -16px; bottom: 10px; width: 70vw; opacity: 0.6; } }

/* link do zwiastuna w hero (tylko gdy jest wideo) */
.course-ink__trailer { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: #0f1010; font-weight: 600; font-size: 15px; text-decoration: none; }
.course-ink__trailer span { position: relative; width: 30px; height: 30px; border: 1.5px solid currentColor; border-radius: 50%; }
.course-ink__trailer span::before { content: ""; position: absolute; left: 11px; top: 8px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent currentColor; }
.course-ink__trailer:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .course-video { padding: 80px 0 90px; }
  .course-video__stage { margin-top: 36px; }
  .course-video__frame { padding: 6px; border-radius: 14px; transform: rotateX(calc((1 - var(--tilt)) * 14deg)) scale(calc(0.9 + var(--tilt) * 0.1)); }
  .course-video__screen { border-radius: 9px; }
  .course-video__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .course-video__play::before { left: 27px; top: 21px; border-width: 13px 0 13px 20px; }
  .course-video__screen.is-empty .course-video__play::before { left: 25px; top: 19px; }
  .course-video__soon { bottom: 14px; font-size: 11px; }
}

/* --- Program: tytuł modułu z opisem efektu, liczba lekcji jako etykieta, moduły reklamowe (09–10) wyróżnione --- */
.course-module { transition: box-shadow .25s ease, transform .25s ease; }
.course-module:hover { box-shadow: 0 0 0 1px rgba(15, 16, 16, 0.18), 0 14px 30px -20px rgba(15, 16, 16, 0.35); }
.course-module__head { padding: 18px 20px; }
.course-module__title { display: grid; gap: 4px; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.course-module__title small { color: #6b6b68; font-family: var(--f-body, inherit); font-size: 14.5px; font-weight: 400; letter-spacing: 0; }
.course-module__count { padding: 5px 10px; border-radius: 999px; background: var(--c-surface); color: #4a4a47; font-size: 12.5px; font-weight: 600; }
.course-module.is-key { box-shadow: 0 0 0 1.5px rgba(233, 196, 0, 0.7); background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent 60%), var(--c-bg); }
.course-module.is-key .course-module__count { background: var(--c-yellow); color: #0f1010; }
.course-module__body li { font-size: 15px; }
@media (max-width: 760px) {
  .course-module__title { font-size: 16px; }
  .course-module__title small { font-size: 13.5px; }
}

/* --- Prowadzący: liczniki (odliczają się po wjechaniu na ekran, course.js) --- */
.course-author .course-author__facts { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 22px 56px; margin-top: 8px; }
.course-author .course-author__facts b { font-size: clamp(36px, 3.2vw, 46px); font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.course-author .course-author__facts span { display: block; margin-top: 6px; font-size: 14px; }
.course-author .course-author__facts b span { display: inline; margin: 0; font-size: inherit; color: inherit; }
.course-author .course-author__facts .is-range b { font-size: clamp(28px, 2.4vw, 34px); }
.course-author .course-author__facts .is-range i { color: #b39200; font-style: normal; }
.course-author .course-author__facts li { padding-left: 14px; border-left: 3px solid var(--c-yellow); }
@media (max-width: 520px) { .course-author .course-author__facts { gap: 20px 24px; } .course-author .course-author__facts .is-range { grid-column: 1 / -1; } }

/* --- Prowadzący: pas narzędzi przesuwający się powoli w poziomie, brzegi wygaszone --- */
.course-tools { margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(15, 16, 16, 0.1); }
.course-author .course-tools__label { margin: 0 0 16px; line-height: 1.4; color: #6b6b68; font-family: var(--f-heading); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.course-tools__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.course-tools__track { display: flex; gap: 12px; width: max-content; margin: 0; padding: 4px 0; list-style: none; animation: course-tools 48s linear infinite; }
.course-tools__viewport:hover .course-tools__track { animation-play-state: paused; }
.course-tools__track li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 16, 16, 0.08); color: #2b2b28; font-family: var(--f-heading); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.course-tools__track svg { width: 20px; height: 20px; flex: none; }
.course-tools__viewport + .course-tools__viewport { margin-top: 10px; }
.course-tools__track { animation-duration: 36s; }
.course-tools__track.is-reverse { animation-direction: reverse; animation-duration: 42s; }
@keyframes course-tools { to { transform: translateX(calc(-50% - 6px)); } }
/* zdjęcie prowadzącego na całą wysokość tekstu (od nadtytułu do dołu sekcji) */
@media (min-width: 901px) {
  .course-author .course-author__wrap { align-items: stretch; }
  .course-author { padding-top: 100px; }
  .course-author .course-author__copy { padding-bottom: 72px; }
  .course-author .course-author__photo { display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
  .course-author .course-author__photo { overflow: hidden; border-radius: 0; margin-left: calc(-1 * max(24px, (100vw - var(--container)) / 2)); }
  .course-author .course-author__photo { position: relative; }
  .course-author .course-author__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 15%; }
}

/* --- Prowadzący: ciemna sekcja, zdjęcie bez ramki wtopione w czerń (z prawej i z góry), jasny tekst --- */
.course-author { background: #0d0e0e; }
.course-author .eyebrow { color: var(--c-yellow); }
.course-author h2 { color: #f4f1ea; }
.course-author p { color: #b9b6ac; }
.course-author .course-author__facts b { color: #f4f1ea; }
.course-author .course-author__facts span { color: #9a9a8e; }
.course-author .course-author__facts b span { color: inherit; }
.course-author .course-author__facts .is-range i { color: var(--c-yellow); }
.course-author .course-tools { border-top-color: rgba(255, 255, 255, 0.1); }
.course-author .course-tools__label { color: #9a9a8e; }
.course-author .course-tools__track li { background: #161717; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); color: #e6e3da; }
.course-author .course-author__photo { background: none; border-radius: 0; }
@media (min-width: 901px) {
  .course-author .course-author__photo img {
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 98%), linear-gradient(to bottom, transparent 0, #000 18%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 55%, transparent 98%), linear-gradient(to bottom, transparent 0, #000 18%);
    mask-composite: intersect;
  }
}
@media (max-width: 900px) {
  .course-author .course-author__photo img { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
}

/* --- Co dostajesz: karta z ceną (spójna z ceną w hero i programie) --- */
.course-offer .course-offer__card { position: relative; overflow: hidden; padding: 40px 40px 32px; border-radius: 28px; background: radial-gradient(520px circle at 100% 0%, rgba(255, 215, 0, 0.16), transparent 60%), #0f1010; box-shadow: 0 40px 80px -40px rgba(15, 16, 16, 0.6); }
.course-offer__card > .course-offer__mark { position: absolute; right: -24px; bottom: -48px; z-index: 0; font-family: 'Noto Serif JP', serif; font-weight: 900; font-size: 220px; line-height: 1; color: rgba(255, 215, 0, 0.07); pointer-events: none; }
.course-offer__card > * { position: relative; z-index: 1; }
.course-offer .course-offer__label { margin: 0 0 22px; color: var(--c-yellow); font-family: var(--f-heading); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.course-offer__card .course-cta { gap: 16px; }
.course-offer__card .course-cta__badge, .course-offer__card .course-cta__note { display: none; }
.course-offer__card .course-cta__price { align-items: center; gap: 6px 16px; }
.course-offer__card .course-cta__price > s { order: 1; font-size: 24px; color: #8a877d; opacity: 1; text-decoration-thickness: 2px; }
.course-offer__card .course-cta__price > b { order: 2; color: var(--c-yellow); font-size: clamp(60px, 5vw, 76px); letter-spacing: -0.045em; }
.course-offer__card .course-cta__save { color: #f4f1ea; }
.course-offer__card .course-cta__save b { background: var(--c-yellow); color: #0f1010; }
.course-offer__card .course-cta__btn { position: relative; overflow: hidden; min-height: 70px; font-size: 19px; box-shadow: 0 18px 40px -16px rgba(255, 215, 0, 0.55); }
.course-offer__card .course-cta__btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.6), transparent); transform: translateX(-160%) skewX(-18deg); animation: course-btn-shine 4.5s ease-in-out 2s infinite; }
.course-offer__card .course-cta__btn span { transition: transform .25s ease; }
.course-offer__card .course-cta__btn:hover span { transform: translateX(5px); }
.course-offer__card .course-cta__timer { padding: 0; background: none; color: #e6e3da; font-size: 14.5px; font-weight: 600; }
.course-offer__card .course-cta__timer b { color: var(--c-yellow); }
.course-offer__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1); list-style: none; }
.course-offer__trust li { display: inline-flex; align-items: center; gap: 8px; color: #b9b6ac; font-size: 13.5px; }
.course-offer__trust svg { width: 18px; height: 18px; fill: none; stroke: var(--c-yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .course-offer .course-offer__card { padding: 30px 22px 24px; }
  .course-offer__mark { font-size: 160px; }
}

/* --- Co dostajesz: kafle z najważniejszymi elementami pakietu --- */
.course-offer__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.course-offer__tiles li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-content: start; padding: 20px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 16, 16, 0.08); transition: box-shadow .25s ease, transform .25s ease; }
.course-offer__tiles li:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(233, 196, 0, 0.6), 0 18px 34px -22px rgba(15, 16, 16, 0.35); }
.course-offer__tiles li:first-child { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(255, 215, 0, 0.16), transparent 55%), #fff; }
.course-offer__tiles svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #0f1010; fill: none; stroke: var(--c-yellow); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.course-offer__tiles b { align-self: end; color: #0f1010; font-family: var(--f-heading); font-size: 17px; line-height: 1.3; }
.course-offer__tiles span { color: #5c5c58; font-size: 14.5px; line-height: 1.45; }
.course-offer .course-offer__extra { margin: 18px 0 0; color: #6b6b68; font-size: 14.5px; }
.course-offer__extra b { color: #0f1010; }
@media (max-width: 640px) { .course-offer__tiles { grid-template-columns: minmax(0, 1fr); } }

/* odznaka gwarancji z laurem (jak award-badge z 21st.dev), przy prawym górnym rogu karty, z błyskiem */
.course-offer__side { position: relative; }
.course-offer__award {
  position: absolute; z-index: 3; right: -22px; top: -34px; display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; overflow: hidden;
  border-radius: 14px; background: linear-gradient(135deg, #fff6c4, #ffd700 45%, #e0b400); color: #0f1010; transform: rotate(6deg);
  box-shadow: 0 14px 30px -12px rgba(150, 110, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.course-offer__award::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.85), transparent); transform: translateX(-160%) skewX(-18deg); animation: course-btn-shine 5s ease-in-out 1s infinite; }
.course-offer__laurel { width: 22px; height: 44px; fill: #0f1010; }
.course-offer__laurel .stem { fill: none; stroke: #0f1010; stroke-width: 1.6; stroke-linecap: round; }
.course-offer__laurel.is-right { transform: scaleX(-1); }
.course-offer__award-text { display: grid; justify-items: center; line-height: 1.05; }
.course-offer__award-text small { font-family: var(--f-heading); font-size: 9.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.course-offer__award-text b { font-family: var(--f-heading); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
@media (max-width: 900px) { .course-offer__award { right: 8px; top: -26px; } }

/* bezpieczna płatność: Przelewy24 */
.course-offer .course-offer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 0; color: #b9b6ac; font-size: 13.5px; }
.course-offer__pay img { height: 30px; width: auto; padding: 5px 9px; border-radius: 8px; background: #fff; }
.course-offer__pay-methods { color: #8a877d; }

/* --- Jak się uczysz: jeden kafel naraz jest aktywny (podskok + złoto); kolejność 1→2→3→4 i najechanie kursorem steruje course.js --- */
.is-course-page .audience-card { overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1px transparent; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, background .3s ease; }
.is-course-page .audience-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .45s ease; background: radial-gradient(260px circle at 20% 0%, rgba(255, 255, 255, 0.7), transparent 60%), linear-gradient(150deg, #fff3b0, #ffd700 70%, #f0c200); }
.is-course-page .audience-card:hover { transform: none; background: var(--c-surface); box-shadow: 0 0 0 1px transparent; }
.is-course-page .audience-card__icon, .is-course-page .audience-card__num, .is-course-page .audience-card p { transition: background .45s ease, color .45s ease; }
.is-course-page .audience-card:hover .audience-card__icon { background: var(--c-bg); color: #c9a400; }
.is-course-page .audience-card.is-active { transform: translateY(-8px); box-shadow: 0 0 0 1px rgba(233, 196, 0, 0.8), 0 26px 50px -24px rgba(200, 150, 0, 0.6); animation: course-step-bounce .7s cubic-bezier(.2,.8,.2,1); }
.is-course-page .audience-card.is-active::before { opacity: 1; }
.is-course-page .audience-card.is-active .audience-card__icon { background: #0f1010; color: var(--c-yellow); }
.is-course-page .audience-card.is-active .audience-card__num { color: #0f1010; }
.is-course-page .audience-card.is-active p { color: #2b2b28; }
@keyframes course-step-bounce { 0% { transform: translateY(0); } 40% { transform: translateY(-14px); } 65% { transform: translateY(-4px); } 85% { transform: translateY(-9px); } 100% { transform: translateY(-8px); } }

/* --- Zakończenie: żółta scena, tekst z lewej, smok i samuraj w tuszu z prawej --- */
.course-final .course-final__inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; text-align: center; }
.course-final .eyebrow { color: #0f1010; }
.course-final .course-final__copy h2 { margin: 12px 0 18px; max-width: none; }
.course-final .course-final__copy { position: relative; z-index: 1; max-width: 760px; }
.course-final .course-final__copy::before { content: ""; position: absolute; z-index: -1; inset: -60px -90px; background: radial-gradient(closest-side, rgba(255, 215, 0, 0.95), rgba(255, 215, 0, 0.8) 55%, rgba(255, 215, 0, 0)); pointer-events: none; }
.course-final .course-final__copy h2, .course-final .final-cta__lead { text-shadow: 0 0 18px rgba(255, 215, 0, 0.9), 0 0 4px rgba(255, 215, 0, 0.9); }
.course-final .final-cta__lead { color: #2b2b28; }
.course-final .course-cta { justify-items: center; }
.course-final .course-cta__price, .course-final__assure { justify-content: center; }
.course-final .course-cta__badge, .course-final .course-cta__note { display: none; }
.course-offer__card .course-cta__note.is-soon, .course-final .course-cta__note.is-soon { display: block; }
.course-final .course-cta__price { align-items: center; gap: 6px 16px; }
.course-final .course-cta__price > s { order: 1; font-size: 24px; color: rgba(15, 16, 16, 0.55); opacity: 1; text-decoration-thickness: 2px; }
.course-final .course-cta__price > b { order: 2; font-size: clamp(60px, 5vw, 76px); letter-spacing: -0.045em; color: #0f1010; }
.course-final .course-cta__save { color: #0f1010; justify-content: center; }
.course-final .course-cta__btn { position: relative; overflow: hidden; min-height: 70px; padding: 0 48px; font-size: 19px; }
.course-final .course-cta__btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(105deg, transparent, rgba(255, 215, 0, 0.45), transparent); transform: translateX(-160%) skewX(-18deg); animation: course-btn-shine 4.5s ease-in-out 2s infinite; }
.course-final .course-cta__timer { padding: 0; background: none; color: #0f1010; font-weight: 600; }
.course-final__assure { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 22px 0 0; padding: 0; list-style: none; color: #0f1010; font-size: 14.5px; font-weight: 600; }
.course-final__assure li { display: inline-flex; align-items: center; gap: 8px; }
.course-final__assure svg { width: 20px; height: 20px; fill: none; stroke: #0f1010; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.course-final__art { mix-blend-mode: multiply; }
.course-final__assure img { height: 28px; width: auto; padding: 4px 8px; border-radius: 8px; background: #fff; }
@media (min-width: 901px) {
  .course-final { position: relative; padding: 130px 0; }
  .course-final__art { position: absolute; z-index: 0; top: 50%; right: 0; top: 0; bottom: 0; height: 100%; width: auto; aspect-ratio: 1; margin-top: 0; transform: none; pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 16%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 16%, #000 86%, transparent 100%);
    mask-composite: intersect; }
  .course-final__art img { display: block; width: 100%; height: 100%; }
  .course-final .final-cta__lead { margin-left: auto; margin-right: auto; }
}
@media (min-width: 901px) and (max-width: 1279px) { .course-final__art { opacity: 0.4; right: -260px; } }
@media (min-width: 1280px) and (max-width: 1599px) { .course-final__art { opacity: 0.55; right: calc((1600px - 100vw) * -0.6 - 60px); } }
@media (max-width: 900px) {
  .course-final .course-final__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .course-final__art { order: 2; min-height: 0; margin: 32px 0 -40px; }
  .course-final__art { display: flex; justify-content: center; }
  .course-final__art img { width: min(116%, 560px); max-width: none; height: auto;
    -webkit-mask-image: radial-gradient(ellipse 52% 55% at 50% 52%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 52% 55% at 50% 52%, #000 55%, transparent 100%); }
  .course-final__art { position: relative; overflow: hidden; margin-left: -24px; margin-right: -24px; width: calc(100% + 48px); }
  .course-final__art::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 30%; background: url("../img/course/fog.webp") repeat-x 0 0 / 50% 100%; filter: brightness(1.25) saturate(0); mix-blend-mode: normal; opacity: 0.85; animation: course-fog 14s linear infinite; pointer-events: none; }
  .course-final .course-cta { justify-items: center; }
  .course-final .course-cta__price, .course-final__assure { justify-content: center; }
}

/* duży półprzezroczysty znak 武士道 po lewej (lustro do smoka); tylko komputer */
.course-final__pine { display: none; }
@media (min-width: 901px) {
  .course-final__pine { display: flex; align-items: center; position: absolute; z-index: 0; left: max(24px, calc((100vw - var(--container)) / 2 - 140px)); top: 0; bottom: 0; pointer-events: none; }
  .course-final__pine span { writing-mode: vertical-rl; color: #0f1010; font-family: 'Noto Serif JP', serif; font-weight: 900; font-size: clamp(110px, 11vw, 190px); line-height: 1; letter-spacing: 0.04em; opacity: 0.12; }
}
@media (min-width: 901px) and (max-width: 1279px) { .course-final__pine span { opacity: 0.08; } }

/* mgła wokół samuraja i smoka: dwie smugi przy ziemi + jedna wirująca, unosząca się; smok lekko „oddycha” */
.course-final__mist { display: none; }
@media (min-width: 901px) {
  .course-final__mist { display: block; position: absolute; z-index: 0; right: 0; top: 0; bottom: 0; height: 100%; aspect-ratio: 1; overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
  .course-final__mist i { position: absolute; left: -10%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 75%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 75%, transparent); width: 360%; background: url("../img/course/fog.webp") repeat-x 0 0 / 33.3333% 100%; opacity: 1; filter: brightness(1.25) saturate(0); }
  .course-final__mist .is-low { bottom: -4%; height: 34%; animation: course-fog 16s linear infinite; }
  .course-final__mist .is-low2 { bottom: 8%; height: 30%; opacity: 0.8; animation: course-fog 11s linear infinite reverse, course-mist-bob 3.5s ease-in-out infinite alternate; }
  .course-final__mist .is-rise { left: 20%; bottom: 0; width: 60%; height: 55%; background-size: 100% 100%; background-repeat: no-repeat; opacity: 0; transform-origin: 50% 80%; animation: course-mist-rise 7s ease-in-out infinite; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 25%, transparent 70%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 25%, transparent 70%); }
  .course-final__mist .is-r2 { left: 45%; width: 55%; height: 50%; animation-delay: -2.4s; animation-duration: 8s; }
  .course-final__mist .is-r3 { left: 0%; width: 50%; height: 45%; animation-delay: -4.8s; animation-duration: 6.5s; }
  .course-final__art img { animation: course-dragon-breathe 9s ease-in-out infinite alternate; transform-origin: 60% 80%; }
}
@media (min-width: 901px) and (max-width: 1279px) { .course-final__mist { right: -260px; opacity: 0.6; } }
@media (min-width: 1280px) and (max-width: 1599px) { .course-final__mist { right: calc((1600px - 100vw) * -0.6 - 60px); } }
@keyframes course-mist-bob { from { transform: translateY(0); } to { transform: translateY(-30px); } }
@keyframes course-mist-rise {
  0% { opacity: 0; transform: translate(-8%, 25%) rotate(0deg) scale(0.8); }
  20% { opacity: 0.95; }
  55% { opacity: 0.7; transform: translate(8%, -20%) rotate(-14deg) scale(1.1); }
  100% { opacity: 0; transform: translate(-4%, -60%) rotate(10deg) scale(1.35); }
}
@keyframes course-dragon-breathe { from { transform: translateY(0) rotate(0deg) scale(1); } to { transform: translateY(-10px) rotate(-0.6deg) scale(1.015); } }

/* hero kursu jako sekcja promocji na innych stronach (strona główna) */
.course-ink--promo { padding-top: 72px; }
.course-ink--promo .course-ink__title { margin-top: 10px; }
@media (max-width: 900px) { .course-ink--promo { padding-top: 0; } }

/* promocja: pod tekstem jednolity, półprzezroczysty żółty pas, wtapiający się w ilustrację (w prawo, w górę i w dół) */
.course-ink--promo .course-ink__copy { position: relative; isolation: isolate; }
.course-ink--promo .course-ink__copy::before { content: ""; position: absolute; z-index: -1; top: -56px; bottom: -56px; left: -100vw; right: 20px; pointer-events: none;
  background: linear-gradient(to right, rgba(255, 215, 0, 0.72) 0, rgba(255, 215, 0, 0.72) calc(100% - 180px), rgba(255, 215, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }

/* lecący smok po kliknięciu „Zobacz kurs” (course.js) */
.course-fly { position: fixed; z-index: 9999; left: 0; top: 0; width: min(110vw, 1400px); height: auto; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.18)); }
.course-wipe { position: fixed; z-index: 9998; top: 0; bottom: 0; left: 0; width: 130vw; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(to left, rgba(244, 241, 234, 0) 0, #f4f1ea 22vw) ; }
.course-wipe.is-out { left: -30vw; transform: none; background: linear-gradient(to right, rgba(244, 241, 234, 0) 0, #f4f1ea 22vw); }
html.course-arrive body::after { content: ""; position: fixed; inset: 0; z-index: 9998; background: #f4f1ea; }

/* --- Bez animacji --- */
@media (prefers-reduced-motion: reduce) {
  .course-final__mist i, .course-final__art img { animation: none !important; }
  .course-final__mist .is-rise { display: none; }
  .course-tools__track { animation: none; flex-wrap: wrap; width: auto; }
  .course-tools__track li[aria-hidden] { display: none; }
  .course-tools__viewport { -webkit-mask-image: none; mask-image: none; }
  .course-ink__layer, .course-ink__copy { transform: none !important; }
  .course-ink__embers { display: none; }
  .course-ink__fog::before { animation: none; }
  .course-ink__rise::before, .course-ink__rise::after { animation: none; opacity: 0.5; }
  .course-ink__waist::before, .course-ink__waist::after { animation: none; }
  .fx-on [data-course-cut] > .container { clip-path: none; transition: none; }
  .course-cut { display: none; }
  .course-program__list[data-course-path]::after { transform: scaleY(1); }
  .course-video__head, .course-video__frame { transform: none; }
  .course-know__item { opacity: 1 !important; transform: none !important; }
  .course-know__sheet, .course-know__slash, .course-know__dust { display: none !important; }
  .course-know__katana { animation: none !important; transform: rotate(5deg) !important; }
  .course-bento__tile { opacity: 1 !important; transform: none !important; }
  .course-asks__smoke::before, .course-asks__smoke::after { animation: none; }
    .course-bento *, .course-bento *::after { animation: none !important; }
  .course-bento__chart polyline { stroke-dashoffset: 0; transition: none; }
  .course-bento__funnel i::after { transform: scaleX(1); transition: none; }
  .course-stats__num { --hl: 100% !important; }
}


/* --- Cena w hero: prosto, „cena premierowa” jako drobny podpis zamiast plakietki --- */
.course-ink .course-cta { gap: 10px; }
.course-ink .course-cta__price { color: #0f1010; }
.course-ink .course-cta__price > b { font-size: clamp(56px, 4.6vw, 68px); }
.course-ink .course-cta__price > s { font-size: 26px; }
.course-ink .course-cta__btn { min-height: 68px; padding: 0 40px; font-size: 18px; }
.is-course-page .course-ink .course-cta__badge {
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: #6b6b68;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.course-ink .course-cta__note { color: #4a4a47; opacity: 1; }
.course-ink .course-cta__timer {
  padding: 0;
  border: 0;
  background: none;
  color: #0f1010;
  font-size: 15px;
  font-weight: 600;
}
.course-ink .course-cta__timer b {
  padding: 0 3px;
  color: #0f1010;
  font-weight: 800;
  background: linear-gradient(transparent 55%, var(--c-yellow) 55%);
}

/* pasek cech pod hero: na stronie kursu w szerokości treści, nie 1600 px jak na stronie głównej */
@media (min-width: 641px) {
  .is-course-page .trust-features__grid { width: min(calc(100% - 48px), var(--container)); gap: 20px; }
  .is-course-page .trust-features__item { gap: 12px; }
  .is-course-page .trust-features__item svg { width: 22px; height: 22px; padding: 12px; }
  .is-course-page .trust-features__item strong { font-size: 16px; }
  .is-course-page .trust-features__item span { font-size: 14px; }
}

/* FAQ na telefonie: karta „30 dni gwarancji” powtarza to, co jest tuż wyżej w „Co dostajesz”, więc ją chowamy */
@media (max-width: 900px) {
  .is-course-page .faq-care { display: none; }
}
