:root {
  --bg: #02153d;
  --bg-deep: #010d2a;
  --panel: rgba(2, 18, 57, 0.72);
  --panel-strong: rgba(3, 24, 73, 0.9);
  --text: #f4f8ff;
  --muted: #b8c8ea;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.45);
  --blue: #1f8fff;
  --blue-light: #74e1ff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(70, 174, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #031a4c 0%, #02153d 30%, #011132 100%);
  min-height: 100vh;
}

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

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

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(2, 16, 47, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 54px);
}

.nav-group.left {
  justify-content: flex-start;
}

.nav-group.right {
  justify-content: flex-end;
}

.nav-link {
  font-size: clamp(1.05rem, 1vw + 0.75rem, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-light);
  opacity: 1;
  transform: translateY(-1px);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 86px;
  width: auto;
  filter: drop-shadow(0 0 18px rgba(79, 196, 255, 0.14));
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 1rem;
}

.page {
  padding: 36px 0 80px;
}

.hero-card,
.panel,
.news-board,
.game-card,
.contact-card,
.story-card {
  background: linear-gradient(180deg, rgba(4, 26, 77, 0.88), rgba(2, 20, 60, 0.78));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 26px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue-light);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.04;
  margin: 0 0 16px;
}

.hero-text,
.lead,
.panel p,
.game-card p,
.contact-card p,
.story-card p,
.field-note,
.news-item p {
  color: var(--muted);
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: linear-gradient(135deg, #5cd6ff, #1d88ff 74%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(31, 143, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(116, 225, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-visual img {
  width: min(100%, 290px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 46px 0 16px;
}

.section-title {
  font-size: clamp(2rem, 2vw + 1rem, 3.1rem);
  margin: 0;
}

.section-subtitle {
  color: var(--muted);
  max-width: 650px;
}

.news-board {
  border-radius: 24px;
  padding: 26px;
  border: 5px solid rgba(255, 255, 255, 0.9);
}

.news-grid {
  display: grid;
  gap: 18px;
}

.news-item {
  padding: 22px;
  border-radius: 18px;
  background: rgba(1, 15, 45, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-item h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.meta {
  color: var(--blue-light);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 22px;
}

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

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

.panel,
.game-card,
.contact-card,
.story-card {
  border-radius: 22px;
  padding: 26px;
}

.panel h3,
.game-card h3,
.contact-card h3,
.story-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.list li + li {
  margin-top: 10px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #e9f7ff;
  background: rgba(90, 196, 255, 0.12);
  border: 1px solid rgba(90, 196, 255, 0.2);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  font-size: 0.96rem;
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.14);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 180px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(92, 214, 255, 0.35);
  border-color: rgba(92, 214, 255, 0.42);
}

.field-note {
  margin-top: 14px;
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--blue-light);
}

.center-copy {
  max-width: 800px;
}

.page-intro {
  margin-bottom: 30px;
}

.page-intro h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin: 0 0 10px;
}

.page-intro p {
  color: var(--muted);
  max-width: 780px;
}

.highlight {
  color: var(--blue-light);
}

@media (max-width: 920px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
    min-height: 90px;
  }

  .logo-link {
    order: -1;
    justify-self: start;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav-group {
    display: none;
  }

  .nav-group.open {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 0 0 20px;
  }

  .hero-card,
  .grid-2,
  .grid-3,
  .games-grid,
  .contact-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 28px;
  }

  .section-header,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    height: 72px;
  }

  .page {
    padding-top: 24px;
  }

  .hero-card,
  .panel,
  .game-card,
  .contact-card,
  .story-card,
  .news-board {
    padding: 20px;
    border-radius: 18px;
  }

  .news-board {
    border-width: 3px;
  }
}
