:root {
  color-scheme: dark;
  --bg: #090a0a;
  --surface: #111413;
  --surface-2: #171b19;
  --line: #28332e;
  --text: #f3f7f4;
  --muted: #a5b0aa;
  --soft: #d7e5dc;
  --accent: #7cffb5;
  --accent-2: #6dd9ff;
  --warn: #ffd166;
  --danger: #ff7d7d;
  --shadow: rgba(0, 0, 0, 0.34);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 255, 181, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 217, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 74%);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 40px;
  background: rgba(9, 10, 10, 0.86);
  border-bottom: 1px solid rgba(124, 255, 181, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(124, 255, 181, 0.45);
  background: #101711;
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.settings-toggle {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(17, 20, 19, 0.84);
  color: var(--soft);
  cursor: pointer;
  font-weight: 800;
}

.settings-toggle:hover,
.settings-toggle:focus-visible {
  color: var(--text);
  border-color: rgba(124, 255, 181, 0.48);
}

.settings-panel {
  position: absolute;
  top: 58px;
  right: 40px;
  z-index: 30;
  display: grid;
  gap: 12px;
  min-width: 220px;
  padding: 18px;
  border: 1px solid rgba(124, 255, 181, 0.28);
  background: rgba(9, 10, 10, 0.98);
  box-shadow: 0 18px 46px var(--shadow);
}

.settings-panel[hidden] {
  display: none;
}

.settings-panel strong {
  color: var(--text);
}

.settings-panel span {
  color: var(--muted);
  font-size: 0.92rem;
}

.language-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.language-options button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.language-options button.is-active,
.language-options button:hover,
.language-options button:focus-visible {
  border-color: rgba(124, 255, 181, 0.55);
  background: rgba(124, 255, 181, 0.1);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  z-index: -3;
  background: #070909;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 10, 10, 0.98) 0%, rgba(9, 10, 10, 0.76) 42%, rgba(9, 10, 10, 0.12) 100%),
    linear-gradient(0deg, rgba(9, 10, 10, 0.86) 0%, transparent 34%);
}

.hero-content {
  width: min(740px, calc(100% - 80px));
  margin-left: 40px;
  padding: 88px 0 110px;
  animation: heroEnter 620ms ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 8rem;
  line-height: 0.88;
  font-weight: 900;
}

.hero-lead {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--soft);
  font-size: 1.35rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #06100a;
  box-shadow: 0 16px 42px rgba(124, 255, 181, 0.18);
}

.button-ghost {
  border-color: rgba(215, 229, 220, 0.3);
  background: rgba(17, 20, 19, 0.72);
  color: var(--text);
}

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(124, 255, 181, 0.12);
  border-bottom: 1px solid rgba(124, 255, 181, 0.12);
  background: #0e1110;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 16px 0;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  animation: tickerMove 28s linear infinite;
}

.ticker-track span {
  position: relative;
  padding-left: 34px;
  white-space: nowrap;
}

.ticker-track span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background: var(--warn);
}

.section {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading h2,
.digest h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.04;
}

.section-heading p:not(.section-kicker),
.digest-copy p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.stream-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 22px;
}

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

.filter-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: var(--text);
  border-color: rgba(124, 255, 181, 0.55);
  background: rgba(124, 255, 181, 0.08);
}

.article-total-counter {
  min-height: 38px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid rgba(124, 255, 181, 0.32);
  color: var(--text);
  background: rgba(124, 255, 181, 0.06);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.95rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.featured-story {
  position: relative;
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 28px;
  border: 1px solid rgba(124, 255, 181, 0.34);
  background: #0d1110;
  box-shadow: 0 18px 46px var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.featured-story::before,
.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--article-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.68;
  filter: saturate(0.9) contrast(1.06);
  transition: opacity 220ms ease;
}

.featured-story::after,
.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(7, 10, 9, 0.94) 0%, rgba(7, 10, 9, 0.78) 34%, rgba(7, 10, 9, 0.32) 68%, rgba(7, 10, 9, 0.08) 100%);
}

.featured-story:hover,
.featured-story:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(124, 255, 181, 0.62);
}

.featured-story:hover::before,
.featured-story:focus-visible::before,
.article-card:hover::before,
.article-card:focus-within::before {
  opacity: 0.78;
}

