@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0a0a0a;
  --panel: #101010;
  --panel-2: #151515;
  --line: #2a2a2a;
  --line-soft: #1b1b1b;
  --text: #dedbd5;
  --muted: #85827c;
  --faint: #4e4d48;
  --red: #8b0000;
  --red-bright: #bd1919;
  --paper: #cec8ba;
  --mono: 'Space Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--mono); font-size: 13px; line-height: 1.55; letter-spacing: .01em; overflow-x: hidden; }
@media (pointer: fine) {
  body, button, a { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='13' cy='13' r='8' fill='none' stroke='%23d8d0c3' stroke-width='2'/%3E%3Cpath d='M19 19L29 29' stroke='%23bd1919' stroke-width='3'/%3E%3Ccircle cx='13' cy='13' r='2' fill='%23bd1919'/%3E%3C/svg%3E") 13 13, pointer; }
  .evidence-card, .audio-play { cursor: zoom-in; }
}
button, a { font: inherit; }
button { color: inherit; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.noise, .scanlines { pointer-events: none; position: fixed; inset: 0; z-index: 20; }
.noise { opacity: .055; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); mix-blend-mode: screen; }
.scanlines { opacity: .06; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.22) 3px 4px); mix-blend-mode: overlay; }

.is-hidden { display: none !important; }

