:root{--accent:#a32e0b;--ink:#212529;--muted:#686a70;--line:#dedfe2;--paper:#f4f4f5;--soft:#f4e7e2;--heading:Georgia,"Times New Roman",serif;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}a{color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button{color:inherit}h1,h2,h3,p{margin:0}h1,h2{font-family:var(--heading);font-weight:400;letter-spacing:-.035em;line-height:1.1}h1{font-size:clamp(50px,6vw,80px)}h2{font-size:clamp(33px,4vw,48px)}h3{font-size:19px;line-height:1.4}p{line-height:1.65}small,.muted{color:var(--muted)}.top{display:flex;align-items:center;gap:28px;padding:20px max(24px,4vw);border-top:4px solid var(--accent);border-bottom:1px solid var(--line);background:white}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font:29px/1.15 var(--heading);letter-spacing:-.04em}.brand-icon{display:grid;place-items:center;background:var(--accent);color:white;width:43px;height:43px;border-radius:6px;font-size:29px}.brand small{display:block;font:600 8px/1.8 system-ui;letter-spacing:.14em;margin-top:3px}.edition{font-size:13px;margin-left:auto;color:var(--muted)}.home-link{font-size:13px;text-underline-offset:4px}main{max-width:1260px;margin:auto;padding:38px 28px 70px}.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:700;color:var(--accent);text-transform:uppercase}.intro{display:grid;grid-template-columns:1.25fr 1fr;gap:70px;align-items:start;padding:36px 0 44px}.intro h1{margin:18px 0 26px}.lead{font-size:21px;line-height:1.6}.intro .lead{max-width:680px}.sub{font-size:14px;color:var(--muted);margin-top:16px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:28px}.join{border-top:3px solid var(--accent)}.join h2{font-size:33px;margin:12px 0 24px}.field{display:block;font-size:14px;font-weight:600;margin-bottom:20px}.field span{display:block;margin-bottom:9px}.field select,.field textarea,.field input{display:block;width:100%;border:1px solid #c9cbd0;border-radius:7px;background:white;padding:12px;color:var(--ink);font-weight:400}.field textarea{min-height:93px;resize:vertical;line-height:1.6}.field small{display:block;font-weight:400;margin-top:6px}.primary,.secondary,.choice,.tag,.next,.quiet{display:inline-flex;gap:10px;align-items:center;justify-content:center;padding:13px 18px;border-radius:7px;line-height:1.45;border:1px solid var(--line);background:white;text-decoration:none}.primary,.next{background:var(--accent);border-color:var(--accent);color:white;font-weight:600}.primary:hover,.next:hover{background:#812408}.secondary:hover,.quiet:hover{background:#efeff1}.wide{width:100%}.join .primary{margin-top:4px}.roles{margin:24px 0 20px;padding:17px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.65}.roles strong{color:var(--accent)}.route{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.route>div{padding:22px;border-right:1px solid var(--line);font-size:14px;line-height:1.6}.route>div:last-child{border:0}.route b{color:var(--accent);display:block;margin-bottom:6px}.case-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.case-head strong{font-family:var(--heading);font-size:29px;font-weight:400}.case-head span{font-size:13px;color:var(--muted)}.reset{border:0;background:none;color:var(--muted);text-decoration:underline;font-size:12px}.progress{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:32px}.step{display:flex;align-items:center;text-align:left;gap:11px;border:1px solid var(--line);border-radius:8px;background:white;padding:15px;font-size:13px}.step b{display:grid;place-items:center;width:29px;height:29px;background:#efeff1;border-radius:5px;color:var(--muted);flex-shrink:0}.step.active{border-color:var(--accent);background:var(--soft)}.step.active b{color:white;background:var(--accent)}.step.done b{background:#e3ece6;color:#3d6350}.stage-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:15px 0 26px}.stage-head h2{margin-top:10px}.role-note{font-size:12px;color:var(--muted);max-width:220px;line-height:1.6;text-align:right}.stage-head .lead{font-size:17px;margin-top:15px;max-width:750px}.investigation{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:25px;align-items:start}.task h3{margin-bottom:20px}.task .hint{font-size:13px;color:var(--muted);line-height:1.6;margin:-7px 0 20px}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:22px}.feedback{background:#f4f6f4;border-left:3px solid #67806e;padding:18px 20px;margin-top:22px;font-size:14px;line-height:1.65}.feedback strong{display:block;margin-bottom:8px}.error{border-left-color:var(--accent);background:var(--soft)}.notice{border-left:3px solid var(--accent);padding:17px 20px;background:var(--soft);margin-bottom:24px;font-size:15px;line-height:1.65}.profile{background:#e9edf1;border:1px solid #d0d6dd;border-radius:12px;overflow:hidden}.socialbar{padding:14px 20px;background:#324a64;color:white;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:15px}.socialbar small{color:#dce3eb;font-size:9px;letter-spacing:.1em}.cover{background:#dce5ec;padding:23px 24px;font-size:20px;font-weight:600;color:#324a64}.cover small{display:block;font-size:12px;letter-spacing:0;font-weight:400;margin-top:6px}.person{display:flex;align-items:center;gap:16px;padding:20px 22px 13px}.avatar{width:63px;height:63px;flex-shrink:0;background:#dce4ed;border-radius:50%;overflow:hidden}.person b{font-size:21px}.person small{display:block;color:var(--accent);font-size:11px;margin-top:5px}.fields{padding:8px 14px 18px;display:grid;gap:9px}.profile-field{width:100%;background:white;border:1px solid #d8dde3;border-radius:7px;padding:13px 15px;display:flex;gap:13px;text-align:left;align-items:start;line-height:1.5}.field-no{font-size:12px;color:#8b8c92;min-width:18px;padding-top:3px}.profile-field .field-copy{flex:1;min-width:0;font-size:14px}.profile-field .field-copy b{display:block;font-size:12px;margin-bottom:4px;color:#505862}.field-state{font-size:10px;color:var(--muted);white-space:nowrap;border:1px solid #dedfe3;padding:4px 6px;border-radius:4px}.profile-field.selected{border-color:var(--accent);background:#fbf5f2}.profile-field.selected .field-state{color:var(--accent);border-color:#d9b4a6;background:white}.profile-caption{font-size:11px;line-height:1.55;color:var(--muted);margin-top:10px}.choices{display:grid;gap:10px;margin:16px 0 24px}.choice{justify-content:flex-start;align-items:flex-start;text-align:left;font-size:14px;line-height:1.5}.choice:before{content:'○';font-size:17px;flex-shrink:0}.choice.selected{border-color:var(--accent);background:var(--soft)}.choice.selected:before{content:'●';color:var(--accent)}.task-label{font-size:14px;font-weight:600;line-height:1.6}.password{padding:25px;background:#292a2e;color:white;border-radius:10px;margin-bottom:18px}.password .eyebrow{color:#ebc0af}.password code{display:block;font-size:clamp(17px,2.1vw,25px);overflow-wrap:anywhere;margin:17px 0}.password p{font-size:12px;color:#ddd}.storage-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.storage-card{border:1px solid var(--line);border-radius:9px;background:white;padding:22px;font-size:14px;line-height:1.7}.storage-card h3{font-size:18px;margin-bottom:16px}.storage-card code{font-size:11px;overflow-wrap:anywhere}.storage-card hr{border:0;border-top:1px solid var(--line);margin:16px 0}.storage-card .example-label{font-size:11px;color:var(--accent)}.chat-evidence{border:1px solid #d1d8e0;background:#eef1f4;border-radius:10px;overflow:hidden}.chat-evidence>.socialbar{font-size:14px}.bubble{display:block;text-align:left;border:1px solid #d8dde3;background:white;border-radius:10px;margin:16px;padding:17px 18px;font-size:15px;line-height:1.65;width:calc(100% - 32px)}.bubble.selected{border-color:var(--accent);box-shadow:0 0 0 2px #a32e0b15}.bubble.me{margin-left:42px;width:calc(100% - 58px);background:#dde7f0}.bubble b{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.tags{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 24px}.tag{font-size:12px;padding:9px 12px}.tag.selected{background:var(--soft);border-color:var(--accent)}.trainer{margin-top:28px}.trainer-top{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:20px}.trainer-top h3{margin:6px 0}.timer{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13px;color:var(--accent)}.trainer-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.thread{max-height:370px;overflow:auto;background:#f4f5f6;border-radius:8px;padding:6px;min-height:180px}.thread .bubble{font-size:14px;overflow-wrap:anywhere}.thread .bubble small{display:block;font-size:10px;margin-top:10px}.chat-form{margin-top:14px}.chat-form textarea{min-height:74px}.chat-controls{display:grid;gap:9px;margin-bottom:22px}.chat-controls button{text-align:left;justify-content:flex-start;font-size:13px}.trainer-note{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:18px}.status{font-size:13px;line-height:1.6;margin:12px 0}.sites{display:grid;grid-template-columns:1fr 1fr;gap:14px}.site{background:white;border:1px solid #d0d5dd;border-radius:8px;overflow:hidden}.address{background:#e8ecf0;font-size:12px;line-height:1.65;padding:12px;word-break:break-word}.site-body{padding:22px;font-size:14px;line-height:1.65;min-height:270px}.site-body h3{margin-bottom:20px}.fake-input{display:block;border:1px solid #d2d4d8;background:#fafafa;padding:8px 10px;border-radius:4px;margin:6px 0 15px;font-size:11px;color:var(--muted)}.site-note{font-size:11px;color:var(--muted);line-height:1.5;margin-top:12px}.official{margin:0 0 15px;font-size:13px;line-height:1.7}.last-clue{border-top:1px solid var(--line);margin-top:30px;padding-top:27px}.last-clue h3{margin-bottom:17px}.timeline{display:grid;gap:13px;margin:20px 0 24px}.timeline p{display:flex;gap:20px;line-height:1.6;font-size:15px}.timeline time{font-weight:700;color:var(--accent);min-width:53px}.final{max-width:900px;margin:auto}.final h1{margin:20px 0 25px}.summary{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:28px}.summary h3{font-family:var(--heading);font-size:24px;margin:10px 0 15px}.summary p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.save-note{font-size:12px;color:var(--muted);line-height:1.6;margin-top:30px}.final-chain{margin-top:22px;font-size:15px;line-height:1.7}.empty{color:var(--muted)}footer{display:flex;justify-content:space-between;gap:20px;max-width:1260px;margin:auto;padding:22px 28px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.skip{position:fixed;left:20px;top:-100px;background:white;padding:12px;z-index:100}.skip:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:950px){.intro{gap:30px;grid-template-columns:1.1fr 1fr}.investigation{grid-template-columns:1fr}.trainer-grid{grid-template-columns:1fr}.stage-head .lead{max-width:620px}.profile{max-width:800px}.fields{grid-template-columns:1fr 1fr}.profile-field:last-child{grid-column:1/-1}.task{padding:25px}.role-note{max-width:160px}.route>div{padding:18px 13px}.progress .step{padding:11px}.step span{font-size:12px}}
@media(max-width:620px){.top{padding:16px;gap:12px;flex-wrap:wrap}.brand{font-size:25px}.brand-icon{width:36px;height:38px}.edition{font-size:11px}.home-link{font-size:11px;width:100%;text-align:right;margin-top:-6px}main{padding:24px 17px 50px}.intro{grid-template-columns:1fr;padding-top:12px;gap:27px}.intro h1{font-size:58px}.lead{font-size:18px}.card{padding:22px}.route{grid-template-columns:1fr 1fr}.route>div:nth-child(2){border-right:0}.route>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.case-head{align-items:start}.case-head strong{font-size:25px}.case-head>div>span{display:block;margin-top:5px}.progress{gap:5px;margin-bottom:25px}.step{display:flex;flex-direction:column;align-items:flex-start;padding:10px 8px!important;gap:8px}.step span{font-size:10px;line-height:1.35}.step b{width:25px;height:25px;font-size:12px}.stage-head{display:block}.role-note{max-width:none;text-align:left;margin-top:15px;border-top:1px solid var(--line);padding-top:12px}.stage-head h2{font-size:35px}.stage-head .lead{font-size:15px}.fields{grid-template-columns:1fr}.profile-field:last-child{grid-column:auto}.field-state{font-size:9px}.profile-field{padding:12px 10px;gap:7px}.profile-field .field-copy{font-size:13px}.socialbar{padding:13px 15px}.socialbar small{font-size:8px}.cover{font-size:18px;padding:20px}.person{padding:16px}.person b{font-size:19px}.storage-grid,.sites,.summary{grid-template-columns:1fr}.site-body{min-height:220px}.trainer-top{align-items:start}.trainer-top h3{font-size:18px}.trainer-grid{gap:18px}.bubble{font-size:14px;padding:15px}.timeline p{font-size:13px;gap:12px}.actions>*{width:100%}.actions .secondary{order:2}footer{display:block;font-size:10px;padding:20px 17px}footer span{display:block;margin-top:8px}.password code{font-size:17px}.reset{max-width:90px;text-align:right}.primary,.next,.secondary{min-height:46px}.choice{padding:13px}.final h1{font-size:46px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.case-head>div{min-width:0}.case-head span{overflow-wrap:anywhere}

/* Марат сопровождает расследование в тех же иллюстрациях, что и на слайдах. */
.marat-intro{display:flex;align-items:center;gap:18px;margin-top:24px}.marat-intro .sub{margin-top:0;flex:1}.marat-welcome{width:190px;height:183px;object-fit:contain;flex-shrink:0}.stage-head>div:first-child{min-width:0;flex:1}.role-note{flex:0 0 190px;max-width:190px}.marat-guide{display:block;width:160px;height:146px;object-fit:contain;margin:0 0 10px auto}.profile-avatar-art{display:block;width:150px;max-width:none;height:auto;transform:translate(-26px,-2px)}.marat-final{float:right;width:185px;height:175px;object-fit:contain;margin:8px 0 18px 25px}.final>.final-chain{clear:both}
@media(max-width:950px) and (min-width:621px){.marat-intro{gap:10px}.marat-welcome{width:125px;height:145px}.role-note{flex-basis:160px;max-width:160px}.marat-guide{width:135px;height:125px}}
@media(max-width:620px){.marat-intro{gap:13px;margin-top:20px}.marat-welcome{width:120px;height:137px}.marat-intro .sub{font-size:13px}.role-note{display:flex;align-items:center;gap:16px;max-width:none;text-align:left}.marat-guide{width:88px;height:85px;margin:0;flex-shrink:0}.marat-final{width:115px;height:117px;margin:12px 0 14px 14px}.final h1{font-size:43px}}

.quiz-banner{clear:both;display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:25px;border-top:3px solid var(--accent)}.quiz-banner h2{font-size:30px;margin:7px 0 10px}.quiz-banner p{font-size:14px;color:var(--muted)}.quiz-banner small{display:block;margin-top:7px}.quiz-banner .primary{flex-shrink:0}.bonus-quiz{max-width:900px;margin:auto}.quiz-head{display:flex;align-items:center;gap:24px;margin:32px 0}.quiz-head>div{flex:1;min-width:0}.quiz-head h1{font-size:clamp(39px,5vw,58px);margin:14px 0 17px}.quiz-head p{font-size:15px;color:var(--muted)}.quiz-head img{width:135px;height:130px;object-fit:contain;flex-shrink:0}.quiz-meta{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:13px}.quiz-meta span{color:var(--muted)}.quiz-progress{display:block;width:100%;height:7px;border:0;border-radius:10px;overflow:hidden;margin:14px 0 24px;accent-color:var(--accent);background:var(--line)}.quiz-progress::-webkit-progress-bar{background:var(--line)}.quiz-progress::-webkit-progress-value{background:var(--accent)}.quiz-card h2{font:400 29px/1.35 var(--heading);letter-spacing:-.02em}.quiz-hint{font-size:12px;color:var(--muted);margin:15px 0 21px}.quiz-options{display:grid;gap:11px}.quiz-option{width:100%;display:flex;align-items:flex-start;gap:13px;text-align:left;font-size:15px;line-height:1.6;background:white;border:1px solid #c9cbd0;padding:15px 16px;border-radius:8px}.quiz-option:not(:disabled):hover{border-color:var(--accent);background:#fcf7f4}.quiz-option:disabled{opacity:1}.quiz-letter{display:grid;place-items:center;width:27px;height:27px;flex-shrink:0;border-radius:5px;background:var(--paper);font-size:12px;font-weight:700}.quiz-option small{display:block;margin-top:5px;font-weight:600;font-size:12px}.quiz-option.is-correct{background:#f0f6f0;border-color:#67806e}.quiz-option.is-correct small{color:#3d6350}.quiz-option.is-wrong{background:var(--soft);border-color:var(--accent)}.quiz-option.is-wrong small{color:var(--accent)}.quiz-score-card p{font-size:15px}.quiz-score{display:block;font:400 74px/1.1 var(--heading);margin-bottom:18px;color:var(--accent)}.quiz-score span{font-size:30px;color:var(--muted)}.quiz-repeat{margin-top:14px}.quiz-review{display:grid;gap:12px;margin-top:25px}.quiz-review-item{padding:20px 23px}.quiz-review-item summary{cursor:pointer;line-height:1.6;font-size:14px}.quiz-review-item summary b{display:inline-block;margin-left:8px;font-size:11px;color:var(--accent)}.quiz-review-item p{margin-top:15px;font-size:14px}.quiz-review-item[open] summary{margin-bottom:18px}
@media(max-width:620px){.quiz-banner{display:block;padding:20px}.quiz-banner h2{font-size:27px}.quiz-banner .primary{width:100%;margin-top:20px}.quiz-head{gap:12px;align-items:flex-start;margin:25px 0}.quiz-head img{width:80px;height:95px;margin-top:22px}.quiz-head p{font-size:13px}.quiz-head h1{font-size:35px}.quiz-meta{font-size:12px;align-items:flex-start}.quiz-meta span{text-align:right;max-width:170px}.quiz-card h2{font-size:25px}.quiz-option{font-size:14px;padding:13px 12px;gap:10px}.quiz-card{padding:21px}.quiz-review-item{padding:18px}.quiz-score{font-size:64px}.quiz-score span{font-size:27px}}

.quiz-back{padding:0;border:0;background:none;text-decoration:underline;text-underline-offset:4px;font-size:13px;color:var(--muted)}.quiz-head{margin:23px 0}.quiz-head h1{font-size:clamp(38px,4.5vw,49px)}.quiz-head img{width:115px;height:110px}
@media(max-width:620px){.quiz-head h1{font-size:35px}.quiz-head img{width:80px;height:95px}}
