:root {
  --text: #edf2ff;
  --muted: #9aa6bf;

  --gold: #d4b06a;
  --gold-soft: rgba(212,176,106,0.16);

  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  --shadow: 0 24px 70px rgba(0,0,0,0.52);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #0f0a06;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255,140,60,0.12), transparent 60%),
    radial-gradient(800px 500px at 80% 20%, rgba(255,120,40,0.06), transparent 60%),
    linear-gradient(180deg, #1a120a 0%, #0f0a06 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 30%),
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.26) 100%);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 20px 56px;
}

.topbar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.brand {
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255,255,255,0.08);
}

h1 {
  margin: 0 0 28px;
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f7f9ff;
}

.card {
  position: relative;
  display: block;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(30, 22, 14, 0.85), rgba(10, 8, 5, 0.95));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,176,106,0.18);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.58),
    0 0 0 1px rgba(212,176,106,0.05) inset;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 24%);
  opacity: 0.85;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.title {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
  color: #f5f7ff;
}

.meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* главная */

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
}

.class-card {
  position: relative;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(34, 22, 14, 0.88), rgba(14, 10, 7, 0.96));
  border: 1px solid rgba(212,176,106,0.16);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.class-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,176,106,0.12);
}

.class-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.class-icon-big {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.class-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.class-meta {
  font-size: 13px;
  color: #bda57d;
  white-space: nowrap;
}

.spec-list {
  display: grid;
  gap: 12px;
}

.spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(19,26,47,0.92), rgba(10,16,29,0.98));
  border: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.spec-item:hover {
  transform: translateY(-2px);
  border-color: rgba(212,176,106,0.22);
  background:
    linear-gradient(180deg, rgba(24,32,56,0.96), rgba(10,16,29,1));
}

.spec-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.spec-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.03);
}

.spec-copy {
  min-width: 0;
}

.spec-eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec-name {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  color: #f4f7ff;
}

.spec-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  min-width: 120px;
}

.stat {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-size: 15px;
  font-weight: 800;
  color: #eaf1ff;
}

/* страница спека */

.stack {
  display: grid;
  gap: 18px;
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.talent-block {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.talent-title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.talent-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
}

.talent-block li {
  margin-bottom: 5px;
  font-size: 14px;
  color: #dde5ff;
}

.talent-block ul::-webkit-scrollbar {
  width: 8px;
}

.talent-block ul::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
}

/* цвета классов */

.class-death-knight .class-title { color: #C41F3B; }
.class-demon-hunter .class-title { color: #A330C9; }
.class-druid .class-title { color: #FF7C0A; }
.class-evoker .class-title { color: #33937F; }
.class-hunter .class-title { color: #AAD372; }
.class-mage .class-title { color: #3FC7EB; }
.class-monk .class-title { color: #00FF98; }
.class-paladin .class-title { color: #F48CBA; }
.class-priest .class-title { color: #FFFFFF; }
.class-rogue .class-title { color: #FFF468; }
.class-shaman .class-title { color: #0070DD; }
.class-warlock .class-title { color: #8788EE; }
.class-warrior .class-title { color: #C69B6D; }

@media (max-width: 900px) {
  .shell {
    padding: calc(22px + env(safe-area-inset-top)) 16px 40px;
  }

  h1 {
    font-size: 42px;
  }

  .class-grid {
    grid-template-columns: 1fr;
  }

  .spec-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .spec-stats {
    align-items: flex-start;
    min-width: 0;
  }

  .talent-grid {
    grid-template-columns: 1fr;
  }
}