:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent: #d9272e;
  --ink: #151515;
  --muted: #696969;
  --line: #e5e3df;
  --surface: #ffffff;
  --background: #f7f6f3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  line-height: 1.5;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), 1080px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  flex: none;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo::after { content: ""; color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px 24px;
  font-size: 15px;
  font-weight: 650;
}

.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--accent); }

.nav-channel {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.page-content {
  min-height: 65vh;
  padding-block: 58px 80px;
}

.static-page {
  max-width: 800px;
}
.static-page h1 {
  margin: 0 0 34px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.static-page h2 {
  margin: 38px 0 12px;
  font-size: 26px;
  line-height: 1.2;
}
.static-page p {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.7;
}
.static-page a { color: var(--accent); }

.page-heading { margin-bottom: 38px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.news-page h1,
.news-detail h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.news-list { display: grid; gap: 14px; }

.date-heading {
  margin: 26px 0 2px;
  font-size: 18px;
  line-height: 1.2;
}

.date-heading:first-child { margin-top: 0; }

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 160ms ease;
}

.news-card:hover {
  border-color: #c8c5bf;
}

.news-card-link {
  display: flex;
  min-height: 152px;
  text-decoration: none;
}

.news-card-image {
  width: 220px;
  flex: none;
  object-fit: cover;
}

.news-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 26px 30px;
}

.news-card time,
.related-card time,
.article-dates {
  color: var(--muted);
  font-size: 14px;
}

.news-card-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 780;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.empty-state {
  max-width: 620px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.empty-state h2 { margin-top: 0; }

.news-detail { max-width: 800px; }

.back-link {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

.article-header { margin-bottom: 34px; }
.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
}

.article-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  margin: 0 0 34px;
  border-radius: 16px;
  object-fit: contain;
  object-position: center;
}

.album-link {
  position: relative;
  display: block;
  margin-bottom: 34px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
}
.album-link .article-image { margin-bottom: 0; border-radius: 0; }
.album-link-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / 68%);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.source-icon { flex: 0 0 auto; }
.album-link:hover .album-link-label { background: rgb(0 0 0 / 86%); }
.album-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.video-cover {
  position: relative;
  display: block;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 16px;
}
.video-cover .article-image { margin: 0; border-radius: 0; }
.video-cover-link { transition: filter .2s ease; }
.video-cover-link:hover { filter: brightness(.88); }
.video-cover-link:focus-visible,
.video-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgb(0 0 0 / 72%);
  box-shadow: 0 4px 18px rgb(0 0 0 / 25%);
}
.video-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 19px solid #fff;
  transform: translate(-50%, -50%);
}
.video-card-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 700;
}
.video-play-icon-small { position: relative; inset: auto; width: 42px; height: 42px; flex: none; transform: none; }
.video-play-icon-small::after { border-top-width: 7px; border-bottom-width: 7px; border-left-width: 11px; }
.video-cta {
  display: inline-block;
  margin: 0 0 34px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: filter .2s ease;
}
.video-cta:hover { filter: brightness(.9); }

.article-body {
  font-size: 20px;
  line-height: 1.72;
}
.article-body > :first-child { margin-top: 0; }
.article-body > :last-child { margin-bottom: 0; }
.article-body img { max-width: 100%; height: auto; border-radius: 14px; }
.article-body a { color: var(--accent); }

.button-link {
  display: inline-block;
  margin-top: 34px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}
.button-link:hover { filter: brightness(.9); }

.feed-navigation { margin-top: 36px; text-align: center; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; }
.pager a, .pager span { padding: 8px 11px; border-radius: 8px; }
.pager a { color: var(--ink); }
.pager a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pager [aria-current="page"] { background: var(--ink); color: #fff; font-weight: 700; }

.related {
  margin-top: 74px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.related > h2 { margin: 0 0 22px; font-size: 30px; letter-spacing: -.03em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.related-card a { display: block; height: 100%; text-decoration: none; }
.related-card img { display: block; width: 100%; height: 140px; object-fit: cover; }
.related-card span { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.related-card strong { font-size: 18px; line-height: 1.25; }
.related-card a:hover strong { color: var(--accent); }

.channel-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding: 26px 30px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}
.channel-panel strong { font-size: 21px; }
.channel-links { display: flex; flex-wrap: wrap; gap: 18px; }
.channel-links a { font-weight: 700; text-underline-offset: 4px; }

.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}
.footer-inner,
.footer-nav {
  display: flex;
  align-items: center;
}
.footer-inner { justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; flex: none; }
.footer-nav { flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; }
.footer-nav a { text-underline-offset: 4px; }

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), 1080px); }
  .header-inner { min-height: 66px; gap: 16px; }
  .logo { font-size: 19px; }
  .main-nav { gap: 10px; font-size: 13px; }
  .main-nav .nav-secondary { display: none; }
  .nav-channel { padding: 6px 8px; }
  .page-content { padding-block: 38px 58px; }
  .static-page h1 { margin-bottom: 26px; font-size: clamp(34px, 11vw, 48px); }
  .static-page h2 { margin-top: 30px; font-size: 23px; }
  .static-page p { font-size: 18px; line-height: 1.65; }
  .page-heading { margin-bottom: 28px; }
  .news-page h1, .news-detail h1 { font-size: clamp(36px, 12vw, 54px); }
  .news-card-link { min-height: 116px; }
  .news-card-image { width: 116px; }
  .news-card-copy { gap: 7px; padding: 18px; }
  .news-card-title { font-size: 20px; }
  .pager { gap: 3px; font-size: 14px; }
  .back-link { margin-bottom: 30px; }
  .article-header { margin-bottom: 26px; }
  .article-image { margin-bottom: 26px; border-radius: 14px; }
  .video-cover { border-radius: 14px; }
  .video-play-icon { width: 58px; height: 58px; }
  .video-play-icon-small { width: 40px; height: 40px; }
  .article-body { font-size: 19px; line-height: 1.65; }
  .related { margin-top: 56px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card a { display: flex; }
  .related-card img { width: 116px; height: auto; min-height: 110px; flex: none; }
  .channel-panel { align-items: flex-start; flex-direction: column; padding: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .header-inner { gap: 9px; }
  .logo { max-width: 92px; line-height: 1; }
  .main-nav { gap: 5px; }
  .main-nav > a:first-child { font-size: 0; }
  .main-nav > a:first-child::after { content: "Новости"; font-size: 13px; }
  .news-card-image { width: 104px; }
  .news-card-copy { padding: 15px; }
  .news-card-title { font-size: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .news-card {
    transition: border-color 160ms ease, transform 160ms ease;
  }

  .news-card:hover {
    transform: translateY(-2px);
  }
}
