
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../../assets/fonts/onest/onest-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0400-04FF, U+2010-2027, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../../assets/fonts/onest/onest-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'PT Serif'; font-weight: 400; font-display: swap; src: url('../../assets/fonts/np/pt-serif-regular.woff2') format('woff2'); }
@font-face { font-family: 'PT Serif'; font-weight: 700; font-display: swap; src: url('../../assets/fonts/np/pt-serif-bold.woff2') format('woff2'); }
@font-face { font-family: 'PT Serif'; font-weight: 400; font-style: italic; font-display: swap; src: url('../../assets/fonts/np/pt-serif-italic.woff2') format('woff2'); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; background: #0d1320; overflow: hidden; overscroll-behavior: none; }
body { font: 400 17px/1.45 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; }


.t-night { --bg: #121a2b; --ink: #f6eedd; --dim: #a9b0bd; --acc: #e8b64f; --line: rgba(246, 238, 221, .16); --panel: rgba(246, 238, 221, .07); --on-acc: #17120a; }
.t-parch { --bg: #f4ead7; --ink: #261a10; --dim: #75634f; --acc: #a8321f; --line: rgba(38, 26, 16, .16); --panel: rgba(38, 26, 16, .05); --on-acc: #fff7ea; }
.t-red   { --bg: #8d2317; --ink: #fff3e2; --dim: #eec7b4; --acc: #f3c463; --line: rgba(255, 243, 226, .22); --panel: rgba(255, 243, 226, .1); --on-acc: #3a0f09; }
.t-field { --bg: #1f3126; --ink: #f3efdf; --dim: #aebba7; --acc: #e8b64f; --line: rgba(243, 239, 223, .16); --panel: rgba(243, 239, 223, .08); --on-acc: #17120a; }

.stage { position: fixed; inset: 0; overflow: hidden; background: #0d1320; }
@media (min-width: 620px) and (min-height: 640px) {
  .stage { inset: 20px auto 20px 50%; width: 440px; transform: translateX(-50%); border-radius: 14px; box-shadow: var(--e-3, 0 0 0 1px rgba(255, 255, 255, .08)); }
}


.c { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 56px 22px 92px; background: var(--bg); color: var(--ink); overflow-y: auto; -webkit-overflow-scrolling: touch; visibility: hidden; opacity: 0; transform: translateX(28px); transition: opacity .28s ease, transform .28s ease, visibility 0s .28s; }
.c.on { visibility: visible; opacity: 1; transform: none; transition: opacity .28s ease, transform .28s ease; }
.c.gone { transform: translateX(-28px); }

.c::before, .c::after { content: ''; flex: 1 0 0; }
.c.top::before, .c.low::after { display: none; }
.c.top::after { flex: 1 0 0; }
.c > * { flex-shrink: 0; position: relative; }
.kick { margin: 0 0 12px; font: 600 12.5px/1.3 'Onest', sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--acc); }
h1, h2 { margin: 0 0 14px; font: 700 34px/1.12 'PT Serif', Georgia, serif; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 12.5vw, 54px); line-height: 1.02; }
p { margin: 0 0 12px; }
.c b { font-weight: 650; color: var(--ink); }
.c em { font-style: normal; color: var(--acc); font-weight: 600; }
.lead { font: 400 21px/1.34 'PT Serif', Georgia, serif; }
.dim { color: var(--dim); font-size: 15px; }
.year { display: block; margin: 0 0 4px; font: 700 clamp(84px, 27vw, 118px)/.95 'PT Serif', Georgia, serif; letter-spacing: -.03em; color: var(--acc); }
.fact { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }


.art { position: absolute !important; left: 0; right: 0; top: 0; width: 100%; pointer-events: none; }
.art.bottom { top: auto; bottom: 0; }
svg { display: block; }


.why { display: grid; gap: 14px; margin: 6px 0 18px; padding: 0; list-style: none; }
.why li { display: grid; grid-template-columns: minmax(30px, max-content) 1fr; gap: 12px; align-items: start; }
.why.yr li { grid-template-columns: 74px 1fr; gap: 10px; }
.why.yr i { font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
.why i { font: 700 28px/1 'PT Serif', Georgia, serif; font-style: normal; color: var(--acc); }
.why b { display: block; }
.why span { display: block; margin-top: 2px; color: var(--dim); font-size: 15px; line-height: 1.38; }
.then { margin-top: 2px; padding: 14px 16px; border-radius: 14px; background: var(--acc); color: var(--on-acc); font: 700 19px/1.25 'PT Serif', Georgia, serif; }


.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 16px; }
.duo > div { padding: 14px; border-radius: 14px; background: var(--panel); }
.duo h3 { margin: 0 0 6px; font: 700 27px/1 'PT Serif', Georgia, serif; }
.duo h4 { margin: 0 0 8px; font: 700 17px/1.2 'PT Serif', Georgia, serif; }
.duo small { display: block; margin-bottom: 8px; font: 600 12px/1.3 'Onest', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.duo p { margin: 0; font-size: 15px; line-height: 1.38; }
.duo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.35; }
.duo .good h3 { color: var(--acc); }


.field { margin: 0 -8px 12px; }
.field svg { width: 100%; height: auto; }
.field text { font-family: 'Onest', sans-serif; }
.field .rg { transition: transform .7s ease, opacity .5s ease; }
.field .ar, .field .ly { opacity: 0; transition: opacity .4s ease; }
.field-cap { min-height: 96px; }
.field-cap h2 { font-size: 26px; margin-bottom: 8px; }
.field-cap p { font-size: 16px; line-height: 1.4; margin: 0; }
.steps { display: flex; gap: 6px; margin: 0 0 10px; }
.steps i { width: 22px; height: 4px; border-radius: 999px; background: var(--line); transition: background .2s; }
.steps i.on { background: var(--acc); }


.q-tag { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--acc); color: var(--on-acc); font: 700 12px/1.3 'Onest', sans-serif; letter-spacing: .04em; align-self: flex-start; }
.opts { display: grid; gap: 8px; margin: 6px 0 0; }
.opt { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); text-align: left; font-size: 16px; line-height: 1.3; cursor: pointer; transition: background .15s, border-color .15s; }
.opt.right { border-color: #3f9d63; background: #3f9d63; color: #fff; }
.opt.wrong { border-color: var(--acc); opacity: .75; text-decoration: line-through; }
.answered .opt { cursor: default; }
.answered .opt:not(.right):not(.wrong) { opacity: .5; }
.expl { margin: 12px 0 0; font-size: 15.5px; line-height: 1.4; }
.ord { display: grid; gap: 8px; margin: 6px 0 0; }
.ord button { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); text-align: left; font-size: 16px; line-height: 1.3; cursor: pointer; }
.ord button i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); font: 700 14px/1 'Onest', sans-serif; font-style: normal; }
.ord button.set i { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.ord button.ok { border-color: #3f9d63; }
.ord button.bad { border-color: var(--acc); }
.ord small { color: var(--dim); font-size: 13.5px; }


.sheet { display: grid; gap: 0; margin: 4px 0 14px; }
.sheet div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.32; }
.sheet dt { font: 700 16px/1.25 'PT Serif', Georgia, serif; color: var(--acc); overflow-wrap: anywhere; hyphens: auto; }
.sheet dd { margin: 0; }
.score { margin: 0 0 10px; font-size: 15px; color: var(--dim); }
.acts { display: grid; gap: 8px; margin-top: 4px; }
.act { display: block; width: 100%; padding: 13px 14px; border: 0; border-radius: 14px; background: var(--panel); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; font-size: 15.5px; font-weight: 600; }
.act.main { background: var(--acc); color: var(--on-acc); }
.act small { display: block; font-weight: 400; font-size: 13px; opacity: .78; margin-top: 2px; }
.hide-v dd { cursor: pointer; color: transparent; background: var(--panel); border-radius: 8px; }
.hide-v dd.shown { color: inherit; background: none; }


.ui-top { position: absolute; left: 0; right: 0; top: 0; z-index: 5; padding: 10px 12px 0; pointer-events: none; }
.segs { display: flex; gap: 3px; }
.segs i { flex: 1; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.segs i b { display: block; height: 100%; width: 0; background: #fff; transition: width .2s; }
.light-ui .segs i { background: rgba(38, 26, 16, .18); }
.light-ui .segs i b { background: #261a10; }
.close { position: absolute; right: 6px; top: 16px; width: 44px; height: 44px; border: 0; background: none; color: #fff; pointer-events: auto; cursor: pointer; display: grid; place-items: center; }
.light-ui .close { color: #261a10; }
.close svg { width: 22px; height: 22px; }
.nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.nav button { pointer-events: auto; border: 0; cursor: pointer; }
#prev { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; background: rgba(255, 255, 255, .13); color: #fff; display: grid; place-items: center; }
.light-ui #prev { background: rgba(38, 26, 16, .09); color: #261a10; }
#prev svg { width: 22px; height: 22px; }
#next { flex: 1; height: 52px; border-radius: 999px; background: #fff; color: #17120a; font: 700 16px/1 'Onest', sans-serif; transition: opacity .15s; }
.light-ui #next { background: #261a10; color: #f4ead7; }
#next:disabled { opacity: .42; cursor: default; }
#prev:disabled { opacity: 0; pointer-events: none; }


@media (max-height: 760px) { .c.low .art { height: 34vh; } .c.low { padding-top: calc(34vh + 12px); justify-content: flex-start; } }
@media (max-height: 680px) {
  .c { padding: 58px 22px 84px; }
  h2 { font-size: 29px; }
  .year { font-size: 76px; }
  .lead { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .c, .field .rg, .field .ly { transition: none; } }
.stage.at-end .nav { display: none; }
.stage.at-end .c.on { padding-bottom: 28px; }


.to-text { align-self: flex-start; position: relative; margin-top: 12px; color: var(--acc); font: 600 15px/1.3 'Onest', sans-serif; text-underline-offset: 3px; }


.map { width: 100%; height: auto; border-radius: 14px; }
.field .map text { font-family: 'Onest', sans-serif; paint-order: stroke; stroke: #fff9ee; stroke-width: 2.6px; stroke-linejoin: round; }
.field { margin: 0 -8px 12px; }
.map-h { font-size: 26px; margin-bottom: 10px; }
.then.small { margin-top: 10px; font-size: 16px; padding: 10px 12px; }


.chain { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; gap: 0; }
.chain li { position: relative; padding: 11px 14px; border-radius: 14px; background: var(--panel); font-size: 15.5px; line-height: 1.38; }
.chain li + li { margin-top: 22px; }
.chain li + li::before { content: ''; position: absolute; left: 50%; top: -18px; width: 2px; height: 11px; margin-left: -1px; background: var(--acc); }
.chain li + li::after { content: ''; position: absolute; left: 50%; top: -9px; margin-left: -5px; border: 5px solid transparent; border-top: 6px solid var(--acc); border-bottom: 0; }


.kin { display: grid; gap: 14px; margin: 8px 0 14px; }
.kin-r { display: grid; gap: 6px; position: relative; }
.kin-r span { display: grid; place-items: center; min-height: 40px; padding: 6px 4px; border-radius: 8px; background: var(--panel); font-size: 13.5px; line-height: 1.2; text-align: center; font-weight: 600; }
.kin-r span.no { background: none; }
.kin-r span.me { background: var(--acc); color: var(--on-acc); }
.kin-r span.me b { color: inherit; }
.kin-r + .kin-r::before { content: ''; position: absolute; left: 50%; top: -12px; width: 2px; height: 10px; margin-left: -1px; background: var(--line); }


.cmp { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; line-height: 1.32; }
.cmp th { padding: 6px 6px; text-align: left; font: 700 14.5px/1.25 'PT Serif', Georgia, serif; color: var(--acc); border-bottom: 1.5px solid var(--line); }
.cmp td { padding: 8px 6px; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp td:first-child { font-weight: 650; }

.to-other { display: block; margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; }


.rate-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 12px; }
.rate-5 button { height: 54px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); font: 700 21px/1 'PT Serif', Georgia, serif; cursor: pointer; }
.rate-5 button.on { border-color: var(--acc); background: var(--acc); color: var(--on-acc); }
.rate-more textarea { display: block; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); font: 400 16px/1.35 'Onest', sans-serif; resize: vertical; }
.rate-more textarea:focus { outline: 0; border-color: var(--acc); }
.rate-more .act { margin-top: 8px; text-align: center; }
.rate-more .act:disabled { opacity: .55; }
.rate-msg { margin: 10px 0 0; font-size: 15px; color: var(--dim); }
.rate-msg.bad { color: var(--acc); font-weight: 600; }


h1, h2 { overflow-wrap: break-word; hyphens: auto; }
