@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/golos-text-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/golos-text-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #121110;
  --fg: #efece6;
  --mut: #aaa59c;
  --line: #2c2a27;
  --acc: #f2b04a;
  --acc-ink: #1b1206;
  --pad: 64px;
  --gap: 144px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 18px/1.6 'Golos Text', system-ui, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.nw { white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

/* кнопка - единственный цветной элемент */
.play {
  display: inline-block; background: var(--acc); color: var(--acc-ink);
  font-weight: 700; font-size: 19px; line-height: 1; text-decoration: none;
  padding: 18px 36px; border-radius: 6px;
  transition: background-color .15s;
}
.play { transition: background-color .25s, transform .35s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.play span { display: inline-block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.play:hover { background: #ffc266; }
.play:active { transform: scale(.97); transition-duration: .1s; }
.play:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* шапка */
.top {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--pad);
}
.mark { display: block; line-height: 0; }
.mark img { width: 90px; height: auto; }
.foot-mark a { display: inline-block; line-height: 0; }
.foot-mark img { width: 120px; height: auto; }
.top nav { display: flex; gap: 32px; font-size: 16px; }
.top nav a { text-decoration: none; color: #e6e2da; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* первый экран */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--bg); }
.hero-par { position: absolute; inset: 0; will-change: transform; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  animation: kb 40s ease-out both;
  transform-origin: 30% 50%;
}
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12,10,9,.9) 0%, rgba(12,10,9,.72) 32%, rgba(12,10,9,0) 62%),
    linear-gradient(to bottom, rgba(12,10,9,.5) 0%, rgba(12,10,9,0) 18%);
}
.hero-text {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  max-width: 1440px; margin: 0 auto; padding: 0 var(--pad) 72px;
}
.hero h1 { font-size: 72px; line-height: 1.04; letter-spacing: -0.025em; max-width: 12ch; }
.hero p { font-size: 22px; line-height: 1.45; max-width: 560px; margin: 20px 0 32px; color: #f3efe8; }

/* крупная фраза */
#statement { position: relative; z-index: 3; }
.statement {
  font-size: 44px; line-height: 1.22; letter-spacing: -0.015em; font-weight: 500;
  padding-top: var(--gap); padding-bottom: var(--gap);
}
.statement { max-width: 980px; }

h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.015em; }
.feature-text p, .feature-wide-text p, .closing-text p { margin-top: 16px; max-width: 560px; color: #dcd8d0; }
.feature-text, .feature-wide-text, .battle h2, .gallery-head { position: relative; z-index: 3; }

/* кадр в рамке: картинка чуть больше рамки и едет при прокрутке (параллакс из site.js) */
.frame { position: relative; overflow: hidden; background: #1e1c1a; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
[data-par] { will-change: transform; }

/* холст с моделями: над кадрами, под текстом */
canvas.fly { position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none; }

/* фича во всю ширину */
.frame-wide { height: 78vh; min-height: 460px; max-height: 900px; }
.frame-wide > img { object-position: 50% 60%; }
.feature-wide-text { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; padding-top: 36px; }
.feature-wide-text p:first-child { margin-top: 6px; }
.feature-wide-text p + p { margin-top: 12px; }

/* пара: кадр слева */
.feature-pair { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; margin-top: var(--gap); }
.feature-pair .frame { aspect-ratio: 4 / 3; }
.feature-pair .frame > img { object-position: 40% 50%; }
.feature-text p + p { margin-top: 12px; }
.feature-pair .feature-text { padding-bottom: 8px; }

/* высокий кадр справа */
.feature-tall { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; margin-top: var(--gap); }
.feature-tall .frame { aspect-ratio: 4 / 5; }
.feature-tall .frame > img { object-position: 48% 50%; }
.feature-tall .feature-text { padding-left: calc(100% / 6); }

/* моменты боя: четыре кадра разного размера, подпись - что происходит */
.battle { margin-top: var(--gap); }
.moments { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 32px; margin-top: 40px; align-items: start; }
.mo { margin: 0; }
.mo img { width: 100%; object-fit: cover; background: #1e1c1a; }
.mo figcaption { margin-top: 14px; max-width: 520px; font-size: 17px; line-height: 1.5; color: #cfcac1; }
.mo-a { grid-column: 1 / span 8; }
.mo-a img { aspect-ratio: 16 / 10; }
.mo-b { grid-column: 9 / span 4; margin-top: 120px; }
.mo-b img { aspect-ratio: 4 / 5; object-position: 45% 50%; }
.mo-c { grid-column: 2 / span 5; }
.mo-c img { aspect-ratio: 4 / 3; }
.mo-d { grid-column: 7 / span 6; margin-top: 72px; }
.mo-d img { aspect-ratio: 16 / 9; }

/* техника вблизи: модель крутится пальцем или мышью (fly3d.js); без 3D - кадр */
.tech { margin-top: var(--gap); }
.tech-head { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; z-index: 3; }
.tech-head p { color: var(--mut); }
.viewer { position: relative; margin-top: 28px; outline: none; }
.viewer:focus-visible { outline: 2px solid var(--fg); outline-offset: 6px; }
.viewer-pick { position: relative; z-index: 3; display: flex; gap: 28px; }
.viewer-pick button {
  background: none; border: 0; padding: 4px 0; color: var(--mut); font: inherit; font-size: 18px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: transparent; transition: color .2s, text-decoration-color .2s;
}
.viewer-pick button:hover { color: var(--fg); }
.viewer-pick button[aria-selected="true"] { color: var(--fg); text-decoration-color: var(--fg); }
.viewer-stage { position: relative; height: min(62vh, 640px); min-height: 360px; margin-top: 8px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.viewer-stage.grab { cursor: grabbing; }
.viewer-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.viewer-ready .viewer-still { opacity: 0; pointer-events: none; }

/* кадры чуть наклоняются за курсором, по ним проходит мягкий блик (site.js) */
.tilt { position: relative; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.tilt.on { transition-duration: .12s; }
.tilt::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: var(--ar, 16 / 9); pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 244, 225, .13), rgba(255, 244, 225, 0) 45%);
}
.tilt.on::after { opacity: 1; }
.mo-a { --ar: 16 / 10; } .mo-b { --ar: 4 / 5; } .mo-c { --ar: 4 / 3; } .mo-d { --ar: 16 / 9; }

/* галерея: ручное листание */
.gallery { margin-top: var(--gap); }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.gallery-nav { display: flex; gap: 24px; }
.gallery-nav button {
  background: none; border: 0; padding: 4px 0; color: var(--fg); font: inherit; font-size: 17px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #6a655d;
}
.gallery-nav button:hover { text-decoration-color: var(--fg); }
.g-main { margin: 0; }
.g-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1e1c1a; }
.g-main figcaption { margin-top: 14px; color: var(--mut); font-size: 16px; }
.g-thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 20px; }
.g-thumbs button { padding: 0; border: 0; background: none; cursor: pointer; opacity: .55; transition: opacity .15s; }
.g-thumbs button:hover, .g-thumbs button[aria-current="true"] { opacity: 1; }
.g-thumbs button[aria-current="true"] { box-shadow: 0 2px 0 0 var(--fg); }
.g-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* где играть */
.closing { position: relative; margin-top: var(--gap); min-height: 82vh; display: flex; align-items: flex-end; }
.frame-closing { position: absolute; inset: 0; }
.frame-closing > img { object-position: 50% 50%; }
.closing::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,10,9,.9) 0%, rgba(12,10,9,.6) 40%, rgba(12,10,9,0) 70%);
}
.closing-text { position: relative; z-index: 3; width: 100%; padding-top: 96px; padding-bottom: 96px; }
.closing-text p { color: #ece8e0; }
.closing-text .play { margin-top: 36px; }
.closing-box { margin-left: auto; max-width: 560px; }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 56px 0 64px; font-size: 16px; color: var(--mut); }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px 64px; }
.foot-mark { color: var(--fg); font-weight: 700; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a, .foot-mail a { color: var(--fg); text-decoration: none; }
.foot-links a:hover, .foot-mail a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-mail { grid-column: 2; }
.foot-small { grid-column: 2; max-width: 640px; font-size: 14px; line-height: 1.55; }

/* ───── документ ───── */
.band { height: 140px; background: url(img/01-su34-side-sunset.webp) 50% 58% / cover; position: relative; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(18,17,16,.45); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 660px); gap: 80px; padding-top: 72px; padding-bottom: 120px; }
.doc-head { grid-column: 2; }
.doc-head h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; }
.doc-date { margin-top: 12px; color: var(--mut); font-size: 16px; }
.doc-other { margin-top: 20px; font-size: 16px; color: var(--mut); }
.doc-other a { color: var(--fg); }
.toc { grid-column: 1; grid-row: 2; }
.toc nav { position: sticky; top: 32px; font-size: 15px; line-height: 1.4; }
.toc p { color: var(--mut); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li + li { margin-top: 10px; }
.toc a { color: var(--mut); text-decoration: none; display: block; }
.toc a:hover, .toc a.on { color: var(--fg); }
.toc-m { display: none; }
.doc-body { grid-column: 2; grid-row: 2; font-size: 18px; line-height: 1.62; }
.doc-body > p:first-child { font-size: 20px; line-height: 1.55; color: #f5f2ec; }
.doc-body h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; margin: 56px 0 14px; scroll-margin-top: 24px; }
.doc-body h3 { font-size: 19px; line-height: 1.35; margin: 32px 0 8px; }
.doc-body p + p, .doc-body ul + p { margin-top: 14px; }
.doc-body ul { margin: 12px 0 0; padding-left: 22px; }
.doc-body li + li { margin-top: 8px; }
.doc-body li::marker { color: var(--mut); }
.doc-body a { text-underline-offset: 3px; text-decoration-color: #7a746a; }
.doc-body b { font-weight: 600; }
.doc-end { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; color: var(--mut); }
.doc-end a { color: var(--fg); }

/* ───── телефон ───── */
@media (max-width: 900px) {
  :root { --pad: 20px; --gap: 96px; }
  body { font-size: 16px; }
  .top { padding: 18px var(--pad); }
  .top nav { display: none; }
  .mark img { width: 74px; }
  .foot-mark img { width: 100px; }
  .hero-img { object-position: 34% 50%; transform-origin: 34% 45%; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 18px; margin: 14px 0 24px; }
  .hero-text { padding-bottom: 40px; }
  .statement { font-size: 27px; line-height: 1.3; }
  h2 { font-size: 28px; }
  .frame-wide { height: 62vh; min-height: 340px; }
  .frame-wide > img { object-position: 40% 60%; }
  .feature-wide-text, .feature-pair, .feature-tall { grid-template-columns: 1fr; gap: 20px; }
  .feature-wide-text { padding-top: 24px; gap: 4px; }
  .feature-tall .feature-text { padding-left: 0; order: 2; }
  .feature-tall .frame { aspect-ratio: 4 / 5; }
  .gallery-nav { gap: 18px; }
  .g-thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .g-thumbs button { scroll-snap-align: start; }
  .closing { min-height: 0; display: block; }
  .frame-closing { position: relative; height: 46vh; }
  .frame-closing > img { object-position: 18% 50%; }
  .closing-box { margin-left: 0; }
  .moments { grid-template-columns: 1fr; gap: 36px; margin-top: 28px; }
  .mo-a, .mo-b, .mo-c, .mo-d { grid-column: 1; margin-top: 0; }
  .mo-b img { aspect-ratio: 4 / 3; }
  .mo figcaption { font-size: 16px; margin-top: 10px; }
  .closing::after { display: none; }
  .closing-text { padding-top: 32px; padding-bottom: 72px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-mail, .foot-small { grid-column: 1; }
  .foot-links { flex-direction: column; }
  .band { height: 96px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; padding-bottom: 80px; }
  .doc-head, .doc-body, .toc { grid-column: 1; grid-row: auto; }
  .toc { display: none; }
  .toc-m { display: block; margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 16px; }
  .toc-m summary { padding: 14px 0; cursor: pointer; font-weight: 600; }
  .toc-m ol { list-style: none; margin: 0; padding: 0 0 16px; }
  .toc-m li + li { margin-top: 10px; }
  .toc-m a { color: var(--mut); text-decoration: none; }
  .doc-head h1 { font-size: 34px; }
  .doc-body { font-size: 17px; margin-top: 8px; }
  .doc-body > p:first-child { font-size: 18px; }
  .doc-body h2 { font-size: 23px; margin-top: 44px; }
}

@media (max-width: 900px) {
  .mo-b { --ar: 4 / 3; }
  .viewer-stage { height: 52vh; min-height: 300px; }
  .viewer-pick { gap: 22px; }
  .viewer-pick button { font-size: 17px; }
  .tech-head { display: block; }
  .tech-head p { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tilt, .play, .play span { transition: none; transform: none; }
}

/* онлайн: большой снимок игры и четыре миниатюры; по клику миниатюра плавно меняется местами с большим */
.online { margin-top: var(--gap); }
.online-head { position: relative; z-index: 3; display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: baseline; }
.online-head p { max-width: 600px; color: #dcd8d0; }
.ol-main { margin: 36px 0 0; --ar: 16 / 9; }
.ol-stage { position: relative; aspect-ratio: 16 / 9; background: #1e1c1a; overflow: hidden; }
.ol-stage img, .ol-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); transform: scale(1.03); }
.ol-stage img.on, .ol-stage video.on { opacity: 1; transform: none; }
.ol-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.ol-thumbs button { padding: 0; border: 0; background: none; color: var(--mut); font: inherit; font-size: 16px; text-align: left; cursor: pointer; transition: color .2s; }
.ol-thumbs button img, .ol-thumbs button video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .7; transition: opacity .25s, transform .4s cubic-bezier(.2,.7,.2,1); }
.ol-thumbs button span { display: block; margin-top: 8px; }
.ol-thumbs button:hover { color: var(--fg); }
.ol-thumbs button:hover img, .ol-thumbs button:hover video { opacity: 1; transform: translateY(-3px); }

/* кадры из игры: три коротких ролика без звука */
.clips { margin-top: var(--gap); }
.clip-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 32px; margin-top: 36px; align-items: start; }
.clip { margin: 0; }
.clip video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1e1c1a; }
.clip figcaption { margin-top: 12px; font-size: 16px; color: #cfcac1; }
.clip-a { grid-column: 1 / span 8; }
.clip-b { grid-column: 9 / span 4; margin-top: 96px; }
.clip-c { grid-column: 3 / span 7; }

/* подвал: логотип и название */
.foot-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot-logo { display: inline-block; line-height: 0; }
.foot-logo img { width: 110px; height: auto; }
.foot-brand .foot-mark { font-weight: 700; color: var(--fg); }
.foot-small + .foot-small { margin-top: -8px; }

@media (max-width: 900px) {
  .online-head { display: block; }
  .online-head p { margin-top: 12px; }
  .ol-main { margin-top: 24px; }
  .ol-thumbs { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42%; overflow-x: auto; gap: 10px; padding-bottom: 6px; }
  .ol-thumbs button { font-size: 15px; }
  .clip-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
  .clip-a, .clip-b, .clip-c { grid-column: 1; margin-top: 0; }
  .foot-logo img { width: 90px; }
}

/* шапка справа: разделы и выбор языка */
.top-r { display: flex; align-items: center; gap: 36px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang { position: relative; display: inline-flex; align-items: center; }
.lang-sel {
  appearance: none; -webkit-appearance: none; background: transparent; color: #e6e2da; font: inherit; font-size: 15px;
  border: 1px solid rgba(239, 236, 230, .28); border-radius: 6px; padding: 6px 28px 6px 12px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #e6e2da 50%), linear-gradient(135deg, #e6e2da 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
  transition: border-color .2s;
}
.lang-sel:hover, .lang-sel:focus-visible { border-color: rgba(239, 236, 230, .7); outline: none; }
.lang-sel option { color: #121110; }
@media (max-width: 900px) {
  .top-r { gap: 0; }
  .lang-sel { font-size: 14px; padding: 5px 26px 5px 10px; }
  .hero h1 { overflow-wrap: anywhere; hyphens: auto; }
}
