/* ==========================================================================
   VEXA — Minecraft server website
   Единый файл стилей. Тёмная тема, неоновые акценты, без сборщика.
   ========================================================================== */

:root {
  --bg: #0c0907;
  --bg-2: #130e0a;
  --panel: #1b130d;
  --panel-2: #26190f;
  --line: #49311f;
  --text: #fff2df;
  --muted: #c1a98c;
  --accent: #ff962e;
  --accent-2: #ffd073;
  --pink: #ff8061;
  --gold: #ffc45b;
  --green: #57d58e;
  --red: #ff5e68;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .5);
  --glow: 0 0 30px rgba(255, 150, 46, .26);
  --container: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@font-face {font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('../fonts/manrope-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face {font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('../fonts/manrope-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face {font-family:'Russo One';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/russo-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face {font-family:'Russo One';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/russo-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
html.vexa-smooth { scroll-behavior: auto; }
html.vexa-smooth .header { position: fixed; left: 0; right: 0; }
.smooth-header-space { height: var(--header-h); }
#vexa-smooth-content { display: flow-root; }
html.motion-available .reveal.is-in { animation: none; }
.motion-duration-ready { position: relative; }
.duration-highlight { position: absolute; left: 0; top: 0; border: 1px solid var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); pointer-events: none; }
.motion-duration-ready button { position: relative; z-index: 1; }
html.motion-available .motion-duration-ready button.is-active { background: transparent; border-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.skip-link { position:fixed;left:16px;top:-100px;z-index:200;padding:12px 18px;background:var(--bg);border:2px solid var(--accent);border-radius:8px; }
.skip-link:focus { top:12px; }
main { min-width:0; }
.page-head h1, .legal-content, .card, .footer { overflow-wrap:anywhere; }
.hero-card-title { font-size:1.15rem; }
p a:not(.btn), li a:not(.btn), .note a { text-decoration:underline; text-underline-offset:3px; }

h1, h2, h3, h4 {
  font-family: "Russo One", "Manrope", sans-serif;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

::selection { background: var(--accent); color: #241307; }

/* Скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #493522; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #68492c; }

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 80px 0; position: relative; }
.section--tight { padding: 52px 0; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section__head p { color: var(--muted); margin: 0; max-width: 620px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.grad-text {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 58%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--panel-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(105deg, var(--accent), var(--gold));
  border-color: transparent;
  color: #281609;
  box-shadow: 0 10px 26px rgba(255, 150, 46, .25);
}
.btn--primary:hover { box-shadow: 0 14px 34px rgba(255, 150, 46, .38); }
/* Белая кнопка-«скачать лаунчер», как на референсе */
.btn--white {
  background: #fff1db;
  border-color: #fff1db;
  color: #281609;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.btn--white:hover { background: #ffe2b6; border-color: #ffe2b6; }
.btn--pink {
  background: linear-gradient(100deg, var(--pink), #f6a26b);
  border-color: transparent;
  color: #28130b;
  box-shadow: 0 10px 26px rgba(255, 128, 97, .24);
}
.btn--ghost { background: rgba(255, 231, 204, .045); }
.btn--gold {
  background: linear-gradient(100deg, var(--accent), var(--gold));
  border-color: transparent;
  color: #281609;
  box-shadow: 0 10px 26px rgba(255, 196, 91, .24);
}
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Хедер ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(12, 9, 7, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(112, 75, 43, .52);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Russo One", sans-serif;
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: .06em;
}
.logo__mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 38px;
  border-radius: 11px;
  background: var(--bg-2) url("../img/vexa-logo-small.webp") 50% 40% / 180% no-repeat;
  box-shadow: 0 0 18px rgba(255, 150, 46, .24);
  font-size: 0;
}
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: .93rem;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.is-active { color: var(--text); background: rgba(255, 150, 46, .15); }
.header__actions { display: flex; align-items: center; gap: 10px; }

.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: none;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}
.cart-btn__count.is-visible { display: grid; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 70px 0 60px;
  overflow: hidden;
}
/* Фоновый арт главного экрана */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 9, 7, .58), rgba(12, 9, 7, .2) 72%),
    linear-gradient(0deg, rgba(12, 9, 7, .72), transparent 52%),
    url("../img/vexa-background.webp") center center / cover no-repeat;
}

/* Звёзды */
.hero__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255, 255, 255, .9), transparent),
    radial-gradient(1.4px 1.4px at 28% 9%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1.8px 1.8px at 47% 22%, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1.3px 1.3px at 63% 12%, rgba(255, 255, 255, .65), transparent),
    radial-gradient(1.7px 1.7px at 78% 24%, rgba(255, 255, 255, .85), transparent),
    radial-gradient(1.4px 1.4px at 89% 14%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1.2px 1.2px at 36% 31%, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1.5px 1.5px at 71% 36%, rgba(255, 255, 255, .6), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: .55; }
  to { opacity: 1; }
}

/* Концентрические кольца энергии в небе */
.hero__rings {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 1150px;
  height: 420px;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__rings i {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 205, 133, .24);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(74deg);
  box-shadow: 0 0 26px rgba(255, 150, 46, .24);
  animation: ringSpin 26s linear infinite;
}
.hero__rings i:nth-child(1) { width: 420px; height: 420px; }
.hero__rings i:nth-child(2) { width: 700px; height: 700px; opacity: .7; animation-duration: 38s; animation-direction: reverse; }
.hero__rings i:nth-child(3) { width: 1000px; height: 1000px; opacity: .45; animation-duration: 52s; }
@keyframes ringSpin {
  to { transform: translate(-50%, -50%) rotateX(74deg) rotate(360deg); }
}

/* Воксельные горы и туман */
.hero__mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background:
    linear-gradient(180deg, transparent, rgba(12, 9, 7, .92) 72%),
    linear-gradient(120deg, #6e351b 0%, #28160e 50%, #4d2417 100%);
  clip-path: polygon(
    0% 100%, 0% 62%, 6% 54%, 11% 60%, 16% 41%, 22% 48%, 27% 33%,
    33% 44%, 39% 28%, 45% 39%, 51% 24%, 57% 37%, 63% 30%, 69% 45%,
    74% 34%, 80% 47%, 86% 38%, 92% 52%, 100% 44%, 100% 100%
  );
}
.hero__fog {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 30%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 150, 46, .25), transparent 72%);
  filter: blur(26px);
}
.hero__spark {
  position: absolute;
  top: 22%;
  right: 16%;
  width: 26px;
  height: 26px;
  background:
    linear-gradient(rgba(255, 208, 115, .95), rgba(255, 208, 115, .95)) center / 3px 100% no-repeat,
    linear-gradient(rgba(255, 208, 115, .95), rgba(255, 208, 115, .95)) center / 100% 3px no-repeat;
  filter: drop-shadow(0 0 10px #ff962e);
  animation: sparkle 3.4s ease-in-out infinite;
}
.hero__stars, .hero__rings, .hero__mountains, .hero__fog, .hero__spark { display: none; }
@keyframes sparkle {
  0%, 100% { transform: rotate(0) scale(1); opacity: .85; }
  50% { transform: rotate(45deg) scale(1.25); opacity: 1; }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: center;
}
.hero__title { margin-bottom: 18px; }
.hero__text { color: var(--muted); font-size: 1.06rem; max-width: 520px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 26px; }

.ip-box {
  max-width: 100%;
  flex-wrap: wrap;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 20px;
  border: 1px dashed rgba(255, 190, 96, .58);
  border-radius: 999px;
  background: rgba(255, 166, 61, .08);
}
.ip-box__label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ip-box__value { font-family: "JetBrains Mono", Consolas, monospace; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }

.hero__stats {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__stats b {
  display: block;
  font-family: "Russo One", sans-serif;
  font-size: 1.85rem;
  line-height: 1;
}
.hero__stats span { font-size: .82rem; color: var(--muted); }

/* Карточка онлайна справа */
.hero__card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(36, 24, 15, .97), rgba(15, 11, 8, .97));
  box-shadow: var(--shadow);
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 169, 66, .7), transparent 48%, rgba(255, 111, 73, .52));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero__card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(87, 213, 142, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(87, 213, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 213, 142, 0); }
}
.online-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(112, 75, 43, .42);
}
.online-row:first-of-type { border-top: 0; }
.online-row__name { font-weight: 600; flex: 1; }
.online-row__bar {
  width: 100px;
  height: 6px;
  border-radius: 999px;
  background: #382719;
  overflow: hidden;
}
.online-row__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.online-row__num { font-size: .86rem; color: var(--muted); min-width: 66px; text-align: right; }

