:root {
  --red: #d71920;
  --red-dark: #b3121a;
  --ink: #131316;
  --ink-2: #1c1c21;
  --text: #202024;
  --muted: #6b6b72;
  --line: #e6e6ea;
  --bg: #f5f5f7;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 6px 24px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── верхняя полоса ─────────────────────────── */
.topbar { background: var(--ink); color: #c9c9cf; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar__live { display: inline-flex; align-items: center; gap: 7px; text-transform: uppercase; letter-spacing: .08em; }
.topbar__live i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(215, 25, 32, .25); }
  50% { box-shadow: 0 0 0 6px rgba(215, 25, 32, .06); }
}

/* ── мастхед ──────────────────────────────── */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 20px; flex-wrap: wrap; }
.logo__text { font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.logo__text::after {
  content: ''; display: inline-block; width: 10px; height: 10px; margin-left: 6px;
  background: var(--red); border-radius: 2px;
}
.search { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
.search input { border: 0; padding: 10px 14px; font-size: 14px; background: transparent; outline: none; width: 240px; }
.search button { border: 0; background: var(--red); color: #fff; padding: 0 18px; font-weight: 600; cursor: pointer; }
.search button:hover { background: var(--red-dark); }

/* ── навигация ────────────────────────────── */
.nav { background: var(--ink-2); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.nav__inner { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px; }
.nav__link { color: #d6d6dc; padding: 13px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav__link:hover { color: #fff; }
.nav__link.is-active { color: #fff; border-bottom-color: var(--red); }

/* ── бегущая строка ───────────────────────── */
.ticker { display: flex; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker__label {
  background: var(--red); color: #fff; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; padding: 9px 16px; display: flex; align-items: center; font-size: 13px; white-space: nowrap;
}
.ticker__viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker__track { display: flex; white-space: nowrap; animation: scroll 45s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__item { color: var(--text); font-size: 14px; padding: 9px 0; }
.ticker__item::before { content: '●'; color: var(--red); font-size: 9px; margin: 0 14px; vertical-align: 2px; }
.ticker__item:hover { color: var(--red); }

/* ── контент ──────────────────────────────── */
.main { padding: 24px 20px 40px; }
.page-title { font-size: 24px; font-weight: 800; margin-bottom: 18px; font-family: Georgia, 'Times New Roman', serif; color: var(--ink); }

.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.hero__media { position: relative; min-height: 280px; background: linear-gradient(135deg, #eceef1, #dfe2e6); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.hero__title { font-size: 30px; line-height: 1.2; font-weight: 800; margin: 14px 0 12px; font-family: Georgia, 'Times New Roman', serif; color: var(--ink); }
.hero__excerpt { color: var(--muted); font-size: 16px; }

.meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.tag { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; }
.tag--sm { padding: 2px 7px; font-size: 10px; }
.meta__src { font-weight: 600; color: var(--ink); }

/* ── сетка карточек ───────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.card__link { display: flex; flex-direction: column; height: 100%; }
.card__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eceef1, #dfe2e6); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 900; color: #c3c7cd; }
.card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 17px; line-height: 1.3; font-weight: 700; font-family: Georgia, 'Times New Roman', serif; color: var(--ink); }
.card__title:hover { color: var(--red); }
.card__excerpt { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__body .meta { margin-top: auto; }

.play {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .65); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
}

.video { margin-top: 14px; aspect-ratio: 16 / 9; }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }

/* ── служебное ────────────────────────────── */
.empty { background: var(--white); padding: 48px; text-align: center; color: var(--muted); border-radius: var(--radius); }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 28px 0 12px; }
.pager__btn { background: var(--ink-2); color: #fff; padding: 9px 16px; border-radius: 7px; font-weight: 600; font-size: 14px; }
.pager__btn:hover { background: var(--red); }
.pager__info { color: var(--muted); font-size: 14px; }
.counter { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }

.footer { background: var(--ink); color: #9a9aa1; margin-top: 40px; }
.footer .wrap { padding: 28px 20px; }
.footer__brand { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.footer__note { font-size: 13px; max-width: 720px; }

/* ── адаптив ──────────────────────────────── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero__media { min-height: 200px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .logo__text { font-size: 26px; }
  .search input { width: 150px; }
  .hero__title { font-size: 22px; }
}
