/* ─── Квестик: світла основа ─────────────────────────────────────────────────
   Сторінка тепла й світла (слонова кістка з індиго-чорнилом), а темне лишається
   там, де працює на таємницю: у телефоні з квестом, у картці «+ гра», у фінальному
   блоці й у самих квестах. Стежка збоку малюється в міру прокручування, привали
   спалахують на розділах (web/scene.js). Усе декоративне вимикається за
   prefers-reduced-motion.                                                      */

/* Кольори взято з логотипа: індиго #1e1b4b і золото #FFC93C. Решта відтінків
   побудована навколо них: золото — колір дії, індиго — чорнило заголовків. */

/* ─── шрифт логотипа ──────────────────────────────────────────────────────
   Nunito 900 розміщено в себе: у файлі логотипа був @import з Google Fonts,
   а він не працює ні у <img>, ні у фавіконі, ні під нашою CSP.             */
@font-face{
  font-family:Nunito;font-style:normal;font-weight:900;font-display:swap;
  src:url(/fonts/nunito-900-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,
    U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:Nunito;font-style:normal;font-weight:900;font-display:swap;
  src:url(/fonts/nunito-900-cyrillic.woff2) format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
:root{
  --bg:#FBF8F1; --bg2:#F3EEE2; --surface:#FFFFFF; --surface-2:#F6F2E9;
  --line:#E4DED1; --line-lit:rgba(245,163,0,.55);
  --text:#26243F; --ink:#1E1B4B; --muted:#5F5D7A;
  --accent:#FFC93C; --accent-deep:#F5A300; --indigo:#1e1b4b; --accent-ink:#17142F; --gold-text:#8A5A00;
  --night:#141234; --night-2:#2B2352; --night-text:#ECE9E3;
  --good:#2E8B57; --good-bg:#E7F3EC; --bad:#C0392B;
  --glow:rgba(255,201,60,.35); --shadow:0 16px 40px rgba(30,27,75,.12);
  --radius:16px; --maxw:75rem;
  color-scheme:light;
}
*{box-sizing:border-box}
/* Власний display (grid/flex) перебиває стандартний [hidden]{display:none}. */
[hidden]{display:none!important}
/* clip, а не hidden: hidden ламає position:sticky всередині. Запобіжник від
   випадкової горизонтальної прокрутки, яку легко дає декоративний шар. */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:clip}
body{
  margin:0;min-height:100vh;color:var(--text);overflow-x:clip;
  font:400 17px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--bg);-webkit-font-smoothing:antialiased;
}
.intro{display:none}

/* ─── мапа позаду сторінки ────────────────────────────────────────────────── */
/* Фоновий шар на весь екран: мапа їде вгору разом із прокручуванням, маршрут
   позаду засвічується золотом, позначка «ви тут» повзе тим самим маршрутом.
   Усе в індиго з малою прозорістю, щоб текст зверху читався. */
.sky{position:fixed;inset:0;z-index:-2;overflow:hidden;pointer-events:none}
.map{position:absolute;left:50%;top:0;width:140vw;height:auto;
  transform:translate3d(-50%,var(--pan,0px),0);will-change:transform}
@media(min-width:1000px){.map{width:100vw}}
.map path,.map circle{vector-effect:non-scaling-stroke}
.m-grid path{fill:none;stroke:rgba(30,27,75,.07);stroke-width:1}
.m-land path{fill:none;stroke:rgba(30,27,75,.16);stroke-width:1.6}
.m-wood path{fill:rgba(30,27,75,.14)}
.m-water path{fill:rgba(70,120,210,.11)}
.m-route-bed{fill:none;stroke:rgba(30,27,75,.26);stroke-width:2.2;stroke-dasharray:6 10;
  stroke-linecap:round}
.m-route-lit{fill:none;stroke:var(--accent-deep);stroke-width:2.5;stroke-linecap:round;opacity:.85;
  stroke-dasharray:var(--len,4000);stroke-dashoffset:calc(var(--len,4000) * (1 - var(--walked,0)));
  filter:drop-shadow(0 0 6px var(--glow));transition:stroke-dashoffset .12s linear}
.m-stops circle{fill:var(--bg);stroke:rgba(30,27,75,.32);stroke-width:2.2;
  transition:fill .5s,stroke .5s,filter .5s}
.m-stops circle.lit{fill:var(--accent);stroke:var(--accent-deep);
  filter:drop-shadow(0 0 10px var(--glow))}
.m-here-dot{fill:var(--accent-deep)}
.m-here{opacity:0;transition:opacity .6s}
.m-here.on{opacity:1}
@media(prefers-reduced-motion:reduce){
  .map{transform:translate(-50%,0)}
  .m-route-lit{transition:none}
}

/* ─── каркас ──────────────────────────────────────────────────────────────── */
main,.top,footer{max-width:var(--maxw);margin:0 auto;padding-inline:20px;position:relative;z-index:1}
/* Шапка мусить бути ВИЩЕ вмісту, інакше меню профілю лежить під наступною секцією. */
.top{z-index:40}
section{padding-block:clamp(48px,8vw,80px)}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:600;letter-spacing:-.01em;line-height:1.2;color:var(--ink)}
h1{font-size:clamp(2.1rem,5.6vw,3.6rem);margin:0 0 1.2rem;line-height:1.08}
h2{font-size:clamp(1.6rem,3.6vw,2.35rem);margin:0 0 1rem;line-height:1.15}
h3{font-size:1.2rem;margin:0 0 .4rem}
p{margin:0 0 1rem}
a{color:inherit}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;
  background:var(--surface-2);padding:.1em .35em;border-radius:5px;color:var(--gold-text)}
.muted{color:var(--muted)}
.note{color:var(--muted);font-size:.9rem}
.eyebrow{margin:0 0 .9rem;font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-text)}
.sec-head{max-width:42rem;margin-bottom:2rem}
.sec-head p{color:var(--muted);font-size:1.05rem;line-height:1.5;margin:0}
/* Смуга на всю ширину вікна з секції, що живе всередині центрованого main. */
.bleed{margin-inline:calc(50% - 50vw);padding-inline:calc(50vw - 50%)}

/* ─── сезонна смужка ──────────────────────────────────────────────────────── */
.strip{background:var(--night);color:var(--night-text);font-size:.9rem;font-weight:600;
  text-align:center;padding:.6rem 16px;display:flex;justify-content:center;gap:.5rem;flex-wrap:wrap}
.strip a{color:var(--accent);text-underline-offset:3px}

/* ─── шапка ───────────────────────────────────────────────────────────────── */
.top{display:flex;align-items:center;gap:20px;padding-block:18px}
.top nav{display:none;gap:24px;margin-left:auto}
.top nav a{color:var(--text);text-decoration:none;font-size:.95rem;font-weight:600;transition:color .2s}
.top nav a:hover{color:var(--gold-text)}
.top-acts{display:flex;align-items:center;gap:8px;margin-left:auto}
@media(min-width:900px){.top nav{display:flex}.top-acts{margin-left:0}}
.only-wide{display:none}
@media(min-width:900px){.only-wide{display:inline}}
@media(max-width:560px){
  .top{gap:10px;padding-block:12px}
  .logo{font-size:.92rem}
  .top-acts .btn{padding-inline:.9rem}
  .btn-tg span{display:none}
  .btn-tg{width:44px;padding:0;justify-content:center}
}

