/* ==========================================================================
   Paraklub Krnov — výukové materiály (základní výcvik)
   ========================================================================== */

/* Layout s postranním panelem ------------------------------------------- */
.course {
  display: grid;
  gap: 3rem;
  padding-block: clamp(3rem, 2rem + 3vw, 5rem) var(--space-section);
}
@media (min-width: 1080px) {
  .course { grid-template-columns: 270px minmax(0, 1fr); gap: clamp(3rem, 4vw, 5rem); }
}
.course__content { max-width: 820px; min-width: 0; }

/* Postranní panel: altimetr + obsah */
.sidebar { display: none; }
@media (min-width: 1080px) {
  .sidebar {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 1.25rem;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 3rem);
  }
}

.altimeter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.altimeter__readout {
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.altimeter__readout small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--f-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-muted);
}
.altimeter__gauge {
  position: relative;
  flex: 1;
  width: 8px;
  min-height: 300px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--c-sky) 0%, var(--c-sky) 50%, var(--c-warn) 50%, var(--c-warn) 75%, var(--c-accent) 75%, var(--c-accent) 100%);
  opacity: 0.9;
}
.altimeter__marker {
  position: absolute;
  left: 50%;
  width: 24px; height: 24px;
  margin: -12px 0 0 -12px;
  top: var(--p, 0%);
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--c-bg);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
  transition: top 0.15s linear;
}
.altimeter__tick {
  position: absolute;
  right: 14px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--c-muted);
  white-space: nowrap;
  transform: translateY(-50%);
}

.toc { overflow: auto; padding-right: 0.5rem; scrollbar-width: thin; }
.toc__title {
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.toc__list { display: grid; gap: 0.1rem; counter-reset: toc; }
.toc__link {
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  color: var(--c-muted);
  transition: background-color 0.2s, color 0.2s;
}
.toc__link::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  flex: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(154, 167, 189, 0.6);
}
.toc__link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.toc__link.is-active { color: #fff; background: rgba(255, 77, 26, 0.14); }
.toc__link.is-active::before { color: var(--c-accent); }

/* Mobilní lišta: průběh + obsah */
.progress {
  position: fixed;
  left: 0; right: 0;
  top: var(--header-h);
  z-index: 99;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.progress__bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--c-sky), var(--c-warn), var(--c-accent));
}

.mobile-toc {
  position: sticky;
  top: calc(var(--header-h) + 3px);
  z-index: 50;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
@media (min-width: 1080px) { .mobile-toc { display: none; } }
.mobile-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.mobile-toc summary::-webkit-details-marker { display: none; }
.mobile-toc summary .alt { font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.mobile-toc summary svg { width: 18px; height: 18px; transition: transform 0.25s; }
.mobile-toc[open] summary svg { transform: rotate(180deg); }
.mobile-toc .toc__list { max-height: 60vh; overflow: auto; padding-bottom: 1rem; }

/* Kapitoly ---------------------------------------------------------------- */
.chapter { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); border-bottom: 1px solid var(--c-line); }
.chapter:first-child { padding-top: 0; }
.chapter:last-child { border-bottom: 0; }
.chapter__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.75rem; }
.chapter__num {
  flex: none;
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-accent);
}
.chapter h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.chapter h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); margin-top: 2.25rem; }