.featured-story > *,
.article-card > * {
  position: relative;
  z-index: 1;
}

.featured-story h3 {
  max-width: 850px;
  margin: 0;
  font-size: 2rem;
  line-height: 1.12;
}

.featured-story p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.article-card {
  position: relative;
  min-height: 310px;
  border: 1px solid rgba(215, 229, 220, 0.12);
  background: #0d1110;
  box-shadow: 0 18px 46px var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.article-card.is-hidden {
  display: none;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 255, 181, 0.4);
}

.article-card a {
  position: relative;
  z-index: 1;
  min-height: 310px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 22px;
}

.article-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.article-index {
  color: rgba(124, 255, 181, 0.46);
  font-weight: 900;
  font-size: 2.1rem;
}

.article-tag {
  justify-self: start;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.internal-memo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  color: var(--warn);
  background: rgba(255, 209, 102, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.25;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.article-meta {
  align-self: end;
  color: var(--warn);
  font-size: 0.9rem;
  font-weight: 800;
}

.rubrics {
  border-top: 1px solid rgba(215, 229, 220, 0.1);
}

.rubric-list {
  display: grid;
  gap: 1px;
  margin-top: 36px;
  background: rgba(215, 229, 220, 0.12);
}

.rubric-list a {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  padding: 28px 0;
  background: var(--bg);
  transition: background 160ms ease, padding-left 160ms ease;
}

.rubric-list a:hover,
.rubric-list a:focus-visible {
  background: #101412;
  padding-left: 18px;
}

.rubric-list span {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}

.rubric-list strong {
  color: var(--soft);
  font-size: 1.24rem;
  line-height: 1.35;
}

.signal-board {
  width: min(1180px, calc(100% - 80px));
  padding-top: 70px;
}

.signal-list {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 320px) 150px;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.signal-row span {
  color: var(--soft);
  font-size: 1.12rem;
  font-weight: 700;
}

.signal-row strong {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: right;
}

meter {
  width: 100%;
  height: 12px;
}

meter::-webkit-meter-bar {
  background: #202722;
  border: 0;
}

meter::-webkit-meter-optimum-value {
  background: var(--accent);
}

meter::-moz-meter-bar {
  background: var(--accent);
}

.digest {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 64px;
  align-items: center;
  border-top: 1px solid rgba(215, 229, 220, 0.1);
}

.digest-form {
  padding: 28px;
  border: 1px solid rgba(215, 229, 220, 0.16);
  background: var(--surface);
  box-shadow: 0 18px 46px var(--shadow);
}

.digest-form label {
  display: block;
  margin-bottom: 14px;
  color: var(--soft);
  font-weight: 800;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #0b0d0c;
  color: var(--text);
  outline: 0;
}

.input-row input:focus {
  border-color: rgba(124, 255, 181, 0.7);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 28px 40px;
  border-top: 1px solid rgba(215, 229, 220, 0.1);
  color: var(--muted);
}

.site-footer span:first-child {
  justify-self: start;
  color: var(--text);
  font-weight: 900;
}

.site-copyright {
  justify-self: center;
  text-align: center;
}

.site-footer span:last-child {
  justify-self: end;
  text-align: right;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 900;
  border-bottom: 1px solid rgba(124, 255, 181, 0.45);
}

.article-page {
  width: min(900px, calc(100% - 80px));
  margin: 0 auto;
  padding: 82px 0 52px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 800;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.article-page h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1.02;
}

.article-page-lead {
  margin: 28px 0 0;
  color: var(--soft);
  font-size: 1.26rem;
  line-height: 1.65;
}

.article-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--warn);
  font-size: 0.95rem;
  font-weight: 800;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
}

.article-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(124, 255, 181, 0.25);
  color: var(--soft);
  background: rgba(124, 255, 181, 0.06);
  font-size: 0.88rem;
  font-weight: 800;
}

.article-hero-media {
  margin: 0 0 42px;
}

.article-hero-figure,
.article-inline-figure {
  margin: 0;
}

.article-hero-figure img,
.article-inline-figure img {
  display: block;
  width: 100%;
  border: 1px solid rgba(215, 229, 220, 0.14);
  background: var(--surface);
}

.article-hero-figure img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.article-inline-figure {
  margin-top: 24px;
}

