:root {
  color-scheme: dark;
  --bg: #07050f;
  --bg-soft: #100b1c;
  --panel: rgba(18, 13, 29, 0.86);
  --panel-strong: rgba(25, 18, 40, 0.94);
  --text: #f4f0ff;
  --muted: #b4aec7;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #8d61d2;
  --accent-2: #f0a33b;
  --green: #19e386;
  --max: 1160px;
  --wide: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #06040d 0%, var(--bg) 42%, #090514 100%);
  color: var(--text);
  font-family: "Segoe UI", Inter, Montserrat, Arial, sans-serif;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 76px;
  padding: 0 max(20px, calc((100% - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(141, 97, 210, 0.12), rgba(255, 255, 255, 0.035) 42%, rgba(240, 163, 59, 0.08)),
    linear-gradient(180deg, rgba(12, 8, 24, 0.72), rgba(7, 5, 15, 0.16));
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  top: 0;
  min-height: 68px;
  background:
    linear-gradient(90deg, rgba(141, 97, 210, 0.18), transparent 28%, transparent 72%, rgba(240, 163, 59, 0.12)),
    rgba(10, 7, 19, 0.92);
  border-bottom: 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.logo {
  display: inline-flex;
  align-items: center;
  grid-row: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.logo-img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(141, 97, 210, 0.22));
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  color: rgba(244, 240, 255, 0.78);
  transition: color 0.18s ease;
}

.main-nav a::after,
.site-footer nav a::after,
.news-card a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.site-footer nav a:hover::after,
.site-footer nav a:focus-visible::after,
.news-card a:hover::after,
.news-card a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance,
.lang,
.nav-toggle {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.balance,
.lang {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.balance:hover,
.lang:hover,
.nav-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.lang {
  display: inline-grid;
  place-items: center;
  align-self: center;
  justify-self: end;
  width: 44px;
  min-width: 44px;
  height: 34px;
  cursor: pointer;
  flex: 0 0 auto;
}

.balance b {
  color: #fff;
}

.nav-toggle {
  display: none;
  place-items: center;
  align-self: center;
  justify-self: end;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 20px;
}

.nav-toggle span:nth-child(3) {
  top: 26px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(141, 97, 210, 0.09) 38%, transparent 48%),
    linear-gradient(250deg, transparent 0 50%, rgba(240, 163, 59, 0.08) 58%, transparent 68%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 5, 15, 0.88) 0%, rgba(7, 5, 15, 0.24) 42%, rgba(7, 5, 15, 0.42) 70%, rgba(7, 5, 15, 0.74) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 5, 15, 0.12) 26%, rgba(7, 5, 15, 0) 44%),
    url("../images/banner.png") center -44px / cover no-repeat;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 52% 48%, rgba(240, 163, 59, 0.2), transparent 24%),
    radial-gradient(ellipse at 82% 44%, rgba(141, 97, 210, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 28%, transparent 76%, rgba(0, 0, 0, 0.26));
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--bg) 82%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg), rgba(7, 5, 15, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding-top: 48px;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 34%;
  width: 3px;
  height: 128px;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--accent-2), var(--accent), transparent);
  opacity: 0.7;
}

.hero-art {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 48px;
  width: min(520px, 46vw);
  height: 510px;
  pointer-events: none;
}

.portal,
.warrior,
.blade {
  position: absolute;
  display: block;
}

