/* ===================================================================
   ФОРТЕЦЯ — «Ярмарок ідей та розваг»
   світла казкова тема в кольорах брендбуку: блакить, бірюза, червоний, гірчичний;
   шрифти: Rubik (заголовки) + Arimo (текст, з брендбуку)
   =================================================================== */
:root {
  --bg: #fff8ee;
  --bg-2: #eaf6fd;
  --card: #ffffff;
  --ink: #1f3346;
  --text: var(--ink);
  --muted: #566879;
  --dim: #8a99a7;
  --teal: #2f9aa0;
  --red: #e8392b;
  --gold: #f4aa1c;
  --gold-2: #ffc34d;
  --green: #00a77f;
  --blue: #49bae3;
  --sky: #c2e8fe;
  --night: #1d2a5c;
  --line: rgba(31, 51, 70, .12);
  --shadow: 0 18px 40px -18px rgba(31, 51, 70, .28);
  --accent: var(--teal);
  --r: 22px;
  --gutter: clamp(16px, 5vw, 72px);
  --display: 'Rubik', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Arimo', Arial, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* білі «сніжинки», як на круглому логотипі */
  --snow: radial-gradient(circle at 20% 30%, rgba(255,255,255,.95) 0 3px, transparent 3.5px),
          radial-gradient(circle at 70% 60%, rgba(255,255,255,.85) 0 2px, transparent 2.5px),
          radial-gradient(circle at 45% 85%, rgba(255,255,255,.9) 0 2.5px, transparent 3px);
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--gold-2); color: var(--ink); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- типографіка ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font: 600 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--teal);
}
.kicker::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 14px 0 0 var(--gold), 28px 0 0 var(--teal); margin-right: 30px; }
.kicker .dot { display: none; }

.display {
  font: 700 clamp(34px, 4.6vw, 64px)/1.08 var(--display); letter-spacing: -.01em;
  margin: 0 0 28px; text-wrap: balance; color: var(--ink);
}
.hl { color: var(--green); position: relative; white-space: nowrap; }
/* м'ятний «маркер» під словом */
.hl::after {
  content: ''; position: absolute; left: -3%; right: -3%; bottom: .04em; height: .3em; z-index: -1; border-radius: 6px;
  background: color-mix(in srgb, var(--green) 20%, transparent);
  transform: scaleX(var(--u, 0)); transform-origin: left; transition: transform 1.1s var(--ease) .3s;
}
.hl.is-in::after { --u: 1; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
[data-split] .wi { display: inline-block; will-change: transform; }

/* ---------- кнопки ---------- */
.btn {
  --bg: var(--card); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 600 16px/1 var(--display); letter-spacing: .01em;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s;
}
.btn--amber { --bg: var(--gold); --fg: #2b1d00; box-shadow: 0 10px 24px -10px rgba(244, 170, 28, .9), inset 0 -3px 0 rgba(0,0,0,.08); }
.btn--ghost { box-shadow: inset 0 0 0 2px var(--line); background: transparent; }
.btn--small { padding: 12px 20px; font-size: 14px; }
.btn--wide { width: 100%; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--amber:hover { --bg: var(--gold-2); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--teal); color: var(--teal); }
}
.btn:active { transform: translateY(1px); transition-duration: .1s; }

.round {
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow);
  font: 500 26px/1 var(--display); color: var(--ink); transition: color .3s, transform .3s var(--ease);
}
@media (hover: hover) { .round:hover { color: var(--red); transform: scale(1.06); } }

