* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0b;
  --card: #141416;
  --card-2: #1a1a1d;
  --line: #232326;
  --line-2: #333336;

  --text: #f2f0ec;
  --text-2: #a5a29c;
  --text-3: #6d6b67;

  --amber: #d7a35b;
  --amber-hi: #f0c383;
  --amber-lo: #8a6535;
  --amber-bg: rgba(215, 163, 91, .1);

  --red: #e0574a;
  --green: #57c26a;
  --blue: #7f8cff;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --head: 'Manrope', sans-serif;
  --body: 'Golos Text', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: var(--amber-hi); text-decoration: none; }
a:hover { color: #fff; }
b { font-weight: 600; color: var(--text); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: var(--mono); }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }

h2 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -.01em;
  color: var(--text);
}

section { padding-top: 88px; }
.sub { color: var(--text-2); margin-top: 8px; max-width: 560px; }

.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.hint { font-family: var(--mono); font-size: .82rem; color: var(--text-3); }
.hint.link { transition: color .2s; }
.hint.link:hover { color: var(--amber-hi); }

/* ---------- прогресс прокрутки ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0%; z-index: 40;
  background: linear-gradient(90deg, var(--amber-lo), var(--amber-hi));
  transition: width .12s linear;
}

/* ---------- появление при скролле ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js .tiers .tier.reveal:nth-child(2) { transition-delay: .08s; }
html.js .tiers .tier.reveal:nth-child(3) { transition-delay: .16s; }
html.js .faq-item.reveal:nth-child(2) { transition-delay: .05s; }
html.js .faq-item.reveal:nth-child(3) { transition-delay: .1s; }
html.js .faq-item.reveal:nth-child(4) { transition-delay: .15s; }
html.js .faq-item.reveal:nth-child(5) { transition-delay: .2s; }

/* ---------- буквы/кнопки ---------- */
.pill {
  font-family: var(--head); font-weight: 600; font-size: .88rem;
  padding: 9px 18px; border-radius: 100px;
  background: var(--amber); color: #1a1206;
  transition: background .2s, transform .15s;
}
.pill:hover { background: var(--amber-hi); color: #1a1206; transform: translateY(-1px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 600; font-size: .92rem;
  padding: 13px 22px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.btn:hover { border-color: var(--amber); color: var(--amber-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-brass { background: var(--amber); border-color: var(--amber); color: #1a1206; }
.btn-brass:hover { background: var(--amber-hi); border-color: var(--amber-hi); color: #1a1206; }

/* ---------- верх ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 11, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.top.scrolled { background: rgba(10, 10, 11, .95); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 800; font-size: 1.1rem; color: var(--text); }
.logo svg { width: 22px; height: 22px; color: var(--amber); }
.logo:hover { color: var(--text); }
.top-links { display: flex; gap: 22px; margin-left: auto; }
.top-links a { color: var(--text-2); font-size: .92rem; font-weight: 500; transition: color .2s; }
.top-links a:hover { color: var(--text); }

/* ---------- шапка ---------- */
.hero { position: relative; padding: 76px 0 60px; overflow: hidden; }
.glow {
  position: absolute; inset: -10% -5%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 320px at 18% 0%, rgba(215, 163, 91, .16), transparent 65%),
    radial-gradient(480px 300px at 85% 10%, rgba(127, 140, 255, .07), transparent 60%);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-2%, 2%); }
}
.ember {
  position: absolute; bottom: 8%; width: 3px; height: 3px; border-radius: 50%;
  background: var(--amber-hi); opacity: 0; filter: blur(.3px);
  animation: ember-rise linear infinite;
}
@keyframes ember-rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: .8; }
  85% { opacity: .15; }
  100% { transform: translateY(-280px) translateX(var(--drift, 20px)); opacity: 0; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.eyebrow { animation: fadeUp .6s .05s var(--ease) both; }
.hero h1 { animation: fadeUp .7s .12s var(--ease) both; }
.lead { animation: fadeUp .7s .2s var(--ease) both; }
.entry { animation: fadeUp .7s .28s var(--ease) both; }
.hero-btns { animation: fadeUp .7s .36s var(--ease) both; }
.dl-link { animation: fadeUp .7s .42s var(--ease) both; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .8rem; color: var(--amber-hi);
  background: var(--amber-bg); border: 1px solid rgba(215, 163, 91, .25);
  padding: 6px 12px; border-radius: 100px; margin-bottom: 22px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(87, 194, 106, .55); }
  50% { box-shadow: 0 0 9px 3px rgba(87, 194, 106, .3); }
}

.hero h1 {
  font-family: var(--head); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; color: var(--text);
}
.lead { max-width: 540px; margin: 22px 0 30px; font-size: 1.12rem; color: var(--text-2); }

/* карточка сервера — как строка в списке серверов */
.entry {
  display: flex; align-items: center; gap: 16px; width: 100%; max-width: 560px;
  padding: 16px 18px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .15s, background .15s, transform .2s var(--ease);
}
.entry:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-2px); }
.entry:active { transform: translateY(0) scale(.99); }
.entry-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--amber-bg), transparent);
  border: 1px solid rgba(215, 163, 91, .2); color: var(--amber);
}
.entry-icon svg { width: 22px; height: 22px; }
.entry-body { flex: 1; min-width: 0; }
.entry-row { display: flex; align-items: center; gap: 10px; }
.entry-name { font-family: var(--head); font-weight: 700; font-size: 1rem; color: var(--text); }
.tag {
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--amber-hi); background: var(--amber-bg); padding: 2px 8px; border-radius: 100px;
}
.entry-online {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .84rem; color: var(--text-2);
}
.entry-online b { color: var(--text); font-weight: 600; }
.entry-online .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.entry-online .dot.on { background: var(--green); animation: pulse-dot 2s ease-in-out infinite; }
.entry-online .dot.off { background: var(--red); }
.entry-motd {
  display: block; margin-top: 5px; font-size: .88rem; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.entry-arrow { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-3); transition: transform .25s var(--ease), color .2s; }
