/* ==========================================================================
   Paraklub Krnov — úvodní stránka
   ========================================================================== */

/* Hero s videem ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding-block: calc(var(--header-h) + 3rem) clamp(2rem, 1rem + 4vw, 4rem);
}
.hero__video,
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero__video { object-fit: cover; }
.hero__overlay {
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, rgba(7, 11, 20, 0) 30%),
    linear-gradient(0deg, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.35) 45%, rgba(7, 11, 20, 0.1) 70%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 77, 26, 0.25), transparent 60%);
}

.hero__content { max-width: 1000px; }
.hero__title {
  font-size: var(--fs-h1);
  line-height: 0.88;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.35);
}
.hero__title .line { display: block; overflow: hidden; padding-top: 0.14em; margin-top: -0.14em; }
.hero__title .line > span { display: inline-block; }
.hero__title .outline {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}
.hero__lead {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: var(--fs-lg);
  color: rgba(238, 242, 248, 0.88);
}
.hero .btn-row { margin-top: 2.25rem; }

/* úvodní animace nadpisu */
.js .hero__title .line > span { transform: translateY(105%); animation: rise 1s var(--ease-out) forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: 0.24s; }
.js .hero__fade { opacity: 0; animation: fade-up 0.9s var(--ease-out) 0.5s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* altimetr / statistiky */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.stat { display: flex; flex-direction: column; padding: 1.25rem 1rem 0 0; }
.stat__value { order: -1; margin: 0; }
.stat + .stat { padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.stat__value {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 1rem + 3vw, 3.25rem);
  line-height: 1;
  color: #fff;
}
.stat__value small { font-size: 0.5em; color: var(--c-accent); margin-left: 0.15em; }
.stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: clamp(0.7rem, 0.65rem + 0.25vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.hero__controls {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 1rem);
  display: flex;
  gap: 0.5rem;
}
.video-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(7, 11, 20, 0.35);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s;
}
.video-toggle:hover { background: rgba(255, 255, 255, 0.15); }
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
}
.scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--c-accent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 640px) {
  .scroll-cue { display: none; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}
@media (min-width: 1100px) {
  .scroll-cue { bottom: 2rem; }
}

/* O nás ------------------------------------------------------------------- */
.about__media { position: relative; }
.about__media .media-frame { aspect-ratio: 4 / 5; }
.about__badge {
  position: absolute;
  left: -1rem; bottom: 2rem;
  padding: 1.1rem 1.4rem;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 700;
  line-height: 1.2;
  max-width: 230px;
}
.about__badge strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; text-transform: uppercase; }
@media (min-width: 960px) { .about__badge { left: -2.5rem; } }

.about__views {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  text-align: center;
}
.about__views strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em; }
.about__views span { font-size: 0.8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.about__views svg { width: 36px; height: 36px; color: var(--c-accent); }

/* L-60 Brigadýr --------------------------------------------------------
   Fotka má vyříznuté nebe (průhledné). Za ní je „obzor“ — přechod
   z noční oblohy stránky do světlého nebe, spodek trávy se rozplývá do pozadí. */
.aircraft {
  padding-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(79, 195, 255, 0.12), transparent 70%),
    var(--c-bg);
}
.aircraft__head {
  display: grid;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 960px) {
  .aircraft__head { grid-template-columns: 1.1fr 1fr; }
}
.aircraft__title .reg { color: var(--c-accent); }
.aircraft__photo {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: clamp(1.5rem, 3vw, 3rem) auto clamp(1.5rem, 3vw, 3.5rem);
  aspect-ratio: 1600 / 300;
  /* obloha za vyříznutou fotkou: tma → modř → světlý opar u obzoru */
  background: linear-gradient(180deg,
    rgba(7, 11, 20, 0) 0%,
    #0f2440 18%,
    #2f5f8f 34%,
    #8fb7d8 46%,
    #d9e8f3 56%,
    #e9f1f7 70%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, #000 0, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, #000 0, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.aircraft__photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}
/* easter egg L-60 (assets/js/l60-egg.js): fotka bez letadla + animace nad stránkou */
.aircraft__photo .l60-egg__empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  opacity: 0;
  pointer-events: none;
}
.l60-egg__canvas {
  position: fixed;
  z-index: 50;
  display: none;
  pointer-events: none;
  filter: saturate(1.08) contrast(1.04);
}
.l60-egg__canvas.is-active { display: block; }

/* jemný opar nad obzorem pro hloubku */
.aircraft__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(255, 77, 26, 0.08) 60%, rgba(7, 11, 20, 0.25) 100%);
  pointer-events: none;
}
.aircraft__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.aircraft__spec { padding: 1.1rem 1.25rem; background: var(--c-surface); }
.aircraft__spec dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.aircraft__spec dd { margin: 0.25rem 0 0; font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.1; text-transform: uppercase; }

