:root {
  --ink: #172033;
  --muted: #647084;
  --line: #e7eaf0;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --accent: #16756f;
  --gold: #b47a24;
  --max: 1180px;
  --header-h: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
  background: var(--paper);
}

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

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 30px;
}

.brand img {
  width: 168px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #334057;
  font-size: 15px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .lang {
  padding-left: 22px;
  border-left: 1px solid rgba(23, 32, 51, 0.14);
  color: var(--gold);
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 34px) 30px 58px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 34%, rgba(255, 255, 255, 0.3) 58%, rgba(255, 255, 255, 0) 100%),
    url("../images/hero-game-world.png") right center / cover no-repeat,
    #fbfaf7;
}

.hero-content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-content > * {
  max-width: 620px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

html[lang="en"] h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.5vw, 66px);
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.lead {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid rgba(22, 117, 111, 0.18);
  border-radius: 999px;
  color: #315b58;
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 8vw, 112px) 30px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(170px, 0.36fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.focus-grid article {
  min-width: 0;
  min-height: 220px;
  padding: 28px 24px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.focus-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.focus-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.contact {
  padding-bottom: clamp(78px, 9vw, 126px);
}

.mail-link {
  color: var(--accent);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 30px 42px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer img {
  width: 148px;
  height: auto;
  margin-bottom: 10px;
}

.site-footer p {
  margin: 0;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 10px 18px;
}

.legal a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legal img {
  width: 20px;
  height: 20px;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (min-width: 1500px) {
  :root {
    --max: 1280px;
  }
}

@media (max-width: 1020px) {
  .hero {
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 44px);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.28) 76%, rgba(255, 255, 255, 0.05) 100%),
      url("../images/hero-game-world.png") center bottom / 145% auto no-repeat,
      #fbfaf7;
  }

  .hero-content > * {
    max-width: 590px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

@media (max-width: 680px) {
  :root {
    --header-h: 116px;
  }

  .site-header {
    position: absolute;
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    align-content: center;
    padding: 18px 20px;
  }

  .brand img {
    width: 150px;
  }

  .site-nav {
    flex: 1 0 100%;
    gap: 10px 20px;
    font-size: 14px;
  }

  .site-nav .lang {
    padding-left: 14px;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 28px) 20px 52vw;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 48%, rgba(255, 255, 255, 0.2) 78%, rgba(255, 255, 255, 0) 100%),
      url("../images/hero-game-world.png") 57% bottom / 230% auto no-repeat,
      #fbfaf7;
  }

  .hero-content > * {
    width: 100%;
    max-width: calc(100vw - 40px);
  }

  h1 {
    max-width: 8.6em;
    font-size: 34px;
  }

  html[lang="en"] h1 {
    max-width: 10.2em;
    font-size: 30px;
  }

  .lead {
    max-width: 20em;
    font-size: 16px;
  }

  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

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

  .focus-grid article {
    min-height: 0;
    padding: 24px 20px;
  }

  .focus-grid span {
    margin-bottom: 22px;
  }

  .site-footer {
    flex-direction: column;
    padding-right: 20px;
    padding-left: 20px;
  }

  .legal {
    justify-content: flex-start;
  }
}