/* Landing */
.landing { min-height: 100svh; position: relative; padding: 26px 5vw 22px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; background: #080808 url('assets/landing-cover.jpg') center / cover no-repeat; }
.landing::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.28) 48%, rgba(0,0,0,.5) 100%), linear-gradient(180deg, rgba(0,0,0,.38), transparent 42%, rgba(0,0,0,.72)); }
.landing::after { content: ''; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); z-index: -1; }
.landing-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: #080808 url('assets/landing-cover.jpg') center / cover no-repeat; }
.landing-video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; filter: saturate(.72) contrast(1.08) brightness(.82); }
.landing__meta, .landing__footer { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; position: relative; z-index: 2; }
.status-light { display: flex; align-items: center; gap: 7px; }
.status-light i, .live-dot i { width: 6px; height: 6px; background: var(--red-bright); border-radius: 50%; display: inline-block; box-shadow: 0 0 9px var(--red-bright); animation: pulse 1.7s ease-in-out infinite; }
.desk-scene { position: absolute; inset: 9% 0 7%; z-index: 0; perspective: 1000px; overflow: hidden; opacity: .95; }
.desk-grid { position: absolute; inset: 53% -10% -10%; transform: rotateX(58deg); transform-origin: center top; background: linear-gradient(90deg, rgba(114,87,52,.11) 1px, transparent 1px), linear-gradient(rgba(114,87,52,.08) 1px, transparent 1px), radial-gradient(ellipse at 53% 0, #3a2c1b, #16130f 58%, #090908); background-size: 50px 50px, 50px 50px, auto; box-shadow: 0 -25px 60px rgba(0,0,0,.85); }
.desk-grid::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.68)); }
.folder, .document, .photo, .recorder, .desk-stamp { position: absolute; box-shadow: 0 24px 35px rgba(0,0,0,.5); }
.folder { background: #21180f; border: 1px solid #5a3b24; color: #b28e61; }
.folder--back { width: min(40vw, 430px); height: min(53vw, 560px); left: 27%; top: 13%; transform: rotate(-7deg) skewY(2deg); padding: 32px; }
.folder--back::before { content: ''; position: absolute; inset: 13px; border: 1px solid rgba(170,118,68,.35); }
.folder--back b { position: absolute; font-size: clamp(54px, 12vw, 112px); line-height: 1; font-weight: 400; left: 23px; bottom: 38px; opacity: .56; }
.folder--back span { position: absolute; bottom: 29px; right: 25px; writing-mode: vertical-rl; letter-spacing: .25em; font-size: 11px; }
.document { background: #b9b09f; color: #2c2924; padding: 18px; font-size: 10px; line-height: 1.25; }
.document::after { content: ''; position: absolute; inset: 13px; border: 1px solid rgba(38,35,31,.35); }
.document span, .document small { display: block; position: relative; z-index: 1; }
.document small { margin-top: 22px; font-size: 7px; }
.document--left { width: min(24vw, 240px); height: min(28vw, 285px); left: 4%; top: 35%; transform: rotate(11deg); background: #938f83; opacity: .88; }
.document--center { width: min(25vw, 260px); height: min(30vw, 300px); right: 7%; top: 21%; transform: rotate(8deg); background: #cbc3af; }
.photo { width: min(17vw, 180px); height: min(14vw, 140px); background: #4b4841; border: 8px solid #c7bdab; color: #342e27; font-size: 7px; padding: 6px; }
.photo i { display: block; height: 80%; margin-top: 5px; background: repeating-linear-gradient(145deg, #161616 0 6px, #555 7px 9px, #222 10px 15px); opacity: .75; filter: blur(1px); }
.photo--one { left: 14%; top: 11%; transform: rotate(-14deg); }
.photo--two { right: 19%; bottom: 10%; transform: rotate(-10deg); }
.recorder { width: min(22vw, 210px); height: min(31vw, 292px); right: 30%; bottom: 0; transform: rotate(6deg); background: linear-gradient(120deg, #282828, #0e0e0e); border: 1px solid #414141; border-radius: 12px; padding: 32px 22px 20px; }
.recorder::before { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #6c1111; box-shadow: 0 0 8px #e21a1a; top: 14px; left: 50%; transform: translateX(-50%); }
.recorder__screen { border: 1px solid #4d5940; color: #a9be87; background: #121811; padding: 10px 5px; text-align: center; font-size: clamp(9px, 1.2vw, 13px); letter-spacing: .12em; }
.recorder__buttons { display: flex; justify-content: center; gap: 13px; margin-top: 26px; }
.recorder__buttons b { width: 14px; height: 14px; border: 1px solid #777; border-radius: 50%; background: #1b1b1b; }
.recorder > span { position: absolute; bottom: 11px; left: 0; right: 0; text-align: center; color: #666; font-size: 6px; letter-spacing: .18em; }
.red-thread { position: absolute; background: var(--red); height: 2px; box-shadow: 0 0 8px rgba(139,0,0,.7); transform-origin: left center; opacity: .8; }
.red-thread--one { width: 61%; left: 17%; top: 40%; transform: rotate(13deg); }
.red-thread--two { width: 42%; left: 31%; top: 51%; transform: rotate(-15deg); }
.desk-stamp { left: 6%; bottom: 13%; color: var(--red-bright); border: 2px solid var(--red); width: 74px; height: 74px; border-radius: 50%; display: grid; place-content: center; text-align: center; transform: rotate(-17deg); font-size: 9px; line-height: 1.25; opacity: .7; }
.landing__copy { position: relative; z-index: 2; width: min(730px, 87vw); margin: auto auto 16vh; padding-left: 5px; }
.copy-line { min-height: 1.3em; color: #e6e0d3; font-size: clamp(19px, 3vw, 34px); letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 15px rgba(0,0,0,.7); }
.copy-line--muted { color: var(--red-bright); font-size: clamp(13px, 1.8vw, 18px); margin-top: 13px; }
.enter-button { align-self: flex-start; position: relative; z-index: 2; margin-left: 5px; margin-bottom: 2vh; padding: 13px 18px 13px 13px; background: transparent; border: 1px solid #6f241f; color: #e2d9ce; font-size: 12px; letter-spacing: .15em; transition: .25s; }
.enter-button::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(139,0,0,.35); pointer-events: none; }
.enter-button:hover { background: rgba(139,0,0,.15); border-color: var(--red-bright); }
.enter-button__mark { color: var(--red-bright); font-size: 19px; margin-right: 9px; vertical-align: -2px; }
.enter-button__cursor { color: var(--red-bright); animation: blink .9s steps(1) infinite; }

/* Application */
.case-app { min-height: 100svh; background: var(--bg); }
.topbar { min-height: 74px; border-bottom: 1px solid var(--line); padding: 0 5vw; display: flex; justify-content: space-between; align-items: center; background: rgba(9,9,9,.9); }
.brand { display: flex; align-items: center; gap: 13px; background: transparent; text-align: left; }
.brand__mark { width: 30px; height: 30px; border: 1px solid var(--red); color: var(--red-bright); display: grid; place-items: center; font-size: 21px; line-height: 1; }
.brand b, .brand small { display: block; font-size: 10px; letter-spacing: .17em; }
.brand b { color: var(--text); }
.brand small { color: var(--muted); margin-top: 3px; font-size: 8px; }
.topbar__right { display: flex; align-items: center; gap: 17px; color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.live-dot { display: flex; align-items: center; gap: 6px; }
.progress-mini { width: 76px; height: 3px; background: #292929; }
.progress-mini span { display: block; width: 0; height: 100%; background: var(--red-bright); transition: width .4s; }
.progress-value { color: var(--text); min-width: 29px; }
.case-nav { padding: 0 5vw; display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: #0c0c0c; }
.case-nav::-webkit-scrollbar { display: none; }
.nav-tab { flex: 0 0 auto; background: transparent; padding: 18px 24px 15px 0; margin-right: 28px; color: var(--muted); font-size: 10px; letter-spacing: .15em; position: relative; transition: color .2s; }
.nav-tab span { color: #54524d; margin-right: 7px; }
.nav-tab::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--red-bright); transition: width .25s; }
.nav-tab.is-active, .nav-tab:hover { color: var(--text); }
.nav-tab.is-active::after { width: 52px; }
.app-shell { display: flex; min-height: calc(100svh - 126px); }
.case-rail { width: 74px; flex: 0 0 74px; border-right: 1px solid var(--line); position: relative; display: flex; flex-direction: column; align-items: center; color: var(--faint); padding-top: 29px; }
.case-rail__pin { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--red); margin-bottom: 18px; box-shadow: 0 0 13px rgba(139,0,0,.7); }
.case-rail__label { font-size: 8px; letter-spacing: .2em; line-height: 1.6; text-align: center; }
.case-rail__number { margin-top: auto; margin-bottom: 28px; color: #3f3e3a; font-size: 15px; line-height: 1.55; text-align: center; letter-spacing: .1em; }
.case-rail__vertical { writing-mode: vertical-rl; transform: rotate(180deg); position: absolute; bottom: 178px; font-size: 7px; letter-spacing: .17em; }
.content-wrap { max-width: 1260px; width: 100%; margin: 0 auto; padding: 0 5vw 70px; }
.case-section { display: none; padding-top: clamp(40px, 7vw, 82px); position: relative; isolation: isolate; }
.case-section.is-visible { display: block; }
.case-section::before { content: ''; position: absolute; z-index: -1; pointer-events: none; top: 18px; right: -2vw; width: min(52vw, 620px); height: 250px; opacity: .16; background-position: center; background-size: cover; filter: grayscale(1) contrast(1.25); -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 82%, transparent), linear-gradient(180deg, #000 58%, transparent); mask-image: linear-gradient(90deg, transparent, #000 35%, #000 82%, transparent), linear-gradient(180deg, #000 58%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
#section-evidence::before { background-image: url('assets/section-evidence-detective.jpg'); background-position: center 38%; }
#section-timeline::before { background-image: url('assets/section-timeline-egor.jpg'); background-position: center 45%; }
#section-audio::before { background-image: url('assets/section-audio-new.png'); background-position: center 44%; }
#section-dossier::before { background-image: url('assets/section-dossier-detective.jpg'); background-position: center 35%; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 41px; }
.eyebrow { color: var(--red-bright); font-size: 9px; letter-spacing: .19em; margin: 0 0 11px; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 74px); font-weight: 400; letter-spacing: -.045em; line-height: 1; text-transform: uppercase; }
.section-note { color: var(--muted); font-size: 10px; line-height: 1.8; text-align: right; margin: 0 0 4px; }
.evidence-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.evidence-card { min-height: 285px; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; cursor: pointer; transition: border-color .25s, transform .25s; }
.evidence-card:hover { border-color: #6b2b27; transform: translateY(-4px); }
.evidence-card:nth-child(1) { grid-column: span 7; }
.evidence-card:nth-child(2) { grid-column: span 5; }
.evidence-card:nth-child(3) { grid-column: span 4; }
.evidence-card:nth-child(4) { grid-column: span 4; }
.evidence-card:nth-child(5) { grid-column: span 4; }
.evidence-card:nth-child(n+6) { grid-column: span 4; min-height: 260px; }
.evidence-card__visual { position: absolute; inset: 0; overflow: hidden; background-size: cover !important; background-position: center !important; filter: grayscale(.75) contrast(1.12) brightness(.68); transition: filter .25s, transform .4s; }
.evidence-card:hover .evidence-card__visual { filter: grayscale(.25) contrast(1.08) brightness(.82); transform: scale(1.025); }
.evidence-card__visual::before, .modal-art::before, .modal-art::after { display: none !important; }
.evidence-card__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 37%, rgba(0,0,0,.9)); }
.evidence-card__info { position: absolute; z-index: 1; inset: auto 18px 17px; }
.evidence-card__num { color: var(--red-bright); font-size: 9px; letter-spacing: .18em; }
.evidence-card h3 { margin: 5px 0 3px; font-size: 15px; font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }
.evidence-card p { margin: 0; color: var(--muted); font-size: 10px; }
.visual-photo { background: radial-gradient(circle at 48% 45%, #7f7765 0 5%, transparent 6%), radial-gradient(ellipse at 52% 66%, #262421 0 24%, transparent 25%), linear-gradient(145deg, #787263, #25231f 55%, #111); }
.visual-photo::before { content: ''; position: absolute; width: 30%; height: 73%; left: 38%; top: 12%; background: #a99b82; opacity: .28; clip-path: polygon(33% 0, 72% 0, 100% 24%, 80% 100%, 12% 100%, 0 28%); filter: blur(3px); }
.visual-card { background: #c1b6a2; }
.visual-card::before { content: 'ПРОПУСК\A 29.06.2022'; white-space: pre; position: absolute; top: 27%; left: 20%; border: 1px solid #40372b; padding: 15px; transform: rotate(-7deg); color: #352d23; font-size: 12px; line-height: 1.5; }
.visual-card::after { background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.58)); }
.visual-taxi { background: linear-gradient(164deg, transparent 0 42%, #b8ab89 43% 57%, transparent 58%), linear-gradient(30deg, #161616, #544f42); }
.visual-taxi::before { content: 'KIA\A RIO'; white-space: pre; position: absolute; top: 20%; right: 14%; color: #e4dcc5; opacity: .6; font-size: 15px; line-height: 1.4; transform: rotate(10deg); }
.visual-note { background: #aaa18e; }
.visual-note::before { content: '...не надо было\A оставаться одному'; white-space: pre; position: absolute; top: 27%; left: 13%; color: #29251f; font-family: cursive; font-size: 18px; transform: rotate(-5deg); }
.visual-glasses { background: radial-gradient(ellipse at 33% 78%, rgba(177,165,142,.32) 0 9%, transparent 10%), radial-gradient(ellipse at 68% 78%, rgba(177,165,142,.32) 0 9%, transparent 10%), linear-gradient(145deg, #292724, #0d0d0d); }
.visual-glasses::before { content: ''; position: absolute; width: 45px; height: 92px; left: 27%; top: 20%; border: 2px solid #8c8373; border-top-width: 5px; border-radius: 4px 4px 18px 18px; box-shadow: 130px 12px 0 -2px #181715, 130px 12px 0 0 #8c8373; transform: rotate(-3deg); opacity: .72; }
.visual-tape { background: repeating-linear-gradient(155deg, #252525 0 12px, #171717 13px 25px); }
.visual-tape::before, .visual-tape::after { content: ''; position: absolute; border: 10px solid #645b4b; border-radius: 50%; width: 44px; height: 44px; top: 30%; box-shadow: inset 0 0 0 7px #211f1b; }
.visual-tape::before { left: 28%; }.visual-tape::after { right: 28%; }
.evidence-card__open { position: absolute; top: 15px; right: 16px; color: #d4cfc2; opacity: .7; font-size: 17px; z-index: 1; }
.lock-mark { display: inline-block; width: 11px; height: 9px; border: 1px solid #8d8a83; border-radius: 1px; position: relative; vertical-align: middle; }
.lock-mark::before { content: ''; position: absolute; left: 2px; top: -7px; width: 5px; height: 7px; border: 1px solid #8d8a83; border-bottom: 0; border-radius: 5px 5px 0 0; }
.timeline-handle .lock-mark { transform: scale(.82); }
.evidence-howto { margin: 0 0 18px; border: 1px solid var(--line); background: rgba(16,16,16,.82); padding: 12px 15px; display: flex; gap: 11px; align-items: flex-start; color: var(--muted); }
.evidence-howto__mark { width: 17px; height: 17px; border: 1px solid var(--faint); border-radius: 50%; display: grid; place-items: center; color: var(--faint); font-size: 10px; flex: 0 0 auto; }
.evidence-howto b, .evidence-howto small { display: block; }.evidence-howto b { color: var(--text); font-size: 9px; letter-spacing: .1em; }.evidence-howto small { margin-top: 3px; font-size: 10px; line-height: 1.55; }
.section-next { border-top: 1px solid var(--line); margin-top: 37px; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-size: 9px; letter-spacing: .15em; }
.text-link { color: #c6c1b7; background: transparent; font-size: 9px; letter-spacing: .14em; padding: 0; transition: color .2s; }.text-link:hover { color: var(--red-bright); }.text-link b { color: var(--red-bright); font-size: 15px; margin-left: 7px; }.text-link--muted { color: var(--faint); }

/* Timeline */
.timeline-instruction { border: 1px solid var(--line); padding: 13px 16px; display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 11px; margin-bottom: 25px; }
.instruction-mark { width: 17px; height: 17px; border: 1px solid var(--faint); border-radius: 50%; display: grid; place-items: center; color: var(--faint); font-size: 10px; flex: 0 0 auto; }
.timeline-hint { margin-left: auto; color: var(--faint); font-size: 8px; letter-spacing: .12em; }
.timeline-list { display: flex; flex-direction: column; gap: 8px; max-width: 870px; }
.timeline-card { border: 1px solid var(--line); background: var(--panel); min-height: 78px; display: grid; grid-template-columns: 49px 58px minmax(210px, 1fr) 160px 128px; align-items: center; gap: 8px; cursor: grab; user-select: none; transition: border-color .2s, background .2s, transform .2s; }
.timeline-card:not(.is-heard) { opacity: .58; cursor: default; }
.timeline-audio { background: #171313; color: var(--red-bright); border: 1px solid #56302c; align-self: center; justify-self: stretch; padding: 9px 7px; font-size: 7px; letter-spacing: .04em; min-width: 0; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s, border-color .2s; }
.timeline-audio:hover:not(:disabled) { background: #2a1717; border-color: var(--red-bright); }
.timeline-audio:disabled { color: var(--faint); cursor: not-allowed; }
.timeline-card:active { cursor: grabbing; }.timeline-card.is-dragging { opacity: .45; border-color: var(--red); }.timeline-card.is-selected { border-color: var(--red-bright); background: #1a1110; }
.timeline-handle { color: #57534e; font-size: 18px; padding-left: 17px; letter-spacing: -2px; }.timeline-index { color: var(--red-bright); font-size: 11px; }.timeline-card__main b, .timeline-card__main small, .timeline-card__time b, .timeline-card__time small { display: block; }.timeline-card__main b { font-size: 13px; font-weight: 400; }.timeline-card__main small, .timeline-card__time small { font-size: 8px; color: var(--muted); margin-top: 3px; }.timeline-card__time { color: #c1b9a8; }.timeline-card__time b { font-size: 11px; font-weight: 400; }.timeline-mark { color: var(--faint); font-size: 10px; }
.timeline-actions { margin-top: 25px; display: flex; align-items: center; gap: 19px; }.action-button { display: inline-flex; align-items: center; gap: 18px; background: var(--red); border: 1px solid #b51c18; color: #eee6dc; padding: 13px 16px; font-size: 9px; letter-spacing: .13em; transition: .2s; }.action-button:hover { background: #a20e0e; }.action-button span { font-size: 16px; }.action-result { color: var(--red-bright); font-size: 10px; }
.unlock-banner { margin-top: 36px; border: 1px solid #3d2b27; background: rgba(106,22,18,.12); padding: 17px 20px; display: flex; align-items: center; gap: 14px; animation: fadeUp .4s both; }.unlock-icon { width: 24px; height: 24px; border: 1px solid var(--red-bright); color: var(--red-bright); border-radius: 50%; display: grid; place-items: center; }.unlock-banner > span:nth-child(2) { flex: 1; }.unlock-banner b, .unlock-banner small { display: block; }.unlock-banner b { color: #d9d0c4; font-size: 10px; letter-spacing: .08em; }.unlock-banner small { color: var(--muted); font-size: 9px; margin-top: 2px; }

/* Map */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(230px, .75fr); gap: 14px; }.samara-map { min-height: 490px; border: 1px solid var(--line); position: relative; overflow: hidden; background: #121817; }.map-reference { margin: 14px 0 0; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; min-height: 220px; }.map-reference img { display: block; width: 100%; height: auto; max-height: 430px; object-fit: contain; object-position: center; filter: grayscale(.55) contrast(1.08) brightness(.68); }.map-reference figcaption { position: absolute; left: 14px; bottom: 12px; color: #ddd6ca; background: rgba(0,0,0,.7); padding: 5px 8px; font-size: 9px; letter-spacing: .1em; }
.leaflet-map { position: absolute; inset: 0; z-index: 1; filter: grayscale(1) invert(.88) hue-rotate(155deg) brightness(.42) contrast(1.35); }
.leaflet-control-zoom { filter: invert(1); }
.case-map-label { background: #0b0b0b; color: #e1d9cd; border: 1px solid #8b0000; border-radius: 0; box-shadow: none; font: 8px var(--mono); letter-spacing: .06em; }
.case-map-label::before { border-top-color: #8b0000 !important; }
.map-water, .map-road, .map-label, .map-coordinate, .route-line { display: none; }
.map-water { position: absolute; inset: -20% 57% -15% -10%; background: #172425; transform: rotate(-7deg); border-right: 1px solid #334744; }.map-water::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(175deg, transparent 0 28px, rgba(69,101,97,.18) 29px 30px); }.map-road { position: absolute; height: 1px; background: rgba(155,148,124,.35); transform-origin: left center; }.road--one { width: 100%; left: 4%; top: 36%; transform: rotate(14deg); }.road--two { width: 80%; left: 23%; top: 59%; transform: rotate(-25deg); }.road--three { width: 87%; left: 11%; top: 73%; transform: rotate(6deg); }.road--four { width: 55%; left: 40%; top: 20%; transform: rotate(69deg); }.road--five { width: 70%; left: 42%; top: 50%; transform: rotate(42deg); }.map-label { position: absolute; color: #717c70; font-size: 8px; letter-spacing: .18em; }.label--volga { left: 8%; top: 15%; writing-mode: vertical-rl; transform: rotate(23deg); }.label--center { left: 53%; top: 40%; }.label--station { right: 7%; top: 15%; font-size: 7px; }.map-coordinate { position: absolute; top: 14px; left: 17px; color: #667269; font-size: 8px; line-height: 1.45; z-index: 1; }.route-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }.route-line path { fill: none; stroke: var(--red-bright); stroke-width: 2; stroke-dasharray: 7 8; opacity: 0; transition: opacity .4s; filter: drop-shadow(0 0 4px rgba(189,25,25,.7)); }.route-line.is-active path { opacity: .8; }.map-point { position: absolute; z-index: 3; display: flex; align-items: flex-start; gap: 9px; text-align: left; background: transparent; color: var(--text); }.map-point i { width: 14px; height: 14px; margin-top: 1px; border: 1px solid var(--red-bright); border-radius: 50%; background: #130b0b; box-shadow: 0 0 0 5px rgba(139,0,0,.1), 0 0 10px rgba(139,0,0,.45); position: relative; flex: 0 0 auto; }.map-point i::after { content: ''; position: absolute; inset: 4px; background: var(--red-bright); border-radius: 50%; }.map-point span { font-size: 9px; letter-spacing: .05em; }.map-point b, .map-point small { display: block; }.map-point b { color: var(--red-bright); font-size: 8px; margin-bottom: 3px; }.map-point small { color: var(--muted); font-size: 7px; margin-top: 2px; }.map-point:hover i { box-shadow: 0 0 0 8px rgba(139,0,0,.16), 0 0 17px rgba(189,25,25,.7); }.map-point--restaurant { left: 17%; top: 63%; }.map-point--club { left: 54%; top: 30%; }.map-point--hospital { left: 68%; top: 73%; }.map-point.is-locked { filter: grayscale(1); opacity: .4; cursor: not-allowed; }.map-point.is-found i { animation: pulse 1.4s infinite; }.map-crosshair { position: absolute; right: 23px; bottom: 19px; color: #677269; border: 1px solid #39443f; width: 24px; height: 24px; display: grid; place-items: center; font-size: 17px; }.map-sidebar { border: 1px solid var(--line); background: var(--panel); padding: 24px 20px; }.route-status { padding: 14px 0 20px; color: var(--muted); font-size: 10px; line-height: 1.8; border-bottom: 1px solid var(--line); }.route-status b { color: var(--red-bright); font-weight: 400; }.route-list { list-style: none; padding: 0; margin: 0; }.route-list li { display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); color: var(--faint); }.route-list li > span { color: var(--faint); font-size: 10px; }.route-list li b, .route-list li small { display: block; grid-column: 2; font-weight: 400; }.route-list li b { font-size: 10px; }.route-list li small { font-size: 8px; margin-top: 3px; }.route-list li.is-done { color: var(--text); }.route-list li.is-done > span, .route-list li.is-done small { color: var(--red-bright); }.map-legend { margin-top: 21px; color: var(--faint); font-size: 8px; line-height: 2.2; }.map-legend span { display: block; }.legend-dot { display: inline-block; width: 6px; height: 6px; border: 1px solid var(--red-bright); border-radius: 50%; margin-right: 7px; }.legend-line { display: inline-block; width: 20px; height: 1px; border-top: 1px dashed var(--red-bright); margin-right: 7px; vertical-align: middle; }

/* Audio */
.audio-intro { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 17px 0; display: flex; align-items: center; gap: 15px; color: var(--muted); }.audio-intro b, .audio-intro small { display: block; }.audio-intro b { font-size: 10px; color: #d2c9bd; font-weight: 400; letter-spacing: .11em; }.audio-intro small { font-size: 8px; margin-top: 4px; }.tape-reel { width: 37px; height: 37px; border-radius: 50%; border: 1px solid #766e60; background: radial-gradient(circle, #24211c 0 5px, transparent 6px), conic-gradient(from 10deg, #5c5244 0 15deg, transparent 15deg 45deg, #5c5244 45deg 60deg, transparent 60deg 90deg, #5c5244 90deg 105deg, transparent 105deg 135deg, #5c5244 135deg 150deg, transparent 150deg 180deg, #5c5244 180deg 195deg, transparent 195deg 225deg, #5c5244 225deg 240deg, transparent 240deg 270deg, #5c5244 270deg 285deg, transparent 285deg 315deg, #5c5244 315deg 330deg, transparent 330deg); flex: 0 0 auto; }.audio-waveform { margin-left: auto; color: var(--red-bright); letter-spacing: 3px; font-size: 17px; opacity: .65; }.audio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }.audio-card { border: 1px solid var(--line); background: var(--panel); padding: 19px; display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; min-height: 126px; }.audio-card.is-locked { opacity: .4; }.audio-play { width: 36px; height: 36px; border: 1px solid var(--red); background: transparent; color: var(--red-bright); border-radius: 50%; font-size: 15px; display: grid; place-items: center; }.audio-card.is-playing .audio-play { background: var(--red); color: #eee; }.audio-card b, .audio-card small, .audio-card p { display: block; }.audio-card b { font-size: 11px; font-weight: 400; }.audio-card small { font-size: 8px; color: var(--red-bright); margin-top: 4px; letter-spacing: .11em; }.audio-card p { color: var(--muted); font-size: 9px; margin: 9px 0 0; line-height: 1.55; }.audio-time { align-self: start; color: var(--faint); font-size: 9px; }.audio-progress { grid-column: 2 / -1; height: 2px; background: #292929; }.audio-progress span { display: block; width: 0; height: 100%; background: var(--red-bright); }

/* Dossier */
.dossier-card { border: 1px solid var(--line); background: var(--panel); padding: 29px; display: grid; grid-template-columns: 225px 1fr; gap: 32px; position: relative; overflow: hidden; }.dossier-card::before { content: 'CONFIDENTIAL / 29-06-2022-RS'; position: absolute; top: 18px; right: -39px; color: #312726; font-size: 8px; letter-spacing: .13em; transform: rotate(42deg); }.dossier-photo { height: 294px; background: linear-gradient(145deg, #302d29, #141414); border: 1px solid #3d3932; position: relative; overflow: hidden; display: grid; place-items: center; }.dossier-photo::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(92deg, transparent 0 6px, rgba(139,0,0,.13) 7px 8px); }.silhouette-head { position: absolute; width: 73px; height: 94px; border-radius: 45% 45% 40% 40%; background: #050505; top: 36px; filter: blur(2px); }.silhouette-body { position: absolute; width: 154px; height: 140px; border-radius: 51% 51% 0 0; background: #050505; top: 123px; filter: blur(3px); }.dossier-photo span { z-index: 1; margin-top: 238px; border: 1px solid var(--red); color: var(--red-bright); padding: 5px 8px; font-size: 8px; line-height: 1.4; text-align: center; transform: rotate(-9deg); }.dossier-fields { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 0 26px; padding-top: 19px; }.dossier-field { border-bottom: 1px solid var(--line); padding: 14px 0 13px; min-height: 65px; position: relative; }.dossier-field span, .dossier-field b { display: block; }.dossier-field span { color: var(--faint); font-size: 8px; letter-spacing: .14em; }.dossier-field b { color: #d9d1c5; font-size: 12px; font-weight: 400; margin-top: 5px; }.dossier-field--redacted b { color: var(--red-bright); letter-spacing: .07em; }.dossier-field button { position: absolute; right: 0; bottom: 11px; background: transparent; color: var(--faint); font-size: 7px; letter-spacing: .08em; }.dossier-field button:hover { color: var(--red-bright); }.dossier-stamp { position: absolute; right: 26px; bottom: 24px; border: 2px solid var(--red); color: var(--red-bright); padding: 7px 12px; font-size: 9px; line-height: 1.25; text-align: center; transform: rotate(-9deg); opacity: .75; }.case-ending { margin-top: 75px; border-top: 1px solid var(--red); padding: 35px 0 0; max-width: 760px; animation: fadeUp .6s both; }.case-ending h2 { font-size: clamp(27px, 4vw, 48px); font-weight: 400; line-height: 1.18; margin: 0; text-transform: uppercase; letter-spacing: -.03em; }.case-ending h2 em { color: var(--red-bright); font-style: normal; }.case-ending > p:not(.eyebrow) { color: var(--muted); font-size: 10px; max-width: 480px; margin: 20px 0 26px; }.ending-actions { display: flex; align-items: center; gap: 24px; }.qr-box { width: 78px; height: 78px; border: 1px solid #47423a; padding: 8px; position: relative; background: #ded7c8; }.qr-grid { width: 100%; height: 100%; background: linear-gradient(90deg, #151515 12%, transparent 12% 25%, #151515 25% 39%, transparent 39% 54%, #151515 54% 63%, transparent 63% 75%, #151515 75%), linear-gradient(#151515 12%, transparent 12% 26%, #151515 26% 40%, transparent 40% 52%, #151515 52% 67%, transparent 67% 82%, #151515 82%); mix-blend-mode: multiply; }.qr-box span { position: absolute; bottom: -15px; left: 0; color: var(--faint); font-size: 7px; }.case-footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 8px; letter-spacing: .13em; display: flex; justify-content: space-between; padding: 16px 5vw 22px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0,0,0,.83); padding: 25px; animation: fadeIn .2s both; }.evidence-modal { width: min(950px, 100%); max-height: min(760px, 90svh); overflow: auto; border: 1px solid #49322d; background: #111; display: grid; grid-template-columns: minmax(300px, 1.2fr) 1fr; position: relative; }.modal-close { position: absolute; z-index: 2; top: 9px; right: 13px; background: #111; color: #b8b0a3; font-size: 25px; line-height: 1; padding: 4px 8px; }.modal-art { min-height: 500px; background-color: #23211d; background-position: center; background-size: contain; background-repeat: no-repeat; position: relative; overflow: hidden; filter: grayscale(.45) contrast(1.08) brightness(.82); }.modal-copy { padding: 46px 36px 34px; }.modal-copy h2 { font-size: 29px; font-weight: 400; line-height: 1.2; text-transform: uppercase; margin: 0 0 18px; }.modal-copy > p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.8; }.modal-caption { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 13px; color: var(--faint); font-size: 8px; line-height: 1.7; }

@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } } @keyframes blink { 50% { opacity: 0; } } @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.dossier-photo--real img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.72); }
.dossier-photo--real span { position: absolute; right: 12px; bottom: 13px; margin: 0; }
.dossier-documents { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.dossier-documents button { min-height: 170px; border: 1px solid var(--line); background: #111; position: relative; overflow: hidden; padding: 0; }
.dossier-documents img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.1) brightness(.55); transition: .25s; }
.dossier-documents button:hover img { filter: grayscale(.55) contrast(1.05) brightness(.72); transform: scale(1.02); }
.dossier-documents span { position: absolute; left: 13px; bottom: 11px; z-index: 1; color: #ddd6ca; font-size: 9px; letter-spacing: .1em; background: rgba(0,0,0,.65); padding: 4px 7px; }
.route-evidence { margin-top: 14px; border: 1px solid var(--line); background: var(--panel); display: grid; grid-template-columns: minmax(240px, .85fr) 1.15fr; min-height: 270px; }
.route-evidence__image { position: relative; overflow: hidden; background: #111; padding: 0; border-right: 1px solid var(--line); }
.route-evidence__image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: top; filter: grayscale(.8) brightness(.62); transition: .3s; }
.route-evidence__image:hover img { filter: grayscale(.25) brightness(.78); transform: scale(1.025); }
.route-evidence__image span { position: absolute; bottom: 12px; right: 13px; color: #e2d8ca; background: rgba(0,0,0,.72); padding: 5px 8px; font-size: 8px; }
.route-evidence > div { padding: 30px; align-self: center; }
.route-evidence h2 { margin: 0 0 12px; font-size: 25px; font-weight: 400; text-transform: uppercase; }
.route-evidence p:not(.eyebrow) { color: var(--muted); font-size: 10px; max-width: 450px; }
.route-external { display: inline-block; margin-top: 19px; color: var(--red-bright); }

@media (max-width: 760px) {
  body { font-size: 12px; }.landing { padding: 20px 6vw 17px; }.landing__meta, .landing__footer { font-size: 8px; gap: 11px; }.landing__meta span:first-child, .landing__footer span:nth-child(2) { display: none; }.landing-video { object-position: 51% center; }.landing__copy { margin-bottom: 18vh; }.copy-line { font-size: clamp(17px, 5vw, 25px); }.copy-line--muted { font-size: 11px; }.enter-button { font-size: 10px; }.topbar { min-height: 65px; padding: 0 6vw; }.topbar__right { gap: 8px; font-size: 8px; }.live-dot { display: none; }.progress-mini { width: 52px; }.brand small { font-size: 7px; }.case-nav { padding: 0 6vw; }.nav-tab { padding-right: 16px; margin-right: 18px; font-size: 9px; }.app-shell { min-height: calc(100svh - 116px); }.case-rail { display: none; }.content-wrap { padding: 0 6vw 55px; }.case-section { padding-top: 38px; }.case-section::before { top: 4px; right: -6vw; width: 96vw; height: 190px; opacity: .1; }.section-heading { display: block; margin-bottom: 29px; }.section-note { text-align: left; margin-top: 15px; font-size: 9px; }.evidence-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }.evidence-card { min-height: 210px; }.evidence-card:nth-child(n) { grid-column: span 1; }.evidence-card:nth-child(1) { grid-column: span 2; min-height: 230px; }.evidence-card__info { inset: auto 12px 12px; }.evidence-card h3 { font-size: 11px; }.evidence-card p { font-size: 8px; }.timeline-instruction { align-items: flex-start; flex-wrap: wrap; font-size: 9px; }.timeline-hint { width: 100%; margin-left: 28px; margin-top: 3px; }.timeline-card { grid-template-columns: 24px 30px 1fr 65px; min-height: 92px; }.timeline-handle { padding-left: 6px; font-size: 11px; }.timeline-card__main b { font-size: 9px; line-height: 1.25; }.timeline-card__main small, .timeline-card__time small { font-size: 6px; }.timeline-card__time b { font-size: 8px; }.timeline-audio { grid-column: 3 / -1; border-left: 0; border-top: 1px solid var(--line); min-height: 28px; }.timeline-actions { display: block; }.action-result { display: block; margin-top: 10px; }.unlock-banner { align-items: flex-start; flex-wrap: wrap; padding: 15px; }.unlock-banner > span:nth-child(2) { flex: 1; min-width: 190px; }.unlock-banner .text-link { margin-left: 39px; }.map-layout { display: block; }.samara-map { min-height: 390px; }.map-sidebar { margin-top: 10px; padding: 17px; }.map-point span { font-size: 8px; }.map-point--restaurant { left: 11%; top: 62%; }.map-point--club { left: 48%; top: 29%; }.map-point--hospital { left: 63%; top: 73%; }.route-line { transform: scale(.8); transform-origin: center; }.audio-grid { grid-template-columns: 1fr; }.audio-card { min-height: 115px; padding: 14px; grid-template-columns: 42px 1fr auto; }.audio-card p { font-size: 8px; }.audio-waveform { display: none; }.dossier-card { grid-template-columns: 1fr; padding: 17px; gap: 21px; }.dossier-photo { height: 260px; }.dossier-fields { grid-template-columns: 1fr; padding-top: 0; }.dossier-stamp { right: 13px; bottom: 13px; }.case-ending { margin-top: 53px; }.case-ending h2 { font-size: 28px; }.ending-actions { align-items: flex-start; flex-wrap: wrap; }.case-footer { padding: 14px 6vw 20px; font-size: 7px; }.case-footer span:nth-child(2) { display: none; }.evidence-modal { grid-template-columns: 1fr; max-height: 90svh; }.modal-art { min-height: 270px; max-height: 48vh; }.modal-copy { padding: 28px 22px 24px; }.modal-copy h2 { font-size: 24px; }.modal-caption { margin-top: 20px; }
}

/* Final visual corrections */
.case-section { animation: none; }
#section-map::before { background-image: url('assets/section-map-new.jpg'); background-position: center 42%; opacity: .16; }
.map-reference { display: none; }
.modal-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.75; color: #aaa69f; }
.modal-caption { font-size: 10px; line-height: 1.65; }
.case-section.is-entering .section-heading h1,
.case-section.is-entering .section-heading h1::after,
.case-section.is-entering .eyebrow { animation: none; }

@media (max-width: 760px) {
  .route-evidence { grid-template-columns: 1fr; }
  .route-evidence__image { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .route-evidence > div { padding: 20px; }
  .dossier-documents { grid-template-columns: 1fr; }
  .modal-copy > p:not(.eyebrow) { font-size: 14px; }
  .modal-caption { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .landing-video { display: none; } }

.modal-art { cursor: zoom-in; transition: background-size .25s, filter .25s; }
.modal-art.is-zoomed { background-size: 100% auto; cursor: zoom-out; filter: grayscale(.15) contrast(1.04) brightness(.9); }

/* Refined evidence, map and finale interactions */
.evidence-card__visual.visual-tape::before, .evidence-card__visual.visual-tape::after { display: none !important; }
.case-map-marker-wrap { background: transparent; border: 0; }
.case-map-marker { display: flex; align-items: flex-start; gap: 9px; color: var(--text); text-shadow: 0 2px 5px #000, 0 0 8px #000; white-space: nowrap; }
.case-map-marker i { width: 15px; height: 15px; border: 1px solid var(--red-bright); border-radius: 50%; background: #130b0b; box-shadow: 0 0 0 5px rgba(139,0,0,.13), 0 0 10px rgba(139,0,0,.55); position: relative; flex: 0 0 auto; }
.case-map-marker i::after { content: ''; position: absolute; inset: 4px; background: var(--red-bright); border-radius: 50%; }
.case-map-marker span { font-size: 9px; letter-spacing: .05em; }
.case-map-marker b, .case-map-marker small { display: block; }
.case-map-marker b { color: var(--red-bright); font-size: 8px; }
.case-map-marker small { color: #b1aaa0; font-size: 7px; }
.case-map-marker.is-locked { filter: grayscale(1); opacity: .45; }
.case-map-marker.is-found i { animation: pulse 1.4s infinite; }
.leaflet-map { filter: none; }
.leaflet-tile-pane { filter: grayscale(1) invert(.88) hue-rotate(155deg) brightness(.42) contrast(1.35); }
.dossier-documents--single { grid-template-columns: minmax(280px, 620px); }
.dossier-documents button.is-locked { cursor: not-allowed; }
.dossier-documents button.is-locked img { filter: grayscale(1) brightness(.2) blur(2px); }
.dossier-documents button.is-locked::after { content: 'ЗАКРЫТО'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; letter-spacing: .14em; color: #aaa69d; background: rgba(0,0,0,.42); }
.modal-gallery { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 12px; padding: 7px 9px; background: rgba(0,0,0,.82); border: 1px solid #59413b; }
.modal-gallery button { width: 34px; height: 30px; background: #1b1111; border: 1px solid #6f2722; color: #eee; }
.modal-gallery span { min-width: 42px; text-align: center; font-size: 9px; }
.completion-modal { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.88); }
.completion-modal__card { width: min(520px, 100%); border: 1px solid #70322c; background: #111; padding: 38px; text-align: center; box-shadow: 0 0 70px rgba(139,0,0,.22); animation: fadeUp .4s both; }
.completion-modal__card .unlock-icon { margin: 0 auto 18px; }
.completion-modal__card h2 { margin: 0 0 14px; font-size: 29px; font-weight: 400; text-transform: uppercase; }
.completion-modal__card > p:not(.eyebrow) { color: var(--muted); margin: 0 0 25px; }

.evidence-card.is-locked { opacity: .32; cursor: not-allowed; filter: grayscale(1); }
.evidence-card.is-guided { animation: guidedPulse .75s ease-in-out 3; border-color: var(--red-bright); }
.progress-guidance { margin: 18px 0 0; border: 1px solid #5a302b; background: rgba(139,0,0,.1); padding: 13px 15px; display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.progress-guidance b { color: var(--red-bright); font-size: 8px; letter-spacing: .12em; white-space: nowrap; }
.progress-guidance span { flex: 1; }
.progress-guidance button { background: transparent; color: #ded6ca; font-size: 8px; letter-spacing: .1em; white-space: nowrap; }
.audio-time { align-self: start; color: var(--faint); font-size: 9px; white-space: nowrap; }
.audio-time i { color: var(--red-bright); font-style: normal; }
.audio-seek { grid-column: 2 / -1; width: 100%; height: 18px; margin: 0; accent-color: var(--red-bright); background: transparent; cursor: ew-resize; }
.audio-seek::-webkit-slider-runnable-track { height: 3px; background: #35302e; }
.audio-seek::-webkit-slider-thumb { margin-top: -5px; width: 13px; height: 13px; border-radius: 50%; background: var(--red-bright); }
.magnifier-toggle { position: absolute; left: 14px; top: 14px; z-index: 4; border: 1px solid #67413b; background: rgba(0,0,0,.78); color: #ded6ca; padding: 8px 10px; font-size: 8px; letter-spacing: .1em; }
.magnifier-toggle.is-active { background: var(--red); border-color: var(--red-bright); }
.magnifier-lens { position: absolute; z-index: 3; width: 190px; height: 190px; border: 3px solid #d9d0c4; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; background-repeat: no-repeat; background-size: 1100px auto; box-shadow: 0 0 0 5px rgba(0,0,0,.65), 0 15px 35px rgba(0,0,0,.75); }
.modal-art.has-magnifier { cursor: none; }
.case-toast { position: fixed; z-index: 50; left: 50%; bottom: 25px; transform: translateX(-50%); width: min(680px, calc(100% - 30px)); border: 1px solid #74342e; background: rgba(13,13,13,.97); box-shadow: 0 15px 50px rgba(0,0,0,.7); padding: 14px 16px; display: flex; align-items: center; gap: 15px; color: #cfc8bd; font-size: 9px; line-height: 1.55; animation: fadeUp .3s both; }
.case-toast span { flex: 1; }.case-toast button { background: transparent; color: var(--red-bright); white-space: nowrap; font-size: 8px; letter-spacing: .11em; }
@keyframes guidedPulse { 50% { box-shadow: 0 0 0 4px rgba(189,25,25,.18), 0 0 30px rgba(189,25,25,.3); transform: translateY(-2px); } }

@media (max-width: 760px) {
  .case-nav { height: 51px; min-height: 51px; align-items: stretch; touch-action: pan-x; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
  .nav-tab { height: 51px; padding-top: 0; padding-bottom: 0; display: flex; align-items: center; line-height: 1; scroll-snap-align: start; touch-action: pan-x; }
  .dossier-photo { height: auto; aspect-ratio: 3 / 4; background: #111; }
  .dossier-photo--real img { object-fit: contain; object-position: center; }
  .timeline-card { grid-template-columns: 24px 28px minmax(0, 1fr) 86px; gap: 5px; padding: 8px 7px; }
  .timeline-card__time { text-align: right; }
  .timeline-audio { grid-column: 3 / -1; min-height: 34px; margin-top: 4px; font-size: 7px; text-overflow: clip; }
  .progress-guidance { align-items: flex-start; flex-wrap: wrap; }.progress-guidance b { width: 100%; }.progress-guidance button { margin-left: auto; }
  .magnifier-toggle { display: none; }.magnifier-lens { display: none !important; }
  .modal-art { background-size: contain; touch-action: manipulation; }
  .modal-art.is-zoomed { background-size: 180% auto; }
  .case-toast { bottom: 12px; align-items: flex-start; }
}

@media (pointer: fine) {
  body button, body a { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='13' cy='13' r='8' fill='none' stroke='%23d8d0c3' stroke-width='2'/%3E%3Cpath d='M19 19L29 29' stroke='%23bd1919' stroke-width='3'/%3E%3Ccircle cx='13' cy='13' r='2' fill='%23bd1919'/%3E%3C/svg%3E") 13 13, pointer; }
  body .evidence-card, body .modal-art { cursor: zoom-in; }
  body .modal-art.is-zoomed { cursor: zoom-out; }
  body button:disabled, body .evidence-card.is-locked { cursor: not-allowed; }
}

/* Noir mechanical motion system */
.section-heading h1 { position: relative; display: inline-block; }


.evidence-card::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 32%, rgba(224,215,197,.16) 48%, transparent 64%); transform: translateX(-130%); }
.evidence-card:active, .audio-play:active, .timeline-audio:active, .action-button:active, .text-link:active { transform: translateY(2px) scale(.985); }

.unlock-banner:not(.is-hidden) { position: relative; overflow: hidden; animation: documentUnlock .48s cubic-bezier(.2,.78,.24,1) both; }
.unlock-banner:not(.is-hidden)::after { content: 'РАССЕКРЕЧЕНО'; position: absolute; right: 18px; top: 50%; color: rgba(189,25,25,.68); border: 2px solid rgba(189,25,25,.7); padding: 4px 9px; font-size: 8px; letter-spacing: .13em; transform: translateY(-50%) rotate(-7deg); opacity: 0; pointer-events: none; animation: stampStrike 1.05s .16s both; }

#section-audio.is-visible .tape-reel { animation: reelTurn 3.8s linear infinite; }
.audio-card.is-playing { border-color: #6c302b; box-shadow: inset 3px 0 0 var(--red-bright), 0 0 24px rgba(139,0,0,.12); }
.audio-card.is-playing .audio-play { animation: recorderPulse 1.25s ease-in-out infinite; }
.audio-card.is-playing .audio-time i { animation: counterBlink 1s steps(1) infinite; }
.audio-play, .timeline-audio, .action-button, .text-link { transition: transform .1s, background-color .2s, border-color .2s, color .2s; }

.leaflet-overlay-pane svg path { animation: routeTrace 1.15s cubic-bezier(.28,.65,.2,1) both; }
.case-map-marker.is-found i::after { animation: markerSignal 1.25s ease-in-out infinite; }

.modal-backdrop:not(.is-hidden) { animation: darkroomFade .24s both; }
.modal-backdrop:not(.is-hidden) .evidence-modal { animation: apertureOpen .42s cubic-bezier(.18,.78,.2,1) both; transform-origin: center; }
.modal-backdrop:not(.is-hidden) .modal-art { animation: exposureDevelop .62s ease-out .12s both; }
.case-toast:not(.is-hidden) { animation: telegramStrip .38s cubic-bezier(.2,.75,.23,1) both; }

@keyframes archiveSheetIn { from { opacity: 0; transform: translateY(11px) skewY(.25deg); filter: contrast(1.35) brightness(.72); } 55% { opacity: 1; } to { transform: none; filter: none; } }
@keyframes typeReveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -12px 0 0); } }
@keyframes carriageBlink { 50% { opacity: 0; } }
@keyframes carriageOut { to { opacity: 0; } }
@keyframes archiveCodeIn { from { opacity: 0; letter-spacing: .4em; } to { opacity: 1; letter-spacing: .19em; } }
@keyframes evidencePlaced { from { opacity: 0; transform: translateY(18px) rotate(-.45deg) scale(.975); filter: brightness(.45); } 70% { opacity: 1; transform: translateY(-2px) rotate(.08deg) scale(1.004); } to { transform: none; filter: none; } }
@keyframes photoDevelop { 55%,100% { transform: translateX(130%); } 100% { opacity: 0; } }
@keyframes paperFeed { from { opacity: 0; transform: translateX(-13px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@keyframes cassetteLoad { from { opacity: 0; transform: translateY(9px) scale(.985); box-shadow: inset 0 0 30px #000; } to { opacity: 1; transform: none; box-shadow: none; } }
@keyframes dossierDrop { from { opacity: 0; transform: translateY(-16px) rotate(-.35deg) scale(1.015); } 72% { opacity: 1; transform: translateY(2px) rotate(.08deg); } to { transform: none; } }
@keyframes documentUnlock { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stampStrike { 0%,22% { opacity: 0; transform: translateY(-50%) scale(1.65) rotate(-12deg); filter: blur(2px); } 34% { opacity: .88; transform: translateY(-50%) scale(.94) rotate(-7deg); filter: none; } 43% { transform: translateY(-50%) scale(1.02) rotate(-7deg); } 70% { opacity: .72; } 100% { opacity: 0; transform: translateY(-50%) scale(1) rotate(-7deg); } }
@keyframes reelTurn { to { transform: rotate(360deg); } }
@keyframes recorderPulse { 50% { box-shadow: 0 0 0 5px rgba(189,25,25,.1), 0 0 17px rgba(189,25,25,.3); } }
@keyframes counterBlink { 50% { opacity: .62; } }
@keyframes routeTrace { 0% { stroke-dasharray: 1 900; stroke-dashoffset: 0; opacity: .25; } 72% { stroke-dasharray: 900 0; opacity: 1; } 100% { stroke-dasharray: 8 8; stroke-dashoffset: 0; opacity: .9; } }
@keyframes markerSignal { 50% { transform: scale(.55); opacity: .5; } }
@keyframes darkroomFade { from { background: rgba(0,0,0,0); } to { background: rgba(0,0,0,.83); } }
@keyframes apertureOpen { from { opacity: 0; clip-path: polygon(50% 46%,54% 50%,50% 54%,46% 50%); transform: scale(.96); } 72% { opacity: 1; clip-path: polygon(3% 0,97% 0,100% 94%,93% 100%,5% 98%,0 6%); } to { clip-path: inset(0); transform: none; } }
@keyframes exposureDevelop { from { filter: grayscale(1) contrast(1.8) brightness(.18); } to { filter: grayscale(.45) contrast(1.08) brightness(.82); } }
@keyframes telegramStrip { from { opacity: 0; transform: translate(-50%, 14px); clip-path: inset(0 50%); } to { opacity: 1; transform: translate(-50%, 0); clip-path: inset(0); } }

@media (max-width: 760px) {
  .unlock-banner:not(.is-hidden)::after { right: 9px; top: 15px; transform: rotate(-5deg); }
  @keyframes stampStrike { 0%,22% { opacity: 0; transform: scale(1.5) rotate(-10deg); } 34% { opacity: .82; transform: scale(.94) rotate(-5deg); } 43% { transform: scale(1.02) rotate(-5deg); } 70% { opacity: .65; } 100% { opacity: 0; transform: scale(1) rotate(-5deg); } }
}

@media (prefers-reduced-motion: reduce) {
  .case-section.is-entering, .case-section.is-entering *, .unlock-banner:not(.is-hidden), .unlock-banner:not(.is-hidden)::after, #section-audio.is-visible .tape-reel, .audio-card.is-playing .audio-play, .audio-card.is-playing .audio-time i, .leaflet-overlay-pane svg path, .case-map-marker.is-found i::after, .modal-backdrop:not(.is-hidden), .modal-backdrop:not(.is-hidden) .evidence-modal, .modal-backdrop:not(.is-hidden) .modal-art, .case-toast:not(.is-hidden) { animation: none !important; }
}

/* Readability and stable rendering overrides */
@media (min-width: 761px) {
  .timeline-card { padding-right: 16px; grid-template-columns: 49px 42px minmax(0, 1fr) 142px 128px; }
  .modal-caption { color: #bdb7ad; font-size: 14px; line-height: 1.75; }
  .modal-copy > p:not(.eyebrow) { color: #c8c2b8; font-size: 15px; }
}
.timeline-card__main b { font-size: 14px; }
.timeline-card__main small, .timeline-card__time small { font-size: 9px; }
.timeline-card__time b { font-size: 12px; }
.audio-card p { font-size: 10px; }
.evidence-card::before { display: none; }
.unlock-banner:not(.is-hidden)::after { display: none; }
.map-reference { margin: 14px 0 0; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; min-height: 220px; }
.map-reference img { display: block; width: 100%; height: auto; max-height: 430px; object-fit: contain; object-position: center; filter: grayscale(.55) contrast(1.08) brightness(.68); }
.map-reference figcaption { position: absolute; left: 14px; bottom: 12px; color: #ddd6ca; background: rgba(0,0,0,.7); padding: 5px 8px; font-size: 9px; letter-spacing: .1em; }

@media (max-width: 760px) {
  .evidence-card p, .audio-card p { font-size: 9px; }
  .timeline-card__main b { font-size: 10px; }
  .timeline-card__main small, .timeline-card__time small { font-size: 7px; }
  .timeline-card__time b { font-size: 9px; }
  .map-reference { min-height: 0; }
  .map-reference img { max-height: none; }
  .map-reference figcaption { left: 9px; bottom: 9px; font-size: 7px; }
}
