/* Удомля: большое иллюстрированное чтение. Независимо от маршрутов */
:root{color-scheme:dark;--ink:#eaf4f7;--muted:#aec1cb;--bg:#081522;--line:#345466;--teal:#70e4cd;--gold:#f5c57e;--paper:#10273a;--paper2:#193448}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.83 "Segoe UI",Inter,Arial,sans-serif;overflow-x:hidden}
body:before{content:"";pointer-events:none;position:fixed;inset:0;background:radial-gradient(ellipse at 78% -5%,#17475966,transparent 52%);z-index:-1}
a{color:#9beae1;text-underline-offset:3px}
button{font:inherit;cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid #8cf1dc;outline-offset:3px}
.story-top{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px clamp(14px,4vw,60px);background:#091929f2;border-bottom:1px solid #355568;backdrop-filter:blur(15px)}
.story-top a{font-size:13px;text-decoration:none;border:1px solid #4a6f80;border-radius:10px;padding:8px 12px;font-weight:700;white-space:nowrap}
.story-top a:hover{background:#193c4b}
.story-top .top-brand{font-size:13px;letter-spacing:.09em;border:none;color:#e0f7f2}
.progress-track{height:3px;background:#152d3b;position:fixed;top:0;left:0;right:0;z-index:40}
.progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#75e4d6,#f6c47c)}
.wrap{max-width:1120px;margin:auto;padding:0 clamp(18px,4vw,45px)}
.story-cover{position:relative;min-height:600px;display:flex;align-items:end;margin:auto;max-width:1540px;background:#173b55;overflow:hidden}
.story-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.story-cover:after{position:absolute;inset:0;content:"";background:linear-gradient(0deg,#071726 3%,#071726c5 45%,#0717263b 85%),linear-gradient(90deg,#07172677,transparent 70%)}
.story-cover .cover-content{position:relative;z-index:1;max-width:1170px;margin:auto;width:100%;padding:70px clamp(24px,5vw,65px) 60px}
.kicker{color:var(--teal);font-size:12px;letter-spacing:.19em;font-weight:800;text-transform:uppercase}
.story-cover h1{font-size:clamp(54px,10vw,130px);line-height:.96;margin:19px 0;letter-spacing:-.07em;font-weight:900}
.story-cover h1 span{color:var(--teal)}
.story-cover .subtitle{font-size:clamp(19px,2.5vw,30px);max-width:810px;font-weight:600;line-height:1.35}
.story-cover .lede{max-width:660px;margin-top:21px;color:#d0dce4;font-size:15px;line-height:1.7}
.story-cover .credit{font-size:10px;color:#bdccce;margin-top:28px}
.intro{padding-top:65px;padding-bottom:36px}
.intro p{max-width:880px;font:clamp(20px,2.6vw,28px)/1.63 Georgia,"Times New Roman",serif;color:#dbe6e6}
.intro p:first-letter{float:left;color:var(--gold);font-size:72px;line-height:.78;padding:9px 10px 0 0}
.facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:35px 0 20px}
.facts div{background:linear-gradient(150deg,#1a3c4c,#122839);border:1px solid #416477;border-radius:13px;padding:17px}
.facts b{display:block;color:var(--gold);font-size:clamp(21px,3vw,29px);line-height:1.15}
.facts small{display:block;font-size:12px;color:#b9ccd3;line-height:1.5;margin-top:7px}
.toc{border:1px solid #34576b;border-radius:18px;background:#0d2333;padding:23px 28px;margin:25px auto 64px}
.toc-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:13px}
.toc h2{font-size:20px;margin:0}
.toc .toc-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 20px}
.toc a{color:#c4e1e5;text-decoration:none;padding:7px 0;border-bottom:1px solid #ffffff16;display:flex;gap:11px;align-items:start;font-size:14px;line-height:1.4}
.toc a span{color:var(--teal);font-weight:850;letter-spacing:.06em}
.toc a:hover{color:#fff}
.chapter{position:relative;padding:28px 0 64px;scroll-margin-top:80px}
.chapter:not(:first-child){border-top:1px solid #ffffff1a}
.chapter-header{max-width:920px}
.chapter .chapter-num{font-size:12px;letter-spacing:.18em;color:var(--teal);font-weight:800}
.chapter h2{margin:9px 0 18px;font-size:clamp(34px,5vw,58px);letter-spacing:-.052em;line-height:1.12}
.chapter .deck{font-size:clamp(19px,2.5vw,24px);line-height:1.5;color:#c6dedf;font-family:Georgia,serif;margin-bottom:22px}
.prose{max-width:830px}
.prose p{margin:0 0 20px;color:#c7d6df}
.prose strong{color:#f5f9fb}
.prose em{color:#d6d4f2}
.prose a{font-size:.9em}
.prose .source-note{font-size:12px;color:#98aebc}
.figure{margin:27px 0 34px}
.figure img{width:100%;display:block;background:#19384c;border-radius:15px;max-height:620px;object-fit:cover;box-shadow:0 19px 70px #0005}
.figure.wide{margin-left:max(-4vw,-55px);margin-right:max(-4vw,-55px)}
.figure.wide img{max-height:630px}
.figure.painting img{object-fit:contain;background:#17242d;max-height:570px}
.figure figcaption{font-size:12px;color:#96afbb;line-height:1.6;margin:10px 4px 0}
.figure figcaption a{color:#9fced3}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;align-items:center;margin:22px 0 30px}
.split .figure{margin:0}.split .figure img{min-height:330px;max-height:470px}
.split p{font-size:15px;color:#bfd4db}
.aside{max-width:850px;border-left:4px solid var(--gold);padding:14px 20px;margin:26px 0;background:#1c3445;border-radius:0 13px 13px 0}
.aside strong{color:var(--gold)}
.aside p{margin:4px 0 0;font-size:15px;color:#c6d8d9}
.timeline{border:1px solid #36576b;background:#102738;border-radius:17px;padding:20px 24px;margin:24px 0 32px}
.timeline h3{font-size:18px;margin:0 0 16px;color:#f4e5c6}
.timeline .event{display:grid;grid-template-columns:95px 1fr;gap:16px;padding:12px 0;border-top:1px solid #ffffff17;align-items:start}
.timeline .event b{color:var(--teal);font-size:19px}
.timeline .event p{margin:0;font-size:14px;color:#bdd0d8;line-height:1.5}
.mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:27px 0}
.mini-grid>div{border:1px solid #385c6c;border-radius:12px;padding:17px;background:#163448}
.mini-grid strong{display:block;color:var(--gold);margin-bottom:4px}
.mini-grid p{font-size:14px;color:#bbd0d8;margin:0}
.nuclear-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:27px 0 31px}
.nuclear-steps div{padding:16px;background:#153747;border-radius:11px;border:1px solid #406679}
.nuclear-steps span{font-size:23px}.nuclear-steps strong{display:block;color:var(--teal);font-size:14px;margin-top:6px}.nuclear-steps small{font-size:12px;line-height:1.5;color:#c6d5dd;display:block}
.end-note{margin:36px 0 55px;border:1px solid #486878;border-radius:16px;background:linear-gradient(110deg,#173e45,#173047);padding:28px}
.end-note h2{font-size:26px;margin:0 0 8px}.end-note p{color:#c4dade;margin:0}
.sources{border-top:1px solid #365466;padding:30px 0 50px}
.sources h2{font-size:23px}
.sources .source-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 23px;margin-top:15px}
.sources a{font-size:13px;line-height:1.4;display:block}
.story-footer{background:#0b2030;border-top:1px solid #355266;padding:25px 0;color:#a9bfc7;font-size:12px}
.story-footer .footrow{display:flex;gap:18px;flex-wrap:wrap;justify-content:space-between}
.utility{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}
.utility button,.utility a{border:1px solid #527483;border-radius:9px;background:#254958;color:#e0f4f2;text-decoration:none;font-weight:750;padding:9px 14px;font-size:13px}
.utility button:hover,.utility a:hover{background:#316578}
.story-promo{margin:0 0 24px;border-radius:16px;background:linear-gradient(110deg,#1f5662,#1d354e);border:1px solid #5ca9ad;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:21px 23px;color:#d3f0ec}
.story-promo div b{display:block;color:#f7d4a6;font-size:14px;letter-spacing:.03em}
.story-promo div small{display:block;color:#c3dce1;font-size:12px;margin-top:5px}
.story-launch{border-radius:11px;background:#70e4cd!important;color:#052c2f!important;font-size:14px!important;font-weight:850!important;text-decoration:none;padding:11px 17px;white-space:nowrap}
@media(max-width:740px){.facts{grid-template-columns:repeat(2,1fr)}.toc .toc-links{grid-template-columns:1fr}.split{grid-template-columns:1fr}.split .figure img{max-height:350px}.nuclear-steps{grid-template-columns:repeat(2,1fr)}.sources .source-list{grid-template-columns:1fr}.figure.wide{margin-left:0;margin-right:0}.story-cover{min-height:530px}.story-cover .cover-content{padding-bottom:38px}.chapter{padding-bottom:40px}.story-promo{align-items:stretch;flex-direction:column}.story-launch{text-align:center}}
@media(max-width:450px){.story-top .top-brand{display:none}.story-top{justify-content:space-between}.story-cover{min-height:540px}.story-cover h1{font-size:57px}.intro{padding-top:45px}.intro p:first-letter{font-size:57px}.timeline .event{grid-template-columns:70px 1fr}.facts{gap:8px}.facts div{padding:13px}.toc{padding:18px}.chapter h2{font-size:33px}.mini-grid{grid-template-columns:1fr}.story-cover img{object-position:center}}
@media print{.story-top,.progress-track,.toc,.utility{display:none!important}body{background:white;color:#131b20}.chapter,.prose p,.deck{color:#20272a!important}.story-cover{min-height:240px}.story-cover .cover-content{padding:20px}.chapter{page-break-inside:avoid}.figure img{max-height:300px}}
