/* Főoldal – sötét, filmszerű felső rész (hero, "Ők már repültek" szalag, számok) a PandAero brand kit
   színeivel és Montserrat betűvel. A tartalmi rész (program, csomagok, GYIK, űrlap) világos marad. */

:root {
  --h-bg: #08142f;
  --h-bg-2: #0b1c40;
  --h-line: rgba(255, 255, 255, .12);
  --h-muted: #C9D6EA;
  --h-amber: #F2A33A;
  --h-sky: #74D0F2;
}

.h-hero [hidden], .h-strip [hidden] { display: none !important; }

.h-wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .h-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .h-wrap { padding: 0 2rem; } }

.h-kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--h-amber); }
.h-h1, .h-h2 { margin: 0; font-weight: 300; line-height: 1.1; letter-spacing: -.01em; color: #fff; }
.h-h1 { font-size: clamp(40px, 8.4vw, 76px); }
.h-h2 { font-size: clamp(28px, 4.6vw, 44px); }
.h-h1 strong, .h-h2 strong { font-weight: 600; color: var(--h-amber); }
.h-lead { margin: 0; font-size: clamp(17px, 2.1vw, 20px); font-weight: 300; line-height: 1.6; color: var(--h-muted); max-width: 36rem; }
.h-lead strong { color: #fff; font-weight: 600; }

.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.h-btn--solid { background: var(--h-amber); color: #08142f; border: 1.5px solid var(--h-amber); }
.h-btn--solid:hover { background: #f6b65c; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(242, 163, 58, .3); }
.h-btn--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.h-btn--ghost:hover { border-color: var(--h-amber); color: var(--h-amber); }
.h-btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.h-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  padding: 48px 0 64px;
  background:
    radial-gradient(60% 50% at 85% 70%, rgba(242, 163, 58, .14), transparent 70%),
    radial-gradient(70% 60% at 10% 0%, rgba(116, 208, 242, .12), transparent 70%),
    linear-gradient(180deg, var(--h-bg) 0%, var(--h-bg-2) 100%);
}
.h-hero::before { /* halvány csillagok */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .45;
  background-image:
    radial-gradient(1px 1px at 30px 40px, rgba(217, 236, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 160px 120px, rgba(217, 236, 255, .5), transparent 60%),
    radial-gradient(1.3px 1.3px at 250px 30px, rgba(242, 163, 58, .6), transparent 60%),
    radial-gradient(1px 1px at 90px 210px, rgba(217, 236, 255, .4), transparent 60%);
  background-size: 320px 260px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.h-hero__grid { display: grid; gap: 48px; align-items: center; }
.h-hero__text > * + * { margin-top: 22px; }
.h-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; padding-top: 4px; }
.h-hero__small { font-size: 14px; color: var(--h-muted); }
.h-hero__small a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--h-sky); }
.h-hero__small a:hover { color: var(--h-sky); }
.h-hero__note { font-size: 12.5px; color: rgba(201, 214, 234, .8); }
.h-price { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--h-line); font-size: 14px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .05); }
@media (min-width: 1024px) {
  .h-hero { padding: 72px 0 96px; min-height: calc(100vh - 80px); display: flex; align-items: center; }
  .h-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
}

/* Társas bizonyíték: arcok + szám */
.h-proof { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.h-avatars { display: flex; }
.h-avatars img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--h-bg); margin-left: -12px; background: #12244d;
}
.h-avatars img:first-child { margin-left: 0; }
.h-proof p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--h-muted); }
.h-proof strong { color: #fff; font-weight: 700; }
.h-stars { color: var(--h-amber); letter-spacing: 2px; font-size: 14px; }

/* 3D logó: a hivatalos SVG rétegei térben egymás mögött (alakjuk, színük változatlan) */
.h-logo3d { width: min(400px, 66vw); perspective: 900px; }
.h-logo3d__stage {
  position: relative; aspect-ratio: 248.81 / 51; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  animation: h-logo-sway 9s ease-in-out 2.4s infinite alternate;
}
.h-logo3d.is-tracking .h-logo3d__stage { animation: none; transition-duration: .15s; }
.h-logo3d__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(var(--z, 0px)); }
@keyframes h-logo-sway {
  0% { transform: rotateX(6deg) rotateY(-14deg); }
  100% { transform: rotateX(-4deg) rotateY(14deg); }
}

