:root {
    --ink: #18202a;
    --muted: #667085;
    --line: #e6e8ee;
    --paper: #ffffff;
    --soft: #f5f7fb;
    --accent: #d71920;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-header, .site-footer, .page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { padding: 18px 0 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 52px; font-size: 32px; font-weight: 800; letter-spacing: 0; }
.brand img { max-height: 52px; width: auto; }
.search-form { display: flex; gap: 8px; width: min(420px, 100%); }
.search-form input { flex: 1; min-width: 0; border: 1px solid var(--line); padding: 11px 12px; background: var(--paper); }
.search-form button, .pagination a { border: 0; background: var(--accent); color: #fff; padding: 11px 16px; font-weight: 700; cursor: pointer; }
.main-nav { display: flex; gap: 6px; margin-top: 18px; padding: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); overflow-x: auto; }
.main-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 14px; border-radius: 6px; color: var(--ink); font-weight: 700; white-space: nowrap; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.main-nav a:hover { color: var(--accent); background: #fff4f4; box-shadow: inset 0 0 0 1px rgba(215, 25, 32, .14); }
.main-nav i { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--accent); background: #fff1f1; font-size: 13px; }
.main-nav a:hover i { color: #fff; background: var(--accent); }
main { min-height: 60vh; }
.page-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; padding: 30px 0; align-items: start; }
.single-column { grid-template-columns: minmax(0, 1fr); }
.section-head { margin: 0 0 18px; display: flex; align-items: end; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--ink); }
.section-head h1, .section-head h2 { margin: 0; padding-bottom: 10px; font-size: 28px; line-height: 1.2; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-bottom: 30px; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.group-block { margin-bottom: 34px; }
.news-card, .side-panel, .article-detail, .static-page { background: var(--paper); border: 1px solid var(--line); }
.news-card > a { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 150px; }
.hero-grid .news-card:first-child > a { display: block; }
.news-card img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; background: #d9dee8; }
.hero-grid .news-card:first-child img { height: 350px; }
.news-card-body { padding: 16px; }
.news-kicker { display: inline-block; margin-bottom: 8px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.news-card h2 { margin: 0; font-size: 20px; line-height: 1.32; }
.news-card p { margin: 10px 0 0; color: var(--muted); }
.news-card small, .article-meta { color: var(--muted); }
.sidebar { position: sticky; top: 18px; }
.side-panel { padding: 18px; }
.side-panel h2 { margin: 0 0 14px; font-size: 20px; }
.side-news + .side-news { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.side-news a { display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: center; font-weight: 700; }
.side-news img { width: 82px; height: 64px; object-fit: cover; background: #d9dee8; }
.article-detail { padding: 28px; }
.article-detail h1 { margin: 0 0 12px; font-size: 38px; line-height: 1.18; }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; margin: 22px 0; }
.article-body { font-size: 18px; }
.article-body img { height: auto; margin: 20px 0; }
.static-page { padding: 28px; }
.breadcrumb { display: flex; gap: 8px; color: var(--muted); margin-bottom: 16px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer strong { color: var(--ink); font-size: 20px; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(24, 32, 42, .2);
    display: none;
    z-index: 999;
}
.back-to-top.is-visible { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 900px) {
    .topbar, .site-footer { align-items: stretch; flex-direction: column; }
    .page-shell, .hero-grid, .news-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .news-card > a { grid-template-columns: 130px minmax(0, 1fr); }
    .article-detail h1 { font-size: 30px; }
}
@media (max-width: 560px) {
    .site-header, .site-footer, .page-shell { width: min(100% - 20px, 1180px); }
    .search-form { flex-direction: column; }
    .news-card > a { display: block; }
    .news-card img { height: 210px; }
}
