:root {
  color-scheme: dark;
  --page: #080909;
  --ink: #f4f7f4;
  --muted: #a8b2ad;
  --dim: #69736f;
  --line: rgba(255, 255, 255, .14);
  --panel: #141817;
  --panel-2: #1c2220;
  --green: #64f59d;
  --red: #ff4f5f;
  --violet: #b990ff;
  --cyan: #57d7ff;
  --amber: #f4c15d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.landing-page {
  min-height: 100vh;
  overflow: clip;
}

.hero {
  position: relative;
  min-height: min(760px, 84svh);
  display: grid;
  align-items: center;
  padding: 110px 0 56px;
  isolation: isolate;
}

.hero-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-nav,
.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.footer-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: #dce4df;
  padding: 0 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.footer-links a:hover {
  border-color: rgba(100, 245, 157, .42);
  color: var(--green);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 720px;
}

.live-state {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(8, 9, 9, .52);
  color: #dfe8e3;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.live-state.online {
  border-color: rgba(255, 79, 95, .54);
  color: #ffe7ea;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(244, 193, 93, .14);
}

.live-state.online .live-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 79, 95, .16), 0 0 24px rgba(255, 79, 95, .72);
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.42);
  }
}

.hero h1 {
  margin: 20px 0 0;
  max-width: 640px;
  font-size: 78px;
  line-height: .95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 20px 0 0;
  color: #c7d0cb;
  font-size: 20px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.channel-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 850;
}

.primary-action {
  background: var(--green);
  color: #051109;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
}

.primary-action svg,
.secondary-action svg,
.channel-link svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.primary-action svg {
  fill: currentColor;
}

.secondary-action svg,
.channel-link svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 112px));
  gap: 8px;
  margin: 28px 0 0;
}

.hero-metrics div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  padding: 10px 12px;
}

.hero-metrics dt,
.section-heading p,
.channel-kicker,
.channel-media span,
.latest-rail span,
.schedule-row span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.channel-band,
.latest-band,
.telegram-band,
.schedule-band,
.landing-footer {
  position: relative;
}

.channel-band {
  background: #0c0e0d;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 58px 0 64px;
}

.latest-band {
  background: #111413;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 56px 0;
}

.telegram-band {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 78% 15%, rgba(61, 169, 235, .16), transparent 34%),
    #0a1014;
  padding: 56px 0 64px;
}

.schedule-band {
  background: #090a0a;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 56px 0 64px;
}

.section-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-description {
  max-width: 310px;
  color: var(--muted);
  font-size: 15px;
}

.channel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 14px;
}

.channel-card {
  min-width: 0;
  min-height: 320px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.channel-media {
  position: relative;
  min-height: 150px;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #0b0d0c;
}

.channel-card.wide .channel-media {
  min-height: 260px;
  aspect-ratio: 16 / 9;
}

.channel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 9, 0) 35%, rgba(8, 9, 9, .78) 100%);
}

.channel-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.channel-card.green .channel-media img {
  object-position: 62% 50%;
}

.channel-card.violet .channel-media img {
  object-position: 82% 42%;
}

.channel-card.red .channel-media img {
  object-position: 36% 48%;
}

.channel-card.cyan .channel-media img {
  object-position: 76% 58%;
}

.channel-media span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  border-radius: 8px;
  background: rgba(8, 9, 9, .68);
  color: #f3fbf7;
  padding: 5px 8px;
}

.channel-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 18px;
}

.channel-body h3,
.latest-rail h3,
.schedule-row h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.channel-body p,
.latest-rail p,
.schedule-row p {
  margin: 8px 0 0;
  color: var(--muted);
}

.channel-card.green {
  --card-accent: var(--green);
}

.channel-card.red {
  --card-accent: var(--red);
}

.channel-card.violet {
  --card-accent: var(--violet);
}

.channel-card.cyan {
  --card-accent: var(--cyan);
}

.channel-kicker {
  color: var(--card-accent);
}