/* ---------- Сетки/карточки ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); box-shadow: var(--shadow); }
.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 150, 46, .12);
  color: var(--accent-2);
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; display: block; }
.card__icon--discord { color: #5865f2; }
.card__icon--telegram { color: #26a5e4; }
.card p { color: var(--muted); margin: 0; font-size: .94rem; }

/* Режимы игры */
.mode {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  transition: transform .25s ease, box-shadow .3s ease;
}
.mode:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mode__art {
  position: absolute;
  inset: 0;
  background: var(--mode-art, linear-gradient(150deg, #70421f, #21140c));
  transition: transform .5s ease;
}
.mode:hover .mode__art { transform: scale(1.06); }
.mode__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 9, 7, .08) 25%, rgba(12, 9, 7, .92));
}
.mode__body { position: relative; }
.mode__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 190, 96, .14);
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.mode h3 { margin-bottom: 6px; }
.mode p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.mode__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 12px;
}
.mode__meta b { color: var(--green); }

/* ---------- Новости ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.news-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); }
.news-card[id] { scroll-margin-top: 90px; }
.news-card__cover {
  flex-shrink: 0;
  height: 168px;
  background: var(--cover, linear-gradient(140deg, #8a4c24, #21130b));
  position: relative;
  overflow: hidden;
}
.news-card__image { width: 100%; height: 100%; display: block; object-fit: cover; }
.news-card__cover--poster { height: auto; aspect-ratio: 1 / 1; }
.news-card__cover--poster .news-card__image { object-fit: contain; }
.news-card__cover--poster::after { display: none; }
.news-card__cover--giveaway { display: grid; place-items: center; min-height: 168px; }
.news-card__cover--giveaway::after { background: radial-gradient(ellipse at center, transparent 15%, rgba(12,9,7,.28)); }
.news-card__giveaway-badge { position: relative; z-index: 1; padding: 14px 22px; border: 1px solid rgba(255,214,130,.65); border-radius: 14px; color: #fff2d9; background: rgba(20,10,24,.38); font-weight: 900; font-size: clamp(1rem, 2.5vw, 1.55rem); letter-spacing: .08em; text-align: center; text-shadow: 0 2px 16px rgba(255,143,39,.65); }
.news-card__details { color: var(--muted); font-size: .9rem; }
.news-card__details h4 { margin: 8px 0 4px; color: var(--text); }
.news-card__details ol { margin: 0 0 12px; padding-left: 1.4rem; }
.news-card__details li { padding: 2px 0; }
.news-card__details p { margin: 8px 0; }
.news-card__cover::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(12, 9, 7, .38)); pointer-events: none; }
.news-card__date {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(12, 9, 7, .82);
  font-size: .76rem;
  color: var(--muted);
  z-index: 1;
}
.news-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__date--inline { position: static; align-self: flex-start; }
.news-card--poster .news-card__body p { white-space: pre-line; overflow-wrap: anywhere; }
.news-card__body h3 { margin: 0; font-size: 1.05rem; }
.news-card__body p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.news-card__more { color: var(--accent-2); font-weight: 700; font-size: .88rem; }

/* ---------- Топ игроков ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; text-align: left; font-size: .93rem; }
th {
  background: var(--panel-2);
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}
tbody tr { border-top: 1px solid rgba(112, 75, 43, .42); }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
.rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--panel-2);
  font-weight: 800;
  font-size: .84rem;
}
.rank--1 { background: linear-gradient(140deg, #ffd76e, #ff9f1a); color: #221500; }
.rank--2 { background: linear-gradient(140deg, #f1e2c7, #bca887); color: #2a2116; }
.rank--3 { background: linear-gradient(140deg, #e0a273, #b06c34); color: #1d0f02; }
.player { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.player__head {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(140deg, #6b4a2c, #2a1d13);
  image-rendering: pixelated;
}

/* ---------- Магазин ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
}
.shop-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}
.shop-side h4 {
  margin: 0 0 14px;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter-list { display: flex; flex-direction: column; gap: 6px; }
.filter-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  text-align: left;
  transition: all .18s ease;
}
.filter-list button:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.filter-list button.is-active {
  background: rgba(255, 150, 46, .14);
  border-color: rgba(255, 166, 61, .48);
  color: var(--text);
}
.filter-list small { color: var(--muted); font-size: .78rem; }

.nick-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.input, .select, textarea.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 150, 46, .2);
}
.input::placeholder, textarea.input::placeholder { color: #94795f; }
.field small { font-size: .78rem; color: var(--muted); }
.field small.error { color: var(--red); }

.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.shop-toolbar .input { max-width: 320px; }

.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.product:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); box-shadow: var(--shadow); }
.product__top {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--art, linear-gradient(150deg, #70421f, #21140c));
  font-size: 2.6rem;
}
.product__top img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.product__top::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(12, 8, 5, .88));
  pointer-events: none;
}
.product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--gold);
  color: #1b1200;
}
.product__badge--hit { background: var(--red); color: #fff; }
.product__badge--new { background: var(--green); color: #04180d; }
.product__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product__heading {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
}
.product__heading h3 {
  display: block;
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}
.product__term {
  flex: none;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(12, 8, 5, .7);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}
.product__desc { color: var(--muted); font-size: .87rem; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.product__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.product__perks li { font-size: .84rem; color: var(--muted); padding-left: 18px; position: relative; }
.product__perks li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-2);
}
.product__more {
  align-self: flex-start;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--accent-2);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.product__more:hover { color: var(--text); }
.product__more:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 3px; }
.product__duration { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.product__body--has-duration .product__duration { margin-top: auto; }
.product__body--has-duration .product__foot { margin-top: 0; }
.product__duration button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: .78rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.product__duration button b { color: var(--text); font-size: .88rem; }
.product__duration button.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); color: var(--text); }
.product__duration button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(112, 75, 43, .42);
}
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price b { font-family: "Russo One", sans-serif; font-size: 1.22rem; }
.price s { color: var(--muted); font-size: .82rem; }

.rank-dialog {
  width: min(690px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: auto;
}
.rank-dialog::backdrop { background: rgba(12, 9, 7, .83); backdrop-filter: blur(5px); }
.rank-dialog__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}
.rank-dialog__eyebrow { color: var(--accent-2); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rank-dialog h2 { margin: 8px 42px 8px 0; }
.rank-dialog h3 { margin: 24px 0 12px; font-size: 1rem; }
.rank-dialog__summary, .rank-dialog__note { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.rank-dialog__commands, .rank-dialog__limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rank-dialog__command, .rank-dialog__limit {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, .13);
  font-size: .8rem;
}
.rank-dialog__command span, .rank-dialog__limit span { color: var(--muted); }
.rank-dialog__command code { color: var(--accent-2); font-size: .84rem; overflow-wrap: anywhere; }
.rank-dialog__limit strong { color: var(--text); font-size: .96rem; }
.rank-dialog__note { margin: 18px 0 0; }
@media (max-width: 520px) {
  .rank-dialog__commands, .rank-dialog__limits { grid-template-columns: 1fr; }
}

/* ---------- Корзина (drawer) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 9, 7, .78);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}
.drawer.is-open { transform: translateX(0); }
.drawer:not(.is-open) { visibility:hidden; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 { margin: 0; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s ease;
}
.icon-btn:hover { background: #382719; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer__foot { padding: 20px; border-top: 1px solid var(--line); background: var(--panel); }

.cart-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(112, 75, 43, .42);
}
.cart-item__art {
  overflow: hidden;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--art, #382719);
  font-size: 1.2rem;
}
.cart-item__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-item__single { color: var(--muted); font-size: .82rem; }
.cart-item > div { min-width: 0; }
.cart-item__name { font-weight: 600; font-size: .93rem; overflow-wrap: anywhere; }
.cart-item__price { color: var(--muted); font-size: .82rem; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}
.qty span { min-width: 20px; text-align: center; font-weight: 700; font-size: .9rem; }
.cart-item__remove {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .8rem;
  padding: 2px 0;
}
.cart-item__remove:hover { color: var(--red); }

.sum-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .92rem; color: var(--muted); }
.sum-row--total { color: var(--text); font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.sum-row--total b { font-family: "Russo One", sans-serif; }
.checkout-form { display: grid; gap: 9px; margin-top: 18px; }
.checkout-form .field-label { color: var(--muted); font-size: .86rem; }
.checkout-form__note, .checkout-form__message { margin: 2px 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.checkout-form__message { min-height: 1.25em; color: var(--red); }

.empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.empty span { font-size: 2.4rem; display: block; margin-bottom: 12px; }

/* ---------- Модалка ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(.98);
  transition: transform .25s ease;
}
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 16px; right: 16px; }
.modal h3 { margin-bottom: 6px; }
.modal .checkout-title { font-size:1.15rem; margin-bottom:6px; }
.modal .muted { font-size: .92rem; }

.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.pay-method {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  cursor: pointer;
  text-align: center;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .18s ease;
}
.pay-method b { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.pay-method.is-active {
  border-color: var(--accent);
  background: rgba(255, 150, 46, .12);
  color: var(--text);
}
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 16px 0; }
.checkbox input { margin-top: 3px; accent-color: var(--accent); }
.checkbox a { color: var(--accent-2); text-decoration: underline; }

/* ---------- Тосты ---------- */
.toasts {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 240px;
  max-width: 340px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--panel-2);
  box-shadow: var(--shadow);
  font-size: .9rem;
  animation: toastIn .3s ease;
}
.toast--ok { border-left-color: var(--green); }
.toast--err { border-left-color: var(--red); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-2); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 22px 18px; margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- CTA-баннер ---------- */
.cta {
  position: relative;
  padding: 54px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 166, 61, .34);
  background:
    radial-gradient(700px 300px at 15% 20%, rgba(255, 150, 46, .26), transparent 60%),
    radial-gradient(600px 300px at 85% 80%, rgba(255, 111, 73, .16), transparent 60%),
    var(--panel);
  text-align: center;
}
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Статьи (правила/док) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 42px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { color: var(--muted); padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
.note {
  padding: 18px 20px;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 166, 61, .07);
  color: var(--muted);
  font-size: .93rem;
  margin: 22px 0;
}
.page-head {
  padding: 56px 0 34px;
  background: radial-gradient(700px 320px at 20% 0%, rgba(255, 150, 46, .14), transparent 65%), var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a:hover { color: var(--accent-2); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 8px; }
.page-head p { color: var(--muted); margin: 0; max-width: 640px; }

/* ---------- Футер ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 54px 0 26px;
  margin-top: 20px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  margin-bottom: 36px;
}
.footer p { color: var(--muted); font-size: .9rem; }
.footer h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__links a { color: var(--muted); font-size: .92rem; }
.footer__links a:hover { color: var(--accent-2); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: all .2s ease;
}
.socials a:hover { border-color: var(--accent); transform: translateY(-2px); }
.socials a svg { width: 20px; height: 20px; display: block; }
.socials__discord { color: #5865f2; }
.socials__telegram { color: #26a5e4; }
.socials__email { color: var(--accent-2); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
  flex-wrap: wrap;
}
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Cookie-баннер ---------- */
.cookie {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 110;
  width: min(430px, calc(100vw - 44px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(19, 14, 10, .96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.cookie.is-visible { transform: none; }
.no-scroll .cookie { visibility: hidden; pointer-events: none; }
.cookie h2 { margin: 0 0 6px; font-size: .98rem; font-family: inherit; font-weight: 700; letter-spacing: 0; }
.cookie p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.cookie a { color: var(--accent-2); }
.cookie a:hover { text-decoration: underline; }

/* ---------- Нижняя панель онлайна ---------- */
.statusbar {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #090705;
}
.statusbar__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(73, 49, 31, .8);
  flex-wrap: wrap;
}
.statusbar__stat { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted); }
.statusbar__stat b { font-family: "Russo One", sans-serif; font-size: 1.15rem; color: var(--text); }
.statusbar__bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px)) 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--accent), var(--gold));
  font-weight: 700;
  font-size: .9rem;
  color: #281609;
  transition: transform .18s ease, box-shadow .2s ease;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 150, 46, .3); }
