*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #c8141a;
  --navy: #0d1f3c;
  --bg: #f0f2f5;
  --white: #ffffff;
  --text: #111111;
  --muted: #5a5a5a;
  --border: #e0e0e0;
  --display: 'Playfair Display', Georgia, serif;

  /* Основной шрифт — Inter. Веса: 400 обычный, 500 средний, 600 полужирный, 700 жирный */
  --body: 'Inter', system-ui, sans-serif;
}

body { font-family: var(--body); background: var(--bg); color: var(--text); font-size: 17px; font-weight: 400; line-height: 1.6; scrollbar-gutter: stable; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }

/* TOPBAR */
.topbar { background: var(--navy); padding: 5px 0; }
.topbar .i { max-width:1280px; width:100%; margin:0 auto; padding:0 30px; display:flex; justify-content:space-between; }
.topbar span { font-size:12px; color:rgba(255,255,255,.5); letter-spacing:.04em; }

/* HEADER */
.header { background: var(--white); border-bottom: 3px solid var(--red); }
.header .i { max-width:1280px; width:100%; margin:0 auto; padding:14px 30px; display:flex; align-items:center; gap:16px; }
.logo { display:flex; align-items:baseline; line-height:1; }
.logo-n { font-family:var(--display); font-size:48px; font-weight:900; color:var(--red); line-height:1; }
.logo-u { font-family:var(--display); font-size:30px; font-weight:700; color:var(--red); line-height:1; }
.logo-r { font-family:var(--display); font-size:30px; font-weight:700; color:var(--navy); }
.logo-s { font-size:11px; color:var(--muted); letter-spacing:.13em; text-transform:uppercase; align-self:flex-end; padding-bottom:4px; margin-left:10px; }
.hnav { margin-left:auto; display:flex; gap:2px; align-items:center; }
.hnav a { font-size:14px; padding:6px 14px; border-radius:20px; color:var(--muted); font-weight:400; transition:all .15s; }
.hnav a:hover { background:#e8e8e8; color:var(--text); }
.hnav a.on { background:var(--white); color:var(--red); border:2px solid var(--red); font-weight:700; padding:5px 18px; }
.hsearch { display:flex; align-items:center; gap:8px; border:1px solid var(--border); border-radius:20px; padding:6px 14px; font-size:13px; color:var(--muted); cursor:pointer; white-space:nowrap; }
.hsearch:hover { border-color:#aaa; }

/* MAIN — левая колонка фиксирована, правая резиновая */
.main {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 30px;
  display: grid;
  grid-template-columns: 651px 1fr;
  gap: 14px;
  align-items: start;
}

/* SUB-GRID внутри левой колонки */
.sub-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; align-items:start; }

/* SECTION HEAD */
.sec-head { border-bottom:2px solid var(--navy); padding-bottom:7px; margin-bottom:14px; display:flex; align-items:baseline; gap:10px; }
.sec-title { font-size:26px; font-weight:700; color:var(--navy); }
.sec-head a { font-size:14px; color:var(--muted); }
.sec-head a:hover { color:var(--red); }

/* Стандартная ссылка-подпись у блоков контента — всегда 14px, не наследует родителя */
.link-read { font-size:14px !important; font-weight:600; color:var(--red); display:inline-block; }
.link-read:hover { text-decoration:underline; color:var(--red); }

/* ГЛАВНАЯ НОВОСТЬ */
.nhero { background:var(--white); border-radius:4px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.08); transition:box-shadow .2s; }
.nhero:hover { box-shadow:0 4px 16px rgba(0,0,0,.12); }
/* Fallback цвет если картинка не загрузилась */
.nhero-img { width:100%; aspect-ratio:16/9; background:#e0e0e0; background-size:cover; background-position:center; }
.nhero-body { padding:12px; }
.nhero-title { font-size:22px; font-weight:700; line-height:1.35; color:var(--text); margin-bottom:8px; }
.nhero-title:hover { color:var(--red); }
.nhero-intro { font-size:16px; line-height:1.65; color:var(--muted); margin-bottom:10px; }
.nhero-meta { font-size:13px; color:var(--muted); display:flex; justify-content:space-between; align-items:center; }

/* СПИСОК СОБЫТИЙ */
.ev-item { padding:7px 0; border-bottom:1px solid var(--border); }
.ev-item:last-child { border-bottom:none; }
.ev-title { font-size:16px; font-weight:600; line-height:1.35; color:var(--text); margin-bottom:3px; }
.ev-title:hover { color:var(--red); }
.ev-date { font-size:12px; color:#aaa; }

/* СРЕДНЯЯ ЧАСТЬ */
.col-mid { display:flex; flex-direction:column; gap:14px; }

/* Заголовки блоков — одинаковые с заголовками разделов */
.block-title { font-size:23px; font-weight:700; color:var(--navy); border-bottom:2px solid var(--navy); padding-bottom:6px; margin-bottom:12px; }

/* Топ месяца */
.top10-block { background:var(--white); border-radius:4px; padding:12px; box-shadow:0 1px 4px rgba(0,0,0,.07); }
.top-item { display:flex; gap:8px; padding:5px 0; border-bottom:1px solid var(--border); align-items:baseline; }
.top-item:last-child { border-bottom:none; }
.top-num { font-size:13px; font-weight:700; color:var(--red); min-width:18px; flex-shrink:0; }
.top-title { font-size:17px; font-weight:600; line-height:1.35; color:var(--text); }
.top-title:hover { color:var(--red); }

/* Этот день */
.dayago-block { background:var(--white); border-radius:4px; padding:12px; box-shadow:0 1px 4px rgba(0,0,0,.07); }
.dayago-img { width:100%; aspect-ratio:16/9; background:#e0e0e0; background-size:cover; background-position:center; border-radius:3px; margin-bottom:10px; }
.dayago-date { font-size:12px; color:var(--muted); margin-bottom:5px; }
.dayago-title { font-size:16px; font-weight:600; line-height:1.35; color:var(--navy); margin-bottom:6px; }
.dayago-title:hover { color:var(--red); }
.dayago-intro { font-size:15px; line-height:1.6; color:var(--muted); }

/* ПУБЛИЦИСТИКА */
.col-pub {}

.catlinks { font-size:13px; color:var(--muted); margin-bottom:14px; line-height:2.2; }
.catlinks a { color:var(--muted); }
.catlinks a:hover { color:var(--red); }
.catlinks a.on { color:var(--navy); font-weight:600; }
.catlinks .sep { margin:0 4px; color:var(--border); }

.pub-item { background:var(--white); border-radius:4px; overflow:hidden; margin-bottom:14px; box-shadow:0 1px 4px rgba(0,0,0,.07); transition:box-shadow .2s; }
.pub-item:hover { box-shadow:0 4px 14px rgba(0,0,0,.1); }
.pub-item:last-child { margin-bottom:0; }
.pub-item:nth-last-child(2) { margin-bottom:0; }
/* Картинка публицистики — полный размер без обрезки, fallback серый */
.pub-item-img { width:100%; height:auto; display:block; background:#e0e0e0; }
.pub-item-body { padding:12px; }
.pub-item-cat { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:6px; font-weight:600; }
.pub-item-title { font-size:22px; font-weight:700; line-height:1.35; color:var(--navy); margin-bottom:7px; }
.pub-item-title:hover { color:var(--red); }
.pub-item-meta { font-size:13px; color:var(--muted); margin-bottom:8px; }
.pub-item-intro { font-size:16px; line-height:1.7; color:#3a3a3a; margin-bottom:10px; }

/* СТРАНИЦА СТАТЬИ */
.article-wrap { max-width:1280px; width:100%; margin:0 auto; padding:20px 30px; }
.article-inner { max-width:780px; margin:0 auto; }
.article-breadcrumb { font-size:13px; color:var(--muted); margin-bottom:16px; display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.article-breadcrumb a { color:var(--muted); }
.article-breadcrumb a:hover { color:var(--red); }
.article-cat { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--red); font-weight:700; margin-bottom:10px; }
.article-title { font-size:29px; font-weight:700; line-height:1.25; color:var(--text); margin-bottom:12px; }
.article-meta { font-size:14px; color:var(--muted); margin-bottom:24px; padding-bottom:20px; border-bottom:1px solid var(--border); }
.article-body { font-size:17px; line-height:1.85; color:var(--text); }
.article-body p { margin-bottom:1.3em; }
.article-body img { max-width:100%; height:auto; border-radius:3px; margin:1.5em 0; }
.article-body h2 { font-size:21px; font-weight:700; margin:1.5em 0 .5em; color:var(--navy); }
.article-body h3 { font-size:18px; font-weight:700; margin:1.2em 0 .4em; }
.article-body a { color:var(--navy); text-decoration:underline; }
.article-body a:hover { color:var(--red); }
.article-body strong { font-weight:700; }
.article-body ul, .article-body ol { margin:0 0 1.2em 1.5em; }
.article-body li { margin-bottom:.5em; }
.article-body blockquote { border-left:3px solid var(--red); padding-left:1.2em; color:var(--muted); font-style:italic; margin:1.5em 0; }

/* ПОХОЖИЕ */
.related { margin-top:40px; padding-top:20px; border-top:2px solid var(--navy); }
.related-title { font-size:19px; font-weight:700; color:var(--navy); margin-bottom:14px; }
.related-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.related-card { background:var(--white); border-radius:4px; overflow:hidden; display:block; box-shadow:0 1px 4px rgba(0,0,0,.07); transition:box-shadow .2s; }
.related-card:hover { box-shadow:0 4px 14px rgba(0,0,0,.1); }
.related-img { aspect-ratio:16/9; background:#e0e0e0; background-size:cover; background-position:center; }
.related-body { padding:10px; }
.related-card-title { font-size:14px; font-weight:600; line-height:1.35; color:var(--text); margin-bottom:4px; }
.related-card:hover .related-card-title { color:var(--red); }
.related-card-meta { font-size:12px; color:var(--muted); }

/* ARCHIVE LINK */
.archive-link { display:flex; justify-content:flex-end; padding-top:6px; }
.archive-link a { font-size:14px; color:var(--muted); }
.archive-link a:hover { color:var(--red); }

/* FOOTER */
.footer { background:var(--navy); padding:16px 0; margin-top:20px; }
.footer .i { max-width:1280px; width:100%; margin:0 auto; padding:0 30px; display:flex; justify-content:space-between; align-items:center; }
.flogo { font-family:var(--display); font-size:20px; font-weight:700; color:var(--white); }
.flogo span { color:var(--red); }
.fcopy { font-size:12px; color:rgba(255,255,255,.4); }

/* АДАПТИВ */
@media (max-width:1100px) {
  .main { grid-template-columns:1fr; }
  .sub-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:700px) {
  .sub-grid { grid-template-columns:1fr; }
  .related-grid { grid-template-columns:1fr 1fr; }
  .article-title { font-size:23px; }
  .logo-s { display:none; }
}
@media (max-width:480px) {
  .header .i { flex-wrap:wrap; }
  .hnav { order:3; width:100%; justify-content:center; margin-top:8px; }
}
/* ВИДЖЕТЫ (погода + курсы) — единый белый блок */
.col-mid .widget-block { background:var(--white); border-radius:4px; padding:12px; box-shadow:0 1px 4px rgba(0,0,0,.07); }
.widget-block .block-title { margin-bottom:12px; }
.widget-sub-title { font-size:13px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.widget-weather { margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.weather-main { display:flex; align-items:center; gap:8px; margin:6px 0; }
.weather-icon { font-size:28px; line-height:1; }
.weather-temp { font-size:28px; font-weight:700; color:var(--navy); line-height:1; }
.weather-desc { font-size:14px; color:var(--muted); }
.weather-meta { font-size:12px; color:var(--muted); margin-top:2px; }
.widget-rates .widget-sub-title { margin-top:0; }
.rates-src { font-size:11px; font-weight:400; color:var(--muted); margin-left:6px; }
.rates-list { display:flex; flex-direction:column; gap:0; margin-top:6px; }
.rate-item { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid var(--border); font-size:15px; }
.rate-item:last-child { border-bottom:none; }
.rate-code { color:var(--muted); font-weight:600; }
.rate-val { color:var(--navy); font-weight:700; font-size:16px; }
.rates-date { font-size:11px; color:var(--muted); margin-top:6px; text-align:right; }

/* Список событий — высота по col-mid через JS, затухание снизу */
.events-list { overflow:hidden; position:relative; background:var(--white); border-radius:4px; padding:12px; box-shadow:0 1px 4px rgba(0,0,0,.07); }
.events-list::after { content:''; position:absolute; bottom:0; left:0; right:0; height:80px; background:linear-gradient(to bottom, transparent, var(--white)); pointer-events:none; border-radius:0 0 4px 4px; }

/* ФУТЕР — счётчики */
.fcounters { display:flex; align-items:center; gap:8px; }