:root {
  --bg: #0b0c0e;
  --bg-2: #121418;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --text: #ece6de;
  --muted: #a39b91;
  --accent: #e5452a;
  --accent-2: #ff8a3d;
  --ok: #7fd38a;
  --radius: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); }
h1, h2, h3, .brand, .btn, .version { font-family: "Oswald", "Arial Narrow", sans-serif; letter-spacing: 0.02em; }
h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; text-transform: uppercase; }
h3 { font-size: 21px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- шапка ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(rgba(11, 12, 14, 0.85), rgba(11, 12, 14, 0));
  transition: background 0.2s ease;
}
.nav.solid { background: rgba(11, 12, 14, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { color: var(--text); text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: 0.12em; display: inline-flex; align-items: center; gap: 12px; }
.brand img { border-radius: 8px; }
.hero-icon { display: block; border-radius: 22px; margin-bottom: 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55); }
.nav nav { display: flex; gap: clamp(12px, 2.5vw, 32px); }
.nav nav a { color: var(--text); text-decoration: none; font-size: 15px; opacity: 0.85; }
.nav nav a:hover { opacity: 1; color: var(--accent-2); }

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; padding-top: 96px; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/hero.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: drift 40s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0.25) 0%, rgba(11,12,14,0.35) 45%, var(--bg) 100%),
              linear-gradient(90deg, rgba(11,12,14,0.75) 0%, rgba(11,12,14,0) 60%);
}
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.08) translateX(-1.5%); } }
.hero-content { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 12vh; }
.kicker { color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.2em; font-size: 14px; margin: 0 0 6px; font-weight: 700; }
.hero h1 { font-size: clamp(64px, 13vw, 168px); line-height: 0.9; margin: 0; letter-spacing: 0.06em; text-shadow: 0 6px 40px rgba(0,0,0,0.5); }
.tagline { font-size: clamp(18px, 2.2vw, 24px); max-width: 620px; margin: 18px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { color: var(--muted); margin-top: 14px; font-size: 15px; min-height: 1.6em; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius);
  font-size: 19px; font-weight: 500; text-decoration: none; text-transform: uppercase;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(229, 69, 42, 0.35); }
.btn-primary:hover { background: #f25a3c; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-big { font-size: 23px; padding: 18px 34px; }
.btn.disabled { background: #3a3d42; box-shadow: none; pointer-events: none; color: #9a9a9a; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #666; display: inline-block; }
.dot.live { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* ---------- секции ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 110px) clamp(16px, 4vw, 48px); }
.section-dark { max-width: none; background: var(--bg-2); }
.section-dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.lead { color: var(--muted); font-size: 19px; max-width: 760px; margin: 0 0 36px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card-wide { grid-column: 1 / -1; }
.card.accent { background: linear-gradient(120deg, rgba(229,69,42,0.22), rgba(255,138,61,0.06)); border-color: rgba(229,69,42,0.45); }
.card.accent h3 { font-size: 28px; }
.card.accent p { color: var(--text); font-size: 17px; max-width: 900px; }

/* ---------- серверы ---------- */
.servers { display: grid; gap: 10px; }
.server {
  display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
}
.server .name { font-weight: 700; font-size: 18px; }
.server .info { color: var(--muted); font-size: 14px; }
.server .players { font-family: "Oswald", sans-serif; font-size: 22px; white-space: nowrap; }
.server .tag { font-size: 13px; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,0.08); white-space: nowrap; }
.server .tag.auth { background: rgba(127, 211, 138, 0.15); color: var(--ok); }
.empty { color: var(--muted); padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- скачать ---------- */
.download { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.download-main, .req { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.version { font-size: 34px; margin: 0; }
.alt { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.hash { white-space: pre-line; }
.hash { font: 12px/1.5 ui-monospace, Consolas, monospace; color: var(--muted); word-break: break-all; margin: 16px 0 0; }
.notes h3 { margin-top: 26px; }
.notes ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.req dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 14px 0 18px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; }

/* ---------- как начать ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; max-width: 760px; }
.steps li { counter-increment: s; position: relative; padding: 14px 18px 14px 64px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 700 16px "Oswald", sans-serif;
}
.keys { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); }
kbd { font: 600 13px ui-monospace, Consolas, monospace; color: var(--text); background: rgba(255,255,255,0.08); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 2px 8px; margin-right: 6px; }

.footer { text-align: center; padding: 40px 16px 56px; border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; }

/* ---------- телефоны ---------- */
@media (max-width: 760px) {
  .nav nav a:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .hero-bg { background-image: url("assets/hero-small.jpg"); }
  .download { grid-template-columns: 1fr; }
  .server { grid-template-columns: 1fr auto; }
  .server .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } html { scroll-behavior: auto; } }
