:root { color-scheme: dark; --bg: #171919; --panel: #222626; --text: #eef2eb; --muted: #afb9b0; --line: #3e4940; --accent: #b2db92; --soft: #303e2a; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: Arial, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.header { border-bottom: 1px solid var(--line); }
.top { min-height: 88px; display: flex; align-items: center; gap: 44px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; white-space: nowrap; font-size: 25px; font-weight: 700; letter-spacing: -1px; }
.mark { width: 34px; height: 34px; display: block; flex-shrink: 0; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 27px; }
.nav a, .nav span { min-height: 42px; display: flex; align-items: center; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a[aria-current] { color: var(--text); border-color: var(--accent); }
.descriptor { margin-left: auto; color: var(--muted); font-size: 12px; line-height: 1.5; }
.main { padding-top: 28px; padding-bottom: 28px; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.heading h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.8px; }
.heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        'a a b c'
        'd e b f'
        'd g h h'
        'i i j k'
        'i i l m'
        'n n o p'
        'q q q r'
        's s t t'
        'u v w x';
    grid-template-rows: repeat(9, minmax(155px, 1fr));
    gap: 12px;
}
.story { position: relative; isolation: isolate; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; overflow-wrap: anywhere; }
.story-content { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 17px; }
.story-cover { position: relative; display: none; overflow: hidden; background: var(--soft); }
.story-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.slot-1 { grid-area: a; } .slot-2 { grid-area: b; } .slot-3 { grid-area: c; } .slot-4 { grid-area: d; } .slot-5 { grid-area: e; } .slot-6 { grid-area: f; } .slot-7 { grid-area: g; } .slot-8 { grid-area: h; }
.slot-9 { grid-area: i; } .slot-10 { grid-area: j; } .slot-11 { grid-area: k; } .slot-12 { grid-area: l; } .slot-13 { grid-area: m; } .slot-14 { grid-area: n; } .slot-15 { grid-area: o; } .slot-16 { grid-area: p; }
.slot-17 { grid-area: q; } .slot-18 { grid-area: r; } .slot-19 { grid-area: s; } .slot-20 { grid-area: t; } .slot-21 { grid-area: u; } .slot-22 { grid-area: v; } .slot-23 { grid-area: w; } .slot-24 { grid-area: x; }
.slot-1, .slot-8, .slot-9, .slot-17 { background: var(--soft); }
.meta { color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.story h2 { margin: 0; font-size: 18px; line-height: 1.23; letter-spacing: -.4px; font-weight: 600; }
.story-link { text-decoration: none; }
.story-link::after { position: absolute; inset: 0; z-index: 1; content: ''; }
.story-link:focus-visible { outline: none; }
.story:has(.story-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.story:has(.story-link:hover) { border-color: #829879; }
.story-link:hover { color: var(--accent); }
.slot-1 h2, .slot-8 h2, .slot-14 h2, .slot-19 h2, .slot-20 h2 { font-size: 23px; }
.slot-9 h2 { font-size: 30px; }
.slot-17 h2 { font-size: 26px; }
.summary { display: none; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.slot-1 .summary, .slot-2 .summary, .slot-4 .summary, .slot-8 .summary,
.slot-9 .summary, .slot-14 .summary, .slot-17 .summary, .slot-19 .summary, .slot-20 .summary { display: block; }
.story-bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; padding-top: 3px; color: var(--muted); font-size: 11px; }
.story-bottom a { position: relative; z-index: 2; color: var(--accent); text-decoration: none; }
.story-bottom a:hover { text-decoration: underline; }
/* Крупные акценты: обложка под текстом, с плотным градиентом для читаемости. */
:is(.slot-1, .slot-9, .slot-17).has-cover { background: #19211e; color: #fff; }
:is(.slot-1, .slot-9, .slot-17).has-cover .story-cover { position: absolute; inset: 0; display: block; }
:is(.slot-1, .slot-9, .slot-17).has-cover::before { position: absolute; inset: 0; z-index: 1; content: ''; pointer-events: none; background: linear-gradient(180deg, rgb(12 20 17 / 12%) 0%, rgb(12 20 17 / 35%) 25%, rgb(12 20 17 / 91%) 60%, #0c1411 100%); }
:is(.slot-1, .slot-9, .slot-17).has-cover .story-content { z-index: 2; padding: 22px; }
:is(.slot-1, .slot-9, .slot-17).has-cover .meta { align-self: flex-start; margin-bottom: auto; padding: 6px 8px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 5px; background: rgb(12 20 17 / 80%); color: #e0e9dd; font-size: 10px; }
:is(.slot-1, .slot-9, .slot-17).has-cover h2 { margin-top: 48px; text-wrap: pretty; }
.slot-9.has-cover h2 { margin-top: 150px; }
:is(.slot-1, .slot-9, .slot-17).has-cover .summary { color: #cbd4cc; }
:is(.slot-1, .slot-9, .slot-17).has-cover .story-bottom { margin-top: 8px; color: #cbd4cc; }
@media (min-width: 701px) {
    /* Вертикальные карточки — изображение сверху; полосы — изображение справа. */
    :is(.slot-2, .slot-4).has-cover .story-cover { display: block; height: clamp(130px, 15vw, 180px); flex-shrink: 0; border-bottom: 1px solid var(--line); }
    :is(.slot-8, .slot-14, .slot-19, .slot-20).has-cover { display: grid; grid-template-columns: minmax(0, 1fr) 31%; }
    :is(.slot-8, .slot-14, .slot-19, .slot-20).has-cover .story-cover { display: block; grid-column: 2; grid-row: 1; border-left: 1px solid var(--line); }
    :is(.slot-8, .slot-14, .slot-19, .slot-20).has-cover .story-content { grid-column: 1; grid-row: 1; }
    :is(.slot-1, .slot-17).has-cover .summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    :is(.slot-8, .slot-14, .slot-19, .slot-20).has-cover .summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
}
.news-page { max-width: 880px; margin: 0 auto; padding: 4px 0 16px; overflow-wrap: anywhere; }
.news-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.back-link { color: var(--accent); text-decoration: none; font-size: 13px; line-height: 1.5; }
.back-link:hover { text-decoration: underline; }
.news-header { margin-bottom: 32px; }
.news-header h1 { max-width: 23ch; margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -1.2px; text-wrap: balance; }
.news-lead { max-width: 740px; margin: 20px 0; color: var(--muted); font-size: 20px; line-height: 1.6; }
.news-dates { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.news-reading { max-width: 740px; margin: 0 auto; }
.news-takeaway { margin-bottom: 30px; padding: 22px 24px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--soft); }
.news-takeaway h2 { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 600; }
.news-takeaway p { margin: 0; font-size: 17px; line-height: 1.65; }
.news-body { font-size: 17px; line-height: 1.8; }
.news-body p { margin: 0 0 22px; }
.news-body h2 { margin: 34px 0 14px; font-size: 22px; line-height: 1.3; letter-spacing: -.4px; }
.news-body a { color: var(--accent); text-underline-offset: 3px; }
.news-body code { padding: 1px 6px; border-radius: 6px; background: var(--soft); font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 15px; }
.news-body pre { overflow-x: auto; margin: 0 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.news-body pre code { padding: 0; border-radius: 0; background: none; font-size: 14px; }
.news-body ul, .news-body ol { margin: 0 0 22px; padding-left: 24px; }
.news-body li { margin: 6px 0; }
.news-body table { width: 100%; margin: 0 0 22px; border-collapse: collapse; font-size: 15px; }
.news-body th, .news-body td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.news-body th { background: var(--soft); font-weight: 600; }
.news-body kbd { padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--panel); font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 13px; }
.news-figure { margin: 0; }
.news-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.news-figure figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.image-credit a { text-underline-offset: 3px; }
.news-cover { margin-bottom: 32px; }
.news-gallery { display: grid; gap: 24px; margin: 32px 0; }
.news-sources { margin-top: 36px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.news-sources h2 { margin: 0 0 20px; font-size: 18px; letter-spacing: -.3px; }
.source-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.source-list li + li { padding-top: 20px; border-top: 1px solid var(--line); }
.source-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.source-primary { color: var(--accent); font-size: 11px; }
.source-list a { color: var(--text); font-size: 15px; line-height: 1.6; text-decoration: none; }
.source-list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.source-list time { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.news-tags li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.news-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.news-neighbor { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.news-neighbor:hover { border-color: var(--accent); }
.news-neighbor span { color: var(--accent); font-size: 12px; }
.news-neighbor strong { font-size: 15px; font-weight: 400; line-height: 1.5; }
.news-neighbor--older { grid-column: 2; }
.not-found { max-width: 600px; margin: 56px auto; }
.not-found h1 { margin: 14px 0; font-size: 32px; letter-spacing: -.8px; }
.not-found p { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.info-page { max-width: 800px; margin: 0 auto; padding: 4px 0 24px; overflow-wrap: anywhere; }
.info-header { margin: 32px 0; }
.info-eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.info-header h1 { max-width: 24ch; margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -1px; text-wrap: balance; }
.info-lead { margin: 22px 0 0; color: var(--muted); font-size: 20px; line-height: 1.65; }
.info-updated { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.info-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 32px 0 40px; }
.info-topics section { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.info-topics h2 { margin: 0 0 10px; color: var(--accent); font-size: 17px; }
.info-topics p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.info-body { max-width: 740px; }
.info-callout, .info-contact { margin: 32px 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.info-callout p, .info-contact h2 { margin: 0 0 14px; font-size: 18px; line-height: 1.5; }
.info-callout a { color: var(--accent); font-size: 15px; text-decoration: none; }
.info-callout a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-address { display: block; max-width: 100%; height: auto; margin: 16px 0; }
.info-contact p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--panel); font-size: 12px; line-height: 1.5; }
.foot-top { display: flex; justify-content: space-between; align-items: start; gap: 24px; flex-wrap: wrap; padding: 24px 0 20px; }
.foot-brand { font-size: 17px; font-weight: 700; letter-spacing: -.4px; }
.foot-note { margin: 6px 0 0; color: var(--muted); }
.foot-links { max-width: 400px; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); }
.foot-links a { text-decoration: none; text-underline-offset: 3px; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.foot-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.app-version { font-variant-numeric: tabular-nums; white-space: nowrap; }
.age { width: 37px; height: 37px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 14px; }
.archive-page { max-width: 980px; margin: 0 auto; padding: 20px 0 24px; overflow-wrap: anywhere; }
.archive-header { margin-bottom: 12px; }
.archive-header h1 { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.15; letter-spacing: -1px; }
.archive-intro { max-width: 620px; margin: 18px 0 28px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.archive-status { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 18px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.archive-status strong { color: var(--text); font-weight: 400; }
.archive-day { display: grid; grid-template-columns: 165px minmax(0, 1fr); column-gap: 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.archive-date { margin: 0; padding-top: 3px; color: var(--accent); font-size: 19px; font-weight: 500; line-height: 1.5; }
.archive-date time { display: block; max-width: 130px; }
.archive-list { margin: 0; padding: 0; list-style: none; }
.archive-entry + .archive-entry { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgb(175 185 176 / 14%); }
.archive-entry h3 { margin: 8px 0 10px; font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -.35px; }
.archive-entry h3 a { text-decoration: none; text-underline-offset: 4px; }
.archive-entry h3 a:hover { color: var(--accent); text-decoration: underline; }
.archive-entry p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.archive-empty { padding: 36px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.archive-empty h2 { margin-top: 0; font-size: 23px; }
.archive-empty p { color: var(--muted); line-height: 1.7; }
.archive-pagination { margin-top: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.archive-directions { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.archive-directions a { padding: 12px 18px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.archive-directions a:hover { color: var(--accent); border-color: var(--accent); }
.pagination-disabled { padding: 13px 19px; color: var(--muted); opacity: .45; }
.archive-page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.archive-page-numbers a, .archive-page-numbers span { min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; text-decoration: none; }
.archive-page-numbers [aria-current] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.archive-page-numbers a:hover { color: var(--accent); border-color: var(--accent); }
.archive-page-numbers .pagination-gap { border-color: transparent; color: var(--muted); }
@media (max-width: 700px) {
    .archive-page { padding-top: 8px; }
    .archive-intro { font-size: 15px; }
    .archive-day { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 0; }
    .archive-date { font-size: 17px; }
    .archive-date time { max-width: none; }
    .archive-entry h3 { font-size: 19px; }
    .archive-empty { padding: 24px; }
    .archive-page-numbers { gap: 4px; }
    .archive-page-numbers a, .archive-page-numbers span { min-width: 34px; min-height: 40px; }
    .wrap { padding-left: 18px; padding-right: 18px; }
    .top { gap: 12px 25px; }
    .descriptor { display: none; }
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            'a a' 'a a' 'b c' 'b d' 'e e' 'f g' 'h h'
            'i i' 'i i' 'j k' 'j l' 'm m' 'n o' 'p p'
            'q q' 'q q' 'r s' 'r t' 'u u' 'v w' 'x x';
        grid-template-rows: repeat(21, minmax(140px, auto));
        gap: 9px;
    }
    .story { min-height: 175px; }
    .story-content { padding: 13px; }
    .grid .story h2 { font-size: 17px; }
    .grid :is(.slot-1, .slot-9, .slot-17) h2 { font-size: 20px; }
    .grid .story .summary { display: none; }
    .grid :is(.slot-1, .slot-9, .slot-17) .summary { display: block; }
    .grid :is(.slot-1, .slot-9, .slot-17).has-cover .summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    :is(.slot-1, .slot-9, .slot-17).has-cover .story-content { padding: 18px; }
    .grid :is(.slot-1, .slot-9, .slot-17).has-cover h2 { margin-top: 100px; font-size: 23px; }
    :is(.slot-2, .slot-10, .slot-18).has-cover .story-cover { display: block; height: 130px; flex-shrink: 0; border-bottom: 1px solid var(--line); }
    :is(.slot-5, .slot-8, .slot-13, .slot-16, .slot-21, .slot-24).has-cover { display: grid; grid-template-columns: minmax(0, 1fr) 30%; }
    :is(.slot-5, .slot-8, .slot-13, .slot-16, .slot-21, .slot-24).has-cover .story-cover { display: block; grid-column: 2; grid-row: 1; border-left: 1px solid var(--line); }
    :is(.slot-5, .slot-8, .slot-13, .slot-16, .slot-21, .slot-24).has-cover .story-content { grid-column: 1; grid-row: 1; }
    .heading h1 { font-size: 26px; }
    .news-page { padding-top: 0; }
    .news-toolbar { margin-bottom: 24px; }
    .news-header h1 { letter-spacing: -.8px; }
    .news-lead { margin: 16px 0; font-size: 18px; }
    .news-takeaway { padding: 18px; }
    .news-body, .news-takeaway p { font-size: 16px; }
    .news-sources { padding: 20px; }
    .news-pagination { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
    .news-neighbor--older { grid-column: auto; }
    .info-header { margin: 24px 0; }
    .info-lead { font-size: 18px; }
    .info-topics { grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 28px 0; }
    .info-topics section, .info-callout, .info-contact { padding: 20px; }
    .foot-links { gap: 10px 16px; }
}