/* Výcvik ------------------------------------------------------------------ */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(255, 77, 26, 0.6); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--f-display);
  font-size: 3.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-accent);
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.95rem; color: var(--c-muted); }
.step__alt {
  position: absolute;
  top: 1.75rem; right: 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.training__needs {
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  align-items: stretch;
}
@media (min-width: 900px) { .training__needs { grid-template-columns: 0.8fr 1.2fr; } }
.training__needs .media-frame { min-height: 320px; }
.training__needs .card h3 { margin-bottom: 1.5rem; }
.training__note {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-left: 4px solid var(--c-accent);
  background: linear-gradient(90deg, rgba(255, 77, 26, 0.1), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-lg);
  color: #d5dcea;
}
.training__note em { color: #fff; font-style: normal; font-weight: 700; }
.training__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.training__cta p { color: var(--c-muted); max-width: 52ch; }

/* Instruktoři ------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.member {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}
.member:hover { transform: translateY(-6px); border-color: rgba(255, 77, 26, 0.5); }
.member__photo {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 1.25rem;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--c-accent), var(--c-warn), var(--c-sky), var(--c-accent));
}
.member__photo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--c-surface-2);
}
.member h3 { font-size: 1.2rem; }
.member__role { margin-top: 0.25rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent); }
.member__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--c-muted);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}
.member__mail:hover { color: #fff; }
.member__mail svg { width: 16px; height: 16px; flex: none; }

/* Ceník ------------------------------------------------------------------- */
.pricing {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 860px) { .pricing { grid-template-columns: repeat(3, 1fr); align-items: center; } }
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.25rem 2rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}
.price__name { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-muted); }
.price__value { font-family: var(--f-display); font-size: clamp(2.75rem, 2rem + 2.5vw, 4rem); line-height: 1; }
.price__value small { font-size: 0.4em; color: var(--c-muted); margin-left: 0.25rem; }
.price__desc { font-size: 0.95rem; color: var(--c-muted); }
.price .btn { margin-top: auto; }
.price--featured {
  padding-block: 3rem;
  background: linear-gradient(160deg, #ff5a28, #e63a0c);
  border-color: transparent;
  color: var(--c-accent-ink);
  box-shadow: 0 30px 60px -25px rgba(255, 77, 26, 0.7);
}
.price--featured .price__name,
.price--featured .price__desc,
.price--featured .price__value small { color: rgba(11, 15, 25, 0.75); }
.price--featured .btn { --btn-bg: var(--c-accent-ink); --btn-fg: #fff; }
.price__tag {
  position: absolute;
  top: -0.85rem; left: 2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--c-accent-ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pricing__note {
  margin-top: 2rem;
  text-align: center;
  color: var(--c-muted);
}
.pricing__note strong { color: var(--c-text); }

/* Galerie ----------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 0.75rem;
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 2; }
  .gallery__item--big { grid-column: span 2; grid-row: span 2; }
}
.gallery__item { height: 100%; border-radius: var(--radius); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__more { margin-top: 2.5rem; text-align: center; }

/* Kontakt / mapa ---------------------------------------------------------- */
.contact {
  display: grid;
  gap: 2rem;
}
@media (min-width: 960px) { .contact { grid-template-columns: 0.8fr 1.2fr; align-items: stretch; } }
.contact__info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact__item svg { width: 26px; height: 26px; flex: none; color: var(--c-accent); margin-top: 0.15rem; }
.contact__item strong { display: block; font-size: 1.05rem; }
.contact__item span, .contact__item a { color: var(--c-muted); }
.contact__item a { text-underline-offset: 3px; transition: color 0.2s; }
.contact__item a:hover { color: var(--c-accent); }
.contact__map {
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface-2);
}
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* Mobilní doladění ---------------------------------------------------------- */
.gallery__item--big { grid-column: span 2; }
@media (max-width: 759px) {
  .aircraft__photo { aspect-ratio: auto; height: 230px; margin-bottom: 1.5rem; }
  .aircraft__photo img { object-position: 60% 50%; }
}
@media (max-width: 859px) {
  .price--featured { order: -1; }
}
