/* Playstick — визитка студии. Палитра взята из логотипа (navy + голубой градиент),
   золото — из интерфейса игры, для одной главной кнопки. */

:root {
  --navy-950: #050d22;
  --navy-900: #081734;
  --navy-700: #12306a;
  --cyan: #29d3ff;
  --blue: #2b7bff;
  --ice: #eaf3ff;
  --ink: #0a1630;
  --ink-soft: #435779;
  --on-dark: #f4f8ff;
  --on-dark-soft: #9db3d6;
  --gold: #f6c443;
  --gold-deep: #b9830f;

  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--on-dark);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Подпись страницы: полоса-таймлайн сверху ---------- */
.scrub {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50;
  background: rgba(157, 179, 214, .16);
}
.scrub i {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.scrub i::after {
  content: ""; position: absolute; right: -7px; top: -5px;
  width: 14px; height: 13px; background: var(--cyan);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(0 0 6px rgba(41, 211, 255, .8));
}

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter) 12px;
  background: var(--navy-950);
  box-shadow: 0 1px 0 rgba(157, 179, 214, .14);
}
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--on-dark-soft);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--on-dark); border-bottom-color: var(--cyan); }

.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(157, 179, 214, .12); }
.lang button {
  font: 600 12px/1 var(--text); letter-spacing: .06em;
  padding: 7px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--on-dark-soft);
}
.lang button[aria-pressed="true"] { background: var(--cyan); color: var(--navy-950); }
.lang button:not([aria-pressed="true"]):hover { color: var(--on-dark); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 24px;
  min-height: min(82vh, 720px);
  padding: 56px var(--gutter) 72px;
  max-width: 1240px; margin: 0 auto;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.12; letter-spacing: -.01em;
  margin: 0 0 22px; text-wrap: balance;
}
.h1-brand {
  display: block;
  color: var(--cyan);   /* запасной цвет, если градиент в тексте не поддерживается */
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.12em; letter-spacing: -.02em; margin-bottom: .1em;
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--on-dark-soft); max-width: 34em; margin: 0 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-mark { position: relative; }
.hero-mark::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 190%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(43, 123, 255, .46), rgba(41, 211, 255, .14) 52%, transparent 74%);
  pointer-events: none;
}
.hero-mark img { position: relative; width: min(100%, 340px); margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(8, 23, 52, .8)); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 12px;
  font: 600 16px/1 var(--text); text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-gold {
  background: linear-gradient(180deg, #ffe08a, var(--gold) 48%, #e0a722);
  color: #2b1d02;
  box-shadow: 0 4px 0 var(--gold-deep), 0 14px 30px rgba(246, 196, 67, .18);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--gold-deep), 0 18px 34px rgba(246, 196, 67, .26); }
.btn-gold:active { box-shadow: 0 2px 0 var(--gold-deep); }
.btn-ghost { border: 1.5px solid rgba(157, 179, 214, .45); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(41, 211, 255, .08); }

/* ---------- Игра (светлая секция) ---------- */
.game { background: var(--ice); color: var(--ink); padding: 88px 0 80px; }
.game-head { display: flex; align-items: center; gap: 24px; margin-bottom: 36px; }
.game-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 10px 30px rgba(10, 22, 48, .25); }

.label {
  margin: 0 0 6px; font: 600 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.game h2, .studio h2, .contact h2 {
  font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.12; letter-spacing: -.01em;
}
.game h2 { font-size: clamp(34px, 5vw, 56px); }
.tagline { margin: 10px 0 0; font-size: 19px; color: var(--ink-soft); }

.facts {
  list-style: none; margin: 0 0 44px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px;
}
.facts li { position: relative; padding-left: 28px; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 12px;
  background: var(--blue); clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 8px max(var(--gutter), calc((100vw - 1080px) / 2 + var(--gutter))) 28px;
  scrollbar-width: thin; scrollbar-color: var(--blue) transparent;
}
.shots figure { margin: 0; flex: 0 0 auto; width: clamp(190px, 24vw, 260px); scroll-snap-align: start; }
.shots img { width: 100%; border-radius: 20px; box-shadow: 0 14px 34px rgba(10, 22, 48, .28); background: var(--navy-900); }
.shots figcaption { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }

.game-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 24px; }
.note { margin: 0; max-width: 30em; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Студия и контакты ---------- */
.studio, .contact { padding: 88px 0; }
.studio { background: var(--navy-950); }
.contact { background: var(--navy-900); border-top: 1px solid rgba(157, 179, 214, .14); }
.studio h2, .contact h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 18px; text-wrap: balance; }
.body { font-size: 19px; color: var(--on-dark-soft); max-width: 34em; margin: 0 0 24px; }

.mail {
  display: inline-block; font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 2.6vw, 26px); text-decoration: none; word-break: break-all;
  color: var(--cyan); border-bottom: 2px solid rgba(41, 211, 255, .4);
}
.mail:hover { border-bottom-color: var(--cyan); }


.foot { background: var(--navy-950); border-top: 1px solid rgba(157, 179, 214, .14); padding: 22px 0 28px; font-size: 14px; color: var(--on-dark-soft); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Мобильная версия ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; min-height: 0; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 46%; max-width: 200px; margin: 0 auto; }
  .facts { grid-template-columns: 1fr; }
  .game { padding: 64px 0; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 118px; }
  .top { gap: 12px; flex-wrap: wrap; }
  .brand img { height: 36px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 20px; }
  .lang { margin-left: auto; }
  .game-head { align-items: flex-start; }
  .game-icon { width: 80px; height: 80px; border-radius: 18px; }
  .btn { width: 100%; }
  .studio, .contact { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-gold:hover { transition: none; transform: none; }
}
