:root {
  color-scheme: dark;
  --bg: #0b0e13; --panel: #141922; --panel2: #1b222d;
  --line: #232c39; --line2: #33404f;
  --text: #d7dde7; --muted: #8b95a5;
  --accent: #f0a63a; --accent2: #3fa7d6; --green: #4ade80; --red: #f87171;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #080b11;
  background-image: linear-gradient(rgba(8,11,17,.87), rgba(8,11,17,.95)), url('img/bg.webp');
  background-size: cover, cover;
  background-position: center center, center top;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

header { position: sticky; top: 0; z-index: 30; background: rgba(11,14,19,.9);
         border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.logo { font-weight: 800; letter-spacing: .06em; font-size: 18px; white-space: nowrap; }
.logo span { color: var(--accent); font-weight: 600; letter-spacing: .14em; font-size: 12px; margin-left: 6px; }

.tabs { display: flex; gap: 4px; background: #10151d; border: 1px solid var(--line);
        border-radius: 10px; padding: 4px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 7px; font-size: 14px; color: var(--muted);
       cursor: pointer; border: 0; background: transparent; white-space: nowrap; transition: .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--panel2); color: var(--text); box-shadow: 0 1px 0 #2c3745 inset; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       padding: 10px 18px; border-radius: 8px; background: var(--accent); color: #17120a;
       font-weight: 700; font-size: 14px; border: 0; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); font-weight: 600; }
.btn.sm { padding: 8px 14px; font-size: 13px; }

/* HERO сервера */
.server-hero { padding: 76px 0 56px;
  background: radial-gradient(900px 420px at 12% -10%, rgba(240,166,58,.16), transparent 60%),
              radial-gradient(700px 340px at 88% 0%, rgba(63,167,214,.14), transparent 60%);
  border-bottom: 1px solid var(--line); }
.server-hero.h-mc { background: radial-gradient(900px 420px at 12% -10%, rgba(90,168,67,.18), transparent 60%),
                              radial-gradient(700px 340px at 88% 0%, rgba(240,166,58,.10), transparent 60%);
                     border-bottom: 1px solid var(--line); }
.server-hero.h-samp { background: radial-gradient(900px 420px at 12% -10%, rgba(63,167,214,.20), transparent 60%),
                                radial-gradient(700px 340px at 88% 0%, rgba(240,166,58,.10), transparent 60%);
                       border-bottom: 1px solid var(--line); }
.badge-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid rgba(74,222,128,.35); border-radius: 999px; color: var(--green);
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 22px; }
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(74,222,128,.18); }
.server-hero h1 { margin: 0 0 10px; font-size: 48px; line-height: 1.05; letter-spacing: -.02em; }
.server-hero h1 .accent { color: var(--accent); }
.server-hero h1 .accent-mc { color: #7cc463; }
.server-hero h1 .accent-sa { color: var(--accent2); }
.server-hero .lead { margin: 0 0 26px; max-width: 620px; color: var(--muted); font-size: 18px; }

.connect { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; }
.connect .ip { font-family: ui-monospace, Consolas, monospace; background: #0d1219;
  border: 1px solid var(--line2); border-radius: 9px; padding: 12px 18px; font-size: 17px; letter-spacing: .02em; }
.connect .hint { color: var(--muted); font-size: 13px; }

.stats { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 44px; }
.stats b { display: block; font-size: 30px; line-height: 1.2; color: var(--accent); }
.stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }

section { padding: 58px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.01em; }
.sub { margin: 0 0 30px; color: var(--muted); font-size: 15px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; background: rgba(240,166,58,.12); color: var(--accent); margin-bottom: 14px; }

.news { display: grid; gap: 14px; }
.news-item { display: flex; gap: 18px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px; }
.news-date { flex: 0 0 auto; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; min-width: 64px; }
.news-item h3 { margin: 0 0 4px; font-size: 16px; }
.news-item p { margin: 0; color: var(--muted); font-size: 14px; }

.download { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center;
  background: linear-gradient(180deg, rgba(240,166,58,.08), rgba(20,25,34,.6));
  border: 1px solid var(--line); border-radius: 16px; padding: 34px; }
.download h2 { margin-bottom: 10px; }
.download p { margin: 0 0 18px; color: var(--muted); }
.download .file { background: #0d1219; border: 1px dashed var(--line2); border-radius: 12px;
  padding: 22px; text-align: center; }
.download .file b { display: block; font-size: 20px; color: var(--text); }
.download .file span { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .download { grid-template-columns: 1fr; } .server-hero h1 { font-size: 36px; } }

footer { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; letter-spacing: .02em; }
.foot-grid a { display: block; padding: 4px 0; color: var(--muted); }
.foot-grid a:hover { color: var(--accent); }
.copy { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* региональные страницы */
.region-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--line2); border-radius: 999px; color: var(--muted);
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 22px; }
.region-badge b { color: var(--accent); font-weight: 700; }
.loadbar { height: 8px; border-radius: 999px; background: #0d1219;
  border: 1px solid var(--line); overflow: hidden; margin: 12px 0 6px; }
.loadbar > i { display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #4ade80, #f0a63a); transition: width .6s ease; }
.loadtext { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.server-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px rgba(74,222,128,.18); margin-right: 6px; }
.region-list { display: grid; gap: 12px; }
.region-row { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.region-row .name { font-weight: 700; }
.region-row .meta { color: var(--muted); font-size: 13px; }
.region-row .go { color: var(--accent); font-size: 13px; font-weight: 600; }

/* кнопки переходов */
.btn-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(240,166,58,.18), rgba(240,166,58,.06));
  border: 1px solid rgba(240,166,58,.45);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-go:hover {
  background: var(--accent);
  color: #17120a;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240,166,58,.28);
}
.btn-go .arrow { transition: transform .2s ease; }
.btn-go:hover .arrow { transform: translateX(3px); }

/* строка hero: статистика + кнопка на главную */
.hero-row { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-top: 44px; }
.hero-row .stats { margin-top: 0; }

/* платформы */
.platforms { display: flex; flex-wrap: wrap; gap: 12px; }
.platform { display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font-size: 14px; }
.platform b { color: var(--accent); font-weight: 700; }
.platform span { color: var(--muted); }

/* платформа в разработке */
.platform.soon { opacity: .6; cursor: default; border-style: dashed; }
.platform.soon b { color: var(--muted); }