.portal {
  inset: 40px 58px 76px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 48% 48% 8px 8px;
  background:
    radial-gradient(circle at 50% 62%, rgba(240, 163, 59, 0.58), rgba(141, 97, 210, 0.2) 32%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  box-shadow: 0 0 70px rgba(141, 97, 210, 0.24), inset 0 -40px 80px rgba(240, 163, 59, 0.12);
}

.portal::before,
.portal::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.portal::before {
  top: 34px;
  width: 48%;
  height: 58%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50% 50% 6px 6px;
}

.portal::after {
  bottom: 40px;
  width: 68%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

.warrior {
  left: 46%;
  bottom: 74px;
  width: 72px;
  height: 210px;
  transform: translateX(-50%);
  border-radius: 36px 36px 14px 14px;
  background:
    radial-gradient(circle at 50% 20px, #f5d7a0 0 17px, transparent 18px),
    linear-gradient(180deg, rgba(244, 240, 255, 0.9), rgba(83, 62, 104, 0.86) 42%, rgba(19, 13, 27, 0.96));
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.5));
}

.warrior::before,
.warrior::after {
  content: "";
  position: absolute;
  top: 76px;
  width: 112px;
  height: 16px;
  background: rgba(244, 240, 255, 0.38);
}

.warrior::before {
  right: 54px;
  transform: rotate(-24deg);
}

.warrior::after {
  left: 54px;
  transform: rotate(24deg);
}

.blade {
  left: 23%;
  bottom: 86px;
  width: 34px;
  height: 250px;
  transform: rotate(-15deg);
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(255, 238, 202, 0.9) 43% 57%, transparent 58%),
    linear-gradient(180deg, rgba(240, 163, 59, 0.9), rgba(119, 31, 40, 0.92));
  clip-path: polygon(50% 0, 100% 82%, 60% 100%, 40% 100%, 0 82%);
  filter: drop-shadow(0 0 24px rgba(240, 93, 59, 0.46));
}

