:root {
  color-scheme: dark;
  --bg: #060a0d;
  --bg-soft: rgba(15, 20, 24, 0.88);
  --panel: rgba(20, 25, 29, 0.78);
  --panel-strong: rgba(23, 29, 34, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f7f4;
  --muted: #b8c0b7;
  --green: #5fbd43;
  --green-strong: #4fab38;
  --green-soft: rgba(95, 189, 67, 0.16);
  --yellow: #ffd447;
  --site-bg-image: url("assets/ls25-hero.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(95, 189, 67, 0.14), transparent 32rem),
    linear-gradient(rgba(5, 8, 11, 0.72), rgba(5, 8, 11, 0.94)),
    var(--site-bg-image) center / cover fixed no-repeat;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 84px;
  padding: 14px clamp(18px, 5vw, 84px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 11, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--green);
}

.brand__mark svg {
  width: 34px;
  height: 34px;
}

.brand strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.brand strong::first-letter,
#hero-title::first-letter {
  color: var(--text);
}

.brand strong,
#hero-title {
  color: var(--green);
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
}

.main-nav a {
  position: relative;
  color: #edf4eb;
  font-size: 0.95rem;
  font-weight: 800;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.main-nav a:hover,
.main-nav .active {
  color: #fff;
}

.main-nav .active::after {
  background: var(--green);
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.icon-button,
.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #fff;
}

.icon-button {
  width: 42px;
  cursor: pointer;
}

.login-button {
  gap: 9px;
  padding: 0 18px;
  border-color: rgba(95, 189, 67, 0.48);
  background: rgba(95, 189, 67, 0.12);
  font-weight: 900;
}

svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 10, 13, 0.95), rgba(6, 10, 13, 0.48) 54%, rgba(6, 10, 13, 0.15)),
    var(--site-bg-image) center / cover fixed no-repeat;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 10, 13, 0.94), transparent 44%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 10px 96px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 22px;
  padding: 7px 13px;
  border-radius: 8px;
  background: rgba(95, 189, 67, 0.18);
  color: #95ef70;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 10px;
  font-size: clamp(4rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 860px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(1.3rem, 2.25vw, 1.85rem);
  font-weight: 900;
}

.hero__text {
  max-width: 650px;
  margin-bottom: 28px;
  color: #dce3dc;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button--primary {
  border-color: rgba(95, 189, 67, 0.64);
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #071008;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.04);
}

.stats,
.quick-grid,
.content-grid,
.community-banner,
.section,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.stats {
  transform: translateY(-46px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 22, 26, 0.76);
  backdrop-filter: blur(18px);
}

.stats article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 3px 12px;
  min-height: 74px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.stats article:last-child {
  border-right: 0;
}

.stats svg {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  color: #fff;
}

.stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.stats strong {
  color: var(--green);
  font-size: 1.15rem;
}

.status-card {
  background: rgba(95, 189, 67, 0.08);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: -18px;
}

.quick-grid article,
.panel,
.community-banner,
.section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.quick-grid article {
  display: grid;
  justify-items: center;
  min-height: 230px;
  padding: 28px 20px;
  text-align: center;
}

.quick-grid svg {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--green);
}

.quick-grid h2,
.panel h2,
.section h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.2;
}

.quick-grid p,
.panel p,
.section p,
.footer p {
  color: var(--muted);
}

.quick-grid a,
.wide-link {
  align-self: end;
  min-width: 144px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.panel {
  padding: 22px;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel__head h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.panel__head a {
  color: var(--green);
  font-weight: 900;
}

.mod-list {
  display: grid;
}

.project-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.project-card:first-child {
  padding-top: 0;
}

.project-card__thumb {
  width: 96px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(95, 189, 67, 0.22), rgba(95, 189, 67, 0.02)),
    var(--site-bg-image) center / cover no-repeat;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.project-card__meta span {
  color: #95ef70;
  font-size: 0.78rem;
  font-weight: 900;
}

.project-card h3 {
  margin-bottom: 4px;
  color: #fff;
}

.project-card p {
  margin-bottom: 4px;
  color: var(--muted);
}

.project-card__file {
  color: #9da69d;
  font-size: 0.82rem;
}

.project-card__actions {
  display: grid;
  gap: 8px;
  min-width: 132px;
}

.project-card__actions .button {
  min-width: 112px;
  min-height: 42px;
  padding: 9px 15px;
  border: 0;
}

.wide-link {
  display: grid;
  place-items: center;
  margin-top: 18px;
}

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

.news-list article {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.news-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-list span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--green-soft);
  color: #95ef70;
  font-size: 0.75rem;
  font-weight: 900;
}

.news-list h3 {
  margin-bottom: 5px;
}

.news-list img {
  width: 104px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
  padding: 24px;
}

.community-banner div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.community-banner svg {
  width: 46px;
  height: 46px;
  color: var(--green);
}

.community-banner strong,
.community-banner small {
  display: block;
}

.community-banner strong {
  color: #fff;
  font-size: 1.35rem;
}

.community-banner small {
  color: var(--muted);
}

.section {
  margin-top: 22px;
  padding: 28px;
}

.section--split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 800;
}

.steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--green-soft);
  color: #95ef70;
}

.footer {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1.1fr;
  gap: 34px;
  margin-top: 22px;
  padding: 42px 0 26px;
}

.footer section {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 1rem;
}

.footer a {
  color: var(--muted);
}

.footer__brand p {
  margin-top: 12px;
}

.server-status {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.server-status strong,
.server-status span {
  color: #95ef70;
}

.server-status p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 0.9rem;
}

.copyright {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  color: #788178;
  text-align: center;
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .stats,
  .quick-grid,
  .content-grid,
  .footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar {
    position: relative;
    grid-template-columns: 1fr;
  }

  .topbar__actions {
    justify-content: flex-start;
  }

  .hero {
    min-height: 620px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .stats,
  .quick-grid,
  .content-grid,
  .section--split,
  .footer {
    grid-template-columns: 1fr;
  }

  .stats {
    transform: translateY(-28px);
  }

  .stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-card,
  .news-list article {
    grid-template-columns: 1fr;
  }

  .project-card__thumb,
  .news-list img {
    width: 100%;
    height: 150px;
  }

  .community-banner,
  .community-banner div {
    align-items: flex-start;
    flex-direction: column;
  }
}