/* Média: loop-videó telefon-keretben + körülötte úszó, cserélődő résztvevő-fotók */
.h-hero__media { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.h-phone {
  position: relative; z-index: 2; width: min(300px, 62vw); aspect-ratio: 9 / 16;
  border-radius: 32px; overflow: hidden; background: #050d20;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 8px rgba(255, 255, 255, .04);
}
.h-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-phone__btn {
  position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(8, 20, 47, .55); backdrop-filter: blur(6px);
}
.h-phone__btn svg { width: 15px; height: 15px; fill: currentColor; }
.h-float {
  position: absolute; z-index: 3; margin: 0; overflow: hidden; border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, .9); background: #12244d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  animation: h-float 7s ease-in-out infinite alternate;
}
.h-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.h-float img.is-on { opacity: 1; }
.h-float--1 { width: 138px; height: 172px; left: max(0px, calc(50% - 250px)); top: 12%; transform: rotate(-6deg); }
.h-float--2 { width: 150px; height: 112px; right: max(0px, calc(50% - 260px)); bottom: 16%; transform: rotate(5deg); animation-delay: -3s; }
.h-badge {
  position: absolute; z-index: 4; right: max(6px, calc(50% - 230px)); top: 6%;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: #fff; color: #0F1E3D; font-size: 13.5px; font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.h-badge .h-stars { font-size: 13px; letter-spacing: 1px; }
@keyframes h-float { from { translate: 0 0; } to { translate: 0 -12px; } }
@media (max-width: 520px) {
  .h-float--1 { width: 104px; height: 130px; left: 0; }
  .h-float--2 { width: 116px; height: 88px; right: 0; }
  .h-badge { right: 0; top: 0; font-size: 12.5px; }
}

/* ---------- "Ők már repültek" szalag ---------- */
.h-strip { position: relative; padding: 72px 0 80px; background: linear-gradient(180deg, var(--h-bg-2) 0%, var(--h-bg) 100%); color: #fff; overflow: hidden; }
.h-strip__head { text-align: center; max-width: 46rem; margin: 0 auto; }
.h-strip__head > * + * { margin-top: 14px; }
.h-strip__head .h-lead { margin-left: auto; margin-right: auto; }
.h-rows { margin-top: 44px; display: grid; gap: 14px; }
.h-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.h-row__track { display: flex; gap: 14px; width: max-content; animation: h-marquee var(--dur, 70s) linear infinite; }
.h-row--rev .h-row__track { animation-direction: reverse; }
.h-row:hover .h-row__track { animation-play-state: paused; }
.h-row img { height: 220px; width: auto; border-radius: 16px; object-fit: cover; cursor: zoom-in; flex: none; background: #12244d; }
@media (min-width: 768px) { .h-row img { height: 260px; } }
.h-next {
  flex: none; height: 220px; aspect-ratio: 3 / 4; border-radius: 16px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; padding: 18px;
  border: 1.5px dashed rgba(242, 163, 58, .7); color: #fff; text-decoration: none; font-weight: 600; font-size: 18px;
  background: rgba(242, 163, 58, .06); transition: background .25s;
}
.h-next:hover { background: rgba(242, 163, 58, .14); }
.h-next span { font-size: 13px; font-weight: 500; color: var(--h-muted); }
@media (min-width: 768px) { .h-next { height: 260px; } }
@keyframes h-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Valós számok */
.h-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { .h-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.h-stat { padding: 22px 20px; border-radius: 18px; border: 1px solid var(--h-line); background: rgba(255, 255, 255, .04); text-align: center; }
.h-stat__num { font-size: clamp(30px, 4.4vw, 44px); font-weight: 300; line-height: 1; color: #fff; }
.h-stat__num em { font-style: normal; color: var(--h-amber); }
.h-stat__label { margin-top: 10px; font-size: 14px; color: var(--h-muted); line-height: 1.4; }
.h-strip__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- A nap 20 másodpercben ---------- */
.h-film { padding: 72px 0; background: linear-gradient(180deg, var(--h-bg) 0%, var(--h-bg-2) 100%); color: #fff; }
.h-film__grid { display: grid; gap: 40px; align-items: center; }
.h-film__grid > div > * + * { margin-top: 16px; }
.h-film video { width: min(340px, 80vw); aspect-ratio: 9 / 16; border-radius: 26px; background: #000; margin: 0 auto; display: block; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
@media (min-width: 900px) { .h-film__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

@media (prefers-reduced-motion: reduce) {
  .h-logo3d__stage { animation: none; transition: none; transform: none; }
  .h-float { animation: none; }
  .h-row__track { animation: none; }
  .h-row { overflow-x: auto; }
}



/* ---------- Hero: a nap fázisai ---------- */
.h-phases { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.h-phases li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(116, 208, 242, .35); background: rgba(116, 208, 242, .08);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #fff;
}
.h-phases li + li::before { content: "→"; margin-right: 8px; margin-left: -2px; color: var(--h-amber); font-weight: 400; }
.h-phases li:last-child { border-color: rgba(242, 163, 58, .6); background: rgba(242, 163, 58, .1); }

/* ---------- Kisgéptől az utasszállítóig ---------- */
.h-journey { position: relative; padding: 80px 0 88px; color: #fff; background: linear-gradient(180deg, var(--h-bg-2) 0%, var(--h-bg) 100%); overflow: hidden; }
.h-journey__head { max-width: 46rem; }
.h-journey__head > * + * { margin-top: 16px; }
.h-chapters { position: relative; list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 72px; }
/* Útvonal-vonal, ami görgetéskor borostyánnal telik (home.js állítja a --p értéket) */
.h-chapters::before, .h-chapters::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 2px; margin-left: -1px; border-radius: 2px; display: none;
}
.h-chapters::before { bottom: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .2) 0 8px, transparent 8px 16px); }
.h-chapters::after { height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, var(--h-sky), var(--h-amber)); box-shadow: 0 0 12px rgba(242, 163, 58, .5); }
.h-chapter { display: grid; gap: 28px; align-items: center; }
.h-chapter__media { position: relative; padding: 0 0 40px 0; }
.h-chapter__main { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; display: block; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.h-chapter__inset {
  position: absolute; right: -6px; bottom: 0; width: 34%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, .92); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.h-chapter .h-chapter__text > * + * { margin-top: 16px; }
.h-chapter__num { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--h-sky); }
.h-chapter h3 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); font-weight: 300; line-height: 1.15; color: #fff; }
.h-chapter h3 strong { font-weight: 600; color: var(--h-amber); }
.h-chapter p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--h-muted); max-width: 32rem; }
.h-chapter .h-chapter__time { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--h-line); background: rgba(255, 255, 255, .05); font-size: 14px; font-weight: 600; color: #fff; }
.h-chapter:last-child .h-chapter__num { color: var(--h-amber); }
.h-journey__note { margin: 48px 0 0; font-size: 13.5px; color: rgba(201, 214, 234, .8); max-width: 46rem; }
.h-journey .reveal { transition-duration: .9s; }
@media (min-width: 1024px) {
  .h-chapters { gap: 96px; }
  .h-chapters::before, .h-chapters::after { display: block; }
  .h-chapter { grid-template-columns: 1fr 1fr; gap: 96px; }
  .h-chapter--flip .h-chapter__media { order: 2; }
  .h-chapter__media { padding-bottom: 48px; }
  .h-chapter__inset { right: -28px; }
  .h-chapter--flip .h-chapter__inset { right: auto; left: -28px; }
}
@media (prefers-reduced-motion: reduce) { .h-chapters::after { height: 100%; } }

/* ---------- Résztvevői fotók és videók lapozója (api/featured-media.php) ---------- */
.h-ugc { margin-top: 32px; }
.h-ugc[hidden] { display: none; }
.h-ugc__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.h-ugc__title { margin: 0; font-weight: 600; color: #18181b; }
.h-ugc__nav { display: flex; gap: 8px; }
.h-ugc__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(38, 75, 159, .3); background: #fff;
  color: #264B9F; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.h-ugc__btn:hover { background: #264B9F; color: #fff; }
.h-ugc__track {
  margin-top: 14px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 14px; scrollbar-width: thin; overscroll-behavior-x: contain;
}
.h-ugc__item { position: relative; flex: none; margin: 0; height: 380px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: #0F1E3D; box-shadow: 0 10px 30px rgba(15, 30, 61, .15); }
.h-ugc__item img, .h-ugc__item video { display: block; height: 100%; width: auto; max-width: 86vw; object-fit: cover; }
.h-ugc__item img { cursor: zoom-in; }
.h-ugc__item video { aspect-ratio: 9 / 16; background: #000; }
.h-ugc__item figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #18181b; font-size: 13px; font-weight: 600; pointer-events: none;
}
.h-ugc__item.is-video figcaption { bottom: auto; top: 10px; }
.h-ugc__item .h-stars { font-size: 12px; }
@media (min-width: 768px) { .h-ugc__item { height: 440px; } }