/* ---------- лоадер ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 26px;
  background: var(--snow), var(--sky); background-size: 90px 90px, 70px 70px, 110px 110px; clip-path: circle(150% at 50% 50%);
}
.loader__logo { width: 132px; height: 132px; animation: bob 1.4s ease-in-out infinite alternate; filter: drop-shadow(0 14px 24px rgba(31, 51, 70, .25)); }
@keyframes bob { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-12px) rotate(4deg); } }
.loader__bar { width: 160px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.7); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--red), var(--gold), var(--teal)); transition: width .4s var(--ease); }

.cursor { display: none; }

/* ---------- верх ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter); color: #fff; transition: background .4s, padding .4s, color .4s, box-shadow .4s;
}
.top.is-scrolled { background: rgba(255, 248, 238, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); padding-top: 10px; padding-bottom: 10px; box-shadow: 0 6px 24px -14px rgba(31, 51, 70, .35); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
.brand__logo { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.2)); }
.brand__text { display: grid; }
.brand__word { font: 700 21px/1 var(--display); letter-spacing: .02em; }
.brand__sub { font: 500 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-top: 5px; }
.top__nav { display: flex; gap: 28px; }
.top__nav a { text-decoration: none; font: 500 15px/1 var(--display); opacity: .85; transition: opacity .3s, color .3s; }
.top__nav a:hover { opacity: 1; color: var(--gold-2); }
.top.is-scrolled .top__nav a:hover { color: var(--red); }
.top__right { display: flex; align-items: center; gap: 20px; }
.top__phone { font: 600 16px/1 var(--display); text-decoration: none; }
.top__phone:hover { color: var(--gold-2); }

/* ---------- док (телефон) ---------- */
.dock { display: none; }
.dock__lamp {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 14px;
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  transition: transform .6s var(--ease), width .6s var(--ease), opacity .3s; opacity: 0;
}

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #2a3a7a; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 30, 76, .62), rgba(22, 30, 76, .12) 50%, transparent 70%), linear-gradient(0deg, rgba(22, 30, 76, .55), transparent 30%);
}
/* container-type: розмір назви рахується від ширини блоку тексту (cqi), тож вона завжди влазить */
.hero__content {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-44%); z-index: 2;
  width: min(620px, 46vw); container-type: inline-size; color: #fff;
}
.hero .kicker { color: var(--sky); }
/* «ФОРТЕЦЯ» в Rubik 800 ≈ 5.1em завширшки → 18.5cqi лишає запас */
.hero__title {
  font: 800 min(18.5cqi, 128px)/1 var(--display); letter-spacing: .01em; text-transform: uppercase;
  white-space: nowrap; width: max-content;
  padding: .08em .06em .1em; margin: -.08em -.06em calc(16px - .1em);
  background: linear-gradient(180deg, #ffffff 35%, #ffd98a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(10, 16, 50, .45));
}
.hero__sub { font-size: clamp(17px, 1.4vw, 20px); color: #eef2ff; margin: 0 0 30px; max-width: 28em; text-shadow: 0 2px 14px rgba(10, 16, 50, .5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__write { margin: 24px 0 10px; font: 500 15px/1.4 var(--display); color: #eef2ff; text-shadow: 0 2px 14px rgba(10, 16, 50, .5); }
.hero__write a { color: var(--gold-2); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- месенджери: Viber / Telegram / Instagram ---------- */
.msgr { display: flex; flex-wrap: wrap; gap: 8px; }
.msgr a {
  --c: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 999px;
  background: var(--c); color: #fff; text-decoration: none; font: 600 14px/1 var(--display);
  box-shadow: 0 8px 20px -10px var(--c); transition: transform .4s var(--ease), filter .3s;
}
.msgr svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.msgr .msgr__vb { --c: #7360f2; }
.msgr .msgr__tg { --c: #229ed9; }
.msgr .msgr__ig { --c: #d6297b; background: linear-gradient(45deg, #f5a623, #e1306c 50%, #8a3ab9); }
@media (hover: hover) { .msgr a:hover { transform: translateY(-2px); filter: brightness(1.08); } }
.hero .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
@media (hover: hover) { .hero .btn--ghost:hover { color: var(--gold-2); box-shadow: inset 0 0 0 2px var(--gold-2); } }
.hero__hint {
  position: absolute; left: var(--gutter); bottom: 40px; z-index: 2;
  display: flex; align-items: center; gap: 12px; font: 500 13px/1 var(--display); letter-spacing: .08em; color: #dfe6ff;
}
.mouse { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.mouse::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1 } 80% { transform: translateY(10px); opacity: 0 } 100% { opacity: 0 } }
.hero__flash {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 55%, #fffdf6 0%, #fff3d6 35%, var(--bg) 80%);
}

/* ---------- ЗА БРАМОЮ ---------- */
.gate {
  position: relative; padding: 130px 0 140px;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, #fff0cc, transparent 70%), var(--bg);
}
.gate .display { max-width: 15em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; }
.fact { padding: 28px 24px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.fact b { display: block; font: 800 clamp(36px, 3.6vw, 54px)/1 var(--display); color: var(--teal); margin-bottom: 10px; }
.fact:nth-child(2) b { color: var(--red); }
.fact:nth-child(3) b { color: var(--gold); }
.fact:nth-child(4) b { color: var(--green); }
.fact span { color: var(--muted); font-size: 15px; }

/* ---------- КВЕСТИ ---------- */
.quests { position: relative; padding: 120px 0 110px; background: var(--snow), var(--bg-2); background-size: 90px 90px, 70px 70px, 120px 120px; }
.quests__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.quests__sub { color: var(--muted); max-width: 24em; margin: 0 0 34px; }
.qrow {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 14px var(--gutter) 26px; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  margin-top: 6px; -webkit-overflow-scrolling: touch;
}
.qrow::-webkit-scrollbar { display: none; }
@media (min-width: 1280px) { .qrow { padding-inline: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); } }
.qcard {
  --c: var(--teal);
  position: relative; flex: 0 0 clamp(260px, 25vw, 330px); aspect-ratio: 3 / 4.1; scroll-snap-align: start;
  border-radius: var(--r); overflow: hidden; background: var(--sky); text-align: left; border: 5px solid #fff; padding: 0;
  isolation: isolate; contain: paint; box-shadow: var(--shadow); transition: transform .5s var(--ease);
}
.qcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.qcard::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 28, 60, 0) 40%, rgba(20, 28, 60, .55) 65%, rgba(20, 28, 60, .92) 100%); }
.qcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 20px 22px; color: #fff; }
.qcard__badge { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--c); font: 600 12px/1 var(--display); letter-spacing: .06em; color: #fff; margin-bottom: 12px; }
.qcard__title { display: block; font: 800 32px/1.02 var(--display); margin-bottom: 6px; }
.qcard__lead { display: block; color: #eef2ff; font-size: 15px; line-height: 1.45; }
.qcard__more { display: inline-block; margin-top: 12px; font: 600 14px/1 var(--display); color: var(--gold-2); }
/* картка без фото («незабаром»): логотип на сніжному небі */
.qcard--logo { background: var(--snow), linear-gradient(180deg, var(--sky), #8fd0f2); background-size: 90px 90px, 70px 70px, 120px 120px, auto; }
.qcard--logo img { inset: 9% 18% auto; width: 64%; height: auto; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(31, 51, 70, .25)); }
@media (hover: hover) {
  .qcard:hover { transform: translateY(-6px) rotate(-.6deg); }
  .qcard:hover img { transform: scale(1.06); }
}
.qrow__nav { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.qrow__bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(31, 51, 70, .1); position: relative; overflow: hidden; }
.qrow__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--blue)); transform-origin: left; }


/* ---------- ЯК ОБРАТИ ---------- */
.choose { padding: 130px 0; background: var(--snow), var(--bg-2); background-size: 90px 90px, 70px 70px, 120px 120px; }
.choose__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.choose__head { position: sticky; top: 120px; }
.steps { list-style: none; margin: 0; padding: 0 0 0 66px; position: relative; counter-reset: s; }
.steps__line { position: absolute; left: 22px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: rgba(31, 51, 70, .1); }
.steps__line i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 4px; background: linear-gradient(var(--gold), var(--red), var(--teal)); transform: scaleY(var(--p, 0)); transform-origin: top; }
.step { position: relative; padding: 0 0 50px; counter-increment: s; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(s); position: absolute; left: -66px; top: -6px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow);
  font: 700 18px/1 var(--display); color: var(--dim); transition: color .5s, background .5s, transform .5s var(--ease);
}
.step.is-on::before { color: #2b1d00; background: var(--gold); transform: scale(1.08); }
.step h3 { margin: 0 0 8px; font: 700 clamp(21px, 2vw, 26px)/1.2 var(--display); color: var(--dim); transition: color .5s; }
.step.is-on h3 { color: var(--ink); }
.step p { margin: 0; color: var(--muted); max-width: 32em; }

/* ---------- ПРАВИЛА / ПАМ'ЯТКА ---------- */
.rules { padding: 130px 0; background: var(--bg); }
.rules .display { max-width: 14em; }
.rules__intro { color: var(--muted); max-width: 40em; margin: -8px 0 0; font-size: 18px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.value {
  --c: var(--teal);
  padding: 26px 26px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 58px 1fr; gap: 4px 18px; align-items: center;
}
.value:nth-child(2) { --c: var(--gold); }
.value:nth-child(3) { --c: var(--red); }
.value svg { grid-row: span 2; width: 58px; height: 58px; padding: 14px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, transparent); stroke: var(--c); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value b { font: 700 22px/1 var(--display); color: var(--ink); }
.value span { color: var(--muted); font-size: 15px; }
.rules__voluntary {
  margin: 20px 0 0; padding: 18px 24px; border-radius: 16px;
  background: color-mix(in srgb, var(--teal) 12%, var(--card)); color: #1d6f73;
  font: 600 18px/1.4 var(--display);
}
.rules__details { margin-top: 20px; display: grid; gap: 10px; }
.rules__details details { border-radius: 16px; background: var(--card); box-shadow: 0 8px 22px -16px rgba(31, 51, 70, .35); padding: 0 22px; }
.rules__details summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 600 18px/1.3 var(--display);
}
.rules__details summary::-webkit-details-marker { display: none; }
.rules__details summary::after { content: '+'; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--teal); font: 600 20px/1 var(--display); transition: transform .4s var(--ease); }
.rules__details details[open] summary::after { transform: rotate(45deg); }
.rules__details details p, .rules__details details ul { margin: 0 0 20px; color: var(--muted); max-width: 52em; }
.rules__details details ul { padding-left: 20px; display: grid; gap: 6px; }
.rules__details details li::marker { color: var(--teal); }
.contract { margin-top: 20px; padding: 22px 26px; border-radius: var(--r); background: #fff1d6; border-left: 6px solid var(--gold); }
.contract:empty { display: none; }
.contract b { display: block; font: 700 19px/1.3 var(--display); margin-bottom: 8px; }
.contract p { margin: 0 0 10px; color: #5b4a2a; }
.contract p:last-child { margin-bottom: 0; }
.contract--small { margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; }
.contract--small b { font-size: 16px; }
.contract--small p { font-size: 15px; }
.contract--small a { font: 600 14px/1 var(--display); color: var(--red); text-decoration: none; }

/* ---------- ПРО НАС ---------- */
.story { padding: 130px 0; background: var(--snow), var(--bg-2); background-size: 90px 90px, 70px 70px, 120px 120px; }
.story__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 7vw, 110px); align-items: center; }
.story__photo { margin: 0; position: relative; }
.story__photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 3px dashed var(--teal); border-radius: var(--r); }
.story__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); border: 6px solid #fff; box-shadow: var(--shadow); }
.story__photo figcaption {
  position: absolute; left: 20px; bottom: 20px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .94);
  color: var(--muted); font-size: 13px; line-height: 1.3; box-shadow: var(--shadow);
}
.story__photo figcaption b { display: block; color: var(--ink); font: 700 18px/1.2 var(--display); }
.story__text p { color: var(--ink); font-size: 18px; max-width: 34em; }
.sign { font: 700 22px/1 var(--display) !important; color: var(--red) !important; margin-top: 26px; }