.channel-link {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--card-accent) 54%, transparent);
  background: color-mix(in srgb, var(--card-accent) 15%, transparent);
  color: var(--card-accent);
}

.channel-link.disabled {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .045);
  color: var(--dim);
}

@media (min-width: 901px) {
  .channel-card.wide {
    grid-row: span 3;
  }

  .channel-card:not(.wide) {
    grid-template-columns: minmax(178px, 42%) 1fr;
    grid-template-rows: 1fr;
    min-height: 198px;
  }

  .channel-card:not(.wide) .channel-media {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .channel-card:not(.wide) .channel-body {
    padding: 16px;
  }

  .channel-card:not(.wide) .channel-body h3 {
    font-size: 21px;
  }

  .channel-card:not(.wide) .channel-body p {
    font-size: 15px;
  }

  .channel-card:not(.wide) .channel-link {
    min-height: 40px;
    padding: 0 13px;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 28px;
  align-items: start;
}

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

.latest-rail article {
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  padding: 18px;
}

.latest-rail article:nth-child(1) span {
  color: var(--red);
}

.latest-rail article:nth-child(2) span {
  color: var(--green);
}

.latest-rail article:nth-child(3) span {
  color: var(--cyan);
}

.telegram-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 28px;
  align-items: start;
}

.telegram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.telegram-card {
  --telegram-accent: #55bdf0;
  min-width: 0;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--telegram-accent) 38%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--telegram-accent) 15%, transparent), transparent 58%),
    rgba(17, 24, 28, .92);
  padding: 20px;
}

.telegram-card.community {
  --telegram-accent: var(--green);
}

.telegram-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telegram-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--telegram-accent);
  color: #061017;
  box-shadow: 0 0 28px color-mix(in srgb, var(--telegram-accent) 25%, transparent);
}

.telegram-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.telegram-card-top p,
.telegram-card-top span {
  margin: 0;
}

.telegram-card-top p {
  color: var(--telegram-accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.telegram-card-top div > span {
  color: #dfe8e3;
  font-size: 14px;
  font-weight: 750;
}

.telegram-card-copy h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.telegram-card-copy p {
  margin: 9px 0 0;
  color: var(--muted);
}

.telegram-card > a {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--telegram-accent) 52%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--telegram-accent) 12%, transparent);
  color: var(--telegram-accent);
  padding: 0 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.telegram-card > a:hover {
  background: color-mix(in srgb, var(--telegram-accent) 19%, transparent);
}

.telegram-card > a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 28px;
  align-items: start;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111413;
  padding: 15px;
}

.schedule-row strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  line-height: 1;
}

.schedule-row h3 {
  margin: 0;
}

.schedule-copy p {
  margin: 0;
  text-align: left;
}

.schedule-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 245, 157, .42);
  border-radius: 8px;
  background: rgba(100, 245, 157, .1);
  color: var(--green);
  padding: 0 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.schedule-link:hover {
  background: rgba(100, 245, 157, .17);
}

.landing-footer {
  background: #0e100f;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 96px 0 46px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-nav {
    align-items: flex-start;
  }

  .channel-grid,
  .split,
  .telegram-layout,
  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .channel-card.wide {
    grid-row: auto;
  }

  .latest-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-nav,
  .section-shell,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .hero-nav {
    position: relative;
    inset: auto;
    margin: -72px auto 26px;
    padding: 0;
  }

  .hero {
    display: block;
    padding: 84px 0 42px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .primary-action,
  .secondary-action,
  .channel-link {
    width: 100%;
  }

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

  .hero-metrics div {
    padding: 9px 8px;
  }

  .hero-metrics dt {
    font-size: 11px;
  }

  .hero-metrics dd {
    font-size: 20px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .channel-band,
  .latest-band,
  .telegram-band,
  .schedule-band {
    padding: 42px 0;
  }

  .channel-media,
  .channel-card.wide .channel-media {
    min-height: 190px;
    aspect-ratio: 16 / 10;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .telegram-card {
    min-height: 260px;
  }

  .telegram-card > a {
    width: 100%;
  }

  .schedule-link {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