/* ─── логотип ─────────────────────────────────────────────────────────────
   Ключ у золотій плашці + слово, де «ik» виділено бурштином. */
.logo{display:inline-flex;align-items:center;gap:.42em;text-decoration:none;
  font-size:1.05rem;line-height:1;color:var(--ink)}
.logo-badge{width:2.3em;height:2.3em;flex:none;display:grid;place-items:center;
  background:var(--accent);border-radius:24%;transition:box-shadow .25s,transform .25s}
.logo-badge svg{width:84%;height:84%;display:block}
.logo-badge circle,.logo-badge path{stroke:var(--indigo)}
.logo-word{font-family:Nunito,"Arial Rounded MT Bold",Arial,sans-serif;font-weight:900;
  font-size:2.3em;line-height:.72;letter-spacing:-.01em;color:var(--ink)}
.logo-ik{color:var(--accent-deep)}
a.logo:hover .logo-badge{transform:translateY(-1px);box-shadow:0 6px 20px rgba(255,201,60,.4)}
.logo-sm{font-size:.8rem;cursor:default}

/* ─── кнопки ──────────────────────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  background:var(--accent);color:var(--accent-ink);text-decoration:none;
  border:0;border-radius:999px;padding:.8rem 1.5rem;font:inherit;font-weight:700;cursor:pointer;
  min-height:44px;transition:transform .14s,box-shadow .2s,filter .14s}
.btn:hover{filter:brightness(1.04);box-shadow:0 8px 24px var(--glow)}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none}
.btn-ghost{background:transparent;color:var(--text);border:1.5px solid var(--line);font-weight:600}
.btn-ghost:hover{border-color:var(--accent-deep);box-shadow:none;filter:none}
.btn-small{padding:.5rem 1rem;font-size:.92rem;min-height:38px}
.btn-big{min-height:56px;padding:.9rem 1.8rem;font-size:1.05rem}
/* Небезпечна дія: та сама форма, що й у головної кнопки, але червона. */
.btn-danger{background:#F0C4B8;color:#5A1F12}
.btn-danger:hover{filter:brightness(1.02);box-shadow:none}
/* Кнопка-значок: квадратна, без підпису. */
.btn-icon{display:inline-grid;place-items:center;padding:0;width:38px;min-height:38px;flex:none}
.btn-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.btn-icon.is-done{color:var(--gold-text);border-color:var(--accent-deep)}
.btn-wide{width:100%;padding-block:1rem;font-size:1.05rem;min-height:56px}
/* Вхід через Telegram: контурна кнопка з офіційним знаком, а не кольорова плашка. */
.btn-tg{display:inline-flex;align-items:center;gap:.45rem;white-space:nowrap;
  background:transparent;color:var(--text);border:1.5px solid var(--line);font-weight:600}
.btn-tg:hover{border-color:var(--accent-deep);box-shadow:none;filter:none}
.btn-tg svg{width:18px;height:18px;flex:none}
/* Пульс лишаємо на випадок, якщо знадобиться; на головній він більше не стоїть. */
.btn-pulse{position:relative;animation:btnBreathe 2.8s ease-in-out infinite}
@keyframes btnBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
.btn-pulse:hover,.btn-pulse:focus-visible{animation-play-state:paused;transform:none}

/* ─── перший екран ────────────────────────────────────────────────────────── */
.hero{position:relative;padding-top:clamp(24px,5vw,52px);display:grid;gap:36px}
@media(min-width:1000px){.hero{grid-template-columns:minmax(0,1.1fr) 440px;gap:48px;align-items:center}}
/* Пунктирний маршрут за текстом — ледь помітний, щоб не зʼїдати контраст. */
.hero-deco{position:absolute;left:-20px;right:-20px;top:0;bottom:0;pointer-events:none;opacity:.45;z-index:-1}
.hero-deco svg{width:100%;height:100%;display:block}
.hero-text{min-width:0;position:relative}
.lead{font-size:clamp(1.05rem,2vw,1.2rem);max-width:36rem;color:var(--text);line-height:1.55}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin:1.6rem 0 1rem}
.trust{list-style:none;margin:.4rem 0 0;padding:0;display:flex;gap:10px 22px;flex-wrap:wrap;
  font-size:.9rem;font-weight:600;color:var(--muted)}
.trust li{display:flex;align-items:center;gap:.45rem}
.trust svg{width:18px;height:18px;flex:none}

/* Телефон із фіналом квесту й сповіщення, що приходить авторові. */
.hero-show{display:flex;justify-content:center;padding-top:8px}
.show-wrap{position:relative;width:min(300px,78vw)}
.show-phone{position:relative;aspect-ratio:1/2;border-radius:40px;padding:12px;
  background:var(--night);box-shadow:var(--shadow)}
.show-img{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);
  object-fit:cover;object-position:50% 100%;border-radius:30px;opacity:0;transition:opacity 1s ease}
.show-img.is-on{opacity:1}
.notice{position:absolute;left:-24px;bottom:56px;width:min(290px,84vw);background:var(--surface);
  border:1px solid var(--line);border-radius:16px;padding:14px 16px;box-shadow:var(--shadow);
  display:flex;gap:12px;align-items:flex-start}
.notice>svg{width:36px;height:36px;flex:none}
.notice-k{margin:0 0 .25rem;font-size:.75rem;font-weight:700;color:var(--muted)}
.notice p{margin:0;font-size:.88rem;line-height:1.4;color:var(--text)}
.notice-reply{background:var(--bg2);border-radius:10px;padding:8px 10px;margin-top:6px!important}
@media(max-width:999px){.hero-show{order:2}.show-wrap{width:min(250px,70vw)}.notice{left:-14px;bottom:40px}}
@media(prefers-reduced-motion:reduce){.show-img{transition:none}}