.article-inline-figure img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.article-hero-figure figcaption,
.article-inline-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.article-body {
  display: grid;
  gap: 34px;
}

.article-section {
  padding-top: 28px;
  border-top: 1px solid rgba(215, 229, 220, 0.12);
}

.article-section h2 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  line-height: 1.2;
}

.article-section p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.78;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-sources {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(215, 229, 220, 0.12);
}

.telegram-block {
  margin-top: 44px;
  padding: 28px;
  border: 1px solid rgba(124, 255, 181, 0.26);
  background:
    linear-gradient(135deg, rgba(124, 255, 181, 0.11), transparent 42%),
    var(--surface);
}

.telegram-block h2 {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 1.4rem;
}

.telegram-block p,
.telegram-block li {
  color: var(--soft);
  line-height: 1.65;
}

.telegram-block ul {
  margin: 14px 0;
  padding-left: 22px;
}

.telegram-block strong {
  display: inline-flex;
  color: var(--warn);
}

.telegram-comment {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 229, 220, 0.14);
}

.telegram-comment h3 {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 1rem;
}

.telegram-comment p {
  margin: 0;
  color: var(--muted);
}

.article-sources h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--accent);
  text-transform: uppercase;
}

.article-sources a {
  display: inline-flex;
  margin: 0 14px 10px 0;
  color: var(--soft);
  border-bottom: 1px solid rgba(124, 255, 181, 0.44);
}

.related-section {
  padding-top: 36px;
}

.error-state {
  color: var(--danger);
}

.editorial-hero {
  width: min(980px, calc(100% - 80px));
  margin: 0 auto;
  padding: 82px 0 34px;
}

.editorial-hero h1 {
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.98;
}

.editorial-hero p:not(.section-kicker) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 1.2rem;
  line-height: 1.65;
}

.editorial-plan {
  padding-top: 42px;
}

.topic-list {
  display: grid;
  gap: 12px;
}

.topic-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(215, 229, 220, 0.12);
}

.topic-rank {
  color: rgba(124, 255, 181, 0.52);
  font-size: 2rem;
  font-weight: 900;
}

.topic-item h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.22;
}

.topic-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.topic-meta span {
  color: var(--warn);
  font-size: 0.86rem;
  font-weight: 900;
}

.topic-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
}

.topic-sources a {
  color: var(--soft);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(124, 255, 181, 0.36);
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 22px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 22px 22px;
    background: rgba(9, 10, 10, 0.98);
    border-bottom: 1px solid rgba(124, 255, 181, 0.16);
  }

  .settings-toggle {
    min-height: 40px;
  }

  .settings-panel {
    right: 22px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 13px 0;
  }

  .hero-content {
    width: min(680px, calc(100% - 44px));
    margin-left: 22px;
  }

  .hero h1 {
    font-size: 5.6rem;
  }

  .section,
  .signal-board {
    width: min(100% - 44px, 760px);
    padding: 72px 0;
  }

  .section-heading,
  .digest {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading h2,
  .digest h2 {
    font-size: 2.35rem;
  }

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

  .article-page {
    width: min(100% - 44px, 760px);
    padding-top: 64px;
  }

  .editorial-hero {
    width: min(100% - 44px, 760px);
    padding-top: 64px;
  }

  .article-page h1 {
    font-size: 2.8rem;
  }

  .editorial-hero h1 {
    font-size: 3.2rem;
  }

  .signal-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .signal-row strong {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: calc(92svh - 64px);
  }

  .hero-content {
    padding: 70px 0 86px;
  }

  .hero h1 {
    font-size: 3.9rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-actions,
  .input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section-heading h2,
  .digest h2 {
    font-size: 1.9rem;
  }

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

  .featured-story {
    padding: 22px;
  }

  .featured-story h3 {
    font-size: 1.5rem;
  }

  .article-page h1 {
    font-size: 2.1rem;
  }

  .editorial-hero h1 {
    font-size: 2.35rem;
  }

  .article-page-lead {
    font-size: 1.08rem;
  }

  .topic-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rubric-list a {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .rubric-list a:hover,
  .rubric-list a:focus-visible {
    padding-left: 0;
  }

  .digest-form {
    padding: 20px;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px;
  }

  .site-copyright,
  .site-footer span:last-child {
    justify-self: auto;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
