/* poster — тема ArtemCMS.
   Белый лист, чёрный текст, томатно-красная фиксированная колонка слева.
   Заголовки — сверхжирный гротеск капслоком, текст — Verdana, служебное —
   моноширинный. Плоские блоки, острые углы, никаких внешних ресурсов. */

:root {
    --paper: #FFFFFF;
    --ink: #111111;
    --ink-soft: #3A3A3A;
    --grey: #6E6E6E;
    --line: #E4E4E4;
    --red: #D8412F;
    --red-deep: #B3301F;
    --rail: 232px;
    --display: "Segoe UI Black", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --copy: Verdana, "DejaVu Sans", Geneva, Tahoma, sans-serif;
    --mono: Consolas, "Courier New", "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.board {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--copy);
    font-size: 16px;
    line-height: 1.6;
}
a { color: var(--red-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* У <img> атрибуты width/height — без height:auto картинка тянется по ширине блока */
img { max-width: 100%; height: auto; display: block; }

/* Служебное */
.kicker, .crumbs, .paperMeta, .pageCount, .tileDate, .tileKicker, .pagerCount, .rateLabels, .rateNote, .footCopy, .railHeading {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .02em;
}
.kicker { margin: 0 0 8px; color: var(--red); text-transform: uppercase; }
.crumbs { margin: 0 0 24px; color: var(--grey); }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbsSep { margin: 0 6px; }

/* Колонка слева */
.rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--rail);
    padding: 28px 24px;
    background: var(--red);
    color: #FFFFFF;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.railBrand {
    margin: 0;
    font-family: var(--display);
    font-weight: 900;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.railBrand a { color: #FFFFFF; text-decoration: none; }
.railNav { display: flex; flex-direction: column; gap: 4px; }
.railNavLink {
    padding: 6px 0;
    border-bottom: 2px solid rgba(255, 255, 255, .25);
    font-family: var(--display);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-decoration: none;
}
.railNavLink:hover, .railNavLink:focus-visible { border-bottom-color: #FFFFFF; color: #FFFFFF; }
.railPicks { margin-top: auto; }
.railHeading { margin: 0 0 8px; color: rgba(255, 255, 255, .75); text-transform: uppercase; }
.railPicksList { margin: 0; padding-left: 1.3em; font-size: 13px; line-height: 1.4; }
.railPicksList li { margin: 0 0 8px; }
.railPicksList a { color: #FFFFFF; text-decoration: none; }
.railPicksList a:hover { text-decoration: underline; }

/* Область контента */
.stage { margin-left: var(--rail); min-height: 100vh; display: flex; flex-direction: column; }
.stageMain { flex: 1; padding: 40px 48px 64px; max-width: 1240px; }

/* Мозаика плиток */
/* minmax(0, 1fr) — у 1fr минимум auto, и плитка с картинкой раздувала колонку;
   высота плиток явная: aspect-ratio у grid-элемента даёт ряды неверной высоты */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; height: 300px; overflow: hidden; background: var(--ink); }
.tileWide { grid-column: span 2; }
.tileLink { position: absolute; inset: 0; color: #FFFFFF; text-decoration: none; }
.tileMedia { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tileCaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 56px 20px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, 0));
}
.tileKicker { display: inline-block; margin-bottom: 8px; padding: 2px 6px; background: var(--red); color: #FFFFFF; text-transform: uppercase; font-size: 11px; }
.tileTitle {
    margin: 0 0 6px;
    font-family: var(--display);
    font-weight: 900;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.tileWide .tileTitle { font-size: 30px; }
.tileDate { color: rgba(255, 255, 255, .7); }
.tileText { background: var(--red); }
.tileText .tileCaption { background: none; top: 0; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.tileText .tileKicker { background: var(--ink); }
.tileLink:hover .tileTitle { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Заголовок рубрики / темы / 404 */
.pageHead { margin-bottom: 32px; }
.pageTitle, .paperTitle {
    margin: 0;
    font-family: var(--display);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.03em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.pageTitle { font-size: clamp(36px, 5vw, 64px); color: var(--red); }
.pageCount { margin: 12px 0 0; color: var(--grey); }
.emptyNote { color: var(--grey); }
.lostText { max-width: 560px; margin: 16px 0 0; color: var(--ink-soft); }
.lostLink { margin: 32px 0 0; }

/* Автор: ссылка в подписи и страница профиля */
.paperMeta a[rel="author"] { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--red); }
.paperMeta a[rel="author"]:hover { color: var(--red); }
.byLine { display: flex; align-items: flex-end; gap: 32px; }
.byLineAvatar { flex: 0 0 160px; width: 160px; height: 160px; object-fit: cover; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--red); }
.byLineText { min-width: 0; }
.stampRow { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.stamp { display: flex; flex-direction: column; min-width: 120px; padding: 10px 14px; border: 3px solid var(--ink); }
.stampNum { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; letter-spacing: -.02em; }
.stampLabel { margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }

/* Пагинация */
.pagerBlock { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.pagerBtn {
    display: inline-block;
    padding: 14px 22px;
    background: var(--ink);
    color: #FFFFFF;
    font-family: var(--display);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}
.pagerBtn:hover, .pagerBtn:focus-visible { background: var(--red); color: #FFFFFF; }
.pagerOff { background: var(--line); color: var(--grey); }
.pagerCount { color: var(--grey); }
.pagerNext { margin-left: auto; }

/* Статья */
.paper { max-width: 760px; }
.paperTitle { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 20px; }
.paperMeta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 32px; color: var(--grey); }
.paperFigure { position: relative; margin: 0 0 40px; padding: 0 12px 12px 0; }
.paperFigure::before { content: ""; position: absolute; top: 12px; right: 0; bottom: 0; left: 12px; background: var(--red); }
.paperImg { position: relative; width: 100%; height: auto; }
.paperLead { margin: 0 0 24px; font-size: 19px; line-height: 1.5; color: var(--ink-soft); }
.paperBody { font-size: 17px; line-height: 1.7; }
.paperBody p { margin: 0 0 1.4em; }
.paperBody h2, .paperBody h3 {
    margin: 2em 0 .6em;
    font-family: var(--display);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.paperBody h2 { font-size: 26px; }
.paperBody h3 { font-size: 20px; color: var(--red); }
.paperBody img { margin: 1.5em 0; }
.paperBody ul, .paperBody ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.paperBody blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    background: var(--ink);
    color: #FFFFFF;
    font-family: var(--display);
    font-weight: 900;
    font-size: 18px;
    line-height: 1.3;
}
.hashtags { margin: 32px 0 0; font-family: var(--mono); font-size: 14px; line-height: 1.9; }
.hashtags a { margin-right: 12px; color: var(--red-deep); text-decoration: none; }
.hashtags a:hover { color: var(--ink); text-decoration: underline; }

/* Поделиться */
.shareRow { display: flex; align-items: center; gap: 8px; margin: 32px 0 0; padding-top: 24px; border-top: 3px solid var(--ink); }
.shareLabel { margin-right: 8px; font-family: var(--mono); font-size: 13px; color: var(--grey); }
.shareBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--ink);
    color: #FFFFFF;
    font-family: var(--display);
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
}
.shareBtn:hover, .shareBtn:focus-visible { background: var(--red); color: #FFFFFF; }

/* Оценка: сегментная шкала */
.rateBar { margin: 32px 0 0; padding: 24px; border: 3px solid var(--ink); }
.rateQuestion { margin: 0 0 12px; font-family: var(--display); font-weight: 900; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.rateSegs { display: flex; gap: 4px; }
.rateSeg { flex: 1; height: 28px; border: 2px solid var(--ink); background: transparent; cursor: pointer; padding: 0; }
.rateSegOn { background: var(--red); border-color: var(--red); }
.rateDone .rateSeg { cursor: default; }
.rateLabels { display: flex; justify-content: space-between; margin: 6px 0 12px; color: var(--grey); }
.rateNote { margin: 0; color: var(--ink-soft); }

/* Подвал */
.foot { margin-top: 64px; padding: 40px 48px; background: var(--ink); color: #CFCFCF; }
.foot a { color: #FFFFFF; }
.footGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1240px; }
.footHeading { margin: 0 0 10px; font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #FFFFFF; }
.footAbout p { margin: 0; font-size: 14px; }
.foot .hashtags { margin: 0; }
.foot .hashtags a { color: #FFFFFF; }
.footCopy { margin: 32px 0 0; color: #8F8F8F; }

@media (prefers-reduced-motion: no-preference) {
    .railNavLink, .pagerBtn, .shareBtn, .rateSeg { transition: background-color .15s, border-color .15s, color .15s; }
}

@media (max-width: 1100px) {
    .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile { height: 260px; }
    .stageMain { padding: 32px; }
    .foot { padding: 32px; }
}

@media (max-width: 860px) {
    .rail {
        position: static;
        width: auto;
        padding: 16px 20px;
        gap: 12px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .railBrand { font-size: 20px; }
    .railNav { flex-direction: row; gap: 14px; overflow-x: auto; width: 100%; scrollbar-width: none; }
    .railNav::-webkit-scrollbar { display: none; }
    .railNavLink { white-space: nowrap; border-bottom-width: 2px; }
    .railPicks { display: none; }
    .stage { margin-left: 0; }
    .stageMain { padding: 24px 20px 48px; }
    .footGrid { grid-template-columns: 1fr; gap: 24px; }
    .paperTitle { font-size: 32px; }
    .pageTitle { font-size: 36px; }
}

@media (max-width: 560px) {
    .mosaic { grid-template-columns: minmax(0, 1fr); }
    .tile { height: 240px; }
    .tileWide { grid-column: auto; }
    .tileWide .tileTitle { font-size: 22px; }
    .stageMain { padding: 16px 16px 40px; }
    .foot { padding: 24px 16px; }
    .pagerBlock { flex-wrap: wrap; }
    .pagerNext { margin-left: 0; }
    .byLine { flex-direction: column; align-items: flex-start; gap: 20px; }
    .byLineAvatar { flex-basis: 112px; width: 112px; height: 112px; box-shadow: 6px 6px 0 var(--red); }
    .stamp { min-width: 0; flex: 1 1 40%; }
}