/* ─── приводи-чипи ────────────────────────────────────────────────────────── */
.occ-strip{padding-block:0}
.occ-chips{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;padding:18px 0;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.occ-chips p{margin:0;font-size:.9rem;font-weight:700;color:var(--muted)}
.occ-chips a{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:999px;
  background:var(--surface);border:1px solid var(--line);color:var(--text);text-decoration:none;
  font-size:.9rem;font-weight:600;transition:border-color .18s,color .18s}
.occ-chips a:hover{border-color:var(--accent-deep);color:var(--gold-text)}
.occ-chips a.is-other{background:transparent;border-style:dashed;color:var(--muted)}

/* ─── три кроки ───────────────────────────────────────────────────────────── */
.steps{list-style:none;margin:0;padding:0;display:grid;gap:20px}
@media(min-width:760px){.steps{grid-template-columns:repeat(3,1fr);gap:24px}}
.steps li{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:20px;
  padding:26px 26px 24px;display:flex;flex-direction:column;gap:.5rem}
.step-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:.5rem}
/* У Georgia мінускульні цифри сидять на різній висоті — номери набираємо гротеском. */
.num{width:2.4rem;height:2.4rem;border-radius:50%;display:grid;place-items:center;
  background:var(--accent);color:var(--accent-ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum" 1,"tnum" 1;
  font-size:1rem;font-weight:800;line-height:1}
.step-tag{font-size:.78rem;font-weight:700;color:var(--gold-text);background:var(--bg2);
  border-radius:999px;padding:.35rem .75rem;white-space:nowrap}
.steps h3{margin:0;font-size:1.3rem}
.steps p{color:var(--text);margin:0;font-size:.95rem;line-height:1.55}
.after-bar{margin-top:22px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  background:var(--night);color:var(--night-text);border-radius:20px;padding:20px 26px}
.after-bar>svg{width:44px;height:44px;flex:none}
.after-bar div{flex:1 1 320px;min-width:0}
.after-bar b{display:block;color:#fff;font-size:1.05rem;margin-bottom:.2rem}
.after-bar p{margin:0;font-size:.95rem;line-height:1.5}

/* ─── так побачить одержувач ──────────────────────────────────────────────── */
.demo{background:var(--bg2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.demo-cols{display:grid;gap:40px}
@media(min-width:960px){.demo-cols{grid-template-columns:minmax(0,1fr) 440px;align-items:center}}
.demo-phones{display:flex;justify-content:center;gap:20px;align-items:flex-end}
.phone-sm{width:200px;aspect-ratio:9/18.4;border-radius:32px;background:var(--night);padding:9px;
  box-shadow:var(--shadow);flex:none}
.phone-sm img{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:24px;display:block}
.phone-sm.up{margin-bottom:48px}
@media(max-width:600px){.phone-sm{width:150px}.phone-sm.up{margin-bottom:30px}}

/* ─── міні-квест (одна загадка) ───────────────────────────────────────────── */
.tryit{position:relative;max-width:34rem;margin:1.2rem 0 0;padding:22px 24px;
  background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.tryit.solved{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),var(--shadow)}
.tryit-eyebrow{margin:0 0 .5rem;font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;
  font-weight:800;color:var(--gold-text)}
.tryit-riddle{margin:0 0 .9rem;font-family:Georgia,serif;font-size:1.15rem;line-height:1.4;color:var(--ink)}
.tryit-row{display:flex;gap:8px;flex-wrap:wrap}
.tryit-row input{flex:1;min-width:11rem;font:inherit;color:var(--text);background:var(--bg);
  border:1px solid var(--line);border-radius:999px;padding:.6rem 1.1rem;min-height:48px}
.tryit-row input:focus{outline:2px solid var(--accent-deep);outline-offset:1px}
.tryit-row input.miss{animation:tryShake .34s;border-color:var(--bad)}
.tryit-row .btn{min-height:48px}
@keyframes tryShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.tryit-note{margin:.7rem 0 0;font-size:.85rem;color:var(--muted);min-height:1.3em}
.linkish{background:none;border:0;padding:0;font:inherit;color:var(--muted);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.linkish:hover{color:var(--gold-text)}
.tryit-done{animation:tryIn .55s ease both;text-align:center}
@keyframes tryIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.tryit-answer{margin:.2rem 0 .6rem;font-family:Georgia,serif;font-weight:600;
  font-size:clamp(1.7rem,6vw,2.4rem);color:var(--gold-text)}
.tryit-after{margin:0 0 1rem;color:var(--text);font-size:.98rem;line-height:1.5}
.tryit-after em{font-style:normal;color:var(--gold-text);font-weight:700}
/* Іскри у момент розгадки. */
.spark{position:absolute;width:7px;height:7px;border-radius:50%;background:var(--accent-deep);
  pointer-events:none;opacity:0;animation:sparkFly .9s ease-out forwards}
@keyframes sparkFly{0%{opacity:1;transform:translate(0,0) scale(1)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.3)}}
@media(prefers-reduced-motion:reduce){.spark{display:none}.tryit-done{animation:none}}

/* ─── картки прикладів ────────────────────────────────────────────────────── */
.ex-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:1.6rem}
.ex-head .sec-head{margin:0}
.filter{display:flex;gap:8px;flex-wrap:wrap}
.filter button{font:inherit;font-size:.88rem;font-weight:600;min-height:38px;padding:0 14px;border-radius:999px;
  border:1px solid var(--line);background:transparent;color:var(--text);cursor:pointer;transition:border-color .18s}
.filter button:hover{border-color:var(--accent-deep)}
.filter button.is-on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.cards{display:grid;gap:20px}
@media(min-width:520px){.cards{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}}
@media(min-width:520px){#examples-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px;
  text-decoration:none;display:block;color:inherit;transition:border-color .18s,transform .18s,box-shadow .18s}
.card:hover{border-color:var(--line-lit);transform:translateY(-3px);box-shadow:var(--shadow)}
.card .occ{color:var(--gold-text);font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.card h3{margin:.5rem 0 .3rem;font-size:1.15rem}
.card p{color:var(--muted);font-size:.92rem;margin:0;line-height:1.5}
/* Картка прикладу — <button>: задаємо потік явно, бо кнопка центрує вміст. */
#examples-list .card{padding:0;overflow:hidden;text-align:left;display:flex;flex-direction:column;font:inherit;cursor:pointer}
.card-body{display:block;text-align:left;padding:16px 18px 18px;flex:1}
.card-shot{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:var(--night)}
.card-shot img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;
  transition:transform .4s ease}
.card:hover .card-shot img{transform:scale(1.04)}
/* Підказка «пройти» проступає поверх знімка при наведенні. */
.card-shot::after{content:"Пройти квест";position:absolute;inset:auto 0 0 0;padding:34px 14px 12px;
  font-size:.86rem;font-weight:700;color:var(--accent);text-align:center;opacity:0;
  background:linear-gradient(transparent,rgba(20,18,52,.92));transition:opacity .3s}
.card:hover .card-shot::after,.card:focus-visible .card-shot::after{opacity:1}
.cards .card h3{margin:.4rem 0 .3rem}
.ex-more{display:flex;justify-content:center;margin-top:24px}
/* На телефоні картки зі знімком — у дві колонки, інакше тринадцять прикладів
   відсувають форму на девʼять екранів. */
@media(max-width:519px){
  #examples-list,.tpl-cards .cards{grid-template-columns:1fr 1fr;gap:10px}
  #examples-list .card-body{padding:10px 11px 12px}
  .tpl-card .card-main{padding:22px 11px 12px}
  #examples-list .card h3,.tpl-card h3{font-size:.95rem;margin:.3rem 0 .25rem}
  #examples-list .card p,.tpl-card .card-main p{font-size:.8rem;line-height:1.4;
    display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
  #examples-list .card .occ,.tpl-card .occ{font-size:.68rem}
  .tpl-cards .card .steps-note{font-size:.74rem;margin-top:.45rem}
  .tpl-look{right:8px;min-height:32px;padding:.3rem .65rem;font-size:.78rem}
}

/* ─── ціни ────────────────────────────────────────────────────────────────── */
.pricing{background:var(--bg2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.prices{display:grid;gap:24px;margin-bottom:24px}
@media(min-width:900px){.prices{grid-template-columns:repeat(3,1fr)}}
.price{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:22px;
  padding:28px;display:flex;flex-direction:column;gap:14px}
.price.is-rec{border:2px solid var(--accent)}
.price.is-dark{background:var(--night);color:var(--night-text);border:2px solid var(--accent);box-shadow:var(--shadow)}
.price-k{margin:0;font-size:.8rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.price.is-dark .price-k{color:var(--accent)}
.price-num{font-family:Georgia,serif;font-size:2.6rem;line-height:1;color:var(--ink)}
.price.is-dark .price-num{color:#fff}
.price>p{margin:0;font-size:.95rem;line-height:1.5}
.price ul{list-style:none;margin:0;padding:0;display:grid;gap:.5rem;font-size:.9rem}
.price li{display:flex;gap:.5rem;align-items:flex-start}
.price li svg{width:18px;height:18px;flex:none;margin-top:2px;color:var(--good)}
.price.is-dark li svg{color:var(--accent)}
.price .btn{margin-top:auto}
.price-badge{position:absolute;top:-14px;left:24px;background:var(--accent);color:var(--accent-ink);
  font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;border-radius:999px;padding:.4rem .75rem}
/* Живе превʼю гри в картці 449: плитки спалахують по черзі, як у «памʼяті на кольорах». */
.game-demo{display:flex;align-items:center;gap:16px;background:#0B0A22;border:1px solid var(--night-2);
  border-radius:16px;padding:14px 16px}
.game-demo .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;width:72px;flex:none}
.game-demo .grid span{display:block;aspect-ratio:1;border-radius:5px;background:var(--night-2)}
.game-demo b{display:block;color:#fff;font-size:.88rem}
.game-demo small{display:block;color:#B8B6CC;font-size:.8rem;line-height:1.4}
@keyframes kvTile{0%,100%{background:#2B2352;box-shadow:none}6%,16%{background:#FFC93C;box-shadow:0 0 12px rgba(255,201,60,.75)}24%{background:#2B2352;box-shadow:none}}
.gt-a,.gt-b,.gt-c,.gt-d,.gt-e{animation:kvTile 5.6s ease-in-out infinite}
.gt-b{animation-delay:.7s}.gt-c{animation-delay:1.4s}.gt-d{animation-delay:2.1s}.gt-e{animation-delay:2.8s}
.prices-common{list-style:none;margin:0;padding:18px 24px;background:var(--surface);border:1px solid var(--line);
  border-radius:18px;display:flex;gap:10px 22px;flex-wrap:wrap;font-size:.9rem;font-weight:600}
.prices-common li{display:flex;gap:.5rem;align-items:center}
.prices-common svg{width:16px;height:16px;flex:none;color:var(--good)}

/* ─── анкета: перемикач тарифів ───────────────────────────────────────────── */
.tiers{display:grid;gap:12px;margin-bottom:20px}
@media(min-width:760px){.tiers{grid-template-columns:repeat(3,1fr)}}
.tier{position:relative;display:grid;gap:.25rem;text-align:left;font:inherit;cursor:pointer;
  background:var(--surface);border:1.5px solid var(--line);border-radius:16px;
  padding:14px 18px;color:var(--text);transition:border-color .18s,transform .18s}
.tier:hover:not([disabled]){border-color:var(--accent-deep);transform:translateY(-2px)}
.tier.is-on{border:2px solid var(--accent);padding:13.5px 17.5px}
.tier[disabled]{opacity:.5;cursor:not-allowed}
.tier:focus-visible{outline:2px solid var(--accent-deep);outline-offset:2px}
.tier-name{font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);
  display:flex;align-items:center;gap:6px}
.tier.is-on .tier-name{color:var(--gold-text)}
.tier-price{font-family:Georgia,serif;font-size:1.4rem;color:var(--ink);line-height:1}
.tier-note{color:var(--muted);font-size:.85rem;line-height:1.45}
.tier-badge{position:absolute;top:-12px;right:14px;background:var(--accent);color:var(--accent-ink);
  font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  padding:.3rem .6rem;border-radius:999px}
/* Крапка біля «+ гра» спалахує в ритмі плиток із картки ціни. */
.tier-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--night-2);flex:none}
.tier-season{display:inline-flex;align-items:center;gap:.35rem;justify-self:start;margin-top:.2rem;
  font-size:.76rem;font-weight:600;color:#2E6DA4;background:#EAF3FB;
  border:1px solid #BFD9F0;border-radius:999px;padding:.12rem .55rem}
.tier-season[hidden]{display:none}
.tier-season svg{width:12px;height:12px}
/* Те, що входить у будь-який тариф — коротким рядком під перемикачем. */
.tiers-common{list-style:none;margin:-4px 0 22px;padding:0;display:flex;flex-wrap:wrap;gap:.3rem 1.2rem;
  color:var(--muted);font-size:.85rem}
.tiers-common li{padding-left:1rem;position:relative}
.tiers-common li::before{content:"";position:absolute;left:.1rem;top:.58em;width:5px;height:5px;
  border-radius:50%;background:var(--accent-deep)}

/* ─── форма ───────────────────────────────────────────────────────────────── */
.form{display:grid;gap:20px;background:var(--surface);border:1px solid var(--line);
  border-radius:24px;padding:clamp(20px,4vw,32px)}
.form label{display:grid;gap:.45rem;font-size:.92rem;font-weight:700;color:var(--ink)}
.form input,.form select,.form textarea{font:inherit;font-weight:400;color:var(--text);background:var(--bg);
  border:1px solid var(--line);border-radius:12px;padding:.7rem .9rem;min-height:48px;width:100%}
.form textarea{resize:vertical;line-height:1.5}
.form input:focus,.form select:focus,.form textarea:focus{outline:2px solid var(--accent-deep);outline-offset:1px}
.form small{color:var(--muted);font-size:.83rem;line-height:1.45;font-weight:400}
.row{display:grid;gap:18px}
@media(min-width:640px){.row{grid-template-columns:1fr 1fr}}
/* «Що вас повʼязує» — найцінніше поле: позначка й чипи, що вставляють початок речення. */
.details-field{display:grid;gap:.6rem}
.details-field>label{color:var(--ink)}
.field-star{display:inline-block;margin-left:.5rem;font-size:.66rem;font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;color:var(--accent-ink);background:var(--accent);border-radius:999px;padding:.2rem .55rem;vertical-align:middle}
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.chips-lead{color:var(--muted);font-size:.85rem;margin-right:2px}
.chip{font:inherit;font-size:.85rem;font-weight:600;line-height:1.2;color:var(--text);background:var(--bg2);
  border:1px solid var(--line);border-radius:999px;padding:.4rem .8rem;min-height:36px;cursor:pointer;
  transition:border-color .18s,color .18s}
.chip:hover,.chip:focus-visible{border-color:var(--accent-deep);color:var(--gold-text)}
.chip:focus-visible{outline:2px solid var(--accent-deep);outline-offset:2px}
.chip.is-used{opacity:.45}
@media(max-width:560px){.chip{min-height:40px}}

/* ─── вибір шаблону ───────────────────────────────────────────────────────── */
.tpl-cards .card{cursor:pointer;text-align:left;font:inherit;color:inherit;width:100%;position:relative}
.tpl-cards .card .steps-note{display:block;margin-top:.6rem;color:var(--gold-text);font-size:.8rem;font-weight:600}
.tpl-card{padding:0;display:flex;flex-direction:column}
.tpl-card .card-shot{overflow:visible;min-height:0}
.tpl-card .card-shot img,.tpl-card .card-shot::after{border-radius:19px 19px 0 0}
.tpl-card:hover .card-shot img{transform:none}
.tpl-card .card-shot::after{content:"Обрати цей сюжет";inset:0 0 auto 0;padding:16px 14px 34px;
  background:linear-gradient(rgba(20,18,52,.9),transparent)}
.card-main{display:block;width:100%;flex:1;text-align:left;font:inherit;color:inherit;
  background:none;border:0;padding:26px 16px 16px;cursor:pointer}
.card-main::after{content:"";position:absolute;inset:0;border-radius:inherit}
.card-main:focus{outline:0}
.tpl-card:has(.card-main:focus-visible){outline:2px solid var(--accent-deep);outline-offset:2px}
.tpl-look{position:absolute;right:12px;top:100%;transform:translateY(-50%);z-index:2;
  display:inline-flex;align-items:center;min-height:36px;padding:.35rem .85rem;border-radius:999px;cursor:pointer;
  font:600 .84rem/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#fff;
  background:rgba(20,18,52,.8);border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(6px);
  transition:color .18s,border-color .18s,background .18s}
.tpl-look:hover,.tpl-look:focus-visible{color:var(--accent);border-color:var(--accent);background:rgba(20,18,52,.92)}
.tpl-look:focus-visible{outline:2px solid var(--accent-deep);outline-offset:2px}
.tpl-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:4px}
.tpl-head h3{margin:.15rem 0 0}
.tpl-head .btn{margin-left:auto;flex:none}
.tpl-occ{margin:0;color:var(--gold-text);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
#tpl-fields{display:grid;gap:18px}
#tpl-list.tpl-cards{display:block;margin-bottom:20px}
.badge{position:absolute;top:-10px;right:12px;font-size:.66rem;font-weight:800;letter-spacing:.06em;
  text-transform:uppercase;padding:.25rem .55rem;border-radius:999px;line-height:1.4;z-index:1}
.badge-pop{background:var(--accent);color:var(--accent-ink)}
.badge-new{background:var(--ink);color:var(--accent)}
.card.is-popular{border-color:var(--line-lit)}
/* Сезонна полиця «До свят» над рештою сюжетів. */
.shelf{position:relative;margin:0 0 26px;padding:16px;border-radius:20px;background:var(--surface);border:1px solid #BFD9F0}
.shelf-head{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 14px}
.shelf-head svg{width:22px;height:22px;color:#2E6DA4;flex:none}
.shelf-head h3{margin:0;font-family:Georgia,serif;font-weight:600;font-size:1.25rem}
.shelf-head p{flex-basis:100%;margin:0;color:var(--muted);font-size:.85rem}
.shelf .card{background:var(--bg);border-color:#BFD9F0}
.shelf .card:hover{border-color:#2E6DA4}
.count{display:flex;align-items:center;gap:.35rem;margin-top:.55rem;font-size:.8rem;font-weight:600;color:#2E6DA4}
.count svg{width:13px;height:13px;flex:none}
.count.soon{color:#B4530A}
.all-label{margin:0 0 12px;color:var(--muted);font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
/* Відмінки імені: показуємо, як програма провідміняла, рідкісні виправляються вручну. */
.cases{border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:0}
.cases summary{cursor:pointer;padding:.6rem .8rem;font-size:.87rem;color:var(--muted);list-style:none}
.cases summary::-webkit-details-marker{display:none}
.cases summary::before{content:"▸ ";color:var(--accent-deep)}
.cases[open] summary::before{content:"▾ "}
.cases-grid{display:grid;gap:10px;padding:0 .8rem .8rem}
@media(min-width:560px){.cases-grid{grid-template-columns:repeat(3,1fr)}}
.cases-grid label{gap:.3rem;font-size:.82rem}
.cases-grid input{min-height:38px;padding:.45rem .6rem;font-size:.92rem}

/* ─── вибір гри: справжні рендери як обкладинки ───────────────────────────── */
.games-pick{margin-bottom:20px}
.games-lead{color:var(--muted);font-size:.95rem;margin:0 0 12px}
.games-cards{display:grid;gap:16px}
@media(min-width:620px){.games-cards{grid-template-columns:1fr 1fr}}
@media(min-width:960px){.games-cards{grid-template-columns:repeat(3,1fr)}}
.game-card{position:relative;display:flex;flex-direction:column;text-align:left;font:inherit;color:inherit;cursor:pointer;
  background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;
  transition:border-color .18s,transform .18s,box-shadow .18s}
.game-card:hover{border-color:var(--accent-deep);transform:translateY(-2px)}
.game-card.is-on{background:var(--night);color:var(--night-text);border:2px solid var(--accent);box-shadow:var(--shadow)}
.game-card:has(input:focus-visible){outline:2px solid var(--accent-deep);outline-offset:2px}
.game-card.is-on h3{color:#fff}
.game-card.is-on p{color:var(--night-text)}
.game-shot{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--night)}
.game-shot img{width:100%;height:100%;object-fit:cover;object-position:50% 56%;display:block}
.game-card[data-game="gifts"] .game-shot img{object-position:50% 55%}
.game-card[data-game="lock"] .game-shot img{object-position:50% 61%}
.game-card[data-game="scratch"] .game-shot img{object-position:50% 50%}
.game-card[data-game="aim"] .game-shot img{object-position:50% 51%}
.game-text{padding:16px 18px 18px;flex:1;min-width:0}
.game-text h3{margin:0 0 .35rem;font-size:1.1rem;padding-right:26px}
.game-card p{color:var(--muted);font-size:.9rem;margin:0;line-height:1.5}
.game-card .pick{position:absolute;top:14px;right:14px;width:20px;height:20px;border-radius:50%;z-index:1;
  border:2px solid #fff;background:rgba(0,0,0,.25);transition:background .2s,border-color .2s}
.game-card.is-on .pick{background:var(--accent);border-color:var(--accent);box-shadow:0 0 12px var(--glow)}
.game-card .badge{top:12px;left:12px;right:auto}
.game-try{margin-top:.9rem}
.game-card.is-on .btn-ghost{color:var(--accent);border-color:rgba(255,201,60,.5)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ─── живе превʼю ─────────────────────────────────────────────────────────── */
.make-cols{display:grid;gap:24px}
@media(min-width:940px){
  .make-cols{grid-template-columns:minmax(0,1fr) 320px;align-items:start}
  .live{position:sticky;top:20px}
}
.make-forms{min-width:0}
.live{min-width:0}
.live-phone{background:var(--night);border-radius:28px;padding:10px;box-shadow:var(--shadow)}
.live-screen{border-radius:20px;padding:30px 20px;min-height:300px;display:flex;
  flex-direction:column;justify-content:center;text-align:center;
  background:radial-gradient(120% 70% at 50% 108%,#4a2c50 0%,transparent 60%),
    linear-gradient(180deg,#0b0a22 0%,#171338 70%,#2a2152 100%)}
.live-eyebrow{margin:0 0 .5rem;font-size:.66rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--accent);opacity:.9;font-weight:800}
.live-to{margin:0 0 .3rem;font-family:Georgia,serif;font-size:1.25rem;color:#fff}
.live-reveal{margin:0;font-family:Georgia,serif;font-weight:600;
  font-size:clamp(1.15rem,2.6vw,1.45rem);line-height:1.25;color:var(--accent);transition:opacity .25s}
.live-reveal.dim{opacity:.6;font-weight:400;font-size:1.05rem;color:#8E8BB0}
.live-msg{margin:.8rem 0 0;font-size:.85rem;line-height:1.5;color:#b9b7c6}
.live-msg:empty{display:none}
.live-sign{margin:.9rem 0 0;font-family:Georgia,serif;font-size:.9rem;color:#cfccd8}
.live-sign:empty{display:none}
.live-note{margin:.7rem 0 0;color:var(--muted);font-size:.85rem;line-height:1.45;text-align:center}
.live-reveal.pulse{animation:livePulse .5s ease}
@keyframes livePulse{0%{transform:scale(1)}40%{transform:scale(1.045)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.live-reveal.pulse{animation:none}}

/* ─── промокод ────────────────────────────────────────────────────────────── */
.promo{margin:.2rem 0 .4rem}
.promo summary{cursor:pointer;color:var(--muted);font-size:.9rem;width:max-content;
  text-decoration:underline;text-underline-offset:3px}
.promo summary::-webkit-details-marker{display:none}
.promo[open] summary{margin-bottom:.5rem}
.promo input{width:100%;max-width:16rem;min-height:44px;font:inherit;text-transform:uppercase;
  letter-spacing:.06em;color:var(--text);background:var(--bg);border:1px solid var(--line);
  border-radius:12px;padding:.6rem .8rem}
.promo input:focus{outline:2px solid var(--accent-deep);outline-offset:1px}
.promo small{display:block;margin-top:.35rem;font-size:.85rem}
.promo small.good{color:var(--good)}
.promo small.bad{color:var(--bad)}

/* ─── блокування коштів ───────────────────────────────────────────────────── */
.hold-note{margin-top:.2rem;line-height:1.5}
.hold-note b{color:var(--text)}
.hold-retry{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:1rem}
.hold-info{margin-top:.9rem}
.hold-info .note{margin:0 0 .35rem;line-height:1.5}
.linklike{background:none;border:0;padding:0;font:inherit;font-size:.88rem;color:var(--muted);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.linklike:hover{color:var(--text)}
.linklike:disabled{opacity:.5;cursor:default}

/* ─── збираємо ────────────────────────────────────────────────────────────── */
.progress{text-align:center;padding:40px 24px;background:var(--surface);border:1px solid var(--line);border-radius:24px}
.progress h3{font-size:1.6rem}
.spinner{width:44px;height:44px;margin:0 auto 18px;border-radius:50%;
  border:4px solid var(--bg2);border-top-color:var(--accent-deep);animation:spin 1.2s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.tick{list-style:none;margin:22px auto 0;padding:0;display:grid;gap:10px;text-align:left;
  max-width:24rem;color:var(--muted);font-size:.95rem}
.tick li{padding-left:1.9rem;position:relative}
.tick li::before{content:"";position:absolute;left:0;top:.35em;width:14px;height:14px;border-radius:50%;
  border:1.5px solid var(--line);background:var(--surface);transition:background .4s,border-color .4s}
.tick li.done{color:var(--ink);font-weight:600}
.tick li.done::before{background:var(--accent);border-color:var(--accent-deep)}

/* ─── превʼю й оплата ─────────────────────────────────────────────────────── */
.result-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:14px}
.result-head h3{margin:0;font-size:1.6rem}
.result-actions{display:flex;gap:8px;margin-left:auto}
.frame{border:1px solid var(--line);border-radius:28px;overflow:hidden;background:var(--night);box-shadow:var(--shadow)}
.frame iframe{display:block;width:100%;height:min(76vh,700px);border:0}
.buy{display:flex;flex-direction:column;align-items:stretch;gap:18px;margin-top:16px;
  background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:24px}
.slug{display:grid;gap:.45rem;font-size:.92rem;font-weight:700;color:var(--ink)}
.slug-row{display:flex;align-items:center;background:var(--bg);border:1px solid var(--line);
  border-radius:12px;overflow:hidden}
.slug-row input{flex:1;min-width:0;background:transparent;border:0;color:var(--text);font:inherit;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;padding:.7rem .9rem;min-height:48px}
.slug-row input:focus{outline:0}
.slug-row:focus-within{outline:2px solid var(--accent-deep);outline-offset:1px}
.slug-tail{padding:0 .9rem;color:var(--muted);white-space:nowrap;font-size:.92rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--bg2);align-self:stretch;
  display:inline-flex;align-items:center;border-left:1px solid var(--line)}
.slug small{font-weight:400}
.slug small.bad{color:var(--bad)}
.slug small.good{color:var(--good)}
.buy-pay{display:flex;flex-wrap:wrap;align-items:center;gap:14px;border-top:1px solid var(--line);padding-top:18px}
.buy-pay .btn{margin-left:auto;min-height:52px;padding-inline:1.8rem}
.buy strong{font-family:Georgia,serif;font-size:1.7rem;font-weight:600;color:var(--ink)}

/* ─── опубліковано ────────────────────────────────────────────────────────── */
.published{margin-top:16px;background:var(--surface);border:1px solid var(--line);
  border-radius:24px;padding:28px;text-align:center;box-shadow:var(--shadow)}
.published h3{margin:0 0 .3rem;font-size:1.6rem}
.pub-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;margin:14px 0;
  background:var(--bg2);border-radius:16px;padding:10px 10px 10px 18px}
.pub-url{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1.1rem;color:var(--ink);
  text-decoration:none;word-break:break-all;flex:1 1 220px;text-align:left}
.pub-row .btn{background:var(--accent);color:var(--accent-ink);border:0}
.qr{display:none}
.share{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;align-items:center;margin:4px 0 10px}
.share span{font-size:.9rem;font-weight:700;color:var(--muted)}
.share a,.share button{display:inline-flex;align-items:center;gap:.5rem;min-height:40px;padding:0 14px;border-radius:999px;
  border:1px solid var(--line);background:var(--surface);color:var(--text);text-decoration:none;
  font:inherit;font-size:.9rem;font-weight:600;cursor:pointer}
.share i{width:10px;height:10px;border-radius:50%;display:inline-block}
.share .i-tg{background:#2AABEE}.share .i-vb{background:#7360F2}.share .i-wa{background:#25D366}

/* ─── що сталося після надсилання ─────────────────────────────────────────── */
.echo{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);text-align:left}
.echo-head{margin:0 0 .6rem;font-size:.92rem;color:var(--gold-text);font-weight:700}
.echo-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.echo-list li{background:var(--bg2);border-radius:12px;padding:10px 12px;font-size:.92rem;line-height:1.5}
.echo-list time{display:block;margin-top:.3rem;color:var(--muted);font-size:.78rem}

/* ─── сповіщення в Telegram ───────────────────────────────────────────────── */
.tg-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;
  margin:18px 0 0;background:var(--night);color:var(--night-text);border-radius:20px;padding:22px}
.tg-lead,.tg-note{flex-basis:100%;margin:0;text-align:center}
.tg-lead{font-weight:700;font-size:1.05rem;color:#fff}
.tg-note{color:var(--night-text);font-size:.9rem;margin-bottom:4px}
.tg-row.linked .tg-lead{color:#9FE0B4}
.tg-row .login-slot{flex-basis:100%;align-items:center;text-align:center}
.login-slot{display:flex;flex-direction:column;gap:.5rem;margin-top:.2rem}
.login-why{color:#B8B6CC;font-size:.88rem;max-width:26rem}

/* ─── часті питання ───────────────────────────────────────────────────────── */
.faq-list{display:grid;gap:0 40px}
@media(min-width:900px){.faq-list{grid-template-columns:1fr 1fr}}
.faq-list>div{padding:18px 0;border-top:1px solid var(--line)}
.faq-list h3{font-family:inherit;font-size:1.05rem;font-weight:700;margin:0 0 .4rem}
.faq-list p{margin:0;font-size:.95rem;line-height:1.55}

/* ─── фінальний заклик ────────────────────────────────────────────────────── */
.final{background:var(--night);color:var(--night-text)}
.final-cols{display:flex;flex-wrap:wrap;gap:32px;align-items:center;justify-content:space-between}
.final-cols>div{flex:1 1 480px;min-width:0}
.final h2{color:#fff;font-size:clamp(1.8rem,4vw,2.6rem)}
.final p{color:var(--night-text);max-width:34rem}
.final-act{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.final .note{color:#B8B6CC;margin:0}

/* ─── підвал ──────────────────────────────────────────────────────────────── */
footer{display:flex;flex-wrap:wrap;gap:14px 24px;padding-block:32px 40px;color:var(--muted);font-size:.9rem;align-items:center}
.foot-brand{display:flex;flex-direction:column;gap:6px}
.foot-links{margin-left:auto;display:flex;gap:1.2rem;flex-wrap:wrap}
.foot-links a{color:var(--text);text-decoration:none;font-size:.9rem}
.foot-links a:hover{color:var(--gold-text);text-decoration:underline;text-underline-offset:3px}
@media(max-width:560px){.foot-links{margin-left:0;width:100%}}

/* ─── поява розділів ──────────────────────────────────────────────────────── */
/* Ховаємо ТІЛЬКИ під класом .reveal, який ставить скрипт у <head>: без скриптів
   текст лишається видимим. */
.reveal [data-waypoint]{opacity:0;transform:translateY(12px);transition:opacity .45s ease,transform .45s ease}
.reveal [data-waypoint].seen{opacity:1;transform:none}


@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .reveal [data-waypoint]{opacity:1;transform:none}
  .gt-a,.gt-c{background:#FFC93C!important}
}

/* ─── перегляд квесту ─────────────────────────────────────────────────────── */
.viewer{position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;
  background:rgba(20,18,52,.92);backdrop-filter:blur(6px);animation:vIn .25s ease both;color:var(--night-text)}
@keyframes vIn{from{opacity:0}to{opacity:1}}
.viewer-bar{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.14);flex:none}
.viewer-title{flex:1;min-width:0;font-weight:600;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.viewer-bar .btn{flex:none;white-space:nowrap}
.viewer-close{background:transparent;border:1px solid var(--accent);color:var(--accent);
  width:38px;height:38px;border-radius:50%;font-size:1rem;cursor:pointer;flex:none;transition:background .2s}
.viewer-close:hover{background:rgba(255,201,60,.14)}
.viewer-body{flex:1;min-height:0;display:grid;place-items:center;padding:12px}
.viewer-body iframe{border:0;background:#000;display:block;width:100%;height:100%;border-radius:var(--radius)}
@media(min-width:620px){
  .viewer{display:grid;grid-template-rows:auto auto;align-content:center;justify-items:center;gap:10px;padding:20px}
  .viewer-bar{width:min(390px, 92vw);padding:0;border-bottom:0}
  .viewer-title{font-size:.9rem;min-width:0}
  .viewer-close{width:34px;height:34px}
  .viewer-body{padding:0;width:min(390px, 92vw)}
  .viewer-body iframe{width:100%;height:min(80vh, calc(min(390px, 92vw) * 19 / 9));border-radius:26px;
    box-shadow:0 0 0 1px rgba(255,255,255,.14),0 30px 70px rgba(0,0,0,.6)}
}

/* ─── три ключі ───────────────────────────────────────────────────────────── */
.key{position:absolute;width:26px;height:26px;padding:0;border:0;background:none;cursor:pointer;
  opacity:.22;transition:opacity .3s,transform .3s;z-index:2;-webkit-tap-highlight-color:transparent}
.key svg{width:100%;height:100%;display:block;stroke:var(--accent-deep);fill:none;stroke-width:8;stroke-linecap:round}
.key:hover,.key:focus-visible{opacity:1;transform:scale(1.18)}
.key:focus-visible{outline:2px solid var(--accent-deep);outline-offset:4px;border-radius:50%}
.key.found{opacity:0;pointer-events:none;transform:scale(2.2)}
.key-toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:80;
  background:var(--surface);border:1px solid var(--accent);border-radius:999px;
  padding:.6rem 1.2rem;font-size:.92rem;box-shadow:var(--shadow);animation:toastIn .3s ease both}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,14px)}to{opacity:1;transform:translate(-50%,0)}}
.prize{position:fixed;inset:0;z-index:95;display:grid;place-items:center;padding:20px;
  background:rgba(30,27,75,.5);backdrop-filter:blur(8px);animation:vIn .3s ease both}
.prize-card{max-width:26rem;text-align:center;background:var(--surface);
  border:2px solid var(--accent);border-radius:24px;padding:28px 24px;box-shadow:var(--shadow)}
.prize-eyebrow{margin:0 0 .4rem;font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--gold-text)}
.prize-card h3{margin:0 0 .6rem;font-size:1.5rem}
.prize-text{color:var(--muted);margin:0 0 1rem;font-size:.95rem}
.prize-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1.6rem;letter-spacing:.12em;
  color:var(--ink);background:var(--bg2);border-radius:12px;padding:.7rem 1rem;margin:0 0 1.2rem}
@media(prefers-reduced-motion:reduce){.key,.key-toast,.prize{animation:none;transition:none}}

/* ─── власний випадаючий список ───────────────────────────────────────────── */
.sel{position:relative}
.sel-native{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.sel-btn{display:flex;align-items:center;gap:.5rem;width:100%;min-height:48px;
  font:inherit;font-weight:400;color:var(--text);text-align:left;cursor:pointer;
  background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:.7rem .9rem;transition:border-color .18s}
.sel-btn:hover{border-color:var(--accent-deep)}
.sel[data-open] .sel-btn,.sel-btn:focus-visible{outline:2px solid var(--accent-deep);outline-offset:1px}
.sel-val{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sel-arrow{flex:none;width:10px;height:10px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s}
.sel[data-open] .sel-arrow{transform:rotate(-135deg) translate(-3px,-3px)}
.sel-list{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;
  list-style:none;max-height:min(18rem,50vh);overflow:auto;overscroll-behavior:contain;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);animation:selIn .14s ease both}
.sel-list[hidden]{display:none}
@keyframes selIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.sel-opt{padding:.55rem .7rem;border-radius:8px;cursor:pointer;font-size:.97rem;line-height:1.4}
.sel-opt[aria-selected="true"]{color:var(--gold-text);font-weight:600}
.sel-opt.active{background:var(--bg2)}
@media(prefers-reduced-motion:reduce){.sel-list{animation:none}.sel-arrow{transition:none}}

/* ─── вхід через Telegram і кабінет ──────────────────────────────────────── */
.who{position:relative;display:flex;align-items:center}
.who-btn{width:40px;height:40px;padding:0;border-radius:50%;cursor:pointer;overflow:hidden;
  background:var(--bg2);border:1px solid var(--line);display:grid;place-items:center;transition:border-color .18s}
.who-btn:hover,.who[data-open] .who-btn{border-color:var(--accent-deep)}
.who-pic{width:100%;height:100%;object-fit:cover;display:block}
.who-ini{font:700 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink)}
.who-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:50;margin:0;padding:6px;
  list-style:none;min-width:11rem;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.who-menu[hidden]{display:none}
.who-menu button{display:block;width:100%;text-align:left;background:none;border:0;
  padding:.55rem .7rem;border-radius:8px;font:inherit;font-size:.95rem;color:var(--text);cursor:pointer}
.who-menu button:hover{background:var(--bg2)}
.moi-win{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:20px;
  background:rgba(30,27,75,.45);backdrop-filter:blur(6px);overflow:auto}
.moi-win[hidden]{display:none}
.moi-card-win{width:100%;max-width:46rem;max-height:86vh;overflow:auto;
  background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:var(--shadow)}
.moi-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.moi-head h2{margin:0;font-size:1.5rem}
.moi-sub{margin:.3rem 0 1.1rem;font-size:.92rem}
.moi-list{display:grid;gap:14px}
@media(min-width:620px){.moi-list{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}}
.moi-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px}
.moi-card h3{margin:.3rem 0 .4rem;font-size:1.1rem}
.moi-top{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.moi-st{font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.moi-st-live{color:var(--good)}
.moi-st-old,.moi-st-failed{color:var(--bad)}
.moi-when{font-size:.78rem;color:var(--muted)}
.moi-url{display:block;font-size:.88rem;word-break:break-all;margin-bottom:.5rem;color:var(--gold-text)}
.moi-nums{color:var(--muted);font-size:.85rem;margin:0 0 .8rem}
.moi-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:.2rem}
.moi-acts .btn-danger{margin-left:auto}
.tgwait{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:20px;
  background:rgba(30,27,75,.45);backdrop-filter:blur(6px)}
.tgwait[hidden]{display:none}
.tgwait-card{max-width:24rem;text-align:center;background:var(--surface);border:1px solid var(--line);
  border-radius:24px;padding:26px 22px;box-shadow:var(--shadow)}
.tgwait-card h3{margin:.2rem 0 .5rem;font-size:1.2rem}
.tgwait-card p{margin:0 0 .8rem}
.tgwait-why{font-size:.92rem;color:var(--muted);text-align:left;background:var(--bg2);border-radius:12px;padding:.7rem .85rem}
.tgwait-again{font-size:.9rem;color:var(--muted)}
.tgwait-again a{color:var(--gold-text)}
.tgwait-safe{font-size:.84rem;color:var(--muted)}
.tgwait-dots{display:flex;justify-content:center;gap:7px;margin-bottom:14px}
.tgwait-dots i{width:9px;height:9px;border-radius:50%;background:var(--accent-deep);animation:tgdot 1.1s ease-in-out infinite}
.tgwait-dots i:nth-child(2){animation-delay:.16s}
.tgwait-dots i:nth-child(3){animation-delay:.32s}
@keyframes tgdot{0%,60%,100%{opacity:.25;transform:scale(.75)}30%{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.tgwait-dots i{animation:none;opacity:.7}}

/* ─── сторінки приводів (/vitannia…) ──────────────────────────────────────
   Той самий каркас, що й головна. Колонка вужча: це текст, який читають. */
.occ-page main,.occ-page .top,.occ-page footer{max-width:56rem}
.occ-page section{border-bottom:1px solid var(--line)}
.occ-page section:last-of-type{border-bottom:0}
.occ-hero{padding-top:clamp(28px,6vw,64px)}
.occ-eyebrow{color:var(--gold-text);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;margin:0 0 .6rem}
.occ-page h1{font-size:clamp(1.9rem,5.4vw,3rem)}
.occ-page main p a:not(.btn),.occ-page main .note a{color:var(--gold-text);text-underline-offset:3px}
.ideas{list-style:none;margin:0;padding:0;display:grid;gap:22px;counter-reset:idea}
.ideas li{position:relative;padding-left:3rem;counter-increment:idea}
.ideas li::before{content:counter(idea);position:absolute;left:0;top:-.1rem;width:2.1rem;height:2.1rem;
  border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-weight:800;font-size:.95rem}
.ideas p{color:var(--muted);margin:0}
.ideas li:last-child h3{color:var(--gold-text)}
.ex{display:grid;gap:16px;margin:1.4rem 0}
@media(min-width:760px){.ex{grid-template-columns:1fr 1.3fr auto;align-items:start}}
.ex-col{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px}
.ex-label{color:var(--gold-text);font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;margin:0 0 .8rem}
.ex-brief{margin:0}
.ex-brief dt{color:var(--muted);font-size:.82rem;margin-top:.6rem}
.ex-brief dt:first-child{margin-top:0}
.ex-brief dd{margin:0}
.ex-riddle{margin:0 0 .9rem;padding-left:.9rem;border-left:2px solid var(--accent-deep);
  font-family:Georgia,serif;font-size:1.02rem;line-height:1.5;color:var(--ink)}
.ex-riddle span{display:block;font-family:system-ui,-apple-system,sans-serif;color:var(--muted);font-size:.78rem;margin-bottom:.2rem}
.ex-final{color:var(--muted);font-size:.93rem;margin:0}
.ex-shot{display:block;justify-self:center;width:min(200px,58vw);border-radius:22px;overflow:hidden;
  border:6px solid var(--night);background:var(--night);box-shadow:var(--shadow)}
.ex-shot img{display:block;width:100%;height:auto}
.ex-play{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0}
.ex-play .note{margin:0}
.offer{display:grid;gap:18px;margin-bottom:1.2rem}
@media(min-width:680px){.offer{grid-template-columns:1fr 1fr}}
.offer-card{position:relative;display:flex;flex-direction:column;gap:.35rem;background:var(--surface);
  border:1px solid var(--line);border-radius:22px;padding:22px 20px 20px}
.offer-card.is-lit{border:2px solid var(--accent);box-shadow:var(--shadow)}
.offer-card h3{margin:.2rem 0 0}
.offer-card .muted{font-size:.93rem;margin:0}
.offer-gives{margin:.5rem 0 .9rem;padding:0;list-style:none;display:grid;gap:.4rem;font-size:.93rem}
.offer-gives li{padding-left:1.3rem;position:relative}
.offer-gives li::before{content:"";position:absolute;left:.2rem;top:.6em;width:5px;height:5px;border-radius:50%;background:var(--accent-deep)}
.offer-act{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.occ-offer .note{margin:0 0 .5rem}
.occ-page main .occ-offer .note a{color:inherit}
.occ-faq details{border-bottom:1px solid var(--line);padding:.9rem 0}
.occ-faq summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:1rem;color:var(--ink)}
.occ-faq summary::-webkit-details-marker{display:none}
.occ-faq summary::after{content:"+";color:var(--accent-deep);font-size:1.3rem;line-height:1;transition:transform .2s}
.occ-faq details[open] summary::after{transform:rotate(45deg)}
.occ-faq details p{color:var(--text);margin:.6rem 0 0}
.occ-end{text-align:center}
.occ-end .muted{max-width:34rem;margin-inline:auto}
.occ-end .note{margin-top:1.2rem}
.whom{display:grid;gap:16px}
@media(min-width:680px){.whom{grid-template-columns:1fr 1fr}}
.whom-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px 18px 14px}
.whom-card h3{margin:0 0 .2rem}
.whom-card .offer-gives{margin:.4rem 0 .4rem}
.whom-card .note{margin:.4rem 0 0}
.occ-related .card h3{font-size:1.02rem}
