/* Holly Quests — вітрина. Тон: тепла книжкова ілюстрація вночі — папір, нічний синій, золото ліхтарика, зелень падубу. */
@font-face { font-family: Kurale; src: url(/fonts/kurale-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491; font-display: swap; }
@font-face { font-family: Kurale; src: url(/fonts/kurale-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F; font-display: swap; }
@font-face { font-family: Kurale; src: url(/fonts/kurale-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; font-display: swap; }
@font-face { font-family: Nunito; font-weight: 400; src: url(/fonts/nunito-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491; font-display: swap; }
@font-face { font-family: Nunito; font-weight: 400; src: url(/fonts/nunito-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F; font-display: swap; }
@font-face { font-family: Nunito; font-weight: 400; src: url(/fonts/nunito-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; font-display: swap; }
@font-face { font-family: Nunito; font-weight: 800; src: url(/fonts/nunito-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491; font-display: swap; }
@font-face { font-family: Nunito; font-weight: 800; src: url(/fonts/nunito-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F; font-display: swap; }
@font-face { font-family: Nunito; font-weight: 800; src: url(/fonts/nunito-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; font-display: swap; }
@font-face { font-family: Caveat; font-weight: 700; src: url(/fonts/caveat-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491; font-display: swap; }
@font-face { font-family: Caveat; font-weight: 700; src: url(/fonts/caveat-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F; font-display: swap; }
@font-face { font-family: Caveat; font-weight: 700; src: url(/fonts/caveat-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; font-display: swap; }

:root {
  --paper: #f7f1e3;
  --paper-2: #efe4cc;
  --ink: #26201a;
  --muted: #6d6153;
  --night: #1d2740;
  --lantern: #d9952b;
  --holly: #2c6a4d;
  --line: #e2d4b6;
  --display: Kurale, Georgia, serif;
  --hand: Caveat, 'Comic Sans MS', cursive;
  --body: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--holly); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
section.wrap { padding-block: 36px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--night); }
h3 { font-size: 21px; color: var(--night); }
p { margin: 0 0 1em; }
.eyebrow { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--lantern); margin-bottom: 10px; }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); font-size: 15px; }
.btn { display: inline-block; font: 800 17px var(--body); color: #fff; background: var(--holly); border: 0; border-radius: 12px; padding: 13px 22px; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 #1d4a35; }
.btn:hover { background: #245c42; }
.btn:disabled { background: #9aa59f; box-shadow: none; cursor: not-allowed; }

/* шапка */
.top { background: var(--night); color: #f3ecdc; position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 58px; flex-wrap: wrap; padding-block: 8px; }
.logo { display: flex; align-items: center; gap: 8px; color: #f6d48a; text-decoration: none; font-family: var(--display); font-size: 22px; margin-right: auto; }
.top nav { display: flex; gap: 16px; }
.top nav a, .langs a { color: #f3ecdc; text-decoration: none; font-weight: 800; font-size: 15px; }
.top nav a:hover { color: #f6d48a; }
.langs { display: flex; gap: 6px; }
.langs a { padding: 3px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); font-size: 13px; }
.langs a[aria-current] { background: #f6d48a; color: var(--night); border-color: #f6d48a; }

/* головна */
.how { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.how li { counter-increment: s; background: #fffaf0; border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: relative; }
.how li::before { content: counter(s); font-family: var(--display); font-size: 34px; color: var(--lantern); display: block; line-height: 1; margin-bottom: 8px; }
.hand { font-family: var(--hand); font-weight: 700; }
section.wrap > h2::before, .board-wrap h2::before { content: ''; display: inline-block; width: 38px; height: 38px; margin-right: 8px; vertical-align: -8px;
  background: url(/img/site/W8.png) no-repeat center / contain; }

/* герой: нічне небо з зірками й місяцем */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #121a2e, var(--night) 55%, #2a3656); color: #f3ecdc; }
.sky { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(1.6px 1.6px at 8% 18%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 22% 62%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 37% 12%, #f6d48a 50%, transparent 52%), radial-gradient(1.3px 1.3px at 49% 40%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 61% 8%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 72% 30%, #f6d48a 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 86% 14%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 94% 48%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 14% 88%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 55% 80%, #f6d48a 50%, transparent 52%);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
.moon { position: absolute; top: 34px; right: 7%; width: 54px; height: 54px; border-radius: 50%; box-shadow: -12px 8px 0 0 #f6d48a; transform: rotate(-20deg); filter: drop-shadow(0 0 14px rgba(246,212,138,.45)); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-block: 52px 44px; }
.hero h1 { color: #fff7e3; }
.hero .lead { color: #d8d0bf; }
.hero-frame { justify-self: center; position: relative; transform: rotate(2deg); }
.hero-frame::after { content: ''; position: absolute; left: 50%; top: -12px; width: 90px; height: 26px; margin-left: -45px; background: rgba(246,212,138,.75); transform: rotate(-4deg); }
.hero-img { border-radius: 6px; border: 10px solid #fffaf0; border-bottom-width: 34px; box-shadow: 0 24px 50px rgba(0,0,0,.4); max-height: 540px; width: auto; }
.hero.wide .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; padding-block: 44px 0; z-index: 1; }
.hero.wide .lead { margin-inline: auto; }
.hero.wide .moon { display: none; }
.hero-bg { position: relative; width: 100%; max-width: 1400px; margin: -40px auto 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%); }

/* сліди лапок між розділами */
.trail { max-width: 640px; margin: 0 auto -16px; padding-inline: 20px; }
.trail svg { width: 100%; height: auto; fill: var(--lantern); }
.trail.flip svg { transform: scaleX(-1); }
.trail g { opacity: 0; transition: opacity .35s ease calc(var(--i) * .16s); }
.trail.on g { opacity: .55; }


/* як це працює: картки з картинками */
.how.pics li { padding: 12px 12px 18px; box-shadow: 0 6px 18px rgba(29,39,64,.08); transition: transform .2s; }
.how.pics li:hover { transform: translateY(-4px) rotate(-.6deg); }
.how.pics li::before { display: none; }
.how .pic { position: relative; margin-bottom: 14px; }
.how .pic img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.how .num { position: absolute; left: -6px; top: -8px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lantern); color: #fff; font: 30px/1 var(--hand); font-weight: 700; box-shadow: 0 3px 0 #a86f17; transform: rotate(-8deg); }
.how.pics h3, .how.pics p { padding-inline: 6px; }

/* каталог: теки справ */
.files { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 34px 26px; padding-top: 20px; }
.file { position: relative; display: block; background: #d8b67d linear-gradient(135deg, rgba(255,255,255,.18), rgba(0,0,0,.06)); border-radius: 4px 14px 14px 14px; padding: 22px; color: var(--ink); text-decoration: none; box-shadow: 0 10px 24px rgba(74,50,20,.22), inset 0 0 0 1px rgba(122,59,22,.18); transition: transform .2s, box-shadow .2s; }
a.file:hover { transform: rotate(-.8deg) translateY(-3px); box-shadow: 0 16px 34px rgba(74,50,20,.3); }
.file .tab { position: absolute; left: 0; top: -26px; background: #d8b67d; border-radius: 10px 10px 0 0; padding: 4px 18px 2px; font: 700 20px/1.2 var(--hand); color: #5a3412; }
.stamp { position: absolute; right: 18px; top: 14px; border: 3px solid #b8322a; color: #b8322a; border-radius: 6px; padding: 0 10px; font: 800 14px/1.7 var(--body); letter-spacing: .14em; text-transform: uppercase; transform: rotate(8deg); opacity: .85; z-index: 2; pointer-events: none; }
.file-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; }
.file h3 { font-size: 30px; margin-top: 22px; color: #3a2410; }
.file .meta { color: #5a4630; font-size: 15px; }
.file .link { font-weight: 800; color: var(--holly); }
.file.soon { background: repeating-linear-gradient(-45deg, #e6d3ad 0 14px, #e0cba1 14px 28px); opacity: .85; }
.file.soon .tab { background: #e6d3ad; }
.file.soon .file-body { grid-template-columns: 1fr; }
/* «Скоро» з обкладинкою (доросла вечірка, поки не продається): як звичайна тека, але приглушена */
.file.soon .file-body:has(.clipped) { grid-template-columns: 150px minmax(0, 1fr); }
.file.soon .clipped img { filter: grayscale(.35); }
.file.soon h3 { margin-top: 0; }
.clipped { position: relative; background: #fffaf0; padding: 7px; box-shadow: 0 4px 10px rgba(0,0,0,.18); transform: rotate(-3deg); }
.clipped img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.clip { position: absolute; top: -14px; left: 24px; width: 18px; height: 46px; border: 3px solid #8e9aa6; border-radius: 9px; z-index: 2; }
.clipped:has(img[src*="/site/W6"]) .clip { display: none; }
.clip::after { content: ''; position: absolute; left: 3px; top: 7px; width: 6px; height: 28px; border: 3px solid #8e9aa6; border-bottom: 0; border-radius: 6px 6px 0 0; }

/* дошка детектива */
.board-wrap { padding-block: 40px 30px; margin-block: 20px; background: #b98a57 radial-gradient(rgba(0,0,0,.09) 1px, transparent 1.6px) 0 0 / 7px 7px; box-shadow: inset 0 0 0 12px #7a5232, inset 0 0 40px rgba(0,0,0,.3); }
.board-wrap h2 { display: inline-block; background: #fffaf0; padding: 8px 18px; transform: rotate(-1.5deg); box-shadow: 0 4px 10px rgba(0,0,0,.2); margin-left: 10px; }
.board { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 26px; padding: 10px 6px 6px; }
.yarn { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.yarn path { fill: none; stroke: #c0392b; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 2px 1px rgba(0,0,0,.25)); }
.polaroid { position: relative; margin: 0; background: #fffdf7; padding: 10px 10px 14px; box-shadow: 0 8px 18px rgba(0,0,0,.28); transform: rotate(var(--r, 0deg)); transition: transform .25s; }
.polaroid:hover { transform: rotate(0deg) scale(1.05); z-index: 3; }
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; background: #eee; }
.polaroid figcaption { font-family: var(--hand); text-align: center; line-height: 1.15; padding-top: 8px; color: #2c2620; }
.polaroid figcaption b { display: block; font-size: 26px; font-weight: 700; }
.polaroid figcaption span { display: block; font-size: 19px; color: #4b3f33; }
.polaroid.sus figcaption b { color: #b8322a; }
.pin { position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, #c0392b 60%, #7d1d14); box-shadow: 0 3px 4px rgba(0,0,0,.35); z-index: 2; }
.board.crew { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 860px; margin-inline: auto; }
.stickers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; padding-top: 10px; }
.stickers figure { margin: 0; text-align: center; transform: rotate(var(--r)); }
.stickers img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px rgba(74,50,20,.25); border: 4px solid #fff; }
.stickers figcaption { margin-top: 8px; font: 700 18px/1.15 var(--hand); color: #5a3412; }
.polaroids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; padding: 14px 6px 0; }
.polaroid.tape::before { content: ''; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgba(246,236,200,.82); box-shadow: 0 1px 2px rgba(0,0,0,.12); transform: rotate(-3deg); z-index: 2; }
.polaroids img { aspect-ratio: 3 / 4; }

/* чому ми: значки */
.why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px 32px; }
.why li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.why .ico { width: 52px; height: 52px; border-radius: 14px; background: #fffaf0; border: 1px solid var(--line); display: grid; place-items: center; transform: rotate(-4deg); }
.why .ico svg { width: 38px; height: 38px; }
.why h3 { margin-bottom: .3em; }
.why p { margin: 0; color: var(--muted); }
.band { background: var(--paper-2); border-radius: 20px; margin-block: 20px; padding: 32px; }

/* декор W7–W10 */
.catalog, .band { position: relative; }
.catalog { overflow-x: clip; }
.deco { position: absolute; pointer-events: none; }
.deco.magnifier { width: 150px; right: 10px; top: 0; transform: rotate(18deg); }
.deco.lantern { width: 120px; right: 26px; top: -46px; filter: drop-shadow(0 0 24px rgba(246,190,90,.55)); animation: glow 3s ease-in-out infinite alternate; }
@keyframes glow { from { filter: drop-shadow(0 0 14px rgba(246,190,90,.35)); } to { filter: drop-shadow(0 0 30px rgba(246,190,90,.75)); } }
.band h2, .band p { max-width: calc(100% - 120px); }

/* лупа над картинками (лише миша) */
.lens { position: fixed; width: 170px; height: 170px; border-radius: 50%; border: 6px solid #a8762a; box-shadow: 0 10px 26px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.6); background-repeat: no-repeat; pointer-events: none; z-index: 50; display: none; }
.lens::after { content: ''; position: absolute; right: -34px; bottom: -34px; width: 16px; height: 50px; background: #6b3f1d; border-radius: 8px; transform: rotate(-45deg); }

/* загублений ключ Гопса */
.egg { float: right; background: none; border: 0; padding: 4px; cursor: pointer; opacity: .35; transition: opacity .2s, transform .2s; }
.egg:hover { opacity: 1; transform: rotate(-15deg) scale(1.2); }
.egg svg, .egg img { width: 34px; height: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); max-width: min(92vw, 460px); background: #fffaf0; color: var(--ink); border: 3px solid var(--lantern); border-radius: 16px; padding: 14px 18px 14px 70px; font: 700 21px/1.25 var(--hand); box-shadow: 0 16px 40px rgba(0,0,0,.3); opacity: 0; transition: opacity .3s, transform .3s; z-index: 60;
  background-image: url(/img/site/hops.jpg); background-size: 52px 52px; background-position: 10px center; background-repeat: no-repeat; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* сторінка квесту */
.qhero-wrap { background: linear-gradient(180deg, var(--paper-2), var(--paper)); padding-block: 40px 20px; }
.qhero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.clipped.big { padding: 12px; max-width: 420px; }
.clipped.big .clip { left: 40px; }
.dossier { position: relative; background: #fffdf7 repeating-linear-gradient(180deg, transparent 0 33px, #e8eef6 33px 34px); border-left: 4px solid #e2a3a0; border-radius: 6px; padding: 26px 26px 18px; max-width: 820px; box-shadow: 0 8px 22px rgba(29,39,64,.12); }
.facts { border-collapse: collapse; width: 100%; font-size: 16px; }
.facts th, .facts td { text-align: left; padding: 8px 12px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.facts th { width: 34%; color: var(--muted); font-weight: 800; }
.facts td { font: 700 22px/1.2 var(--hand); color: #24345e; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: -2px; color: var(--holly); font: 700 24px/1 var(--hand); }

@media (max-width: 980px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stickers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .how.pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .how.pics h3 { font-size: 18px; }
  .how.pics p { font-size: 14px; }
  .yarn { display: none; }
  .deco.magnifier { width: 84px; right: 4px; top: 10px; }
  .deco.lantern { width: 70px; right: 10px; top: -30px; }
  .band h2, .band p { max-width: calc(100% - 60px); }
  .polaroids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .hero-grid, .qhero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 30px; }
  .hero-img { max-height: 360px; }
  .moon { width: 38px; height: 38px; top: 18px; }
  .hero-bg { margin-top: -10px; }
  .file-body { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .file.soon .file-body:has(.clipped) { grid-template-columns: 96px minmax(0, 1fr); }
  .file h3 { font-size: 24px; margin-top: 30px; }
  .board, .board.crew { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .stickers { gap: 14px; }
  .polaroid figcaption b { font-size: 22px; }
  .polaroid figcaption span { font-size: 17px; }
  .clipped.big { max-width: 300px; }
  .facts th { width: 40%; }
}

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; color: var(--night); }
.faq p { margin: 10px 0 0; color: var(--muted); }

footer { background: var(--night); color: #cfc7b6; margin-top: 40px; font-size: 15px; }
footer .wrap { padding-block: 22px; }
footer a { color: #f6d48a; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top nav { order: 3; width: 100%; }
  .band { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* форма покупки (Paddle) і сторінка після оплати */
.buy { max-width: 560px; background: #fffaf0; border-radius: 14px; padding: 22px; box-shadow: 0 8px 22px rgba(74,50,20,.14), inset 0 0 0 1px rgba(122,59,22,.14); margin-top: 18px; }
.buy h2 { margin-top: 0; }
.buy label { display: block; font-weight: 700; margin: 12px 0 4px; }
.buy select, .buy input[type=date], .buy input[type=time] { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #d7c6a6; background: #fff; color: inherit; }
.buy .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.buy .check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; font-weight: 600; }
.buy .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--holly); }
.buy .hint { color: #6b5a48; font-size: 14px; margin: 4px 0 0; }
.buy .err { color: #b0322a; font-weight: 700; margin: 12px 0 0; }
.buy .btn { margin-top: 16px; width: 100%; }
.order .wait { color: #6b5a48; }

/* правові сторінки */
.legal-doc h2 { font-size: 21px; margin: 26px 0 8px; }
.legal-doc ol, .legal-doc ul { padding-left: 22px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc .draft { background: #fff3c4; border-left: 4px solid #e3aa3e; padding: 10px 14px; border-radius: 6px; }
mark.todo { background: #ffe58a; color: #4a3b00; border-radius: 3px; padding: 0 4px; font-weight: 700; }

/* мої покупки (/order/) і «надіслати посилання ще раз» (/access/) */
.order h2 { font-size: 21px; margin: 24px 0 10px; }
.games { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.games li { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; background: #fffaf0; border-radius: 12px; padding: 14px 16px; box-shadow: inset 0 0 0 1px rgba(122,59,22,.14); }
.games li.fresh { box-shadow: inset 0 0 0 2px var(--holly); }
.games li div { display: grid; gap: 2px; min-width: 0; }
.games li span { color: #6b5a48; font-size: 14px; }
.buy input[type=email] { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #d7c6a6; background: #fff; color: inherit; }
#accessOut { margin: 12px 0 0; font-weight: 600; }
#accessOut.ok { color: #2c6a4d; }
#accessOut.err { color: #b0322a; }

/* тестовий запуск без оплати */
.preview-bar { margin: 0; background: #fff3c4; color: #5a4300; text-align: center; font-weight: 700; font-size: 14px; padding: 6px 16px; border-bottom: 1px solid #e3c766; }

/* ширина й висота в <img> лише резервують місце; реальний розмір задає CSS (специфічність 0 — будь-яке правило сильніше) */
:where(img[width][height]) { height: auto; }

/* ціна на сайті (до вікна оплати; shop.js підставляє точну від Paddle) */
.price { display: inline-block; font-weight: 800; color: var(--holly); margin: 2px 0 8px; }
.file .price { display: block; }
.price-line { margin: 4px 0 10px; font-size: 18px; }
.order .open-note { color: #6b5a48; font-size: 14px; margin: 6px 0 0; }

/* Подарунковий сертифікат: поля форми, смуга на головній, картка сертифіката (друк — shared/print-card.js) */
.buy input[type=email], .buy input[type=text], .buy textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #d7c6a6; background: #fff; color: inherit; }
.buy textarea { resize: vertical; min-height: 80px; }
.btn.ghost { background: transparent; color: var(--holly); box-shadow: inset 0 0 0 2px var(--holly); }
.gift-band .btn { margin: 4px 8px 4px 0; }
/* Holly Puzzles (наша гра-пазл) на головній */
.apps-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; align-items: center; }
.apps-band h2, .apps-band p { max-width: none; }
.apps-art { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 8px 22px rgba(74,50,20,.16); }
.apps-band .btn { margin: 4px 8px 4px 0; }
.apps-band .btn.off { opacity: .6; cursor: default; }
@media (max-width: 760px) { .apps-band { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.voucher { margin: 18px 0; background: #fffaf0; border: 3px double #b8741a; border-radius: 18px; padding: 26px 22px; text-align: center; display: grid; gap: 8px; }
.voucher .v-brand { font-family: var(--display); color: var(--holly); font-size: 18px; letter-spacing: .06em; }
.voucher h2 { margin: 0; font-size: clamp(26px, 6vw, 36px); }
.voucher .v-msg { font-style: italic; max-width: 46ch; margin: 4px auto; }
.voucher .v-code { font: 800 clamp(24px, 7vw, 34px)/1.2 ui-monospace, Consolas, monospace; letter-spacing: .08em; color: #3a2410; background: #fff; border: 2px dashed #b8741a; border-radius: 12px; padding: 10px 14px; justify-self: center; }
.voucher .v-small { color: #6b5a48; font-size: 15px; margin: 0; }
.voucher-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }

/* Листівка-сертифікат «Таємний конверт від Голлі» (shared/voucher.js): обкладинка + розворот; друк — A4 альбомний, навпіл */
.hqv { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; margin: 18px 0; background: #fffaf0; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(58,36,16,.18); color: #3a2410; }
.hqv-front { position: relative; background: #1f2a44; aspect-ratio: 3 / 4; }
.hqv-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hqv-stamp { position: absolute; top: 7%; left: 50%; transform: translateX(-50%) rotate(-6deg); border: 3px solid #c0392b; border-radius: 10px; padding: 6px 16px 8px; color: #c0392b; background: rgba(255,250,240,.88); text-align: center; text-transform: uppercase; font-family: var(--display); letter-spacing: .12em; box-shadow: inset 0 0 0 2px rgba(192,57,43,.25); }
.hqv-stamp b { display: block; font-size: clamp(20px, 3.2vw, 30px); font-weight: 400; }
.hqv-stamp span { display: block; font-size: clamp(14px, 2vw, 19px); letter-spacing: .06em; }
.hqv-brand { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 8px 10px; text-align: center; color: #f6e6b4; font-size: 13px; letter-spacing: .04em; text-shadow: 0 1px 3px rgba(0,0,0,.6); background: linear-gradient(transparent, rgba(16,22,40,.75)); }
.hqv-inside { padding: 26px 26px 20px; display: grid; gap: 14px; align-content: start; background: #fffaf0 radial-gradient(circle at 100% 0, rgba(227,170,62,.18), transparent 45%); }
.hqv-letter p { margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.35; }
.hqv-letter .hqv-sign { margin-top: 6px; text-align: right; font-size: 17px; color: #2c6a4d; }
.hqv-paws { font-size: 12px; letter-spacing: 2px; opacity: .8; }
.hqv-note { background: #fff repeating-linear-gradient(transparent 0 26px, #dfe6f2 26px 27px); border-left: 3px solid #e3a3a3; border-radius: 4px; padding: 8px 14px; transform: rotate(-1deg); box-shadow: 0 2px 6px rgba(58,36,16,.12); }
.hqv-note p { margin: 0; font-style: italic; line-height: 27px; }
.hqv-note .hqv-from { text-align: right; font-style: normal; font-weight: 700; }
.hqv-key { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; justify-content: space-between; }
.hqv-keyart { display: flex; align-items: center; min-width: 0; }
.hqv-keyart img { width: 96px; flex: none; transform: rotate(-20deg); margin-right: -18px; position: relative; z-index: 1; }
.hqv-tag { position: relative; background: #f3e2bf; border: 1.5px solid #b8741a; border-radius: 8px 22px 22px 8px; padding: 8px 18px 8px 14px; transform: rotate(4deg); box-shadow: 0 3px 8px rgba(58,36,16,.18); }
.hqv-tag::before { content: ''; position: absolute; left: -26px; top: 50%; width: 28px; border-top: 2px solid #c0392b; }
.hqv-tag small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8a5a10; }
.hqv-tag b { font: 800 clamp(18px, 2.6vw, 24px)/1.2 ui-monospace, Consolas, monospace; letter-spacing: .06em; white-space: nowrap; }
.hqv-qr svg { width: 104px; height: 104px; display: block; border-radius: 8px; box-shadow: 0 0 0 1px #e6d9bf; }
.hqv-steps { margin: 0; padding-left: 22px; font-size: 15px; display: grid; gap: 2px; }
.hqv-small { margin: 0; font-size: 13px; color: #6b5a48; }
.hqv-fold { display: none; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(0,0,0,.25); font-size: 10px; color: rgba(0,0,0,.4); padding: 4px 6px; white-space: nowrap; }
/* на екрані (не аркуші друку) обкладинка тягнеться на всю висоту картки, щоб під нею не лишалося порожнього місця */
@media (min-width: 641px) { .hqv:not(.hqv-sheet) > .hqv-front { aspect-ratio: auto; min-height: 460px; } }
@media (max-width: 640px) { .hqv { grid-template-columns: 1fr; } .hqv-inside { padding: 20px 16px; } }
/* листівка для друку з двох боків: зворот, місце для побажань */
.hqv-print { display: grid; }
.hqv-back { display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 20mm; background: #fffaf0 radial-gradient(circle at 50% 30%, rgba(227,170,62,.16), transparent 60%); }
.hqv-back img { width: 90px; height: auto; }
.hqv-back p { margin: 0; }
.hqv-back-brand { font-family: var(--display); font-size: 30px; color: #2c6a4d; }
.hqv-back-keep { max-width: 30ch; margin-top: 14px !important; font-style: italic; }
.hqv-wish { min-height: 38mm; border: 1.5px dashed #d7c6a6; border-radius: 10px; padding: 6px 10px; background: repeating-linear-gradient(transparent 0 30px, #eadfca 30px 31px); }
.hqv-wish small { color: #8a7a66; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* ───────────── Розділи вітрини: закладки архівних тек «Дитяче свято | Підлітки 12+ | Доросла вечірка» (dev/site-sections.mjs) ─────────────
   Кожна закладка — кольору своєї теки (як .file .tab у каталозі); відкрита стоїть вище й зливається з краєм теки під нею. */
body { --folder: #d8b67d; }
body.sec-teens { --folder: #1b2040; }
body.sec-adults { --folder: #2a241b; }
.sections { background: #121a2e; border-bottom: 6px solid var(--folder); }
.sections .wrap { display: flex; align-items: flex-end; padding-top: 12px; padding-bottom: 0; }
.sections a { position: relative; margin-right: -8px; padding: 5px 24px 3px; border-radius: 12px 12px 0 0; font: 700 22px/1.15 var(--hand); text-decoration: none; white-space: nowrap;
  transform: translateY(6px); filter: brightness(.78) saturate(.75); box-shadow: 0 -3px 8px rgba(0,0,0,.28); transition: transform .15s, filter .15s; }
.sections a:hover { transform: translateY(2px); filter: brightness(.92); }
.sections a[aria-current] { transform: none; filter: none; z-index: 2; padding-bottom: 7px; }
.sections .tab-kids { background: #d8b67d linear-gradient(180deg, rgba(255,255,255,.18), transparent); color: #5a3412; }
.sections .tab-teens { background: #1b2040; color: #ff4fd8; box-shadow: 0 -3px 8px rgba(0,0,0,.28), inset 0 1px 0 #7ef9ff99; }
.sections .tab-adults { background: #2a241b; color: #c9a45c; box-shadow: 0 -3px 8px rgba(0,0,0,.28), inset 0 1px 0 #c9a45c88; }

/* Доросла вечірка: нуар 1927 — чорне, латунь, бірюза (як ілюстрації «Синьої чаплі») */
body.sec-adults { --paper: #14120f; --paper-2: #1d1a15; --ink: #ece3d2; --muted: #b3a58e; --night: #e8cf98; --lantern: #c9a45c; --holly: #3f9a93; --line: #3a332a;
  --display: Georgia, 'Times New Roman', serif; }
.sec-adults .top, .sec-adults .sections, .sec-adults footer { background: #0b0a08; }
.sec-adults .hero.noir { background: radial-gradient(ellipse at 30% 20%, #1f3533, #0b0a08 70%); color: #ece3d2; }
.sec-adults .hero h1 { color: #f3e2b6; letter-spacing: .01em; }
.sec-adults .hero .lead { color: #cfc3ad; }
.sec-adults .hero-img { border-color: #1d1a15; box-shadow: 0 24px 50px rgba(0,0,0,.6), 0 0 0 1px #c9a45c; }
.sec-adults .hero-frame::after { background: rgba(201,164,92,.55); }
.sec-adults .btn { color: #0b0a08; background: var(--lantern); box-shadow: 0 3px 0 #8a6d34; }
.sec-adults .btn.ghost { background: transparent; color: var(--lantern); box-shadow: inset 0 0 0 2px var(--lantern); }
.sec-adults .how li, .sec-adults .why .ico, .sec-adults .buy { background: #1d1a15; border-color: var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.sec-adults .how .num { color: #0b0a08; box-shadow: 0 3px 0 #8a6d34; font-family: var(--display); font-size: 24px; }
.sec-adults .file, .sec-adults .file .tab { background: #231f19; color: var(--ink); }
.sec-adults .file { box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 0 0 1px rgba(201,164,92,.35); }
.sec-adults .file .tab { color: var(--lantern); }
.sec-adults .file h3 { color: #f3e2b6; font-family: var(--display); font-size: 26px; }
.sec-adults .file .meta { color: var(--muted); }
.sec-adults .file .link, .sec-adults .price { color: var(--lantern); }
.sec-adults .file.soon, .sec-adults .file.soon .tab { background: repeating-linear-gradient(-45deg, #1d1a15 0 14px, #191611 14px 28px); }
.sec-adults .clipped { background: #0b0a08; }
.sec-adults .stamp { border-color: #c9a45c; color: #c9a45c; }
.sec-adults .dossier { background: #1d1a15; border-left-color: var(--lantern); box-shadow: 0 8px 22px rgba(0,0,0,.5); }
.sec-adults .facts td { color: #f3e2b6; font-family: var(--display); font-size: 19px; font-weight: 400; }
.sec-adults .board-wrap { background: #1a1713; box-shadow: inset 0 0 0 1px #2a251e; }
.sec-adults .board-wrap h2 { background: #0b0a08; color: #e8cf98; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.sec-adults .polaroid { background: #ece3d2; }
.sec-adults .buy .hint { color: var(--muted); }
.sec-adults .buy select, .sec-adults .buy input[type=date], .sec-adults .buy input[type=time] { background: #14120f; border-color: var(--line); color: var(--ink); color-scheme: dark; }
.sec-adults .faq summary { color: #f3e2b6; }
.sec-adults .preview-bar { background: #2a2416; color: #e8cf98; border-color: #4a3f26; }

/* Підлітки 12+: неон-кіберпанк */
body.sec-teens { --paper: #0d0f1a; --paper-2: #141829; --ink: #e6f1ff; --muted: #9fb0cc; --night: #7ef9ff; --lantern: #ff4fd8; --holly: #7ef9ff; --line: #26304d; }
.sec-teens .top, .sec-teens .sections, .sec-teens footer { background: #07080f; }
.sec-teens .hero.neon { background: linear-gradient(160deg, #1a0b2e, #07080f 60%, #062a33); color: var(--ink); }
.sec-teens .hero h1 { color: #fff; text-shadow: 0 0 18px rgba(126,249,255,.55); }
.sec-teens .hero .lead { color: #b9c6e0; }
.sec-teens .glitch { justify-self: center; font: 700 clamp(22px, 4vw, 34px)/1.35 ui-monospace, Consolas, monospace; color: #7ef9ff; text-shadow: 2px 0 #ff4fd8, -2px 0 #3d5afe; padding: 26px 30px; border: 1px solid #26304d; border-radius: 12px; background: rgba(7,8,15,.6); }
.sec-teens .file, .sec-teens .file .tab { background: #141829; color: var(--ink); }
.sec-teens .file { box-shadow: 0 0 0 1px #7ef9ff55, 0 10px 30px rgba(126,249,255,.12); }
.sec-teens .file.soon { opacity: 1; }
.sec-teens .file .tab { color: #ff4fd8; }
.sec-teens .file h3 { color: #fff; }
.sec-teens .file .meta { color: var(--muted); }
.sec-teens .ticks li::before { color: #ff4fd8; }
.sec-teens .preview-bar { background: #1a1230; color: #e6d2ff; border-color: #3b2a63; }
/* знак перед заголовками й поточна мова — свої в кожному розділі (у дитячому — гілочка падубу) */
.sec-adults .langs a[aria-current] { background: var(--lantern); color: #0b0a08; border-color: var(--lantern); }
.sec-teens .langs a[aria-current] { background: #7ef9ff; color: #07080f; border-color: #7ef9ff; }
.sec-adults section.wrap > h2::before, .sec-adults .board-wrap h2::before { background: none; width: 14px; height: 14px; margin-right: 14px; vertical-align: 4px; border: 2px solid var(--lantern); transform: rotate(45deg); }
.sec-teens section.wrap > h2::before { background: none; width: 10px; height: 26px; margin-right: 12px; vertical-align: -4px; background-color: #ff4fd8; box-shadow: 6px 0 0 #7ef9ff; }
/* телефон: усі три закладки видно одразу — три рівні колонки, підпис за потреби у два рядки */
@media (max-width: 560px) {
  .sections .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 10px; }
  .sections a { margin-right: -4px; padding: 5px 6px 3px; font-size: 18px; line-height: 1.05; white-space: normal; text-align: center; align-self: end; }
  .sections a[aria-current] { padding-bottom: 6px; }
}
