:root {
  --blue: #58a6ff;
  --blue-light: #79c0ff;
  --blue-dark: #1a2a6c;
  --blue-steel: #6b76a1;
  --blue-glow: #58a6ffa6;
  --bg: #0d1117;
  --card: #161b22;
  --muted: #8b949e;
  --border: rgba(88, 166, 255, 0.15);
  --header-h: 96px;
  --promo-h: 52px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", var(--font);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ← ФОН: тело страницы */
body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 110% 80% at 50% -10%,
      #3b5a8c 0%,
      #344f7d 12%,
      #2d456f 24%,
      #263c5e 38%,
      #1e2f4a 52%,
      #182338 66%,
      #121a29 82%,
      #0a1018 100%);
  background-attachment: fixed;
  color: #f0f6fc;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.wrap { width: min(100% - 48px, 1280px); margin-inline: auto; }
.pink { color: var(--blue); font-weight: 700; }

/* ===== PROMO BAR ===== */
.promo {
  height: var(--promo-h);
  background: linear-gradient(180deg, #1f2937, #0f1729); /* ← ФОН промо-бара */
  border-bottom: 1px solid rgba(88, 166, 255, 0.2);
  display: flex;
  align-items: center;
}
.promo__inner {
  width: min(100% - 40px, 1440px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.promo__logo {
  flex-shrink: 0;
  padding: 6px 10px;
  background: linear-gradient(135deg, #6b76a1, #313857);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.promo__text { font-size: 13px; color: #c9d1d9cc; flex: 1; }
.promo__hl { color: var(--blue-light); font-weight: 700; }
.promo__btn {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #f0f6fc;
  opacity: 0.85;
}
.promo__btn:hover { opacity: 1; color: var(--blue-light); }

/* ===== HEADER ===== */
.header {
  left: 0; right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 17, 23, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header.is-solid {
  position: sticky;
  top: 0;
}
.header__inner {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__left { display: flex; align-items: center; gap: 16px; }
.logo__text {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.5px;
}

.logo__img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform .2s ease;
}

.logo:hover .logo__img {
  transform: scale(1.05);
}
.players {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.players__ring {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  border-top-color: transparent;
  animation: spin 1.1s linear infinite;
}
.players__label { color: var(--muted); font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s;
}
.nav a:hover { color: #f0f6fc; }
.login-btn {
  padding: 10px 16px;
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
.login-btn:hover { background: rgba(88, 166, 255, 0.08); }
.burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 16px; height: 2px; background: #f0f6fc; position: relative;
}
.burger span::before { content:""; position:absolute; top:-5px; width:16px; height:2px; background:#f0f6fc; }
.burger span::after { content:""; position:absolute; top:5px; width:16px; height:2px; background:#f0f6fc; }

/* ===== INTRO ===== */
.intro {
  position: relative;
  height: 720px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d1117; /* ← ФОН intro-секции */
}
.intro__bg {
  position: absolute; inset: 0;
  background: url("../assets/intro/intro.jpg") bottom center / cover no-repeat;
  filter: saturate(0) brightness(50%);
  -webkit-mask-image: linear-gradient(180deg, #0d1117 60%, transparent);
  mask-image: linear-gradient(180deg, #0d1117 60%, transparent);
  opacity: .9;
  transition: filter .25s;
  z-index: 0;
}
.intro.is-hover .intro__bg { filter: saturate(80%) brightness(100%); }

.intro__word {
  position: absolute;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(90px, 15vw, 200px);
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(88, 166, 255, .2);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  user-select: none;
}

.intro__cards {
  position: absolute;
  left: 100px; right: 100px; top: 130px;
  height: 480px;
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  z-index: 2;
}

.mcard {
  position: relative;
  flex: 1;
  height: 100%;
  margin-right: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card); /* ← ФОН карточки */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.mcard:last-child { margin-right: 0; }
.mcard * { pointer-events: none; }

.mcard::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #58a6ff1f, #58a6ff);
  opacity: 0;
  transition: opacity .2s;
  z-index: 1;
}
.mcard--cta::before { opacity: 1; }
.intro.is-hover .mcard--cta { box-shadow: 0 0 128px var(--blue-glow); }
.mcard:hover { border-color: rgba(88, 166, 255, .5); z-index: 3; }
.mcard:hover::before { opacity: .4; }
.mcard--cta:hover::before { opacity: 1; }

.mcard__paint {
  position: absolute; inset: 0; z-index: 0;
  filter: saturate(0) brightness(.9);
  transition: filter .25s;
}
.mcard:hover .mcard__paint,
.mcard--cta .mcard__paint { filter: none; }

.mcard__paint.police {
  background: radial-gradient(ellipse at 50% 15%, #4a7eb5 0%, transparent 50%),
              linear-gradient(165deg, #1c2e42, #080e14);
}
.mcard__paint.hand {
  background: radial-gradient(ellipse at 40% 20%, #c9a15a 0%, transparent 48%),
              linear-gradient(165deg, #2c2416, #0e0c06);
}
.mcard__paint.criminal {
  background: radial-gradient(ellipse at 50% 18%, #b34545 0%, transparent 48%),
              linear-gradient(165deg, #2c1212, #0e0606);
}
.mcard__paint.center {
  background: radial-gradient(ellipse at 50% 30%, #58a6ff88 0%, transparent 55%),
              linear-gradient(180deg, #0d1a33, #58a6ff);
}
.mcard__paint.mafia {
  background: radial-gradient(ellipse at 50% 18%, #7a5aaa 0%, transparent 48%),
              linear-gradient(165deg, #1c1428, #0a0812);
}
.mcard__paint.doctor {
  background: radial-gradient(ellipse at 50% 18%, #5ab0b0 0%, transparent 48%),
              linear-gradient(165deg, #142424, #080e0e);
}
.mcard__paint.military {
  background: radial-gradient(ellipse at 50% 18%, #5a7a4a 0%, transparent 48%),
              linear-gradient(165deg, #161c12, #080a06);
}

.mcard__human {
  position: absolute;
  left: 50%;
  bottom: -2%;
  transform: translateX(-50%);
  width: 140%;
  height: 95%;
  object-fit: cover;
  object-position: center 10%;
  filter: saturate(0) contrast(1.2) brightness(1.05);
  mix-blend-mode: lighten;
  z-index: 2;
  transition: transform .35s, filter .25s;
}
.mcard:hover .mcard__human {
  transform: translateX(-50%) scale(1.06);
  filter: saturate(.25) contrast(1.15) brightness(1.1);
}

.mcard::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.8));
  z-index: 2;
  pointer-events: none;
}

.mcard__info {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  opacity: 0;
  transition: opacity .2s;
  text-align: center;
}
.mcard:hover .mcard__info { opacity: 1; }
.mcard__info span {
  color: #f0f6fc99;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.mcard__info strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mcard__play {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}
.mcard__play-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid #58a6ff;
  background: rgba(88, 166, 255, .15);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  transition: transform .2s, box-shadow .2s;
}
.mcard__play-icon svg { width: 26px; height: 26px; fill: #f0f6fc; margin-left: 3px; }
.mcard--cta:hover .mcard__play-icon {
  transform: scale(1.11);
  box-shadow: 0 0 64px #58a6ff;
}
.mcard__play-text {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  padding: 0 10px;
}

/* ===== QUEST ===== */
.quest {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 20px 100px 80px;
  background: #0d1117; /* ← ФОН quest-секции */
  overflow: hidden;
}
.quest__person {
  height: 520px;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1) contrast(1.15);
  justify-self: start;
  margin-left: -20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 85%, transparent);
}
.quest__content { max-width: 560px; justify-self: end; }
.quest__content > p {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 28px;
}
.quest__try {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}
.quest__try::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 6px;
  background: var(--blue);
  border-radius: 2px;
}
.quest__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.quest__choices a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(88, 166, 255, .25);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: .2s;
}
.quest__choices a span { color: var(--blue); font-size: 18px; }
.quest__choices a:hover {
  border-color: var(--blue);
  background: #58a6ff14;
}
.quest__hint { color: var(--muted); font-size: 13px; }

/* ===== SHOWCASE ===== */
.showcase {
  padding: 64px 0;
  background: #0a0f17; /* ← ФОН showcase-секции */
}
.showcase__inner {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.showcase__main h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 40px);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.showcase__main p { color: var(--muted); font-size: 16px; max-width: 520px; }
.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.showcase__shot {
  aspect-ratio: 16/10;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #161b22; /* ← ФОН плитки скриншота */
  overflow: hidden;
  position: relative;
}
.showcase__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0) contrast(1.15);
  transition: transform .35s, filter .35s;
}
.showcase__shot:hover img {
  transform: scale(1.06);
  filter: saturate(.3) contrast(1.1);
}
.showcase__shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
}
.showcase__nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.showcase__arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: #f0f6fc;
  transition: .2s;
}
.showcase__arrow:hover {
  border-color: var(--blue);
  background: #58a6ff22;
}

.soc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.soc__card {
  min-height: 120px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #161b22; /* ← ФОН соц-карточки */
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: .2s;
  position: relative;
}
.soc__card:hover {
  border-color: var(--blue);
  background: #0f1729; /* ← ФОН соц-карточки при ховере */
}
.soc__icon {
  position: absolute;
  top: 16px; right: 16px;
  width: 28px; height: 28px;
  color: #79c0ff99;
}
.soc__icon svg { width: 100%; height: 100%; }
.soc__meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.soc__name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 15px;
}
.guide {
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, #58a6ff18, transparent 55%), /* ← ФОН guide (градиент) */
    #0b0f16;                                                              /* ← ФОН guide (основа) */
}
.guide__inner {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
}
.guide h2 {
  font-family: var(--display);
  font-size: clamp(26px, 2.5vw, 38px);
  margin-bottom: 8px;
}
.guide__desc { color: var(--muted); margin-bottom: 24px; }

.guide__row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #161b22; /* ← ФОН строки гайда */
  border: 1px solid var(--border);
  border-radius: 16px;
}
.guide__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, var(--blue-steel), var(--blue-dark));
  flex-shrink: 0;
}
.guide__text { flex: 1; min-width: 0; }
.guide__text strong { display: block; font-size: 17px; margin-bottom: 2px; }
.guide__text span { color: var(--muted); font-size: 13px; }

.pink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 8px;
  background: linear-gradient(180deg, #6b76a1, #313857);
  color: #f0f6fc;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  border: 1px solid rgba(88, 166, 255, .2);
  box-shadow: 0 4px 20px rgba(26, 42, 108, 0.4);
  transition: .15s;
  cursor: pointer;
}
.pink-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #5a7cff, #1a2a6c);
  box-shadow: 0 0 40px var(--blue-glow);
}

/* ===== SERVERS ===== */
.servers {
  padding: 64px 0;
  background: #0d1117; /* ← ФОН секции серверов */
}
.servers h2 {
  font-family: var(--display);
  font-size: 32px;
  margin-bottom: 20px;
}
.server-card {
  max-width: 420px;
  padding: 28px;
  background: #161b22; /* ← ФОН карточки сервера */
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.server-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-steel), var(--blue));
}
.server-card__live {
  display: flex; align-items: center; gap: 8px;
  color: #34d399; font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.server-card__live i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 10px #34d399;
}
.server-card h3 {
  font-family: var(--display);
  font-size: 28px;
  margin-bottom: 16px;
}
.server-card__ip {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #0d1117; /* ← ФОН поля IP */
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: ui-monospace, monospace;
  font-size: 15px;
}
.server-card__ip em {
  font-style: normal;
  font-family: var(--font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.server-card__ip:hover { border-color: var(--blue); }

/* ===== FAQ ===== */
.faq {
  padding: 64px 0 96px;
  background: #0b0f16; /* ← ФОН FAQ */
}
.faq__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.faq h2 {
  font-family: var(--display);
  font-size: 24px;
  text-transform: uppercase;
}
.faq__link {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.faq__link:hover { color: #f0f6fc; border-color: var(--blue); }
.faq__list { display: grid; gap: 10px; max-width: 800px; }
.faq details {
  background: #161b22; /* ← ФОН блока вопроса */
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  font-weight: 700; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 16px; font-size: 15px; }
.faq details a { color: var(--blue); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  background: #05080d; /* ← ФОН футера */
  padding: 48px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer__brand {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer p, .footer a { color: #8b949e; font-size: 14px; }
.footer a { display: block; margin-top: 8px; }
.footer a:hover { color: var(--blue); }
.footer h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: #79c0ff99; margin-bottom: 8px;
}
.footer__copy {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: #8b949e66;
  font-size: 13px;
}

/* cookie / toast / auth */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 100;
  max-width: 360px; padding: 18px;
  background: #161b22; /* ← ФОН cookie-плашки */
  border: 1px solid var(--border); border-radius: 12px;
  display: none; flex-direction: column; gap: 12px;
}
.cookie.is-visible { display: flex; }
.cookie p { font-size: 13px; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 110;
  transform: translateX(-50%) translateY(12px);
  background: #161b22; /* ← ФОН тоста */
  border: 1px solid var(--border);
  padding: 12px 18px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: .25s; font-size: 14px;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.page-hero { padding: calc(var(--header-h) + 40px) 24px 16px; text-align: center; }
.page-hero h1 { font-family: var(--display); font-size: 36px; text-transform: uppercase; margin-bottom: 8px; }
.page-hero p { color: var(--muted); }
.auth-card {
  width: min(100% - 40px, 420px); margin: 24px auto 80px; padding: 32px 28px;
  background: #161b22; /* ← ФОН карточки авторизации */
  border: 1px solid var(--border); border-radius: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.form-group input {
  width: 100%; padding: 14px 16px; border-radius: 8px;
  background: #0d1117; /* ← ФОН инпута */
  border: 1px solid rgba(88, 166, 255, .2); color: #f0f6fc; outline: none;
}
.form-group input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #58a6ff33; }
.form-hint, .auth-help { margin-top: 8px; font-size: 12px; color: #8b949e88; }
.auth-help { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.auth-help ol { margin: 10px 0 0 18px; }
.form-error {
  display: none; margin-bottom: 14px; padding: 12px; border-radius: 8px;
  background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: #f87171; font-size: 14px;
}
.form-error.is-visible { display: block; }
.auth-card .pink-btn { width: 100%; }
.profile-layout { width: min(100% - 40px, 1280px); margin: 0 auto 80px; display: grid; gap: 16px; }
.profile-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.panel {
  padding: 24px;
  background: #161b22; /* ← ФОН панели */
  border: 1px solid var(--border); border-radius: 16px;
}
.panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  padding: 14px;
  background: #0d1117; /* ← ФОН стат-блока */
  border: 1px solid var(--border); border-radius: 10px;
}
.stat__label { font-size: 11px; color: #8b949e88; text-transform: uppercase; margin-bottom: 4px; }
.stat__value { font-weight: 700; }
.stat__value--money { color: #fbbf24; }
.stat__value--coins { color: #58a6ff; }
.badge {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  background: #58a6ff22; color: var(--blue-light); border: 1px solid #58a6ff55;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border); }
th { color: #8b949e88; font-size: 11px; text-transform: uppercase; }
.empty, .loading { color: var(--muted); padding: 8px 0; }
.table-wrap { overflow-x: auto; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-layout, .content-wrap, .news-grid, .donate-grid {
  width: min(100% - 40px, 1280px);
  margin: 0 auto 80px;
}
.admin-stats { margin-bottom: 16px; grid-template-columns: repeat(4, 1fr); }
.admin-search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.admin-search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  background: #0d1117; /* ← ФОН поиска в админке */
  border: 1px solid rgba(88, 166, 255, .2);
  color: #f0f6fc;
  outline: none;
}
.admin-search input:focus { border-color: var(--blue); }
.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.donate-card {
  padding: 28px 24px;
  background: #161b22; /* ← ФОН донат-карточки */
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.donate-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-steel), var(--blue));
}
.donate-card__coins {
  color: var(--blue-light);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.donate-card h3 { font-family: var(--display); font-size: 28px; }
.donate-card p { color: var(--muted); font-size: 14px; flex: 1; }
.donate-card__price { font-size: 24px; font-weight: 800; margin: 8px 0; }
.donate-card .pink-btn { width: 100%; }
.news-grid { display: grid; gap: 16px; }
.news-card time { color: var(--muted); font-size: 13px; }
.news-card h2 { font-size: 22px; margin: 8px 0 10px; }
.news-card__excerpt { color: #f0f6fc; font-weight: 600; margin-bottom: 8px; }
.news-card__body { color: var(--muted); font-size: 15px; }
.rules-block { margin-bottom: 14px; }
.rules-block h2 { font-size: 16px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rules-block ul { padding-left: 18px; color: #c9d1d9; display: grid; gap: 8px; }
.nav a.is-active { color: #f0f6fc; }
@media (max-width: 900px) {
  .donate-grid, .admin-stats { grid-template-columns: 1fr; }
}

@media (max-width: 1400px) {
  .intro__cards { left: 40px; right: 40px; }
  .quest { padding-inline: 40px; }
}
@media (max-width: 1100px) {
  .intro { height: auto; min-height: 100vh; padding: calc(var(--header-h) + 24px) 0 40px; }
  .intro__cards {
    position: relative; left: auto; right: auto; top: auto;
    height: auto; width: min(100% - 24px, 900px);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  }
  .mcard { height: 320px; margin-right: 0; }
  .mcard[data-role="military"], .mcard[data-role="doctor"] { display: none; }
  .quest, .guide__inner, .showcase__inner, .profile-grid, .footer__grid { grid-template-columns: 1fr; }
  .quest__person { height: 320px; margin: 0 auto; }
}
@media (max-width: 800px) {
  .promo__text { display: none; }
  .nav {
    display: none; position: absolute; top: calc(var(--promo-h) + var(--header-h));
    left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 16px;
    background: #0d1117; /* ← ФОН мобильного меню */
    border-bottom: 1px solid var(--border); margin: 0;
  }
  .nav.is-open { display: flex; }
  .burger { display: grid; margin-left: auto; }
  .players { display: none; }
  .intro__cards { grid-template-columns: 1fr 1fr; }
  .mcard[data-role="mafia"] { display: none; }
  .quest__choices { grid-template-columns: 1fr; }
  .guide__row { flex-wrap: wrap; }
}



/* ===== DONATE CARDS ===== */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.donate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #161b22;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.donate-card:hover {
  transform: translateY(-6px);
  border-color: rgba(88, 166, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(88, 166, 255, 0.12);
}

.donate-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-steel), var(--blue));
  z-index: 3;
}

.donate-card--popular {
  border-color: rgba(88, 166, 255, 0.5);
  box-shadow: 0 0 40px rgba(88, 166, 255, 0.15), inset 0 0 0 1px rgba(88, 166, 255, 0.1);
}

.donate-card--popular::before {
  height: 4px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue), var(--blue-light));
  box-shadow: 0 0 20px var(--blue-glow);
}

.donate-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-steel), var(--blue-dark));
  color: #f0f6fc;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(26, 42, 108, 0.5);
}

.donate-card__img {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #0d1a33 0%, #161b22 100%);
  overflow: hidden;
}

.donate-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
  position: relative;
  z-index: 2;
}

.donate-card:hover .donate-card__img img {
  transform: scale(1.06);
}

.donate-card__img-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(88, 166, 255, 0.35) 0%, transparent 60%);
  pointer-events: none;
  z-index: 3;
}

.donate-card__img.is-empty::after {
  content: "COINS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .2em;
  color: rgba(88, 166, 255, 0.25);
  background: radial-gradient(ellipse at 50% 30%, rgba(88, 166, 255, 0.15), transparent 60%), linear-gradient(135deg, #0d1a33, #161b22);
  z-index: 1;
}

.donate-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.donate-card__coins {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--blue-light);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.donate-card__coins-value {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #79c0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.donate-card__coins-label {
  font-size: 12px;
  letter-spacing: .12em;
  opacity: .85;
}

.donate-card__bonus {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #06281d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.donate-card h3 {
  font-family: var(--display);
  font-size: 26px;
  margin: 0;
  line-height: 1.1;
}

.donate-card p {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
  margin: 0;
}

.donate-card__price {
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 10px;
  background: linear-gradient(180deg, #ffffff 0%, #79c0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.donate-card__btn {
  width: 100%;
  padding: 14px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .donate-grid { grid-template-columns: 1fr; }
}

/* ===== TAX PANELS (дом + склад) ===== */
.tax-panel {
  border-color: rgba(251, 191, 36, 0.25);
  background:
    radial-gradient(ellipse 60% 100% at 0% 0%, rgba(251, 191, 36, 0.06), transparent 60%),
    #161b22;
}

/* Склад — фиолетовый акцент, чтобы визуально отличать */
.tax-panel:has(.tax-block__hint) + .tax-panel,
.tax-panel[data-type="warehouse"] {
  border-color: rgba(168, 85, 247, 0.3);
  background:
    radial-gradient(ellipse 60% 100% at 0% 0%, rgba(168, 85, 247, 0.08), transparent 60%),
    #161b22;
}

.tax-block {
  display: grid;
  gap: 8px;
}

.tax-block__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tax-block__row--accent {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.tax-block__label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tax-block__value {
  font-weight: 700;
  font-size: 15px;
}

.tax-block__value--debt {
  color: #fbbf24;
  font-weight: 800;
}

.tax-block__value--danger {
  color: #ef4444;
  font-weight: 800;
  animation: pulse-danger 1.4s ease-in-out infinite;
}

@keyframes pulse-danger {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

.tax-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 6px;
}

.tax-bar__fill {
  height: 100%;
  border-radius: 5px;
  transition: width .5s ease;
}

.tax-bar__label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
  letter-spacing: .04em;
}

.tax-block__hint {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 12px;
  background: rgba(88, 166, 255, 0.06);
  border-left: 2px solid var(--blue);
  border-radius: 4px;
  margin-top: 6px;
  line-height: 1.4;
}
/* ===== TAX В ТАБЛИЦАХ ===== */

/* Ячейка с налогом (сумма) */
.tax-cell__debt {
  color: #fbbf24;
  font-weight: 700;
  white-space: nowrap;
}

/* Ячейка с оставшимися днями */
.tax-cell {
  color: #34d399;
  font-weight: 700;
  white-space: nowrap;
  min-width: 90px;
}

.tax-cell--warn {
  color: #f59e0b;
}

.tax-cell--danger {
  color: #ef4444;
  animation: pulse-danger 1.4s ease-in-out infinite;
}

.tax-days {
  font-size: 15px;
  font-weight: 800;
}

.tax-days-label {
  font-size: 11px;
  opacity: .65;
  margin-left: 2px;
}

/* Мини-прогресс-бар под числом */
.tax-mini-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.tax-mini-bar > div {
  height: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: width .4s ease;
}

@keyframes pulse-danger {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
/* ===== TAX SECTION — внутри панели "Недвижимость"/"Склады" ===== */

.tax-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.tax-section__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.tax-block {
  display: grid;
  gap: 8px;
}

.tax-block__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tax-block__row--accent {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.tax-block__label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tax-block__value {
  font-weight: 700;
  font-size: 15px;
}

.tax-block__value--debt {
  color: #fbbf24;
  font-weight: 800;
}

.tax-block__value--danger {
  color: #ef4444;
  font-weight: 800;
  animation: pulse-danger 1.4s ease-in-out infinite;
}

@keyframes pulse-danger {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.tax-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 6px;
}

.tax-bar__fill {
  height: 100%;
  border-radius: 5px;
  transition: width .5s ease;
}

.tax-bar__label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
  letter-spacing: .04em;
}

.nav-drop { position: relative; }

.nav-drop__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s;
  font-family: inherit;
  background: none;
  border: none;
}
.nav-drop__btn:hover,
.nav-drop__btn.is-open { color: #f0f6fc; }
.nav-drop__btn svg { transition: transform .2s; }
.nav-drop__btn.is-open svg { transform: rotate(180deg); }

.nav-drop__menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  z-index: 60;
}
.nav-drop__menu.is-open { display: block; }

.nav-drop__menu a {
  display: block;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 6px;
  transition: .15s;
  white-space: nowrap;
}
.nav-drop__menu a:hover {
  color: #f0f6fc;
  background: rgba(88, 166, 255, .1);
}

.header,
.header__inner,
.nav { overflow: visible; }