.social-btn .ext { margin-left: auto; opacity: .8; font-size: .8rem; }
.server-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.server-pick__cube {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, #fff2dc, #e5caa2);
  color: #281609;
  font-size: 1.1rem;
}
.server-pick__name { font-weight: 700; }
.server-pick__online { color: var(--muted); font-size: .9rem; }
.server-pick__online b { color: var(--text); }
.server-pick select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-family: inherit;
  font-size: .88rem;
  cursor: pointer;
}

/* Плавающая кнопка чата/поддержки */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 105;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--accent), var(--gold));
  color: #281609;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 150, 46, .3);
  transition: transform .18s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab svg { width: 22px; height: 22px; display: block; }

/* Переключатель языка */
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 231, 204, .045);
  font-size: .84rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.lang:hover { color: var(--text); }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.is-in { animation: vexa-reveal .6s ease both; }
@keyframes vexa-reveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; }
}

@media (max-width: 860px) {
  .hero__bg { background-image:linear-gradient(90deg,rgba(12,9,7,.58),rgba(12,9,7,.2) 72%),linear-gradient(0deg,rgba(12,9,7,.72),transparent 52%),url('../img/vexa-background-640.webp'); }
  .header__actions { margin-left: auto; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 22px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .3s ease;
    z-index: 55;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 13px 16px; }
  .burger { display: grid; place-items: center; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .cta { padding: 34px 22px; }
}

@media (max-width: 860px) {
  .statusbar__bottom { grid-template-columns: 1fr 1fr; }
  .server-pick { grid-column: 1 / -1; justify-content: flex-start; }
  .statusbar__top { gap: 22px; }
  .hero__rings { width: 760px; }
}

@media (max-width: 560px) {
  .hero .ip-box { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 10px; padding: 14px; border-radius: 16px; }
  .hero .ip-box > div { min-width: 0; max-width: 100%; }
  .hero .ip-box .btn { flex: none; width: auto; max-width: 100%; padding: 10px 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .statusbar__bottom { grid-template-columns: 1fr; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; flex-direction: column; align-items: stretch; }
  .fab { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .pay-methods { grid-template-columns: 1fr; }
  .header__actions .btn--primary { display: none; }
  th:nth-child(4), td:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 380px) {
  .header__inner { gap: 12px; justify-content: space-between; }
  .header__actions .lang { display: none; }
}

/* VEXA store refresh */
.donate-store { display: grid; gap: 24px; }
.donate-server-card, .donate-identity, .donate-connection, .topup-form, .topup-copy {
  border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); padding: 24px;
}
.donate-server-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.donate-server-card h2, .topup-copy h2 { margin: 8px 0; }
.donate-server-card p, .topup-copy p, .donate-connection p { color: var(--muted); line-height: 1.7; margin: 0; }
.server-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.server-choice { min-width: 150px; display: grid; gap: 5px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); text-align: left; cursor: pointer; }
.server-choice span, .donate-identity > span { color: var(--muted); font-size: .875rem; }
.server-choice.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent); }
.donate-identity { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.donate-identity .field { flex: 0 1 380px; margin: 0; }
.donate-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.donate-tab { padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.donate-tab.is-active { color: var(--text); border-color: var(--accent); }
.donate-content[hidden] { display: none; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 20px; }
.shop-toolbar .input { max-width: 360px; }
.shop-catalog-note { margin: -8px 0 18px; font-size: .85rem; }
.shop-empty { grid-column: 1 / -1; padding: 28px 0; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.product__foot button:disabled { opacity: .58; cursor: not-allowed; }
.topup-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.topup-copy, .topup-form { background: var(--bg); }
.topup-copy p + p { margin-top: 12px; }
.topup-form .field { margin-bottom: 16px; }
.topup-currency-display { display: flex; align-items: center; gap: 12px; }
.topup-currency-display img { display: block; flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; }
.topup-form small { display: block; margin-top: 12px; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topup-slider { margin-top: 18px; }
.topup-range { display: block; width: 100%; height: 8px; margin: 10px 0; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: linear-gradient(to right, var(--accent) 0 var(--range-fill, 1.01%), var(--panel-2) var(--range-fill, 1.01%) 100%); cursor: pointer; }
.topup-range::-webkit-slider-thumb { width: 22px; height: 22px; border: 3px solid var(--bg); border-radius: 50%; background: var(--accent-2); -webkit-appearance: none; box-shadow: 0 0 0 1px var(--accent); }
.topup-range::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid var(--bg); border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 1px var(--accent); }
.topup-range:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 8px; }
.topup-slider__limits { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.donate-connection h3 { margin: 0 0 10px; }
.donate-connection .muted { display: block; margin-top: 12px; line-height: 1.6; }
.cart-item__server { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.home-server-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; }
.hero__card .home-server { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.home-server > span:first-child { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.home-server > span:first-child b { line-height: 1.35; }
.home-server > span:first-child small { color: var(--muted); line-height: 1.4; }
.home-server__play { white-space: nowrap; }
.home-online-bar { display: block; grid-column: 1 / -1; height: 7px; width: 100%; overflow: hidden; border-radius: 999px; background: rgba(255,184,77,.12); }
.home-online-bar > span { display: block; width: var(--online-fill, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s ease; }
.home-online-bar.is-unknown, .home-online-bar.is-offline { opacity: .45; }
.home-server h3 { margin: 0 0 6px; }
.home-server p { margin: 0; color: var(--muted); }
.home-server__shop { margin-top: 12px; white-space: normal; }
.home-online-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 12px; padding: 12px 15px; border: 1px solid rgba(255, 184, 77, .28); border-radius: 14px; background: linear-gradient(110deg, rgba(255, 153, 45, .13), rgba(255, 153, 45, .035)); color: var(--muted); }
.home-online-total strong { color: var(--text); font-family: 'Russo One', sans-serif; font-size: 1.2rem; }
@media (max-width: 760px) {
  .donate-server-card, .donate-identity { align-items: stretch; flex-direction: column; }
  .donate-identity .field { flex-basis: auto; }
  .topup-layout { grid-template-columns: 1fr; }
  .shop-toolbar { align-items: stretch; flex-direction: column; }
  .shop-toolbar .input { max-width: none; }
}
@media (max-width: 480px) {
  .donate-server-card, .donate-identity, .donate-connection, .topup-form, .topup-copy { padding: 18px; }
  .hero__card .home-server { gap: 10px; padding: 14px; }
  .server-choices { display: grid; grid-template-columns: 1fr 1fr; }
  .server-choice { min-width: 0; padding: 12px; }
}

/* Более мягкая тень текста на компьютере. */
@media (min-width: 861px) {
  .product__heading h3 { text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
  .news-card__giveaway-badge { text-shadow: 0 1px 6px rgba(255, 143, 39, .3); }
}


/* VEXA graphite and orange palette 2026-11-03 */
:root{--bg:#10131A;--bg-2:#141A23;--panel:#1B2431;--panel-2:#253143;--line:#344253;--text:#F5F2EC;--muted:#C0C7D0;--accent:#F58A3C;--accent-2:#FFB363;--pink:#FF9671;--gold:#FFB96C;--glow:0 0 22px rgba(245,138,60,.16)}
body{background:#10131A;color:#F5F2EC}
.header{background:rgba(12,16,22,.96)!important;border-color:#303b49!important}
.footer{background:#11151C!important;border-color:#344253!important}
.card,.product,.news-card,.world-card,.hero__card,.shop-side,.modal,.cart-panel,.cookie-banner,.legal-content{background-color:#1B2431!important;border-color:#344253!important}
.product__heading{background:rgba(20,27,37,.92)!important}
.btn--primary,.btn--gold{background:#F58A3C!important;color:#17191D!important;border-color:#F58A3C!important;box-shadow:0 8px 22px rgba(245,138,60,.18)!important}
.btn--primary:hover,.btn--gold:hover{background:#FFAA69!important;border-color:#FFAA69!important;box-shadow:0 10px 25px rgba(245,138,60,.25)!important}
.nav a.is-active{background:rgba(245,138,60,.15)!important}
.donate-tabs{background:#141A23!important;border-color:#344253!important}
.donate-tab{background:#1B2431!important;border-color:#344253!important;color:#E8EAF0!important}
.donate-tab:hover{background:#293546!important;border-color:#F58A3C!important}
.donate-tab.is-active{background:#F58A3C!important;border-color:#F58A3C!important;color:#17191D!important;box-shadow:0 5px 16px rgba(245,138,60,.18)!important}
.product__duration button{background:#141A23!important;border-color:#415064!important;color:#F5F2EC!important}
.product__duration button.is-active,.product__duration button[aria-pressed="true"]{background:#303643!important;border-color:#F58A3C!important;color:#F5F2EC!important}
.vexa-home .hero__card{background:#1B2431!important}
.hero-preview::after,.vexa-home--halloween .hero-preview::after{background:linear-gradient(transparent 32%,#1B2431)!important}
.vexa-home .online-stat{background:#202C3B!important}
.input,input,select,textarea{background-color:#151D28;color:#F5F2EC;border-color:#405065}
::selection{background:#F58A3C;color:#17191D}
