/* =====================================================================
   SKY VR — стилі лендингів: Партнерам (благодійні / табори-школи),
   Подарункові сертифікати, VR-квест.
   Спирається на токени та базові класи з style.css
   (.container, .section-head, .kicker, .mark, .btn, .cards/.card, .hero).
   ===================================================================== */

/* ---------- HERO-фото з CRM (мобіл-безпечний патерн) ---------- */
.lp-hero-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg, 22px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-3);
}
.lp-hero-photo {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 880px) {
  .lp-hero-photo-wrap { aspect-ratio: 16 / 10; max-width: 560px; margin: 0 auto; }
}

/* «емоджі-заглушка», коли фото ще не завантажене */
.lp-hero-fallback {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg, 22px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(124, 92, 214, .28), transparent 60%),
    radial-gradient(120% 120% at 90% 90%, rgba(56, 189, 248, .22), transparent 60%),
    var(--ink-2, #15132e);
  font-size: clamp(3.4rem, 9vw, 6rem);
  overflow: hidden;
}
@media (max-width: 880px) {
  .lp-hero-fallback { aspect-ratio: 16 / 10; max-width: 560px; margin: 0 auto; }
}

/* ---------- Блоки-переваги (плитки) ---------- */
.lp-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.lp-tile {
  background: var(--ink-2, #15132e);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md, 16px);
  padding: 22px 20px;
}
.lp-tile-ic { font-size: 1.9rem; line-height: 1; margin-bottom: 12px; }
.lp-tile strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.lp-tile p { color: var(--text-soft); margin: 0; font-size: .94rem; line-height: 1.5; }

/* ---------- Галерея (з CRM) ---------- */
.lp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.lp-gallery figure {
  margin: 0;
  border-radius: var(--r-md, 16px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-3);
  position: relative;
}
.lp-gallery figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.lp-gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  font-size: .85rem;
  color: #fff;
  background: linear-gradient(to top, rgba(8, 6, 22, .82), transparent);
}

/* ---------- Відео Shorts (9:16, по центру) ---------- */
.lp-video-frame {
  max-width: 360px;
  margin: 22px auto 0;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg, 22px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
}
.lp-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Картки VR-квестів (вигляд як перелік ігор: 2 колонки постерів) ---------- */
.quest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.quest-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r, 16px);
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  background: var(--ink-3);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.quest-card:hover { transform: translateY(-4px); border-color: var(--violet); box-shadow: 0 16px 36px rgba(0,0,0,.34); }
.quest-card-img { overflow: hidden; }
.quest-card-img img { display: block; width: 100%; height: auto; transition: transform .45s ease; }
.quest-card:hover .quest-card-img img { transform: scale(1.03); }
.quest-card-emoji {
  aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  background: radial-gradient(120% 120% at 30% 10%, rgba(124, 92, 214, .3), transparent 60%), var(--ink-3);
}
.quest-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.quest-card-body h3 { margin: 0; font-size: 1.16rem; }
.quest-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.quest-tag {
  font-size: .76rem; font-weight: 600; color: var(--violet-soft);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px;
  background: rgba(124, 92, 214, .12);
}
.quest-card-body p { color: var(--text-soft); margin: 0; font-size: .95rem; line-height: 1.55; }
.quest-card-actions {
  margin-top: auto; padding-top: 4px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.quest-book-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: none;
  font-weight: 700; font-size: .9rem; color: #fff; text-decoration: none;
  background: var(--violet); border-radius: 999px; padding: 9px 18px;
  transition: background .15s ease, transform .15s ease;
}
.quest-book-btn:hover { background: var(--violet-deep); transform: translateY(-1px); }
.quest-video-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .9rem; color: var(--violet-soft); text-decoration: none;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.quest-video-btn:hover { border-color: var(--violet-soft); color: #fff; transform: translateY(-1px); }

/* підказка над календарем після вибору квесту */
.quest-book-hint {
  max-width: 720px; margin: 0 auto 14px;
  background: rgba(124, 92, 214, .12); border: 1px solid var(--violet);
  color: var(--text); border-radius: 12px; padding: 11px 16px;
  font-size: .92rem; text-align: center;
}

@media (max-width: 620px) {
  .quest-grid { grid-template-columns: 1fr; }
}

/* ---------- Універсальна форма-заявка (.lead-form) ---------- */
.lead-form {
  max-width: 660px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead-form-sec { scroll-margin-top: 90px; }
.lf-row { display: flex; gap: 14px; flex-wrap: wrap; }
.lf-row label { flex: 1 1 220px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--text-soft); font-weight: 600; }
.lead-form input,
.lead-form textarea,
.lead-form select {
  background: var(--ink-3);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm, 10px);
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}
.lead-form select { cursor: pointer; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--text-mute); }
.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus { outline: none; border-color: var(--violet-soft); box-shadow: 0 0 0 3px rgba(124, 92, 214, .25); }
.lf-submit { align-self: flex-start; margin-top: 6px; border: 0; cursor: pointer; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lf-note { color: var(--text-mute); font-size: .82rem; margin: 2px 0 0; }
.lf-status { margin: 6px 0 0; font-size: .95rem; font-weight: 600; min-height: 1.2em; }
.lf-status.ok { color: var(--violet-soft); }
.lf-status.err { color: #ff8a8a; }
.lf-status a { color: inherit; text-decoration: underline; }

/* спосіб звʼязку — «пігулки» */
.lf-channels { display: flex; flex-direction: column; gap: 8px; }
.lf-channels-label { font-size: .88rem; color: var(--text-soft); font-weight: 600; }
.lf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.lf-pill span {
  display: inline-block; padding: 9px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  font-size: .92rem; color: var(--text-soft); user-select: none;
  transition: background .15s, border-color .15s, color .15s;
}
.lf-pill input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; font-weight: 600; }
.lf-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(124, 92, 214, .35); }
@media (max-width: 560px) { .lf-submit { align-self: stretch; text-align: center; } }

/* номінали сертифіката */
.cert-nominals { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-nominal input { position: absolute; opacity: 0; width: 0; height: 0; }
.cert-nominal span {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-sm, 10px);
  cursor: pointer; font-weight: 700; font-size: 1.05rem; color: var(--text-soft);
  transition: background .15s, border-color .15s, color .15s;
}
.cert-nominal input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.cert-nominal input:focus-visible + span { box-shadow: 0 0 0 3px rgba(124, 92, 214, .35); }

/* ---------- Модалка-подяка після відправки ---------- */
.lead-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lead-modal[hidden] { display: none; }
.lead-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 6, 22, .72); }
.lead-modal-card { position: relative; z-index: 1; max-width: 400px; width: 100%; text-align: center; padding: 32px 26px 28px; }
.lead-modal-x { position: absolute; top: 8px; right: 14px; background: none; border: 0; color: var(--text-mute); font-size: 2rem; line-height: 1; cursor: pointer; padding: 4px; }
.lead-modal-x:hover { color: var(--text); }
.lead-modal-icon { color: var(--violet-soft); margin-bottom: 8px; display: flex; justify-content: center; }
.lead-modal-card h3 { margin: 4px 0 10px; font-size: 1.3rem; }
.lead-modal-card p { color: var(--text-soft); margin: 0 0 20px; font-size: .96rem; line-height: 1.5; }