/* ---------- ВІДГУКИ ---------- */
.reviews { padding: 120px 0; background: var(--bg); }
.reviews__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.reviews__photo { margin: 0; }
.reviews__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); border: 6px solid #fff; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.reviews__text { color: var(--muted); margin: 0 0 30px; max-width: 30em; }

/* ---------- ВІДЕО: печери ---------- */
.cinema { padding: 120px 0 130px; background: var(--snow), var(--bg-2); background-size: 90px 90px, 70px 70px, 120px 120px; }
.cinema__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.cinema__text { color: var(--muted); margin: 0 0 30px; max-width: 30em; }
.screen { position: relative; display: flex; justify-content: center; border-radius: var(--r); overflow: hidden; background: #0f1830; border: 6px solid #fff; box-shadow: var(--shadow); }
.screen video { display: block; max-width: 100%; max-height: 78vh; background: #0f1830; }

/* ---------- ЗАПИС ---------- */
.book { padding: 130px 0 160px; background: radial-gradient(ellipse at 80% 40%, #fff0cc, transparent 55%), var(--bg); }
.book__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.book__text p { color: var(--muted); }
.book__phone { display: inline-block; font: 800 clamp(32px, 3.6vw, 50px)/1 var(--display); color: var(--red); text-decoration: none; margin: 6px 0 28px; }
.important { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.important li { padding-left: 30px; position: relative; color: var(--muted); }
.important li::before { content: ''; position: absolute; left: 4px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
/* картка «Напишіть нам» замість форми заявки */
.reach { padding: 36px 32px; border-radius: var(--r); background: var(--card); box-shadow: 0 30px 60px -30px rgba(31, 51, 70, .45); border-top: 8px solid var(--gold); }
.reach h3 { margin: 0 0 8px; font: 800 28px/1.1 var(--display); color: var(--ink); }
.reach p { margin: 0 0 24px; color: var(--muted); }
.reach p a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.reach .msgr { display: grid; gap: 12px; }
.reach .msgr a { justify-content: flex-start; padding: 18px 22px; border-radius: 16px; font-size: 17px; }
.reach .msgr svg { width: 22px; height: 22px; }

/* ---------- ФУТЕР ---------- */
.foot { padding: 70px 0 110px; background: var(--night); color: #dfe6ff; overflow: hidden; }
.foot__word {
  font: 800 clamp(64px, 16vw, 240px)/.85 var(--display); text-transform: uppercase; text-align: center;
  color: transparent; -webkit-text-stroke: 2px rgba(194, 232, 254, .25); user-select: none; white-space: nowrap;
}
.foot__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; color: #b9c4ea; font-size: 15px; }
.foot__grid a { text-decoration: none; color: #fff; }
.foot__grid a:hover { color: var(--gold-2); }
.foot__small { text-align: right; }

/* ---------- ДОСЬЄ ---------- */
.dossier { position: fixed; inset: 0; z-index: 120; }
.dossier[hidden] { display: none; }
.dossier__bg { position: absolute; inset: 0; background: rgba(20, 30, 60, .5); backdrop-filter: blur(6px); }
.dossier__panel {
  position: absolute; inset: 5vh 0 0; margin: 0 auto; width: min(1120px, 100%); overflow-y: auto; overscroll-behavior: contain;
  background: #fffdf8; border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px rgba(20, 30, 60, .3);
  padding: 44px clamp(18px, 4vw, 56px) 60px;
}
.dossier__panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--accent); }
.dossier__close { position: sticky; top: 0; float: right; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); font-size: 16px; }
.dossier__close:focus:not(:focus-visible) { outline: none; }
.dossier__view[hidden] { display: none; }
.dossier__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; clear: both; }
.dossier__media { position: sticky; top: 0; display: grid; gap: 12px; }
.dossier__media video { display: block; width: 100%; max-height: 82vh; border-radius: var(--r); background: #0f1830; }
.dossier__media.is-video { justify-items: center; }
.dossier__media.is-video video { width: auto; max-width: 100%; }
.dossier__photo { display: block; width: 100%; max-height: 82vh; object-fit: cover; border-radius: var(--r); }
.dossier__soon {
  display: grid; place-items: center; gap: 14px; aspect-ratio: 4 / 3; border-radius: var(--r);
  background: var(--snow), var(--sky); background-size: 90px 90px, 70px 70px, 120px 120px;
}
.dossier__soon img { width: 46%; }
.dossier__soon span { padding: 8px 16px; border-radius: 999px; background: var(--red); color: #fff; font: 600 14px/1 var(--display); }
.dossier__back {
  clear: left; float: left; margin: 0 0 24px; padding: 11px 18px; border-radius: 999px; border: 0; background: var(--bg-2);
  font: 600 14px/1 var(--display); color: var(--ink); transition: color .3s, background .3s;
}
.dossier__back[hidden] { display: none; }
@media (hover: hover) { .dossier__back:hover { color: #fff; background: var(--accent); } }
.badge { display: inline-block; padding: 8px 14px; border-radius: 999px; margin-bottom: 14px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 75%, var(--ink)); font: 600 13px/1 var(--display); }
.dossier__title { font: 800 clamp(36px, 4.6vw, 60px)/1.04 var(--display); margin: 0 0 12px; }
.dossier__lead { font: 600 19px/1.4 var(--display); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); margin: 0 0 12px; }
#dText { color: var(--ink); }
#dText:empty { display: none; }
.perks { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0 0 22px; }
.perks li { position: relative; padding-left: 28px; color: var(--ink); }
.perks li::before { content: '✦'; position: absolute; left: 2px; top: 0; color: var(--accent); font-size: 15px; }
.meta { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; margin: 0 0 22px; }
.meta li { padding: 12px 14px; border-radius: 14px; background: var(--bg-2); }
.meta small { display: block; color: var(--muted); font: 600 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.meta b { font: 600 16px/1.3 var(--display); overflow-wrap: anywhere; }
.prices { display: grid; gap: 12px; margin: 0 0 22px; }
.prices__group { padding: 14px 18px; border-radius: 16px; background: var(--card); box-shadow: 0 8px 22px -16px rgba(31, 51, 70, .4); }
.prices h4 { margin: 0 0 6px; font: 600 13px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.prices ul { list-style: none; margin: 0; padding: 0; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.prices li:last-child { border-bottom: 0; }
.prices li span { color: var(--muted); font-size: 15px; }
.prices li b { font: 700 18px/1 var(--display); white-space: nowrap; }
.prices__note { margin: 0; color: var(--muted); font-size: 14px; }
.prices__none { margin: 0; color: var(--muted); }
.dossier__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* список квестів категорії */
.qlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; margin-top: 28px; clear: both; }
.qitem {
  position: relative; display: grid; gap: 14px; padding: 12px; text-align: left; align-items: start;
  border-radius: 20px; border: 0; background: var(--card); box-shadow: 0 10px 26px -18px rgba(31, 51, 70, .5); transition: transform .4s var(--ease), box-shadow .4s;
}
.qitem.has-thumb { grid-template-columns: 96px minmax(0, 1fr); }
.qitem__thumb { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--sky); }
.qitem__thumb img { width: 100%; height: 100%; object-fit: cover; }
.qitem__thumb i { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--accent); font-style: normal; font-size: 13px; padding-left: 2px; }
.qitem__body { display: grid; gap: 5px; padding: 4px 6px 4px 0; }
.qitem__age { font: 600 12px/1.3 var(--display); letter-spacing: .06em; color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
/* «до 32 гравців» — плашка поруч із віком */
.qitem__age em { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; font-style: normal; letter-spacing: .02em; white-space: nowrap; color: #00775a; background: color-mix(in srgb, var(--green) 14%, transparent); }
.qitem__title { font: 700 21px/1.15 var(--display); }
.qitem__lead { color: var(--muted); font-size: 14px; line-height: 1.45; }
.qitem__meta { color: var(--ink); font: 600 13px/1.4 var(--display); }
@media (hover: hover) { .qitem:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(31, 51, 70, .55); } }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .top__nav { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (hover: none), (max-width: 900px) {
  .top.is-scrolled { background: rgba(255, 248, 238, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dossier__bg { background: rgba(20, 30, 60, .6); backdrop-filter: none; }
}
@media (max-width: 900px) {
  .top__phone { display: none; }
  .hero__content { left: var(--gutter); right: auto; top: auto; bottom: calc(30px + env(safe-area-inset-bottom)); transform: none; width: min(600px, calc(100% - 2 * var(--gutter))); }
  .hero__title { font-size: min(18.5cqi, 110px); margin-bottom: calc(12px - .1em); }
  .hero .kicker { margin-bottom: 14px; }
  .hero__sub { font-size: 16px; line-height: 1.5; margin-bottom: 22px; }
  .hero__hint { display: none; }
  .hero__vignette { background: linear-gradient(180deg, rgba(22, 30, 76, .35) 0, transparent 16%, transparent 46%, rgba(22, 30, 76, .7) 66%, rgba(22, 30, 76, .9) 100%); }
  .quests__head { flex-direction: column; align-items: flex-start; gap: 0; }
  .story__grid, .reviews__grid, .book__grid, .choose__grid, .dossier__grid, .cinema__grid { grid-template-columns: minmax(0, 1fr); }
  .choose__head { position: static; }
  .story__photo { max-width: 440px; }
  .values { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__small { text-align: left; }
  .dossier__media { position: relative; }
  .dossier__media.is-video video { max-height: 70vh; }
  .dossier__soon { aspect-ratio: 16 / 9; }
  .dossier__soon img { width: 30%; }
}
@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .hero__content { top: 50%; bottom: auto; transform: translateY(-50%); width: 52vw; }
  .hero__title { font-size: min(18.5cqi, 22vh); }
  .hero__sub { font-size: 14px; margin-bottom: 14px; }
  .hero__vignette { background: linear-gradient(90deg, rgba(22, 30, 76, .8), rgba(22, 30, 76, .45) 45%, transparent 65%); }
}
@media (max-width: 860px) {
  .dock {
    display: flex; position: fixed; left: 8px; right: 8px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    justify-content: space-between; padding: 6px; border-radius: 20px;
    background: rgba(255, 255, 255, .97); box-shadow: 0 10px 30px -10px rgba(31, 51, 70, .4);
    transform: translateY(160%); transition: transform .7s var(--ease);
  }
  .dock.is-on { transform: translateY(0); }
  .dock a { position: relative; z-index: 1; display: grid; place-items: center; padding: 12px; border-radius: 14px; color: var(--dim); text-decoration: none; }
  .dock a.is-active { color: var(--teal); }
  .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .dock a span { display: none; }
  .foot { padding-bottom: 110px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .display { font-size: clamp(30px, 9vw, 44px); margin-bottom: 22px; }
  .top { padding-top: 10px; padding-bottom: 10px; }
  .brand__logo { width: 38px; height: 38px; }
  .brand__word { font-size: 19px; }
  .hero__cta .btn { flex: 1 1 auto; padding: 15px 18px; }
  .gate, .quests, .choose, .rules, .story, .reviews, .cinema, .book { padding-top: 80px; padding-bottom: 86px; }
  .facts { margin-top: 36px; gap: 10px; }
  .fact { padding: 20px 16px; }
  .fact span { font-size: 14px; }
  .qcard { flex-basis: 78vw; }
  .qrow__nav .round { display: none; }
  .step { padding-bottom: 38px; }
  .steps { padding-left: 60px; }
  .step::before { left: -60px; width: 44px; height: 44px; }
  .steps__line { left: 20px; }
  .value { padding: 20px; grid-template-columns: 50px 1fr; }
  .value svg { width: 50px; height: 50px; padding: 12px; }
  .rules__voluntary { font-size: 16px; padding: 16px 18px; }
  .rules__details summary { font-size: 16px; }
  .story__text p { font-size: 16px; }
  .story__photo::before { inset: 12px -10px -12px 12px; }
  .hero__write { margin-top: 18px; font-size: 14px; }
  .msgr a { flex: 1 1 0; min-width: 0; padding: 11px 6px; gap: 6px; font-size: 13px; }
  .msgr svg { width: 16px; height: 16px; }
  .reach { padding: 28px 20px; }
  .reach h3 { font-size: 24px; }
  .meta li:nth-child(n+3) { grid-column: span 2; }
  .dossier__panel { padding-top: 22px; border-radius: 22px 22px 0 0; }
  .qitem.has-thumb { grid-template-columns: 78px minmax(0, 1fr); }
  .qitem__title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
