:root {
  --bg: #0a0b0d;
  --bg-elevated: #12141a;
  --bg-panel: #181b24;
  --ink: #f2efe8;
  --ink-muted: #9a958c;
  --signal: #e11d2e;
  --signal-soft: rgba(225, 29, 46, 0.14);
  --line: rgba(242, 239, 232, 0.1);
  --ok: #3ecf8e;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 2px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(225, 29, 46, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(60, 80, 140, 0.12), transparent 50%),
    linear-gradient(180deg, #0e1015 0%, var(--bg) 40%, #08090b 100%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--signal);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 13, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--ink);
}

.brand-mark span {
  color: var(--signal);
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.hub-hero {
  padding: clamp(1.5rem, 5vw, 2.75rem) 0 clamp(1.25rem, 3vw, 2rem);
}

.hub-hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .hub-hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
    align-items: stretch;
  }
}

.hub-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.hub-hero-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.hub-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}

.hub-panel-head a {
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.88rem;
}

.hub-panel-head a:hover {
  color: var(--signal);
}

.now-board--compact {
  border: 0;
  flex: 1;
}

.now-board--compact .now-row:nth-child(n + 7) {
  display: none;
}

@media (min-width: 1100px) {
  .now-board--compact .now-row:nth-child(n + 7) {
    display: grid;
  }
  .now-board--compact .now-row:nth-child(n + 9) {
    display: none;
  }
}

.now-board {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.now-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--bg-elevated);
  text-decoration: none;
  transition: background 0.2s var(--ease);
}

.now-row:hover {
  background: var(--bg-panel);
  color: inherit;
}

.now-ch {
  font-weight: 800;
  font-size: 0.92rem;
}

.now-show {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.now-show strong {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-show small {
  color: var(--ink-muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--signal);
}

@media (max-width: 640px) {
  .now-row {
    grid-template-columns: 1fr auto;
  }
  .now-ch {
    grid-column: 1 / -1;
  }
}

.channel-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.channel-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}

.channel-card:hover {
  border-color: rgba(225, 29, 46, 0.5);
  color: inherit;
}

.channel-card span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* Watch deck — channel landing */
.watch-deck {
  padding: clamp(1.25rem, 4vw, 2.25rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.watch-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .watch-grid {
    grid-template-columns: 1.35fr 0.9fr;
    gap: 1.5rem;
  }
}

.watch-stage h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  max-width: 12ch;
}

.player-shell {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(225, 29, 46, 0.28), transparent 50%),
    linear-gradient(160deg, #1a1d28 0%, #0c0d12 55%, #151018 100%);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.player-shell:hover {
  border-color: rgba(225, 29, 46, 0.55);
  transform: translateY(-2px);
  color: inherit;
}

.player-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  pointer-events: none;
  opacity: 0.45;
}

.player-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.1rem, 3vw, 2rem);
  gap: 0.35rem;
}

.player-badge {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--signal);
  margin-bottom: 0.35rem;
}

.player-now {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0;
  max-width: 18ch;
}

.player-meta {
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 36ch;
}

.player-play {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem 0.55rem 0.75rem;
  background: var(--signal);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.player-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent #fff;
  margin-left: 0.25rem;
}

.player-hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.watch-cta {
  margin-bottom: 0.75rem;
}

.now-rail {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.now-rail-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.now-rail-date {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 700;
}

.schedule-list--compact .schedule-item {
  padding: 0.7rem 1rem;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.65rem;
}

.schedule-list--compact .title {
  font-size: 0.92rem;
}

.schedule-list--compact .meta {
  font-size: 0.78rem;
}

.now-rail-more {
  display: block;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.now-rail-more:hover {
  color: var(--signal);
}

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.day-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.day-tab:hover {
  color: var(--ink);
  border-color: rgba(242, 239, 232, 0.35);
}

.day-tab.is-active {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

.match-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .match-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.match-strip a {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
  padding: 0.95rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease);
}

.match-strip a:hover {
  border-color: rgba(225, 29, 46, 0.5);
  color: inherit;
}

.match-when {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 800;
}

.match-title {
  font-weight: 700;
  line-height: 1.35;
}

.schedule-item.is-sport .title {
  color: var(--ink);
}

.ops-box {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.ops-box code {
  color: var(--ink);
}

/* Legacy hero (inner pages) */
.hero {
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% -20% auto auto;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 14px,
      rgba(225, 29, 46, 0.07) 14px,
      rgba(225, 29, 46, 0.07) 15px
    );
  pointer-events: none;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 70%);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.55);
  animation: pulse 1.8s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(225, 29, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 46, 0);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-md);
  max-width: 14ch;
}

.hero-lead {
  max-width: 38rem;
  color: var(--ink-muted);
  font-size: 1.08rem;
  margin: 0 0 var(--space-lg);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-primary {
  background: var(--signal);
  color: #fff;
}

.btn-primary:hover {
  background: #c41626;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(242, 239, 232, 0.35);
}

.trust-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.trust-note strong {
  color: var(--ok);
  font-weight: 650;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-tight {
  padding: var(--space-lg) 0 var(--space-xl);
}

.section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: var(--space-lg);
  max-width: 40rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.03em;
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

/* Watch paths */
.paths {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 800px) {
  .paths {
    grid-template-columns: 1.35fr 1fr 1fr;
  }
}

.path {
  background: var(--bg-elevated);
  padding: var(--space-lg);
  display: grid;
  gap: 0.75rem;
  align-content: start;
  transition: background 0.25s var(--ease);
}

.path:hover {
  background: var(--bg-panel);
}

.path-featured {
  background:
    linear-gradient(160deg, var(--signal-soft), transparent 55%),
    var(--bg-elevated);
}

.path-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--signal);
}

.path h3 {
  margin: 0;
  font-size: 1.25rem;
}

.path p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.path a.more {
  margin-top: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.path a.more:hover {
  color: var(--signal);
}

/* Schedule */
.schedule-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.schedule-date {
  font-weight: 700;
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.schedule-item:last-child {
  border-bottom: 0;
}

.schedule-item.is-now {
  background: var(--signal-soft);
}

.schedule-item.is-live .title::after {
  content: "НА ЖИВО";
  margin-left: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  vertical-align: middle;
  color: var(--signal);
  font-weight: 800;
}

.time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink-muted);
}

.is-now .time,
.is-live .time {
  color: var(--signal);
}

.title {
  font-weight: 650;
  margin: 0 0 0.2rem;
}

.meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Steps */
.steps {
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: var(--space-md) 0;
  border-top: 2px solid var(--signal);
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--ink-muted);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--signal);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  max-width: 48rem;
}

/* Notice */
.notice {
  margin: var(--space-lg) 0 0;
  padding: var(--space-md);
  border: 1px dashed rgba(225, 29, 46, 0.4);
  background: rgba(225, 29, 46, 0.06);
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.notice strong {
  color: var(--ink);
}

/* Footer */
.site-footer {
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0 var(--space-lg);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.footer-brand span {
  color: var(--signal);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Prose pages */
.page-hero {
  padding: clamp(2rem, 6vw, 3.5rem) 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  max-width: 16ch;
}

.page-hero p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 40rem;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose a {
  color: var(--ink);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .live-dot,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
