/* moonstate.games — общий стиль */

:root {
  --bg: #070b14;
  --bg-2: #0c1322;
  --panel: #101a2d;
  --panel-2: #14203a;
  --line: rgba(255, 243, 223, 0.12);
  --line-strong: rgba(255, 243, 223, 0.24);
  --cream: #fff3df;
  --text: #e6e2d9;
  --muted: #9aa4b8;
  --cyan: #3ee6ff;
  --cyan-deep: #0fa9c9;
  --warm: #f2b35a;
  --ok: #6fe3a0;
  --err: #ff8a7a;
  --radius: 14px;
  --wrap: 1180px;
  --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height: auto обязателен: у картинок заданы width/height, без него они тянутся на узком экране */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--cream); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: .01em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--panel); padding: 8px 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px;
  font: 700 16px/1 var(--font); letter-spacing: .02em;
  border: 1px solid var(--line-strong); color: var(--cream); background: rgba(16, 26, 45, .6);
  cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--cream); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, #4cecff, #12b4d4);
  color: #04121a; border-color: transparent;
  box-shadow: 0 0 0 1px rgba(62, 230, 255, .4), 0 8px 30px -8px rgba(62, 230, 255, .6);
}
.btn-primary:hover { border-color: transparent; box-shadow: 0 0 0 1px rgba(62, 230, 255, .7), 0 10px 36px -6px rgba(62, 230, 255, .8); }
.btn-sm { padding: 9px 14px; font-size: 14px; }

/* ---------- шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .2s, border-color .2s;
  border-bottom: 1px solid transparent;
}
.top.scrolled, .top.solid { background: rgba(7, 11, 20, .88); backdrop-filter: blur(10px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 700; letter-spacing: .06em; }
.brand img { height: 30px; width: auto; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--cream); text-decoration: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--cream); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .top .btn-sm { display: none; }
  .nav {
    position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0;
    background: rgba(7, 11, 20, .97); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .top.open .nav { display: flex; }
  .top.open { background: rgba(7, 11, 20, .97); }
}

/* ---------- первый экран ---------- */
.hero {
  position: relative; min-height: min(88svh, 860px);
  display: grid; align-items: end;
  padding: 110px 0 56px;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/hero.jpg") center 40% / cover no-repeat;
}
@media (max-width: 700px) { .hero-bg { background-image: url("../img/hero-sm.jpg"); background-position: 52% 50%; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, .55) 0%, rgba(7, 11, 20, 0) 22%),
    linear-gradient(0deg, var(--bg) 2%, rgba(7, 11, 20, .78) 34%, rgba(7, 11, 20, .1) 70%);
}
.hero-logo { width: min(620px, 100%); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .55)); margin-bottom: 22px; }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tagline { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: var(--cream); margin-bottom: 10px; }
.lede { max-width: 640px; font-size: 18px; color: var(--text); margin-bottom: 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ---------- секции ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* трейлер сразу под первым экраном */
.trailer-section { padding: 8px 0 72px; }
.trailer {
  max-width: 980px; margin-inline: auto;
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(62, 230, 255, .08);
}
.trailer img, .trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.trailer .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(0deg, rgba(7, 11, 20, .35), rgba(7, 11, 20, 0) 60%);
  border: 0; cursor: pointer; text-decoration: none;
}
.trailer .play span {
  width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(7, 11, 20, .72); border: 2px solid var(--cyan); box-shadow: 0 0 34px rgba(62, 230, 255, .55);
  transition: transform .15s;
}
.trailer .play:hover span { transform: scale(1.08); }
.trailer .play svg { width: 38%; height: 38%; margin-left: 6%; fill: var(--cream); }

/* об игре: абзац + четыре коротких пункта */
#about { padding: 24px 0 72px; }
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about p { color: var(--text); font-size: 18px; margin: 0; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.points li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; color: var(--muted); font-size: 15px; line-height: 1.45;
}
.points b { display: block; color: var(--cream); font-size: 16px; margin-bottom: 2px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }

#contact { padding-top: 24px; }

/* полоса со списком желаемого */
.wish-section { padding: 0 0 80px; }
.wish {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(62, 230, 255, .35);
  padding: 48px; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.wish::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/band-01_exploration.jpg") center / cover;
}
.wish::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 11, 20, .95) 35%, rgba(7, 11, 20, .6)); }
.wish h2 { font-size: clamp(26px, 3.4vw, 38px); }
.wish p { max-width: 460px; color: var(--text); margin-bottom: 24px; }
/* виджет Steam фиксированной ширины 646 px — на узких экранах его прячем, кнопки хватает */
.steam-widget { width: 646px; height: 190px; border: 0; display: block; }
@media (max-width: 1100px) { .wish { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .steam-widget { display: none; } .wish { padding: 32px 22px; } }

/* связь */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.mail-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.mail-list li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.mail-list b { display: block; color: var(--cream); font-size: 15px; }
.mail-list span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.mail-list a { font-weight: 700; font-size: 17px; word-break: break-all; }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .form { padding: 20px; } }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cream); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 9px; padding: 11px 13px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62, 230, 255, .18); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { font-size: 15px; font-weight: 600; min-height: 1.4em; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.form button[disabled] { opacity: .6; cursor: wait; transform: none; }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot img { height: 36px; width: 36px; opacity: .9; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot nav a { color: var(--text); }

/* ---------- страница пресс-кита и текстовые страницы ---------- */
.page { padding: 128px 0 80px; }
.page-head { margin-bottom: 48px; }
.page-head .hero-logo { width: min(460px, 100%); }
.kit { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .kit { grid-template-columns: 1fr; } }
.factsheet { position: sticky; top: 88px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (max-width: 900px) { .factsheet { position: static; } }
.factsheet dl { margin: 0; display: grid; gap: 14px; }
.factsheet dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.factsheet dd { margin: 2px 0 0; color: var(--cream); font-weight: 600; }
.factsheet .btn { width: 100%; justify-content: center; margin-top: 20px; }
.kit-body section { padding: 0 0 48px; }
.kit-body h2 { font-size: 28px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.kit-body ul { padding-left: 20px; margin: 0; }
.kit-body li { margin-bottom: 6px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
.dl-grid a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; }
.dl-grid a:hover { border-color: var(--cyan); text-decoration: none; }
.dl-grid img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.dl-grid span { display: block; padding: 8px 10px; }
.dl-grid .on-dark img { object-fit: contain; padding: 16px; background: var(--bg-2); }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose p, .prose li { color: var(--text); }

.center { text-align: center; }
.big404 { font-size: clamp(80px, 16vw, 160px); font-weight: 800; color: var(--cream); line-height: 1; margin: 0; }
