/* Paleta вдохновлена majestic-rp.ru: тёмный фон + акцент #e81c5a */
:root {
  --accent: #e81c5a;
  --accent-bright: #ff447d;
  --accent-deep: #710123;
  --bg: #0e0e0e;
  --bg-1: #131313;
  --bg-2: #1d1d1d;
  --card: #0f0f0f;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.5);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Unbounded", "Majestic Font", "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(60% 50% at 50% 70%, rgba(232, 28, 90, 0.2) 20%, rgba(232, 28, 90, 0) 70%),
    radial-gradient(80% 60% at 80% 0%, rgba(250, 36, 143, 0.12), rgba(232, 28, 90, 0) 60%),
    linear-gradient(180deg, #101010 0%, #0e0e0e 55%, #101010 100%);
  color: var(--text);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), var(--accent-bright));
  box-shadow: 0 8px 24px rgba(232, 28, 90, 0.45);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  font-style: italic;
  transform: skew(-7deg);
}

.logo-mark span { transform: skew(7deg); }

.logo-text {
  background: linear-gradient(180deg, var(--accent), var(--accent-bright));
  border-radius: 10px;
  padding: 4px 17px;
  transform: skew(-7deg);
  box-shadow: 0 8px 30px rgba(232, 28, 90, 0.35);
}

.logo-text span {
  display: block;
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -1.2px;
  line-height: 100%;
  text-shadow: 0 4px 6px rgba(255, 255, 255, 0.25);
  transform: skew(7deg);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--text);
  border: none;
  border-radius: 8px;
  padding: 16px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 32px rgba(232, 28, 90, 0);
}

.btn:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 40px rgba(232, 28, 90, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(113, 1, 35, 0.29);
  border: 1px solid var(--accent);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.btn-ghost:hover { background: var(--accent); }

main {
  flex: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 40px;
}

.hero { text-align: center; padding-top: 24px; }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(232, 28, 90, 0.5);
  border-radius: 999px;
  background: rgba(232, 28, 90, 0.1);
}

.hero h1 {
  margin: 28px auto 16px;
  max-width: 900px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(180deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 72px;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(232, 28, 90, 0.7);
  box-shadow: 0 0 40px rgba(232, 28, 90, 0.25);
  transform: translateY(-4px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.6;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.card .num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent-bright));
  font-weight: 800;
  font-style: italic;
  box-shadow: 0 6px 18px rgba(232, 28, 90, 0.4);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 14px;
  font-weight: 600;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #89de5d;
  box-shadow: 0 0 10px rgba(137, 222, 93, 0.8);
}

footer {
  border-top: 1px solid var(--line);
  background: rgba(19, 19, 19, 0.6);
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 13px;
}

/* ===== Магазин привилегий ===== */
.store-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.store-overlay.open {
  opacity: 1;
  visibility: visible;
}

.store-panel {
  width: min(1050px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #131313, #0e0e0e);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  opacity: 0;
  transform: translateY(48px) scale(0.94);
  filter: blur(8px);
  transition:
    opacity 0.5s ease 0.05s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    filter 0.5s ease 0.05s;
}

.store-overlay.open .store-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Плавное появление привилегий каскадом */
.priv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.store-overlay.open .priv {
  opacity: 1;
  transform: translateY(0);
}

.store-overlay.open .priv:nth-child(1) { transition-delay: 0.18s; }
.store-overlay.open .priv:nth-child(2) { transition-delay: 0.30s; }
.store-overlay.open .priv:nth-child(3) { transition-delay: 0.42s; }

/* Убираем двойную анимацию hover, пока магазин закрыт */
.store-overlay:not(.open) .priv:hover { transform: translateY(26px); }

/* ===== Вики ===== */
.wiki-panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.wiki-panel p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.wiki-years,
.wiki-about {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 18px;
}

.wiki-year-badge {
  display: inline-block;
  margin-bottom: 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-bright));
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 20px rgba(232, 28, 90, 0.4);
}

.wiki-roles-title {
  margin: 26px 0 16px !important;
}

.wiki-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.wiki-role {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.wiki-role:hover {
  border-color: rgba(232, 28, 90, 0.7);
  box-shadow: 0 0 36px rgba(232, 28, 90, 0.22);
  transform: translateY(-4px);
}

.wiki-role-icon {
  font-size: 30px;
  line-height: 1;
}

.wiki-role strong {
  font-size: 16px;
  text-transform: uppercase;
}

.wiki-role p {
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.55;
}

.store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.12s, transform 0.5s ease 0.12s;
}

.store-overlay.open .store-head {
  opacity: 1;
  transform: translateY(0);
}

.store-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 5vw, 44px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.store-close {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.store-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.priv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.priv {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.store-overlay.open .priv:hover {
  transform: translateY(-6px);
  transition-delay: 0s;
}

.priv-vip { border-color: rgba(255, 215, 0, 0.45); }
.priv-vip:hover { box-shadow: 0 0 44px rgba(255, 215, 0, 0.25); }
.priv-vip .priv-tier {
  background: linear-gradient(180deg, #ffd700, #ffaa00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.priv-plat { border-color: rgba(232, 28, 90, 0.55); }
.priv-plat:hover { box-shadow: 0 0 44px rgba(232, 28, 90, 0.3); }
.priv-plat .priv-tier {
  background: linear-gradient(180deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.priv-silver { border-color: rgba(192, 192, 192, 0.45); }
.priv-silver:hover { box-shadow: 0 0 44px rgba(192, 192, 192, 0.22); }
.priv-silver .priv-tier {
  background: linear-gradient(180deg, #e8e8e8, #a8a8a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.priv.featured {
  border-width: 2px;
  border-color: var(--accent);
}

.priv-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(232, 28, 90, 0.5);
}

.priv-tier {
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.priv-price {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 16px;
  font-weight: 700;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.priv-list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.priv-list li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-dim);
}

.priv-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.priv-list li.yes::before {
  content: "✓";
  background: rgba(137, 222, 93, 0.18);
  color: #89de5d;
}

.priv-list li.no {
  color: var(--text-faint);
  text-decoration: line-through;
}

.priv-list li.no::before {
  content: "✕";
  background: rgba(255, 80, 80, 0.15);
  color: #ff6b6b;
}

.priv-buy { width: 100%; }

.store-note {
  margin: 26px 0 0;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  opacity: 0;
  transition: opacity 0.5s ease 0.55s;
}

.store-overlay.open .store-note {
  opacity: 1;
}

@media (max-width: 760px) {
  .nav { display: none; }
  .topbar { padding: 18px 20px; }
  main { padding: 24px 20px; }
}