.entry:hover .entry-arrow { color: var(--amber-hi); transform: translateX(3px); }

.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.dl-link { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: .85rem; color: var(--text-3); transition: color .2s; }
.dl-link:hover { color: var(--amber-hi); }

/* ---------- трекер сезона ---------- */
.steps-bar { display: flex; gap: 4px; margin: 32px 0 22px; }
.step { flex: 1; text-align: left; }
.step i {
  display: block; height: 4px; border-radius: 100px; background: var(--line-2); margin-bottom: 10px;
  transform-origin: left; transform: scaleX(1);
}
.step.done i { background: var(--amber-lo); }
.step.active i { background: var(--amber); box-shadow: 0 0 10px rgba(215, 163, 91, .5); }
html.js .step.done i, html.js .step.active i { transform: scaleX(0); transition: transform .8s .15s var(--ease); }
html.js .steps-bar.in .step.done i { transform: scaleX(1); transition-delay: .15s; }
html.js .steps-bar.in .step.active i { transform: scaleX(1); transition-delay: .35s; }
.step b {
  display: block; font-size: .78rem; font-weight: 500; color: var(--text-3); line-height: 1.35;
}
.step.done b { color: var(--text-2); }
.step.active b { color: var(--amber-hi); font-weight: 600; }

.phase-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px;
}
.phase-name { font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: var(--amber-hi); margin-bottom: 10px; }
.phase-card p:not(.phase-name) { color: var(--text-2); }
.phase-link { display: inline-block; margin-top: 14px; font-size: .9rem; font-weight: 500; transition: gap .2s; }
.phase-link:hover { color: #fff; }

/* ---------- карта ---------- */
.map { position: relative; height: 540px; margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #000; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity .5s var(--ease); }
.map iframe.loaded { opacity: 1; }
.map-loader {
  position: absolute; inset: 0; z-index: 1; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--mono); font-size: .85rem; color: var(--text-3);
  transition: opacity .4s;
}
.map-loader a { color: var(--amber-hi); }
.map-loader .spin { width: 34px; height: 34px; color: var(--amber); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-loader.hidden { opacity: 0; pointer-events: none; }

/* ---------- команды ---------- */
.chat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px;
  margin-top: 22px; padding: 18px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  font-family: var(--mono); font-size: .88rem;
}
.chat-h { color: var(--amber); margin: 14px 0 4px; font-weight: 500; }
.chat > div > .chat-h:first-child { margin-top: 0; }
.chat button {
  display: block; width: calc(100% + 12px); text-align: left; padding: 4px 6px; margin: 0 -6px; border-radius: 6px;
  color: var(--text-2); line-height: 1.6; transition: background .15s, color .15s;
}
.chat button:hover { background: var(--card-2); color: var(--text); }
.chat button.copied { background: var(--amber-bg); color: var(--amber-hi); }
.chat code { color: var(--amber-hi); margin-right: 8px; }
.chat code i { font-style: normal; color: var(--text-3); }

/* ---------- донат ---------- */
#donate .sub s { text-decoration-color: var(--red); text-decoration-thickness: 2px; color: var(--text-3); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; align-items: start; }
.tier {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 22px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.tier:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 16px 32px rgba(0, 0, 0, .35); }
.tier-top:hover { box-shadow: 0 16px 34px rgba(215, 163, 91, .16); }
.tier-name { font-family: var(--head); font-weight: 700; font-size: 1.05rem; }
.tier-price { font-family: var(--head); font-weight: 800; font-size: 1.9rem; margin: 8px 0 18px; }
.tier-price span { font-size: .5em; color: var(--text-3); font-weight: 600; }
.tier ul { list-style: none; }
.tier li { padding: 7px 0; font-size: .88rem; color: var(--text-2); border-top: 1px solid var(--line); }
.tier li:first-child { border-top: 0; }
.tier li.all { color: var(--blue); font-weight: 500; }
.tier code { color: var(--amber-hi); }
.tier-mid { border-color: var(--line-2); }
.tier-top { border-color: rgba(215, 163, 91, .35); background: linear-gradient(165deg, var(--amber-bg), var(--card) 55%); }
.badge {
  position: absolute; top: -11px; left: 22px;
  font-family: var(--head); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 100px; background: var(--line-2); color: var(--text-2);
}
.badge-gold { background: var(--amber); color: #1a1206; }

.buy {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
}
.buy p { color: var(--text-2); }
.buy-links { display: flex; gap: 8px; flex-wrap: wrap; }
.buy-links a {
  padding: 9px 16px; border-radius: 100px; font-weight: 600; font-size: .88rem;
  background: var(--card); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .2s, color .2s, transform .15s;
}
.buy-links a:hover { border-color: var(--amber); color: var(--amber-hi); transform: translateY(-1px); }

/* ---------- вопросы (свой аккордеон) ---------- */
.faq-list { margin-top: 8px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px;
  padding: 17px 2px; text-align: left; font-weight: 600; font-size: 1rem; color: var(--text);
  transition: color .2s;
}
.faq-q:hover { color: var(--amber-hi); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--amber); transition: transform .3s var(--ease); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 26px 18px 2px; color: var(--text-2); max-width: 640px; }

/* ---------- подвал ---------- */
footer {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 100px; padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
}
.logo.small { font-size: 1rem; }
.foot-links { display: flex; gap: 18px; margin-left: auto; }
.foot-links a { color: var(--text-2); font-size: .88rem; transition: color .2s; }
.foot-links a:hover { color: var(--text); }
.copy { width: 100%; font-size: .8rem; color: var(--text-3); }

/* ---------- уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, 12px) scale(.96); opacity: 0; pointer-events: none;
  background: var(--card); border: 1px solid var(--line-2); color: var(--amber-hi);
  font-family: var(--mono); font-size: .85rem; padding: 10px 16px; border-radius: 10px;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- адаптив ---------- */
@media (max-width: 780px) {
  .top-links { display: none; }
  .tiers { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding-top: 64px; }
  .hero { padding-top: 48px; }
  .chat { grid-template-columns: 1fr; }
  .map { height: 400px; }
  .steps-bar { flex-wrap: wrap; row-gap: 16px; }
  .step { flex: 0 0 calc(50% - 8px); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
