/* =========================================================
   Sich DM — стилі сайту
   ========================================================= */

:root {
  --bg: #0b0a0c;
  --bg-2: #110f13;
  --surface: #18151b;
  --surface-2: #201c24;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  --text: #f4efe7;
  --muted: #a8a098;
  --dim: #746d66;

  --crimson: #d7263d;
  --crimson-hi: #ff5a6e;
  --crimson-deep: #8f1022;
  --gold: #f5b93a;
  --gold-soft: #ffd77a;
  --ok: #3ddc84;

  --radius: 18px;
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --container: 1200px;
  --nav-h: 72px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

/* легка плівкова зернистість */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #140f0a;
  font-weight: 800;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn .ico { width: 18px; height: 18px; }

.btn--primary {
  background: linear-gradient(180deg, #ea3a51, #b3132b);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(215, 38, 61, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary .ico { fill: currentColor; stroke: none; }
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(215, 38, 61, 1), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn--lg { padding: 18px 28px; font-size: 14px; }
.btn--sm { padding: 10px 16px; font-size: 12px; }
.btn--sm .ico { width: 14px; height: 14px; }

/* ---------- Навігація ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(11, 10, 12, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand__emblem { width: 42px; height: 42px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .06em;
}
.brand__name span { margin-left: 6px; color: var(--crimson); }

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav__links a.is-active { color: var(--gold-soft); }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1099px) {
  .nav__burger { display: flex; }
  .nav.is-open {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 24px;
    background: var(--bg);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
  }
  .nav__links a {
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav__links a:last-child { border-bottom: 0; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 16px; }
  .brand__emblem { width: 36px; height: 36px; }
  .nav__inner { gap: 10px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(55% 60% at 75% 45%, rgba(215, 38, 61, .30), transparent 70%),
    radial-gradient(40% 40% at 10% 15%, rgba(245, 185, 58, .08), transparent 70%),
    linear-gradient(180deg, #0b0a0c 0%, #140c10 60%, #0b0a0c 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
}

.hero__embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__word {
  position: absolute;
  right: -3vw;
  bottom: -5vw;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(160px, 30vw, 440px);
  font-weight: 900;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .05);
  pointer-events: none;
  user-select: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 12px var(--crimson);
}

.hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(60px, 10.5vw, 140px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 30%, #d9cfc2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title span {
  background: linear-gradient(180deg, #ff4d63, #b3132b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(215, 38, 61, .45));
}

.hero__lead {
  max-width: 540px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
}

.ip-card {
  max-width: 500px;
  margin-bottom: 28px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ip-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ip-card__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.ip-card__value:hover { color: var(--gold-soft); }
.ip-card__copy {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(245, 185, 58, .12);
  color: var(--gold);
  transition: background .2s, transform .2s;
}
.ip-card__value:hover .ip-card__copy { background: rgba(245, 185, 58, .22); transform: scale(1.05); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}
.status.is-online { color: var(--ok); }
.status.is-online .status__dot { background: var(--ok); animation: pulse 2s infinite; }
.status.is-offline { color: var(--crimson-hi); }
.status.is-offline .status__dot { background: var(--crimson); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin: 20px 0 0; color: var(--dim); font-size: 13px; font-weight: 600; }

.hero__visual { position: relative; display: grid; place-items: center; }
.emblem-wrap { position: relative; width: min(470px, 100%); aspect-ratio: 1; }
.emblem-wrap::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 38, 61, .5), transparent 65%);
  filter: blur(30px);
}
.emblem-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 80s linear infinite;
}
.emblem {
  position: absolute;
  inset: 11%;
  width: 78%;
  height: 78%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6));
  animation: float 6s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 899px) {
  .hero { min-height: auto; padding: calc(var(--nav-h) + 24px) 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .hero__visual { order: -1; }
  .emblem-wrap { width: min(260px, 70vw); }
  .hero__lead, .ip-card { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__word { right: 50%; transform: translateX(50%); bottom: -2vw; }
}

@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .ip-card__top { flex-wrap: wrap; }
  .eyebrow { font-size: 12px; }
}

/* ---------- Орнамент ---------- */

.ornament {
  height: 34px;
  background:
    linear-gradient(var(--crimson-deep), var(--crimson-deep)) top / 100% 1px no-repeat,
    linear-gradient(var(--crimson-deep), var(--crimson-deep)) bottom / 100% 1px no-repeat,
    url("assets/ornament.svg") center / 24px 22px repeat-x,
    #0d0b0e;
}

/* ---------- Цифри ---------- */

.stats { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 16px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__value small { color: var(--dim); font-size: .48em; font-weight: 700; }
.stat--online.is-online .stat__value > span { color: var(--ok); }
.stat__label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 719px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Секції ---------- */

.section { position: relative; padding: clamp(72px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-2); }

.section__head { max-width: 720px; margin: 0 0 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.section__head--row .section__title { margin-bottom: 0; }
.section__head--row .section__sub { max-width: 320px; text-align: right; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--crimson); }
.section__head--center .kicker::after { content: ""; width: 28px; height: 2px; background: var(--crimson); }

.section__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.01em;
}
.section__title em { font-style: normal; color: var(--crimson); }
.section__sub { margin: 0; color: var(--muted); font-size: 18px; }

@media (max-width: 719px) {
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .section__head--row .section__sub { text-align: left; }
}

/* ---------- Переваги ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.feature::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 38, 61, .2), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}
.feature:hover { border-color: rgba(215, 38, 61, .45); transform: translateY(-4px); }
.feature:hover::after { opacity: 1; }

.feature__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border: 1px solid rgba(215, 38, 61, .35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(215, 38, 61, .24), rgba(215, 38, 61, .05));
  color: var(--crimson-hi);
}
.feature__icon .ico { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 1023px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .features { grid-template-columns: 1fr; } }

/* ---------- Режими ---------- */

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.mode {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.mode::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(215, 38, 61, .16), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
}
.mode:hover { border-color: rgba(215, 38, 61, .5); transform: translateY(-4px); }
.mode:hover::before { opacity: 1; }

.mode__num {
  position: absolute;
  top: 8px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
}
.mode__tag {
  position: relative;
  align-self: flex-start;
  padding: 6px 11px;
  border: 1px solid rgba(245, 185, 58, .3);
  border-radius: 999px;
  background: rgba(245, 185, 58, .1);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mode__tag--hot { border-color: rgba(215, 38, 61, .45); background: rgba(215, 38, 61, .15); color: var(--crimson-hi); }

.mode__body { position: relative; margin-top: auto; padding-top: 40px; }
.mode__weapons {
  margin: 0 0 6px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mode h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.mode p:not(.mode__weapons) { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #0a090b;
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}
.cmd::before { content: ">"; color: var(--crimson); }
.cmd--btn { cursor: pointer; transition: border-color .2s; }
.cmd--btn::before { content: none; }
.cmd--btn:hover { border-color: var(--gold); }
.cmd--btn .ico { width: 16px; height: 16px; color: var(--gold); }

.inline-cmd {
  padding: 2px 6px;
  border-radius: 6px;
  background: #0a090b;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: .9em;
  white-space: nowrap;
}

@media (max-width: 1023px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) {
  .modes { grid-template-columns: 1fr; }
  .mode { min-height: 0; }
}

/* ---------- Ранги ---------- */

.ranks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ranks::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg, #6d5838, var(--gold), var(--crimson));
  opacity: .6;
}

.rank {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.rank__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--badge);
  color: var(--badge);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  transition: transform .25s;
}
.rank__badge::before {
  content: "";
  position: absolute;
  inset: 3px;
  clip-path: inherit;
  background: #141116;
}
.rank__badge span { position: relative; }
.rank:hover .rank__badge { transform: translateY(-4px) scale(1.05); }

.rank--top .rank__badge::before { background: linear-gradient(180deg, #e8344b, #8f1022); }
.rank--top .rank__badge { color: #fff; filter: drop-shadow(0 0 18px rgba(215, 38, 61, .7)); }

.rank__name { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.2; }
.rank__req { margin-top: 6px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
  .ranks { grid-template-columns: 1fr; gap: 14px; max-width: 460px; margin: 0 auto; }
  .ranks::before {
    top: 30px;
    bottom: 30px;
    left: 29px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #6d5838, var(--gold), var(--crimson));
  }
  .rank { flex-direction: row; gap: 18px; text-align: left; }
  .rank__badge { width: 60px; height: 60px; margin: 0; font-size: 16px; }
}

/* ---------- Кроки ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step__num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--crimson);
}
.step h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.step p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.step p:last-child { margin-bottom: 0; }
.step__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--gold);
  font-weight: 800;
}
.step__link .ico { width: 16px; height: 16px; transition: transform .2s; }
.step__link:hover .ico { transform: translateX(4px); }

@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Правила ---------- */

.rules-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  gap: 56px;
}
.rules-layout .section__head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.rules__discord { margin-top: 28px; }

.rules { display: flex; flex-direction: column; gap: 12px; }

.rule {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .2s, background .2s;
}
.rule[open] { border-color: rgba(215, 38, 61, .4); background: var(--surface-2); }
.rule summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.rule summary::-webkit-details-marker { display: none; }
.rule__num { width: 30px; flex: none; color: var(--crimson); font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.rule__title { flex: 1; min-width: 0; font-weight: 700; }
.rule__chev { width: 18px; height: 18px; color: var(--dim); transition: transform .25s; }
.rule[open] .rule__chev { transform: rotate(180deg); }
.rule__body { padding: 0 20px 18px 64px; color: var(--muted); }
.rule__body p { margin: 0; }

.punish {
  flex: none;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.punish--ban { border-color: rgba(215, 38, 61, .4); background: rgba(215, 38, 61, .14); color: var(--crimson-hi); }
.punish--mid { border-color: rgba(245, 185, 58, .35); background: rgba(245, 185, 58, .1); color: var(--gold); }
.punish--low { border-color: var(--line-2); background: rgba(255, 255, 255, .05); color: var(--muted); }

@media (max-width: 899px) {
  .rules-layout { grid-template-columns: 1fr; gap: 36px; }
  .rules-layout .section__head { position: static; }
}
@media (max-width: 559px) {
  .rule summary {
    display: grid;
    grid-template-columns: 30px 1fr 18px;
    gap: 8px 12px;
    padding: 16px;
  }
  .rule__num { grid-area: 1 / 1; }
  .rule__title { grid-area: 1 / 2; }
  .rule__chev { grid-area: 1 / 3; }
  .punish { grid-area: 2 / 2; justify-self: start; }
  .rule__body { padding: 0 16px 16px 58px; }
}

/* ---------- Таблиця лідерів ---------- */

.board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.board table { width: 100%; border-collapse: collapse; }
.board th {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
}
.board td { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.board tbody tr:last-child td { border-bottom: 0; }
.board tbody tr { transition: background .2s; }
.board tbody tr:hover { background: rgba(255, 255, 255, .03); }
.board .c-num { text-align: right; font-variant-numeric: tabular-nums; }
.board .c-pos { width: 64px; }

.pos {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  font-weight: 800;
}
.pos--1 { background: linear-gradient(135deg, #ffe08a, #c8871a); color: #1a1206; }
.pos--2 { background: linear-gradient(135deg, #f1f3f6, #9aa1ab); color: #14161a; }
.pos--3 { background: linear-gradient(135deg, #f0b07a, #9a5a2c); color: #1a0f06; }

.player { display: flex; align-items: center; gap: 12px; font-weight: 700; min-width: 0; }
.player__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}
.player__nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rank-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 185, 58, .1);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.kd { font-family: var(--font-mono); font-weight: 700; }
.kd--good { color: var(--ok); }

@media (max-width: 719px) {
  .board table { table-layout: fixed; }
  .board .c-rank, .board .c-deaths { display: none; }
  .board th, .board td { padding: 12px 10px; }
  .board th { letter-spacing: .06em; }
  .board th.c-pos { width: 46px; }
  .board th:nth-child(4) { width: 84px; }
  .board th:last-child { width: 64px; }
  .player { overflow: hidden; }
  .player__avatar { display: none; }
}

/* ---------- FAQ ---------- */

.faq { max-width: 860px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }

.qa {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .2s;
}
.qa[open] { border-color: rgba(245, 185, 58, .35); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ico { color: var(--gold); transition: transform .25s; }
.qa[open] summary .ico { transform: rotate(180deg); }
.qa p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  isolation: isolate;
  padding: clamp(80px, 11vw, 130px) 0;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(70% 110% at 50% 0%, rgba(215, 38, 61, .35), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/ornament.svg") 0 0 / 24px 22px;
  opacity: .06;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
.cta__inner { max-width: 760px; }
.cta__emblem {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 30px rgba(215, 38, 61, .5));
}
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 22px;
  border: 1px dashed rgba(245, 185, 58, .55);
  border-radius: 12px;
  background: rgba(245, 185, 58, .07);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.ip-pill:hover { background: rgba(245, 185, 58, .14); border-color: var(--gold); }
.ip-pill .ico { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .cta__actions > * { width: 100%; justify-content: center; }
}

/* ---------- Футер ---------- */

.footer { background: #080709; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}
.footer__brand p { max-width: 360px; margin: 16px 0 20px; color: var(--muted); font-size: 15px; }
.footer h4 {
  margin: 6px 0 16px;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer__links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__links a { color: var(--muted); font-weight: 600; transition: color .2s; }
.footer__links a:hover { color: var(--gold-soft); }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--muted);
  transition: color .2s, border-color .2s, transform .2s;
}
.socials a:hover { color: var(--gold-soft); border-color: var(--gold); transform: translateY(-2px); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

@media (max-width: 719px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border: 1px solid rgba(61, 220, 132, .4);
  border-radius: 12px;
  background: #1d1a20;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast .ico { color: var(--ok); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Анімації появи ---------- */

/* використовуємо `translate`, щоб не конфліктувати з hover-`transform` карток */
.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity .7s ease var(--d, 0s),
    translate .7s ease var(--d, 0s),
    transform .25s ease,
    border-color .25s ease,
    background-color .25s ease;
}
.js [data-reveal].is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
}
