:root {
  --accent: var(--theme-accent, #d6001c);
  --accent-dark: #a90016;
  --ink: #101010;
  --muted: #5f6368;
  --line: #dedede;
  --soft: #f4f4f4;
  --paper: #ffffff;
  --warning: #ffd426;
  --container: 1220px;
  --ease: cubic-bezier(.2, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, Helvetica, sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), opacity 120ms var(--ease);
}

button:hover,
.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

:focus-visible {
  outline: 2px solid var(--warning);
  outline-offset: 2px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: var(--warning);
  color: var(--ink);
}

.site-header {
  position: relative;
  z-index: 100;
  background: var(--paper);
}

.has-sticky-header .site-header {
  position: sticky;
  top: 0;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 180ms var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.utility-bar {
  background: #050505;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.utility-bar__inner,
.masthead__inner,
.primary-nav__inner,
.topic-strip__inner {
  display: flex;
  align-items: center;
}

.utility-bar__inner {
  justify-content: flex-end;
  gap: 16px;
  min-height: 30px;
}

.utility-bar__link {
  color: #ddd;
}

.utility-bar__donate {
  color: var(--warning);
}

.masthead {
  background: var(--accent);
  color: #fff;
}

.masthead__inner {
  min-height: 74px;
  justify-content: space-between;
  gap: 16px;
  transition: min-height 180ms var(--ease);
}

.site-header.is-stuck .masthead__inner {
  min-height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  max-height: 52px;
  width: auto;
}

.brand__mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--accent);
  border-radius: 4px;
  font-weight: 900;
}

.brand__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border-color: rgba(255, 255, 255, .8);
  background: rgba(0, 0, 0, .18);
}

.masthead__menu {
  display: none;
  flex-direction: column;
}

.masthead__menu span:not(.sr-only) {
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
}

