@font-face { font-family: Unbounded; font-weight: 500; font-display: swap; src: url(fonts/unbounded-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Unbounded; font-weight: 700; font-display: swap; src: url(fonts/unbounded-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(fonts/onest-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url(fonts/onest-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url(fonts/onest-latin-600-normal.woff2) format('woff2'); }

:root {
  --paper: #fafafc;
  --ink: #1c1e3a;
  --muted: #62657f;
  --line: #e3e4ee;
  --violet: #7a3cf5;
  --blue: #4c5bff;
  --cyan: #2bd0f2;
  --brand: linear-gradient(100deg, var(--violet), var(--blue) 55%, var(--cyan));
  --display: Unbounded, 'Arial Black', sans-serif;
  --text: Onest, system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }

/* ---------- header ---------- */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: auto; height: 40px; }
.wordmark { font: 500 22px/1 var(--text); letter-spacing: 0.01em; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.top nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 3.8vw, 54px); line-height: 1.08; }
h1 .line { display: block; }
.lede { max-width: 36em; color: var(--muted); font-size: 18px; margin: 28px 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 600 16px/1 var(--text);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 10px 28px -12px rgba(76, 91, 255, .7); }
.btn-primary:hover { box-shadow: 0 14px 34px -12px rgba(76, 91, 255, .85); }
.btn-quiet { color: var(--ink); background: transparent; border: 1.5px solid var(--line); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-ink { color: #fff; background: var(--ink); }
.btn-ink:hover { background: #2a2d55; }

.stage { margin: 0; }
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  padding: 3px;
  background: var(--brand);
  box-shadow: 0 40px 80px -40px rgba(60, 50, 200, .45);
}
.screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 19px;
  background: #1a0b2e url(img/shchepkino.webp) center / cover no-repeat;
}
.stage figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* one orchestrated entrance: headline lines, then the game screen */
@media (prefers-reduced-motion: no-preference) {
  h1 .line { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  h1 .line + .line { animation-delay: .12s; }
  .screen { animation: settle 1s .25s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.4em); } }
@keyframes settle { from { opacity: 0; transform: perspective(1400px) rotateX(8deg) translateY(30px); } }

/* ---------- games ---------- */
.games, .integration, .contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.games > h2 { margin-bottom: 40px; }

.game {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.game:last-of-type { border-bottom: 1px solid var(--line); }
.shot { border-radius: 18px; overflow: hidden; background: #1a0b2e; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.shot img.pos-top { object-position: center top; }
a.shot:hover img { transform: scale(1.025); }

.game-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h3 { font-size: clamp(24px, 2.4vw, 32px); }
.status { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.status-live { color: #0b7a55; border-color: #b9ead7; background: #eefaf5; }
.game-body p { color: var(--muted); margin: 16px 0 0; max-width: 34em; }
.game-body .features { color: var(--ink); }
.game-body .btn { margin-top: 28px; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0 0; border-top: 1px solid var(--line); }
.specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-right: 16px; }
.specs dt { font-size: 14px; color: var(--muted); }
.specs dd { margin: 2px 0 0; font: 500 19px/1.3 var(--display); letter-spacing: -0.01em; }

/* ---------- integration ---------- */
.integration {
  padding-top: clamp(96px, 12vw, 160px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 72px);
}
.integration-intro p { color: var(--muted); margin: 20px 0 0; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.facts div { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 18px; }
.facts dd { margin: 6px 0 0; color: var(--muted); }

/* ---------- contact ---------- */
.contact { padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(80px, 10vw, 140px); }
.contact h2 { max-width: 16em; font-size: clamp(30px, 4.4vw, 60px); }
.contact p { color: var(--muted); max-width: 34em; margin: 20px 0 32px; }
.mail {
  font: 700 clamp(22px, 3.6vw, 48px)/1.1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 3px solid var(--line);
  padding-bottom: 4px;
}
.mail:hover { border-color: var(--blue); }

/* ---------- footer ---------- */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  /* hairline aligned with the content column, not the padded box */
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 14px;
  color: var(--muted);
}
.foot p { margin: 0; }

/* ---------- responsive ---------- */
@media (min-width: 961px) {
  h1 .line { white-space: nowrap; }
}
@media (max-width: 960px) {
  .hero, .game, .integration { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; }
  h1 { font-size: clamp(34px, 6.4vw, 54px); }
}
@media (max-width: 600px) {
  .top nav { display: none; }
  .facts { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
}