.eyebrow,
.section-title p {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 950;
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.hero-text {
  max-width: 500px;
  margin-bottom: 32px;
  color: rgba(244, 240, 255, 0.82);
  font-size: 19px;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button.primary {
  background: linear-gradient(180deg, #a96bee 0%, #8755ce 52%, #7445bd 100%);
  box-shadow: 0 12px 32px rgba(135, 85, 206, 0.34);
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #b97eff 0%, #965fe0 52%, #7f4cc8 100%);
  box-shadow: 0 16px 38px rgba(135, 85, 206, 0.46);
}

.button.ghost {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.button.ghost:hover,
.button.ghost:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(141, 97, 210, 0.18));
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.content-grid,
.media-section,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.server-strip {
  width: min(var(--wide), calc(100% - 40px));
  margin: 0 auto;
}

.server-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  padding: 4px 0 48px;
}

.server-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: start;
  gap: 22px;
  min-height: 124px;
  position: relative;
  isolation: isolate;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.server-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -28px;
  top: 50%;
  width: 210px;
  height: 170px;
  transform: translateY(-50%);
  background: radial-gradient(ellipse, currentColor 0%, rgba(255, 255, 255, 0.05) 34%, transparent 68%);
  opacity: 0.16;
  filter: blur(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.server-card:hover {
  transform: translateY(-2px);
}

.server-card:hover::before {
  opacity: 0.28;
  transform: translateY(-50%) scale(1.05);
}

.server-icon {
  align-self: start;
  justify-self: center;
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  overflow: visible;
  
}

.server-icon img {
  position: absolute;
  inset: 0;
  max-width: none;
  width: 224%;
  height: 224%;
  object-fit: contain;
  transform: translate(-27.7%, -27.7%);
}

.server-card > div:last-child {
  padding-top: 18px;
}

.server-card.orange {
  color: #f28b16;
}

.server-card.gold {
  color: #e8c30b;
}

.server-card.violet {
  color: #7368ff;
}

.server-card h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.server-card p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 17px;
}

.server-card b {
  color: var(--green);
}

.server-card span {
  color: rgba(244, 240, 255, 0.7);
  font-size: 16px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
}

.section-title {
  margin-bottom: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 950;
  text-transform: uppercase;
}

.news-column {
  min-width: 0;
}

.news-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 97, 210, 0.2);
  background:
    linear-gradient(90deg, rgba(141, 97, 210, 0.08), transparent 42%),
    var(--panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.news-thumb {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.news-card time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.news-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.18;
}

.news-card p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.news-card a {
  position: relative;
  display: inline-block;
  color: #d8c7ff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.news-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.news-pagination a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: rgba(244, 240, 255, 0.48);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.news-pagination a:hover,
.news-pagination a:focus-visible,
.news-pagination a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.news-pagination a:hover,
.news-pagination a:focus-visible {
  transform: translateY(-1px);
}

.news-pagination .page-arrow {
  position: relative;
  background: transparent;
}

.news-pagination .page-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.news-pagination .page-arrow.prev::before {
  transform: rotate(-135deg);
}

.news-pagination .page-arrow:hover,
.news-pagination .page-arrow:focus-visible {
  background: transparent;
}

.news-pagination .disabled {
  color: rgba(244, 240, 255, 0.22);
  pointer-events: none;
}

.side-panel {
  align-self: start;
  margin-top: 82px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.feature-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  column-gap: 14px;
  align-items: start;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.feature-list article:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(2px);
}

.feature-icon {
  width: 64px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.feature-list h3 {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.tabs button {
  min-height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #dcd6ea;
  font-size: 11px;
  font-weight: 950;
}

.tabs button.active {
  background: var(--accent);
  color: #fff;
}

.rating-table {
  display: grid;
  gap: 8px;
  overflow-x: hidden;
  padding-bottom: 2px;
}

.table-head,
.rating-row {
  display: grid;
  grid-template-columns: 48px minmax(86px, 1fr) 44px 34px minmax(66px, 0.85fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.table-head {
  min-height: 28px;
  padding: 0 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.table-head span:first-child {
  justify-self: center;
}

.rating-row {
  min-height: 50px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 11px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.rating-row:hover {
  transform: translateX(2px);
  filter: brightness(1.08);
}

.rating-row.flame-1 {
  background: linear-gradient(90deg, rgba(255, 112, 9, 0.15), rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0.028));
}

.rating-row.flame-2 {
  background: linear-gradient(90deg, rgba(0, 174, 255, 0.14), rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0.028));
}

.rating-row.flame-3 {
  background: linear-gradient(90deg, rgba(142, 84, 255, 0.16), rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0.028));
}

.rating-row.flame-4 {
  background: linear-gradient(90deg, rgba(198, 219, 219, 0.12), rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0.028));
}

.rating-row b {
  color: #fff;
  justify-self: start;
}

.rating-row.flame-1 b {
  color: #ff8a12;
}

.rating-row.flame-2 b {
  color: #14b8ff;
}

.rating-row.flame-3 b {
  color: #8d5cff;
}

.rating-row.flame-4 b {
  color: #b9c8c8;
}

.rating-row .place {
  display: grid;
  place-items: center;
  color: var(--accent-2);
  font-weight: 900;
}

.rating-row .place img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(141, 97, 210, 0.72));
}

.media-section {
  padding: 100px 0 120px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.media-grid button {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-tile {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-grid button:hover {
  transform: scale(1.06);
  filter: brightness(1.12);
  border-color: rgba(141, 97, 210, 0.38);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.media-modal {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(6, 4, 11, 0.98);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.media-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal-preview {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  max-height: min(68vh, 430px);
  border: 0;
  border-radius: 0;
  object-fit: cover;
  image-rendering: auto;
  background: #05030a;
}

.media-modal h2 {
  margin: 0;
  padding: 16px 64px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  text-transform: uppercase;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  transform: scale(1.04);
  background: rgba(141, 97, 210, 0.75);
  border-color: rgba(255, 255, 255, 0.22);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 42px;
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: min(420px, 70vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(141, 97, 210, 0.55), rgba(240, 163, 59, 0.35), transparent);
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  position: relative;
  width: max-content;
  transition: color 0.18s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.site-footer .logo {
  margin-bottom: 26px;
  color: #fff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.social-links img {
  width: 16px;
  height: 16px;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  background: rgba(141, 97, 210, 0.36);
  box-shadow: 0 10px 24px rgba(141, 97, 210, 0.24);
}

.social-links a:hover img,
.social-links a:focus-visible img {
  opacity: 1;
  filter: brightness(1.4);
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer h2 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(244, 240, 255, 0.9);
}

@media (max-width: 1120px) {
  :root {
    --max: 1040px;
  }

  .site-header {
    gap: 18px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr 44px 42px;
    gap: 8px;
    padding: 0 20px;
  }

  .nav-toggle {
    display: grid;
    grid-column: 4;
    grid-row: 1;
  }

  .header-actions {
    display: contents;
    grid-column: 3;
  }

  .balance {
    display: none;
  }

  .lang {
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 6px;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(11, 8, 20, 0.96);
    backdrop-filter: blur(16px);
  }

  .main-nav.open a {
    padding: 14px;
    border-radius: 6px;
  }

  .main-nav.open a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .server-strip,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .server-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .server-card {
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    min-height: 0;
    align-items: center;
  }

  .server-icon {
    width: 94px;
  }

  .server-card > div:last-child {
    padding-top: 0;
  }

  .side-panel {
    margin-top: 0;
  }

  .hero-art {
    right: 0;
    width: 52vw;
    opacity: 0.55;
  }

  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .server-strip,
  .content-grid,
  .media-section,
  .site-footer {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-header {
    grid-template-columns: auto 1fr 42px 42px;
    min-height: 66px;
    padding: 0 12px;
  }

  .site-header.scrolled {
    top: 0;
  }

  .logo {
    gap: 8px;
    font-size: 13px;
  }

  .logo-img {
    width: 108px;
  }

  .lang {
    width: 42px;
    min-width: 42px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(7, 5, 15, 0.94), rgba(7, 5, 15, 0.46)),
      linear-gradient(0deg, var(--bg) 0%, rgba(7, 5, 15, 0) 38%),
      url("../images/banner.png") 62% -18px / cover no-repeat;
  }

  .hero-text {
    font-size: 17px;
  }

  h1 {
    max-width: 360px;
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero-art {
    right: -90px;
    bottom: -20px;
    width: 360px;
    height: 430px;
    opacity: 0.34;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .server-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 40px;
  }

  .server-card {
    grid-template-columns: 84px 1fr;
    min-height: 0;
    padding: 14px;
    align-items: center;
  }

  .server-icon {
    width: 76px;
  }

  .server-card > div:last-child {
    padding-top: 0;
  }

  .server-card::before {
    left: -38px;
    width: 145px;
    height: 110px;
  }

  .server-card h2 {
    font-size: 15px;
  }

  .server-card p {
    font-size: 16px;
  }

  .server-card span {
    font-size: 15px;
  }

  .news-thumb {
    width: min(240px, 100%);
    aspect-ratio: 1;
  }

  .side-panel {
    padding: 16px;
  }

  .rating-table {
    overflow-x: hidden;
  }

  .table-head,
  .rating-row {
    grid-template-columns: 38px minmax(78px, 1fr) 38px 30px minmax(58px, 0.78fr);
    gap: 6px;
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
  }

  .table-head {
    font-size: 10px;
  }

  .rating-row {
    font-size: 10px;
  }

  .rating-row .place img {
    width: 38px;
    height: 38px;
  }

  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 54px 0;
  }
}

@media (max-width: 420px) {
  .logo-img {
    width: 96px;
  }

  .hero-actions,
  .tabs {
    display: grid;
  }

  .server-card {
    grid-template-columns: 68px 1fr;
    min-height: 0;
    padding: 12px;
  }

  .server-icon {
    width: 62px;
  }

  .server-card > div:last-child {
    padding-top: 0;
  }

  .button {
    width: 100%;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .news-card {
    padding: 14px;
  }

  .news-thumb {
    height: auto;
    width: min(190px, 100%);
    aspect-ratio: 1;
  }

  .table-head,
  .rating-row {
    grid-template-columns: 34px minmax(74px, 1fr) 36px minmax(56px, 0.78fr);
  }

  .table-head span:nth-child(4),
  .rating-row span:nth-child(4) {
    display: none;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .media-modal {
    width: calc(100% - 20px);
  }
}
