:root {
  --bg: #8b90a0;
  --bg-soft: #4f5566;
  --surface: #2a2e3b;
  --surface-hover: #353a4a;
  --card: #5b5f6e;
  --line: rgba(232, 195, 106, 0.7);
  --text: #eeeae4;
  --muted: #d4d0c6;
  --gold: #e8c36a;
  --gold-strong: #f3d789;
  --violet: #c4b5fd;
  --gold-fill: rgba(0, 0, 0, 0.48);
  --gold-fill-hover: rgba(0, 0, 0, 0.62);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(232, 195, 106, 0.18), transparent 55%),
    radial-gradient(800px 400px at 100% 20%, rgba(150, 130, 210, 0.1), transparent 50%),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-strong);
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 18px;
  background: rgba(107, 113, 128, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.lang-switch {
  min-width: 52px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--gold-fill);
  color: var(--gold-strong);
  font: 700 15px/1 "Outfit", sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang-switch:hover {
  background: var(--gold-fill-hover);
  color: #fff;
}

.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.hero {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
}

.hero img {
  width: 100%;
  max-width: 720px;
}

.nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--gold-fill);
  color: var(--gold-strong);
  font: 600 15px/1.3 "Outfit", sans-serif;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  background: var(--gold-fill-hover);
  color: #fff;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 22px;
  color: var(--gold-strong);
}

.about p {
  margin: 0 0 12px;
  color: var(--gold-strong);
  font-size: 16px;
  line-height: 1.7;
}

.about ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--gold-strong);
  font-size: 16px;
  line-height: 1.7;
}

.about li + li {
  margin-top: 6px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c12;
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery a:hover img {
  transform: scale(1.05);
}

.downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.downloads a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold-fill);
  border: 1px solid var(--line);
  color: var(--gold-strong);
  font-weight: 600;
}

.downloads a:hover {
  background: var(--gold-fill-hover);
  color: #fff;
}

.trailer a,
.footer a {
  font-weight: 600;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.dl-row span {
  color: var(--gold-strong);
}

.trailer {
  color: var(--gold-strong);
}

.footer {
  text-align: center;
  padding: 8px 0 24px;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page {
    width: min(1040px, calc(100% - 20px));
  }

  .nav {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .nav-btn {
    font-size: 14px;
  }

  .card {
    padding: 18px 16px;
  }

  .gallery img {
    height: 140px;
  }
}
