/* «Где мой кот?» — промо-сайт. Тёмная ночная база, один акцент — цвет шарфа Люми. */

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

:root {
  --bg: #0c0b12;
  --bg-2: #13111b;
  --line: rgba(244, 239, 233, 0.1);
  --ink: #f4efe9;
  --muted: #a7a2b3;
  --acc: #ff7a45;          /* шарф Люми */
  --acc-2: #ffa47a;
  --acc-ink: #220d03;
  --r: 22px;
  /* тени согласованы с ключевым светом сцены: тёплый, справа сверху → тень влево вниз */
  --sh-card: -14px 24px 48px -24px rgba(0, 0, 0, 0.75), -2px 4px 10px -4px rgba(0, 0, 0, 0.5);
  --sh-acc: -10px 18px 38px -14px rgba(255, 122, 69, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(1240px, 100% - 2 * clamp(20px, 5vw, 64px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.025em; line-height: 1.02; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--acc); color: var(--acc-ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--acc-2); outline-offset: 3px; border-radius: 8px; }

/* ---------- кнопки ---------- */
.btn {
  --h: 58px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 30px; border-radius: 999px;
  font: 800 1.0625rem/1 var(--font); font-weight: 900; letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background-color 0.25s, color 0.25s;
}
.btn-play { background: var(--acc); color: var(--acc-ink); box-shadow: var(--sh-acc); }
.btn-play:hover { transform: translateY(-2px); background: var(--acc-2); }
.btn-play:active { transform: translateY(1px); }
.btn-play svg { width: 18px; height: 18px; }
.btn-ghost { color: var(--ink); background: rgba(244, 239, 233, 0.06); box-shadow: inset 0 0 0 1.5px rgba(244, 239, 233, 0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(244, 239, 233, 0.12); transform: translateY(-2px); }
.btn-sm { --h: 42px; padding: 0 20px; font-size: 0.95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  transition: background-color 0.35s, backdrop-filter 0.35s;
}
.top.scrolled { background: rgba(12, 11, 18, 0.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--sh-card); }
.top nav { display: flex; align-items: center; gap: 10px; }
.top .link { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 8px 10px; border-radius: 10px; transition: color .2s; }
.top .link:hover { color: var(--ink); }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; font-size: 0.85rem; }
.lang a, .lang span { padding: 6px 11px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang [aria-current] { background: rgba(244, 239, 233, 0.1); color: var(--ink); }
.lang a:hover { color: var(--ink); }

/* ---------- 3D-сцена: одна на всю страницу, фиксирована ---------- */
.stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.7s ease;
}
.stage.on { opacity: 1; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage::before { /* свечение вокруг героев */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(38vmax 34vmax at var(--gx, 64%) var(--gy, 48%), rgba(255, 122, 69, 0.16), transparent 70%),
    radial-gradient(52vmax 44vmax at var(--gx, 64%) calc(var(--gy, 48%) + 6%), rgba(146, 132, 255, 0.10), transparent 72%);
  transition: background-position 0.6s;
}
/* лёгкая подложка под колонку текста слева */
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 11, 18, 0.55), rgba(12, 11, 18, 0) 50%); }
@media (max-width: 760px) { .stage::after { background: linear-gradient(0deg, rgba(12, 11, 18, 0.7), rgba(12, 11, 18, 0) 55%); } }
/* постер без WebGL: настоящий арт игры */
.stage .poster {
  position: absolute; width: min(46vmin, 520px); aspect-ratio: 1; left: var(--gx, 64%); top: var(--gy, 48%);
  translate: -50% -50%; border-radius: 36px; overflow: hidden; box-shadow: var(--sh-card);
  opacity: 0; transition: opacity 0.6s;
}
.stage.fallback .poster { opacity: 1; }
.stage .poster img { width: 100%; height: 100%; object-fit: cover; }