.search-glyph {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.search-glyph::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -6px;
  bottom: -4px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.primary-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.primary-nav__inner {
  min-height: 42px;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.primary-nav__link {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms var(--ease);
}

.primary-nav__link:hover::after {
  transform: scaleX(1);
}

.topic-strip {
  background: #f5f5f5;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.topic-strip__inner {
  min-height: 36px;
  gap: 18px;
  overflow: hidden;
}

.topic-strip__label {
  flex: 0 0 auto;
  padding: 4px 8px;
  background: var(--warning);
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.topic-strip a {
  flex: 0 0 auto;
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}

.search-panel {
  display: none;
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.search-panel.is-open {
  display: block;
  animation: panelIn 180ms var(--ease);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-form input,
.footer-search input,
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 140px;
  padding-block: 10px;
}

.search-form input:focus,
.footer-search input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(214, 0, 28, .18);
}

.search-suggestions {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.search-suggestions a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.search-suggestions img {
  width: 54px;
  height: 42px;
  object-fit: cover;
  background: var(--soft);
}

.ad-band {
  background: #f0f0f0;
}

.ad-slot {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 90px;
  margin: 20px 0;
  border: 1px dashed #c9c9c9;
  background: #eee;
  color: #767676;
}

.ad-slot:empty::before {
  content: "Реклама";
  font-size: 12px;
  text-transform: uppercase;
}

.ad-slot--square {
  min-height: 250px;
}

.home-hero {
  padding: 28px 0 44px;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .85fr) minmax(280px, .72fr);
  gap: 28px;
  align-items: start;
}

.lead-story__image,
.story-card__image,
.news-card__image,
.news-preview__image,
.article-hero,
.text-page__image {
  display: block;
  overflow: hidden;
  background: var(--soft);
}

.lead-story__image {
  aspect-ratio: 16 / 9;
}

.lead-story__image img,
.story-card__image img,
.news-card__image img,
.news-preview__image img,
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 190ms var(--ease), opacity 190ms var(--ease);
}

.lead-story:hover img,
.story-card:hover img,
.news-card:hover img,
.news-preview:hover img {
  transform: scale(1.025);
  opacity: .94;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.story-meta a {
  color: var(--accent);
}

.lead-story h1,
.lead-story h2 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  font-weight: 900;
}

.lead-story p,
.news-card p,
.news-preview p,
.page-header p {
  color: var(--muted);
}

.lead-story--section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.lead-story--section h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.secondary-stack {
  display: grid;
  gap: 16px;
}

.story-card--compact {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.story-card__image {
  aspect-ratio: 4 / 3;
}

.story-card h2 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 900;
}

.news-rail {
  border-top: 4px solid var(--accent);
  background: #111;
  color: #fff;
  padding: 18px;
}

.news-rail--light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}

.news-rail h2 {
  margin: 0 0 14px;
  font-size: 22px;
  text-transform: uppercase;
}

.ranked-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.ranked-list li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.news-rail--light .ranked-list li {
  border-color: var(--line);
}

.ranked-list li::before {
  content: counter(rank);
  color: var(--warning);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.ranked-list a {
  display: block;
  font-weight: 900;
  line-height: 1.14;
}

.ranked-list span {
  display: block;
  margin-top: 4px;
  color: #aaa;
  font-size: 12px;
}

.section-band {
  padding: 42px 0;
}

.section-band--dark {
  background: #151515;
  color: #fff;
}

.section-band__inner > h2,
.section-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}

.section-heading a {
  font-weight: 800;
  color: var(--accent);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.news-card {
  min-width: 0;
}

.news-card__image {
  aspect-ratio: 4 / 3;
}

.news-card h3,
.news-preview h3 {
  margin: 8px 0 0;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 900;
}

.news-card h3 a,
.news-preview h3 a,
.lead-story h1 a,
.lead-story h2 a,
.story-card h2 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: color 160ms var(--ease), background-size 160ms var(--ease);
}

.news-card:hover h3 a,
.news-preview:hover h3 a,
.lead-story:hover h1 a,
.lead-story:hover h2 a,
.story-card:hover h2 a {
  background-size: 100% 2px;
}

.news-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 8px 0 0;
  font-size: 15px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.preview-list {
  display: grid;
  gap: 18px;
}

.news-preview {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.news-preview__image {
  aspect-ratio: 16 / 10;
}

.text-list {
  display: grid;
  gap: 0;
}

.text-list a {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 900;
  line-height: 1.18;
}

.load-more-controls {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.load-more-button,
.load-more-sentinel {
  min-width: 160px;
}

.page-header {
  padding: 42px 0 26px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f7;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-header h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.search-form--page {
  max-width: 680px;
  margin-top: 22px;
}

.article-page {
  padding: 38px 0 52px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 48px;
  align-items: start;
  justify-content: center;
}

.article-main h1 {
  margin: 10px 0 14px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  font-weight: 900;
}

.article-lead {
  margin: 0 0 22px;
  color: #343434;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.article-hero {
  margin: 0 0 22px;
  aspect-ratio: 16 / 9;
}

.article-hero figcaption {
  padding-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.article-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.62;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 0 0 1.1em;
}

.article-body h2,
.article-body h3 {
  font-family: "Arial Narrow", "Roboto Condensed", Arial, Helvetica, sans-serif;
  line-height: 1.1;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body blockquote {
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: #f7f7f7;
  font-weight: 700;
}

.mini-player,
.share-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: #fff;
}

.mini-player h2 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
}

.mini-player p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.mini-player__controls,
.share-block {
  flex-wrap: wrap;
}

.mini-player__controls {
  display: flex;
  gap: 8px;
}

.mini-player__controls button,
.share-block a,
.share-block button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
}

.share-block span {
  font-weight: 900;
  text-transform: uppercase;
}

.share-block a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.article-source {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.text-page {
  max-width: 820px;
}

.text-page__image {
  width: 100%;
  margin-bottom: 22px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-form p {
  margin: 0;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.form-success {
  color: #0a7a33;
  font-weight: 800;
}

.not-found {
  min-height: 52vh;
  display: grid;
  align-items: center;
  padding: 56px 0;
  background: #151515;
  color: #fff;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1;
  font-weight: 900;
}

.not-found p {
  max-width: 620px;
  color: #ddd;
}

.not-found__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

.site-footer {
  background: #080808;
  color: #fff;
  padding: 42px 0 20px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 10px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--warning);
  font-size: 14px;
  text-transform: uppercase;
}

.site-footer p {
  color: #bbb;
}

.site-footer nav,
.footer-search {
  display: grid;
  align-content: start;
  gap: 9px;
}

.site-footer a {
  color: #ddd;
}

.footer-search form {
  display: flex;
  gap: 8px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #aaa;
  font-size: 12px;
}

@media (max-width: 1060px) {
  .home-hero__grid,
  .split-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .news-rail,
  .article-sidebar {
    width: 100%;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .utility-bar {
    display: none;
  }

  .masthead__inner {
    min-height: 62px;
  }

  .masthead__menu {
    display: inline-flex;
  }

  .brand {
    font-size: 28px;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .primary-nav {
    display: none;
  }

  .primary-nav.is-open {
    display: block;
    animation: panelIn 180ms var(--ease);
  }

  .primary-nav__inner {
    display: grid;
    gap: 0;
    padding-block: 8px;
    overflow: visible;
  }

  .primary-nav__link {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .topic-strip__inner {
    overflow-x: auto;
  }

  .home-hero {
    padding-top: 20px;
  }

  .story-card--compact,
  .news-preview {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card__image,
  .story-card__image,
  .news-preview__image {
    aspect-ratio: 16 / 10;
  }

  .section-band {
    padding: 32px 0;
  }

  .article-main h1,
  .page-header h1,
  .lead-story h1,
  .lead-story h2 {
    font-size: 32px;
  }

  .article-body {
    font-size: 17px;
  }

  .mini-player,
  .share-block,
  .footer-search form,
  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .mini-player__controls {
    width: 100%;
  }

  .mini-player__controls button {
    flex: 1;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .story-card--compact,
  .news-preview {
    grid-template-columns: 1fr;
  }

  .story-card__image,
  .news-preview__image {
    aspect-ratio: 16 / 9;
  }
}
