:root {
  --bg: #14110b;
  --bg-2: #1b170f;
  --card: #211c12;
  --card-2: #2a2316;
  --line: rgba(243, 210, 122, 0.14);
  --text: #f4ecdb;
  --muted: #b3a88f;
  --gold: #f3d27a;
  --gold-2: #e8b64c;
  --gold-3: #fff1c4;
  --ok: #7ddc8a;
  --bad: #ef7b6b;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-3); }
b { font-weight: 700; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.gold {
  background: linear-gradient(135deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 17, 11, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 22px; font-weight: 600; letter-spacing: .3px; }
.logo b { color: var(--gold); }
.logo__icon { width: 30px; height: 30px; color: var(--gold); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--gold); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 10px 8px; }
.burger span { display: block; height: 2px; background: var(--gold); margin: 4px 0; border-radius: 2px; transition: .25s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 12px 20px;
  font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .2s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-3), var(--gold) 50%, var(--gold-2));
  color: #2a1f08; box-shadow: 0 6px 22px rgba(232, 182, 76, .25);
}
.btn--gold:hover { box-shadow: 0 8px 30px rgba(232, 182, 76, .4); color: #2a1f08; }
.btn--ghost { background: transparent; color: var(--gold); border: 1px solid var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero__glow {
  position: absolute; inset: -30% -10% auto; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(243, 210, 122, .16), transparent 70%);
}
.hero__inner { position: relative; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--muted); font-size: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.is-on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.is-off { background: var(--bad); }
.hero__title { font-size: clamp(38px, 7vw, 72px); line-height: 1.05; margin: 22px 0 16px; font-weight: 800; letter-spacing: -1px; }
.hero__text { max-width: 580px; margin: 0 auto; color: var(--muted); font-size: 18px; }

.ip-box {
  max-width: 520px; margin: 36px auto 0; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.ip-box__label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }
.ip-box__row { display: flex; gap: 10px; align-items: center; margin: 10px 0 12px; }
.ip-box__ip {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  color: var(--gold-3); font-family: ui-monospace, Consolas, monospace; font-size: 17px; text-align: left;
}
.ip-box__meta { display: flex; justify-content: center; gap: 24px; color: var(--muted); font-size: 14px; }
.ip-box__meta b { color: var(--text); }

.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; margin: 40px auto 0; text-align: left; }
.mode { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.mode__icon { font-size: 24px; color: var(--gold); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(243, 210, 122, .08); margin-bottom: 12px; }
.mode h2 { font-size: 20px; margin-bottom: 6px; }
.mode p { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { font-size: clamp(28px, 4.5vw, 40px); text-align: center; font-weight: 800; }
.section__sub { text-align: center; color: var(--muted); max-width: 600px; margin: 8px auto 40px; }

/* Ranks */
.ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rank {
  position: relative; display: flex; flex-direction: column;
  padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rank:hover { transform: translateY(-4px); border-color: rgba(243, 210, 122, .4); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.rank--hit { border-color: rgba(243, 210, 122, .55); background: linear-gradient(180deg, var(--card-2), var(--card)); }
.rank__tag {
  position: absolute; top: -11px; right: 18px; padding: 2px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: #2a1f08; font-size: 12px; font-weight: 800;
}
.rank__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rank__gem { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.rank__name { font-size: 22px; font-weight: 800; }
.rank__price { font-size: 30px; font-weight: 800; color: var(--gold); margin-bottom: 14px; }
.rank__price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.rank__list { list-style: none; color: var(--muted); font-size: 15px; margin-bottom: 22px; flex: 1; }
.rank__list li { padding: 5px 0 5px 26px; position: relative; }
.rank__list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.rank .btn { width: 100%; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }

/* Rules */
.rules { max-width: 780px; margin: 0 auto; list-style: none; counter-reset: r; display: grid; gap: 12px; }
.rules li {
  counter-increment: r; position: relative;
  padding: 16px 18px 16px 62px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--muted);
}
.rules li b { color: var(--text); }
.rules li::before {
  content: counter(r); position: absolute; left: 16px; top: 14px;
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(243, 210, 122, .1); color: var(--gold); font-weight: 800;
}

/* Contacts */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.contact {
  display: flex; align-items: center; gap: 14px; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  transition: border-color .2s, transform .2s;
}
.contact:hover { border-color: rgba(243, 210, 122, .45); transform: translateY(-3px); color: var(--text); }
.contact svg { width: 34px; height: 34px; color: var(--gold); flex-shrink: 0; }
.contact span { display: flex; flex-direction: column; min-width: 0; }
.contact small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer__inner { text-align: center; color: var(--muted); font-size: 14px; }
.footer__small { font-size: 12px; opacity: .7; margin-top: 4px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--card-2); color: var(--gold-3); border: 1px solid var(--line);
  padding: 12px 20px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; }

/* Adaptive */
@media (max-width: 900px) {
  .ranks { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 680px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.is-open { max-height: 260px; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding: 48px 0 56px; }
  .hero__text { font-size: 16px; }
  .ip-box__row { flex-direction: column; align-items: stretch; }
  .ip-box__ip { text-align: center; }
  .modes { grid-template-columns: 1fr; }
  .ranks { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .rules li { padding-left: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