main { position: relative; z-index: 1; }
section { position: relative; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 0 clamp(48px, 9vh, 96px); }
.hero .wrap { display: grid; gap: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--acc-2); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.hero h1 { font-size: clamp(3.4rem, 11vw, 10rem); max-width: 9ch; text-wrap: balance; }
.hero h1 .q { color: var(--acc); }
.hook { font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.45; color: #ddd7e4; max-width: 30ch; }
.hero .meta { color: var(--muted); font-size: 0.95rem; }
.scroll-cue { position: absolute; right: clamp(20px, 5vw, 64px); bottom: 36px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.scroll-cue i { width: 22px; height: 36px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(244,239,233,.35); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--acc); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- скролл-история ---------- */
.story { padding: 10vh 0 20vh; }
.step { min-height: 100svh; display: flex; align-items: center; }
.step .card { max-width: 30rem; }
.step .num { display: block; font-weight: 900; color: var(--acc); font-size: 0.95rem; letter-spacing: 0.08em; margin-bottom: 18px; }
.step h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-bottom: 22px; text-wrap: balance; }
.step p { color: #d5cfdc; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; }
.step p + p { margin-top: 14px; }
.bubble { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 12px 18px; border-radius: 20px 20px 20px 6px; background: #fbf6ef; color: #2a2230; font-weight: 900; font-size: 1.15rem; box-shadow: var(--sh-card); }
.bubble svg { width: 30px; height: 30px; }

/* ---------- общие заголовки секций ---------- */
.sec { padding: clamp(90px, 14vh, 160px) 0; background: var(--bg); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 6vh, 64px); max-width: 44rem; }
.sec-head .kicker { color: var(--acc-2); font-weight: 800; letter-spacing: 0.02em; font-size: 0.95rem; }
.sec-head h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); text-wrap: balance; }
.sec-head p { color: var(--muted); font-size: 1.125rem; }
.after-story { position: relative; z-index: 2; background: var(--bg); box-shadow: 0 -60px 80px 20px var(--bg); }

/* ---------- механики ---------- */
.mech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mech article {
  position: relative; padding: 30px 26px 30px; border-radius: var(--r);
  background: linear-gradient(170deg, #1b1824, #121019 70%); box-shadow: var(--sh-card), inset 0 1px 0 rgba(255,255,255,.05);
  display: grid; align-content: start; gap: 14px; min-height: 100%;
}
.mech .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 122, 69, 0.12); color: var(--acc); margin-bottom: 6px; }
.mech .ico svg { width: 30px; height: 30px; }
.mech h3 { font-size: 1.4rem; letter-spacing: -0.015em; line-height: 1.15; }
.mech p { color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* ---------- острова (скриншоты) ---------- */
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.shots figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-card); background: var(--bg-2); grid-column: span 3; }
.shots figure:first-child { grid-column: span 6; }
.shots figure:nth-child(4) { grid-column: span 6; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.shots figure:first-child img, .shots figure:nth-child(4) img { aspect-ratio: 21 / 9; }
.shots figure:hover img { transform: scale(1.035); }
.shots figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 20px; background: linear-gradient(transparent, rgba(12, 11, 18, 0.85)); font-weight: 700; color: #eee8f2; }
.shots figcaption b { display: block; font-weight: 900; font-size: 1.25rem; color: var(--ink); }

/* ---------- маршрут: главы ---------- */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; counter-reset: ch; position: relative; }
.route::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; border-top: 2px dashed rgba(244, 239, 233, 0.18); }
.route li { position: relative; padding: 44px 14px 0 0; counter-increment: ch; font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.route li::before { content: ""; position: absolute; left: 6px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--acc); }
.route li:last-child::before { background: var(--acc); }
.route li span { display: block; color: var(--muted); font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }

/* ---------- из игры прямо сейчас ---------- */
.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.live-grid a { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; box-shadow: var(--sh-card); }
.live-grid img, .live-grid video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.live-grid a:hover img, .live-grid a:hover video { transform: scale(1.05); }
.live-grid .tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(12,11,18,.7); font-size: 0.78rem; font-weight: 800; }
.live-more { margin-top: 28px; }

/* ---------- финал ---------- */
.final { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 140px; background: transparent; }
.final .card { max-width: 34rem; display: grid; gap: 24px; }
.final h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); text-wrap: balance; }
.final p { color: #d5cfdc; font-size: 1.2rem; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .mech { grid-template-columns: repeat(2, 1fr); }
  .route { grid-template-columns: repeat(4, 1fr); row-gap: 36px; }
  .route::before { display: none; }
  .live-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .top { padding: 12px 14px; }
  .top .link, .brand span { display: none; }
  .hero { padding-bottom: 40px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .scroll-cue { display: none; }
  .btn { --h: 54px; padding: 0 24px; }
  .cta-row .btn { flex: 1 1 auto; }
  .step { align-items: flex-end; padding-bottom: 8vh; }
  .step .card { padding: 26px 22px; border-radius: var(--r); background: rgba(12, 11, 18, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--sh-card); }
  .mech { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .shots figure, .shots figure:first-child, .shots figure:nth-child(4) { grid-column: auto; }
  .shots figure:first-child img, .shots figure:nth-child(4) img { aspect-ratio: 16 / 9; }
  .route { grid-template-columns: 1fr 1fr; }
  .live-grid { grid-template-columns: 1fr 1fr; }
  .final { align-items: flex-end; }
  .final .card { padding: 26px 22px; border-radius: var(--r); background: rgba(12, 11, 18, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