.prose ul:not([class]) { padding-left: 0; list-style: none; display: grid; gap: 0.6rem; }
.prose ul:not([class]) > li { position: relative; padding-left: 1.6rem; }
.prose ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 0.7rem; height: 2px;
  background: var(--c-accent);
}
.prose a { color: var(--c-sky); text-underline-offset: 3px; }
.prose a:hover { color: #fff; }

/* Komponenty pro výuku ---------------------------------------------------- */
.callout {
  display: flex;
  gap: 1rem;
  margin-block: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-weight: 600;
  line-height: 1.55;
}
.callout svg { flex: none; width: 26px; height: 26px; margin-top: 0.05rem; }
.callout p { color: inherit; }
.callout--info { border-color: rgba(79, 195, 255, 0.35); background: rgba(79, 195, 255, 0.08); color: #d7f0ff; }
.callout--info svg { color: var(--c-sky); }
.callout--warn { border-color: rgba(255, 184, 0, 0.45); background: rgba(255, 184, 0, 0.09); color: #ffe7a8; }
.callout--warn svg { color: var(--c-warn); }
.callout--danger { border-color: rgba(255, 77, 26, 0.55); background: rgba(255, 77, 26, 0.12); color: #ffd6c9; }
.callout--danger svg { color: var(--c-accent); }

.parts { display: grid; gap: 0.75rem; margin-block: 1.5rem; }
.part {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}
.part dt { font-weight: 800; color: #fff; }
.part dd { margin: 0.3rem 0 0; color: #c9d2e1; }
.part--main { border-color: rgba(255, 77, 26, 0.45); background: linear-gradient(160deg, rgba(255, 77, 26, 0.12), var(--c-surface) 60%); }
.part--main ul { margin-top: 0.9rem; }

.specs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.spec {
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--c-muted);
}
.spec strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; color: #fff; }

.figure { margin-block: 2rem; }
.figure .zoomable { border-radius: var(--radius-lg); }
.figure--paper .zoomable { background: #fff; padding: clamp(0.5rem, 2vw, 1.5rem); }
.figure-grid { display: grid; gap: 1.25rem; margin-block: 2rem; }
@media (min-width: 640px) { .figure-grid { grid-template-columns: 1fr 1fr; } }
.figure-grid .figure { margin: 0; }

/* počítání po výskoku */
.count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  margin-block: 2rem;
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem) 1rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at center, rgba(255, 77, 26, 0.16), transparent 70%), var(--c-surface);
  border: 1px solid var(--c-line);
}
.count span {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  line-height: 1;
}
.count span:nth-child(2) { color: var(--c-warn); }
.count span:nth-child(3) { color: var(--c-accent); }
.count small { flex-basis: 100%; text-align: center; color: var(--c-muted); font-size: 0.9rem; }
.js .count.is-revealed span { animation: count-pop 0.6s var(--ease-out) both; }
.js .count.is-revealed span:nth-child(2) { animation-delay: 0.6s; }
.js .count.is-revealed span:nth-child(3) { animation-delay: 1.2s; }
@keyframes count-pop { from { opacity: 0; transform: scale(0.4); } }

/* video */
.video {
  margin-block: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.video video { width: 100%; aspect-ratio: 16 / 9; }

/* Hype animace (pevných 800×600 px → škálujeme) */
.animation {
  margin-block: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
.animation__stage { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.animation__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.animation__bar { padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--c-muted); }

.sim {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-block: 2rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0f2b45, #13203a 55%, #2a1610);
  border: 1px solid rgba(79, 195, 255, 0.25);
}
@media (min-width: 700px) { .sim { grid-template-columns: 1fr auto; } }
.sim h3 { margin: 0 0 0.4rem; }
.sim p { color: #b8c5da; }
.sim kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.4em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-width: 3px;
  border-radius: 6px;
  font: 700 0.85em var(--f-body);
  text-align: center;
  color: #fff;
}

/* Karty závad */
.faults { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .faults { grid-template-columns: 1fr 1fr; } }
.fault {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  overflow: hidden;
}
.fault .zoomable { border-radius: 0; aspect-ratio: 16 / 10; }
.fault .zoomable img { height: 100%; object-fit: cover; }
.fault__body { display: grid; gap: 0.75rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; align-content: start; }
.fault__title { font-weight: 800; line-height: 1.35; color: #fff; }
.fault__fix {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}
.fault__fix svg { flex: none; width: 20px; height: 20px; margin-top: 0.05rem; }
.fault--ok .fault__fix { background: rgba(79, 195, 255, 0.1); color: #d7f0ff; }
.fault--ok .fault__fix svg { color: var(--c-sky); }
.fault--cutaway { border-color: rgba(255, 77, 26, 0.35); }
.fault--cutaway .fault__fix { background: var(--c-accent); color: var(--c-accent-ink); text-transform: uppercase; letter-spacing: 0.04em; }
.fault__badge {
  justify-self: start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fault--ok .fault__badge { background: rgba(79, 195, 255, 0.15); color: var(--c-sky); }
.fault--cutaway .fault__badge { background: rgba(255, 77, 26, 0.18); color: var(--c-accent); }

/* Postup odhozu */
.procedure { display: grid; gap: 1rem; margin-block: 1.75rem; counter-reset: proc; }
.procedure li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.procedure li::before {
  counter-increment: proc;
  content: counter(proc);
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: 1.6rem;
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.procedure li:first-child::before { background: var(--c-surface-2); color: #fff; border: 2px solid var(--c-line); }
.procedure li:last-child::before { background: #c0c8d6; }
.procedure strong { display: block; color: #fff; }
.procedure span { color: #c9d2e1; }

/* Shrnutí */
.summary {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.summary .checklist li { color: #d5dcea; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(255, 77, 26, 0.45); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.25rem;
  font-weight: 500;
  transition: transform 0.25s, background-color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--c-accent); color: var(--c-accent-ink); }
.faq details p { padding: 0 1.35rem 1.25rem; color: #c9d2e1; }

/* Ready · Set · Go ------------------------------------------------------- */
.outro {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-section);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 77, 26, 0.35), transparent 60%),
    var(--c-surface);
  border-top: 1px solid var(--c-line);
}
.outro h2 { font-size: var(--fs-h2); }
.outro .lead { margin: 1rem auto 0; }
.outro__head { max-width: 760px; margin: 0 auto clamp(2.5rem, 2rem + 2vw, 3.5rem); }

/* Napiš instruktorům */
.ask {
  display: grid;
  gap: 1.5rem;
  max-width: 1040px;
  margin-inline: auto;
  text-align: left;
}
@media (min-width: 900px) { .ask { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.ask__title { margin-bottom: 1.25rem; font-size: 1.35rem; }
.ask__team { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: rgba(7, 11, 20, 0.45); }
.ask__list { display: grid; gap: 1rem; }
.ask__person { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.ask__person img { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-accent); }
.ask__person div { display: grid; min-width: 0; }
.ask__person strong { font-size: 1rem; }
.ask__person a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--c-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.ask__person a:hover { color: var(--c-accent); }
.ask__person svg { width: 15px; height: 15px; flex: none; }
.ask__form { background: var(--c-surface-2); }
.ask__submit { width: 100%; margin-top: 0.25rem; }
.ask__note { margin-top: 1rem; font-size: 0.82rem; color: var(--c-muted); }
.ask__note a { color: var(--c-sky); }
/* krok 2: kam zprávu odeslat */
.ask__step.is-entering { animation: ask-step 0.5s var(--ease-out); }
@keyframes ask-step { from { opacity: 0; transform: translateY(14px); } }
.ask__ready:focus { outline: none; }
.ask__ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(79, 195, 255, 0.12);
  color: var(--c-sky);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ask__ready-badge svg { width: 16px; height: 16px; }
.ask__ready .ask__title { margin-bottom: 0.5rem; }
.ask__hint { margin-bottom: 1.25rem; font-size: 0.92rem; color: var(--c-muted); }

.send-options { display: grid; gap: 0.75rem; }
@media (min-width: 560px) { .send-options { grid-template-columns: 1fr 1fr; } }
.send-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 68px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 11, 20, 0.55);
  color: var(--c-text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease-out);
}
.send-option:hover { border-color: var(--c-accent); background: rgba(255, 77, 26, 0.08); transform: translateY(-2px); }
.send-option strong { display: block; font-size: 1rem; line-height: 1.25; }
.send-option small { display: block; font-size: 0.8rem; color: var(--c-muted); line-height: 1.35; }
.send-option__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  font-family: var(--f-display);
  font-size: 1.35rem;
  color: #fff;
}
.send-option__logo svg { width: 22px; height: 22px; }
.send-option__logo--gmail { background: linear-gradient(135deg, #ea4335, #c5221f); }
.send-option__logo--seznam { background: linear-gradient(135deg, #e3000f, #b0000b); }
.send-option__logo--outlook { background: linear-gradient(135deg, #1a86d9, #0f5fa8); }
.send-option__logo--app { background: var(--c-surface); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--c-accent); }

.ask__preview {
  display: grid;
  margin-top: 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ask__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  background: rgba(7, 11, 20, 0.4);
}
.ask__row + .ask__row { border-top: 1px solid var(--c-line); }
.ask__row-label { padding-top: 0.15rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.ask__row-value { font-size: 0.92rem; overflow-wrap: anywhere; white-space: pre-line; }
.ask__row--body .ask__row-value { max-height: 9.5rem; overflow: auto; color: #c9d2e1; }
@media (max-width: 520px) {
  .ask__row { grid-template-columns: minmax(0, 1fr) auto; }
  .ask__row-label { grid-column: 1 / -1; }
}
.ask__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.ask__copy svg { width: 14px; height: 14px; }
.ask__copy:hover { border-color: var(--c-accent); color: var(--c-accent); }
.ask__copy.is-done { border-color: var(--c-sky); color: var(--c-sky); }

.ask__toast {
  margin-top: 1rem;
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(79, 195, 255, 0.1);
  border: 1px solid transparent;
  font-size: 0.9rem;
  color: #d7f0ff;
  opacity: 0;
  transition: opacity 0.3s, max-height 0.3s, padding 0.3s, border-color 0.3s;
}
.ask__toast.is-visible { max-height: 10rem; padding: 0.8rem 1rem; opacity: 1; border-color: rgba(79, 195, 255, 0.3); }
.ask__back {
  margin-top: 1rem;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-muted);
  cursor: pointer;
}
.ask__back:hover { color: #fff; }

.rsg {
  position: relative;
  height: clamp(6rem, 4rem + 10vw, 12rem);
  margin-block: 2rem;
}
.rsg span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: clamp(4.5rem, 3rem + 9vw, 11rem);
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
}
.rsg span:nth-child(3) { color: var(--c-accent); }
.rsg.is-playing span { animation: rsg 2.1s var(--ease-out) both; }
.rsg.is-playing span:nth-child(2) { animation-delay: 1.9s; }
.rsg.is-playing span:nth-child(3) { animation-delay: 3.8s; animation-name: rsg-go; animation-fill-mode: forwards; }
@keyframes rsg {
  0% { opacity: 0; transform: scale(0.2); }
  35% { opacity: 1; transform: scale(1); }
  60% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(3); }
}
@keyframes rsg-go {
  0% { opacity: 0; transform: scale(0.2); }
  40% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .rsg span:nth-child(3) { opacity: 1; }
}

/* Přelet L-60 ------------------------------------------------------------
   Struktura: .flyby (dráha přes obrazovku) > .flyby__body (houpání)
   > img + __shade (objemové stínování přes masku) + __glint (odlesk)
   + __prop (roztočená vrtule) + __trail (stopy rychlosti). */
.flyby {
  --plane: url("../img/l60-flyby.png?v=5d3b2482c2");
  position: fixed;
  left: 100vw;
  z-index: 80;
  width: clamp(150px, 15vw, 230px);
  aspect-ratio: 400 / 179;
  pointer-events: none;
  visibility: hidden;
  perspective: 600px;
}
.flyby.is-flying {
  visibility: visible;
  animation: flyby var(--flyby-duration, 22s) linear forwards;
}
.flyby__body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: flyby-bob 3.2s ease-in-out infinite;
  /* světlý obrys (rim light) + záře oblohy → letadlo vystoupí z tmavého pozadí */
  filter:
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.55))
    drop-shadow(0 0 1px rgba(200, 230, 255, 0.6))
    drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6))
    drop-shadow(0 14px 28px rgba(79, 195, 255, 0.28));
}
.flyby__body img {
  width: 100%;
  height: 100%;
  filter: saturate(1.2) contrast(1.12) brightness(1.04);
}
.flyby__shade,
.flyby__glint {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--plane) center / 100% 100% no-repeat;
  mask: var(--plane) center / 100% 100% no-repeat;
}
/* světlo shora, stín zespodu → objem trupu a křídla */
.flyby__shade {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.15) 32%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.45) 76%, rgba(0, 0, 0, 0.75) 100%),
    radial-gradient(ellipse 60% 40% at 40% 45%, rgba(255, 255, 255, 0.25), transparent 70%);
  mix-blend-mode: overlay;
}
/* přejíždějící odlesk slunce */
.flyby__glint {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 47%, rgba(255, 255, 255, 0) 56%) 0 0 / 300% 100% no-repeat;
  mix-blend-mode: soft-light;
  animation: flyby-glint 4.5s ease-in-out infinite;
}
/* roztočená vrtule (rozmazaný disk) */
.flyby__prop {
  position: absolute;
  left: -2.5%;
  top: 24%;
  width: 7%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(230, 236, 245, 0.55) 0%, rgba(200, 210, 225, 0.3) 45%, transparent 72%);
  filter: blur(1px);
  animation: flyby-prop 0.09s linear infinite;
}
/* stopy rychlosti za ocasem */
.flyby__trail {
  position: absolute;
  left: 92%;
  top: 22%;
  width: 70%;
  height: 50%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent) 0 20% / 100% 2px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent) 10% 55% / 80% 2px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent) 0 85% / 60% 1px no-repeat;
  opacity: 0.8;
  animation: flyby-trail 0.6s ease-in-out infinite alternate;
}

@keyframes flyby {
  0% { transform: translate(0, 0) scale(0.92); }
  50% { transform: translate(calc(-50vw - 120px), -18px) scale(1.04); }
  100% { transform: translate(calc(-100vw - 280px), 6px) scale(0.96); }
}
@keyframes flyby-bob {
  0%, 100% { transform: translateY(0) rotateZ(-1.5deg) rotateX(6deg); }
  50% { transform: translateY(-6px) rotateZ(1deg) rotateX(-4deg); }
}
@keyframes flyby-glint {
  0%, 15% { background-position: 120% 0; }
  70%, 100% { background-position: -40% 0; }
}
@keyframes flyby-prop {
  0% { transform: scaleY(1); opacity: 0.9; }
  50% { transform: scaleY(0.82); opacity: 0.6; }
  100% { transform: scaleY(1); opacity: 0.9; }
}
@keyframes flyby-trail { to { opacity: 0.35; transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .flyby { display: none; } }

/* Tisk -------------------------------------------------------------------- */
@media print {
  .site-header, .sidebar, .mobile-toc, .progress, .to-top, .flyby, .outro, .page-hero__bg, .animation, .video { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { min-height: 0; padding: 0 0 1rem; }
  .page-hero::after { display: none; }
  .prose p, .prose li, .part dd, .fault__title, .faq details p, .summary .checklist li { color: #000; }
  .chapter { break-inside: avoid-page; }
  .faq details { border: 0; }
}

/* Doladění rozestupů */
.chapter h3 + .prose { margin-top: 0.75rem; }
.chapter .fault__title,
.chapter .sim h3 { margin-top: 0; }
.course { padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
