:root {
  --bg: #0f1014;
  --card: #181a21;
  --line: #262a35;
  --text: #eceef3;
  --muted: #8b90a0;
  --accent: #7c6cff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 80px; }
.story + .story { margin-top: 96px; }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 8px 0 12px; }
.lead { color: var(--muted); max-width: 680px; margin: 0 0 24px; }

/* Переключатель языка */
.topbar { display: flex; justify-content: flex-end; margin: 0 0 24px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 13px; }
.lang a { padding: 6px 14px; color: var(--muted); text-decoration: none; }
.lang a[aria-current] { background: var(--accent); color: #fff; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.facts li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.facts b { color: var(--text); font-weight: 600; }

.brand { display: block; width: 100%; height: auto; border-radius: 20px; margin: 0 0 28px; }
.head { display: flex; align-items: center; gap: 20px; margin: 0 0 12px; }
.head img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.head h1 { margin: 6px 0 0; }

/* Игры: сетка роликов */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.shot { aspect-ratio: 4 / 5; background: #12131a; display: grid; place-items: center; }
.shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.info { padding: 12px 14px 14px; }
.info h2 { font-size: 16px; margin: 0 0 2px; }
.info p { margin: 0; color: var(--muted); font-size: 13px; }

/* Mnemo: лента скриншотов */
.strip {
  display: flex; gap: 16px; align-items: flex-start;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 0 16px; margin: 0;
  scrollbar-color: var(--line) transparent;
}
.strip figure { flex: 0 0 240px; margin: 0; scroll-snap-align: start; }
.strip img {
  display: block; width: 100%; height: auto;
  border-radius: 18px; border: 1px solid var(--line); background: #ede7f6;
}
.strip figcaption { padding: 10px 4px 0; font-size: 13px; color: var(--muted); }

/* Маркетинг: цифры, кейс, проекты */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; }
.stat b { display: block; font-size: clamp(34px, 6vw, 52px); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.case {
  border-radius: 20px; padding: 32px 28px; margin: 0 0 16px;
  background: linear-gradient(135deg, #2a1f6b, #7c6cff);
}
.case .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.case h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.15; margin: 8px 0 14px; }
.case p { margin: 0 0 10px; max-width: 760px; opacity: .94; }
.case p:last-child { margin-bottom: 0; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.project { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; gap: 16px; }
.project .mono {
  flex: none; width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center; font-size: 30px; line-height: 1;
}
.mono.hw { background: linear-gradient(145deg, #ff8a3d, #c2185b); }
.mono.tr { background: linear-gradient(145deg, #4fc3f7, #3949ab); }
.mono.ie { background: linear-gradient(145deg, #7ed957, #1f9d6b); }
.project h3 { margin: 0 0 2px; font-size: 18px; }
.project .genre { color: var(--accent); font-size: 13px; margin: 0 0 6px; }
.project p { margin: 0; color: var(--muted); font-size: 14px; }

/* Зоны ответственности */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.roles li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.roles b { display: block; font-size: 15px; margin-bottom: 2px; }
.roles span { color: var(--muted); font-size: 14px; }
