.history-story{max-width:960px}
.history-story-body{font-size:17px;line-height:1.72;color:#27343d}
.history-story-body>p{margin:0 0 18px}
.history-story-body>h2{margin:34px 0 14px;font-size:29px;line-height:1.2;letter-spacing:-.02em}
.history-story-body>h3{margin:27px 0 11px;font-size:22px;line-height:1.3}
.history-story-body>ul,.history-story-body>ol{margin:0 0 18px;padding-left:28px}
.history-story-body li{margin:6px 0}
.history-story-body strong{font-weight:800}
.history-story-body em{font-style:italic}
.history-story-body u{text-decoration:underline;text-underline-offset:2px}
.history-inline-link{color:#176b3f;font-weight:700;text-decoration-thickness:1px;text-underline-offset:3px}

.history-story-hero,.history-inline-image{margin:28px 0;overflow:hidden;border-radius:12px;border:1px solid #e2e8f0;background:#fff}
.history-story-hero img,.history-inline-image img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;background:#fff}
.history-inline-image figcaption{padding:10px 13px;color:#64748b;font-size:13px;line-height:1.45;background:#fff}

.history-story-video,.history-inline-video{margin:28px 0}
.history-story-media-title{margin:0 0 10px;font-size:14px;font-weight:800;line-height:1.35;color:#27343d;text-transform:none;letter-spacing:0}
.history-story-video-frame{position:relative;overflow:hidden;width:100%;aspect-ratio:16/9;border-radius:12px;border:1px solid #e2e8f0;background:#000}
.history-story-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.history-story-video-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:10px;border:1px solid #a7f3d0;color:#176b3f;text-decoration:none}
.history-media-caption{margin:10px 0 0!important;color:#64748b;font-size:13px;line-height:1.5}

/* Statistics is no longer part of History. Keep old saved blocks invisible until the story is re-saved in the editor. */
.history-stats-card{display:none!important}

/* Open video: same clean right-hand "По теме" layout as an opened news item. */
.content-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start;width:100%}
.content-detail-layout>.content-detail{min-width:0;width:100%;max-width:none;margin:0}
.content-detail-side{min-width:0;display:grid;gap:16px;position:sticky;top:92px;align-self:start}
.content-related-news{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 8px 25px rgba(15,23,42,.05)}
.content-related-news-head{padding:16px 16px 12px;border-bottom:1px solid var(--line)}
.content-related-news-head h2{margin:0;font-size:20px;line-height:1.2;letter-spacing:-.02em}
.content-related-news-list{display:grid}
.content-related-news-item{display:grid;grid-template-columns:88px minmax(0,1fr);gap:11px;align-items:center;padding:11px 12px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none;background:#fff}
.content-related-news-item:last-child{border-bottom:0}
.content-related-news-item:hover{background:#fafcfb}
.content-related-news-image{display:block;width:88px;aspect-ratio:7/4;border-radius:10px;overflow:hidden;background:#e8edf1}
.content-related-news-image img{display:block;width:100%;height:100%;object-fit:cover}
.content-related-news-placeholder{display:grid;place-items:center;background:linear-gradient(145deg,#1c2730,#070b0d);color:#6ee7a8;font-size:18px;font-weight:950}
.content-related-news-copy{display:block;min-width:0}
.content-related-news-copy time{display:block;margin-bottom:5px;color:var(--muted);font-size:10px;font-weight:800;line-height:1.2}
.content-related-news-copy strong{display:block;color:var(--text);font-size:13px;line-height:1.3;font-weight:850}

@media(max-width:900px){
.content-detail-layout{grid-template-columns:1fr}
.content-detail-side{position:static;top:auto}
}

@media(max-width:720px){
.history-story-body{font-size:16px;line-height:1.65}
.history-story-body>h2{margin-top:30px;font-size:24px}
.history-story-body>h3{font-size:20px}
.history-story-body>ul,.history-story-body>ol{padding-left:23px}
.history-story-hero,.history-inline-image,.history-story-video-frame{border-radius:10px}
}

@media(max-width:560px){
.content-detail-layout{gap:14px}
.content-related-news-item{grid-template-columns:78px minmax(0,1fr);padding:10px}
.content-related-news-image{width:78px}
.content-related-news-head{padding:14px}
.content-related-news-head h2{font-size:18px}
}
