@font-face {
  font-family: "Unbounded";
  src: url("fonts/Unbounded.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/Onest.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

/* Тёплая светлая тема: рассвет вместо ночи.
   Текст не чисто чёрный, а тёмно-сливовый — он мягче на тёплом фоне. */
:root {
  --page: #fff7f1;
  --page-2: #fdeee6;
  --lilac: #f5eefc;

  --ink: #2b2030;
  --ink-dim: rgba(43, 32, 48, .7);
  --ink-faint: rgba(43, 32, 48, .5);
  --line: rgba(43, 32, 48, .1);

  --sun: #ffb547;
  --coral: #ff8a65;
  --rose: #ff6f91;
  --teal: #23a597;   /* цвет куртки героини — для мелких акцентов */
  --mint: #4cc99a;

  --accent: linear-gradient(115deg, #ffc15e 0%, #ff8a65 58%, #ff6f91 100%);
  --shadow: 0 14px 40px -16px rgba(140, 70, 50, .28);

  --display: "Unbounded", system-ui, sans-serif;
  --ui: "Onest", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* ---------- Фон первого экрана ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  display: block;
  z-index: -2;
}
/* Тёплая сливовая вуаль слева — на ней читается белый текст, а мир справа остаётся ярким */
.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(46, 22, 52, .8) 0%, rgba(46, 22, 52, .45) 42%, transparent 64%),
    linear-gradient(to bottom, rgba(52, 26, 58, .4), transparent 18%);
}
body.no-webgl #scene { display: none; }
body.no-webgl .veil {
  background:
    radial-gradient(60% 50% at 75% 60%, rgba(255, 190, 120, .7), transparent 70%),
    linear-gradient(#3b2a62, #b5577a 60%, #ffb37a);
}

/* ---------- Шапка ---------- */
/* Над первым экраном шапка прозрачная с белым текстом,
   после прокрутки — светлая с тёмным текстом */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 max(24px, (100% - 1160px) / 2);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s, height .3s;
}
.nav.scrolled {
  height: 64px;
  color: var(--ink);
  background: rgba(255, 247, 241, .92);
  border-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
}
.brand img { border-radius: 0; }

.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }

/* Переключатель языка. Сплошная тёмная плашка одинаково контрастна и на персиковом небе
   первого экрана, и на светлой шапке после прокрутки — поэтому цвет не меняется.
   Активную метку CSS узнаёт по атрибуту <html lang>, который выставляет i18n.js. */
.lang-wrap { position: relative; margin-right: -12px; /* ближе к «Download»: одна группа действий */ }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 6px 0 12px;
  color: #fff;
  font: inherit;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(43, 32, 48, .8);
  transition: background .2s;
}
.lang-btn:hover { background: #3d2e45; }
.lang-btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.lang-btn svg { width: 20px; height: 20px; margin-right: 4px; fill: none; stroke: var(--sun); stroke-width: 1.8; }
.lang-code {
  padding: 0 9px;
  font-size: 14px;
  font-weight: 700;
  line-height: 30px;
  opacity: .7;
}

/* Подсказка «Есть русская версия»: белая плашка со стрелкой, указывающей на переключатель */
.lang-hint {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  white-space: nowrap;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  animation: hint-in .5s 2s var(--ease-out) both;
}
.lang-hint[hidden] { display: none; } /* иначе display:flex выше перебил бы атрибут hidden */
.lang-hint::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 34px;
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.lang-hint-go {
  padding: 6px 10px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: #3a1420;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.lang-hint-close {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
}
.lang-hint-close:hover { background: var(--page-2); }
.lang-hint-close svg { width: 11px; height: 11px; stroke: var(--ink); stroke-width: 1.6; fill: none; }
@keyframes hint-in { from { opacity: 0; transform: translateY(-6px); } }
html[lang="en"] .lang-code[data-lang="en"],
html[lang="ru"] .lang-code[data-lang="ru"] {
  opacity: 1;
  background: var(--accent);
  color: #3a1420;
}
.nav-links a { opacity: .78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 0;
  font-family: var(--display);
  font-weight: 600;
  transition: transform .25s var(--ease-out), background .25s, box-shadow .25s;
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.btn-primary {
  height: 64px;
  padding: 0 30px;
  background: var(--accent);
  color: #3a1420;
  font-size: 16px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 26px -10px rgba(255, 111, 145, .7);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -90px;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: shine .8s var(--ease-out); }

.btn-ghost {
  height: 64px;
  padding: 0 26px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: 15px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }

.btn-small {
  height: 42px;
  padding: 0 18px;
  border-radius: 0;
  background: var(--accent);
  color: #3a1420;
  font-size: 13px;
}

/* Мягкий ореол за главной кнопкой — теперь тёплый и спокойнее, чем неон */
.cta-wrap { position: relative; display: inline-block; }
.cta-glow {
  position: absolute;
  inset: 8px;
  border-radius: 0;
  background: linear-gradient(100deg, var(--sun), var(--coral), var(--rose));
  filter: blur(22px);
  opacity: .45;
  animation: breathe 3.6s ease-in-out infinite;
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-inner { padding-top: 76px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 12px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .14);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  animation: rise .9s .9s var(--ease-out) both;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 0; background: var(--sun); }
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: var(--sun);
  animation: ping 1.8s ease-out infinite;
}

.logo {
  display: flex;
  margin: 22px 0 18px -4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 1;
  letter-spacing: -.015em;
  filter: drop-shadow(0 4px 18px rgba(70, 25, 55, .45)) drop-shadow(0 0 30px rgba(255, 160, 100, .3));
}
.logo span {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 40%, #ffe0c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: letter 1s calc(1s + var(--i) * 55ms) var(--ease-out) both;
}

.lead {
  max-width: 34ch;
  font-size: 19px;
  color: rgba(255, 255, 255, .9);
  animation: rise .9s 1.45s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  animation: rise .9s 1.6s var(--ease-out) both;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  animation: rise .9s 1.75s var(--ease-out) both;
}
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px; height: 40px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 0;
  animation: fade 1s 2.2s both;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 0;
  background: #fff;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

/* ---------- Общие секции ---------- */
.section {
  position: relative;
  padding: 120px 0;
  background: var(--page);
}
h2 {
  max-width: 20ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.015em;
}
.section-lead {
  max-width: 56ch;
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-dim);
}

/* ---------- Скриншот лаунчера ---------- */
/* Верх секции — плавный переход от рассветного мира к светлой странице */
.showcase {
  background: linear-gradient(to bottom, transparent, var(--page) 150px);
  padding-top: 180px;
  text-align: center;
}
.showcase h2, .showcase .section-lead { margin-inline: auto; }

.window {
  position: relative;
  isolation: isolate;
  max-width: 1100px;
  margin: 60px auto 0;
  transform: perspective(1600px) rotateX(20deg) scale(.9);
  transform-origin: 50% 0;
  opacity: .5;
  transition: transform 1.4s var(--ease-out), opacity 1.2s;
}
.window.in { transform: none; opacity: 1; }
.window img {
  width: 100%;
  border-radius: 0;
  border: 1px solid rgba(43, 32, 48, .12);
  box-shadow: 0 40px 90px -30px rgba(90, 40, 60, .45);
}
.window-glow {
  position: absolute;
  inset: 10% 8% -6%;
  z-index: -1;
  background: linear-gradient(100deg, rgba(255, 193, 94, .7), rgba(255, 138, 101, .6), rgba(255, 111, 145, .6));
  filter: blur(80px);
  opacity: .45;
}

/* ---------- Возможности ---------- */
#features {
  background:
    radial-gradient(40% 30% at 90% 10%, rgba(255, 193, 94, .18), transparent 70%),
    radial-gradient(40% 30% at 5% 80%, rgba(245, 238, 252, .9), transparent 70%),
    var(--page);
}
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.card {
  position: relative;
  padding: 30px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card h3 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; }
.card p { margin-top: 10px; font-size: 15px; color: var(--ink-dim); max-width: 40ch; }

.card-mods {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 30px;
  align-items: center;
}
.card-packs { grid-column: span 2; }
.card-shaders, .card-versions, .card-launch { grid-column: span 2; }
.card-packs-wide {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: center;
}

.mod-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mod-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 0;
  background: var(--page);
  border: 1px solid var(--line);
}
.mod-ico {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 0;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.mod-name { flex: 1; display: flex; flex-direction: column; font-weight: 600; font-size: 15px; line-height: 1.3; }
.mod-name small { font-weight: 400; font-size: 12px; color: var(--ink-faint); }
.toggle {
  position: relative;
  flex: none;
  width: 42px; height: 24px;
  border-radius: 0;
  background: rgba(43, 32, 48, .14);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.toggle.on { background: var(--accent); }
.toggle.on::after { left: 21px; }

.packs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; font-size: 13px; color: var(--ink-dim); }
.packs li { display: flex; flex-direction: column; gap: 8px; }
.cover {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background:
    linear-gradient(transparent 68%, rgba(0, 0, 0, .22) 68%),
    radial-gradient(circle at 30% 34%, var(--a) 0 12%, transparent 40%),
    linear-gradient(160deg, var(--b), var(--c));
  box-shadow: 0 8px 18px -10px rgba(90, 40, 60, .5);
}

.compare {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-top: 22px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 22px -12px rgba(90, 40, 60, .5);
}
.compare-img { position: absolute; inset: 0; }
.compare-img.before {
  background:
    radial-gradient(ellipse 55% 26% at 22% 70%, #5aa852 98%, transparent 100%),
    radial-gradient(ellipse 50% 24% at 78% 72%, #4f9a48 98%, transparent 100%),
    linear-gradient(transparent 70%, #4f9a48 70% 80%, #7a5230 80%),
    radial-gradient(circle at 72% 30%, #fff6d0 0 7%, transparent 8%),
    linear-gradient(#8fb5e0, #c4dbf2);
}
/* clip-path «отрезает» левую часть: видно только то, что правее ползунка */
.compare-img.after {
  clip-path: inset(0 0 0 var(--pos));
  background:
    radial-gradient(ellipse 55% 26% at 22% 70%, #3f8a4e 98%, transparent 100%),
    radial-gradient(ellipse 50% 24% at 78% 72%, #357a45 98%, transparent 100%),
    linear-gradient(transparent 70%, #2f6e40 70% 80%, #5a3426 80%),
    radial-gradient(circle at 72% 56%, #fff3cf 0 5%, rgba(255, 190, 120, .75) 6%, transparent 34%),
    linear-gradient(#5b4a9e, #c8678e 50%, #ffb27a 80%);
}
.compare-line {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}
.compare-line span {
  position: absolute;
  top: 50%; left: 50%;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.compare-line span::before {
  content: "‹ ›";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
}
.compare-tag {
  position: absolute;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 0;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
}
.compare-tag.left { left: 10px; }
.compare-tag.right { right: 10px; }
.compare input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--page);
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
}
.dot { width: 8px; height: 8px; border-radius: 0; }
.dot.release  { background: var(--mint); }
.dot.snapshot { background: var(--sun); }
.dot.legacy   { background: #b3a8bd; }

.launch-demo { margin-top: 26px; }
.launch-bar {
  height: 14px;
  border-radius: 0;
  background: rgba(43, 32, 48, .08);
  overflow: hidden;
}
/* Полоса растёт через transform: scaleX — это не вызывает перерисовку */
.launch-bar span {
  display: block;
  height: 100%;
  border-radius: 0;
  background: var(--accent);
  transform-origin: left;
  animation: load 4.5s var(--ease-out) infinite;
}
.launch-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-faint);
}
.launch-steps span { animation: step 4.5s infinite both; }
.launch-steps span:nth-child(2) { animation-delay: 1.2s; }
.launch-steps span:nth-child(3) { animation-delay: 2.4s; }

.builds { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.build {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px;
  border-radius: 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .45), transparent 55%),
    linear-gradient(160deg, var(--a), var(--b));
  box-shadow: 0 12px 26px -14px var(--b);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .18);
}
.build b { font-family: var(--display); font-weight: 600; font-size: 17px; }
.build span { font-size: 13px; opacity: .9; }

/* ---------- Машина времени ---------- */
/* Прозрачная секция: сквозь неё виден закреплённый 3D-остров с первого экрана.
   Сверху и снизу — плавный переход в цвет страницы, чтобы «окно в мир» не обрезалось резко. */
.time {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0;
  color: #fff;
  background: linear-gradient(var(--page), transparent 150px, transparent calc(100% - 150px), var(--page));
}
.time .section-lead { color: rgba(255, 255, 255, .88); max-width: 46ch; }

.tm-panel {
  width: min(480px, 100%);
  margin-top: 36px;
  padding: 22px 22px 16px;
  background: rgba(40, 20, 48, .74);
  border: 1px solid rgba(255, 255, 255, .18);
}
.tm-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.tm-day { font-family: var(--display); font-weight: 700; font-size: 30px; }
.tm-event { font-size: 16px; font-weight: 600; color: var(--sun); }

/* Дорожка и отметки нарисованы отдельно, а настоящий range-ползунок лежит поверх
   с прозрачным фоном — так он остаётся доступным с клавиатуры (стрелки, Home/End). */
.timeline { position: relative; height: 40px; margin-top: 10px; }
.timeline-track {
  position: absolute;
  left: 0; right: 0; top: 18px;
  height: 4px;
  background: rgba(255, 255, 255, .22);
}
.timeline-track span { display: block; height: 100%; width: 100%; background: var(--sun); }
.ticks { position: absolute; inset: 0; pointer-events: none; }
.tick {
  position: absolute;
  top: 12px;
  width: 2px; height: 16px;
  margin-left: -1px;
  background: rgba(255, 255, 255, .45);
}
.tick.passed { background: var(--sun); }
.timeline input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.timeline input:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.timeline input::-webkit-slider-runnable-track { height: 40px; background: transparent; }
.timeline input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 28px;
  margin-top: 6px;
  background: #fff;
  border: 2px solid #3a1c40;
}
.timeline input::-moz-range-track { background: transparent; }
.timeline input::-moz-range-thumb {
  width: 14px; height: 28px;
  background: #fff;
  border: 2px solid #3a1c40;
  border-radius: 0;
}
.tm-scale { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .6); }

.tm-facts { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.tm-facts li { position: relative; padding-left: 24px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.tm-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 10px;
  background: var(--sun);
}
.tm-facts b { color: #fff; font-weight: 600; }

/* ---------- Проводница ---------- */
.guide { background: linear-gradient(160deg, var(--page-2), var(--lilac)); }
.guide-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.guide-art { position: relative; isolation: isolate; justify-self: center; }
.guide-art img {
  width: 340px;
  border-radius: 0;
  border: 6px solid #fff;
  box-shadow: 0 30px 70px -24px rgba(90, 40, 60, .5);
  transform: rotate(-2.5deg);
}
.guide-halo {
  position: absolute;
  inset: -10%;
  z-index: -1;
  border-radius: 0;
  background: radial-gradient(circle at 40% 40%, rgba(255, 193, 94, .55), transparent 55%),
              radial-gradient(circle at 65% 60%, rgba(255, 111, 145, .35), transparent 60%);
  filter: blur(40px);
}
.guide-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.guide-list li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  color: var(--ink-dim);
}
.guide-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 0;
  background: var(--accent);
  transform: rotate(45deg);
}
.guide-list b { color: var(--ink); font-weight: 600; }

/* ---------- Вопросы ---------- */
.faq-inner { max-width: 780px; }
.faq h2 { margin-bottom: 30px; }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 20px;
  font-weight: 400;
  transition: background .3s;
}
details[open] summary::after { content: "−"; background: var(--page-2); }
summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: 0; }
details p { padding: 0 0 24px; max-width: 62ch; color: var(--ink-dim); }

/* ---------- Финальный призыв: тёплый закатный баннер ---------- */
.final {
  text-align: center;
  padding: 140px 0;
  background:
    radial-gradient(50% 80% at 80% 100%, rgba(255, 111, 145, .45), transparent 70%),
    radial-gradient(50% 80% at 15% 0%, rgba(255, 220, 150, .8), transparent 70%),
    linear-gradient(135deg, #ffd59a, #ff9d8a 55%, #f78fb8);
}
.final h2, .final .section-lead { margin-inline: auto; }
.final .section-lead { color: rgba(43, 32, 48, .75); }
.final .cta-wrap { margin-top: 36px; }
/* На тёплом баннере главная кнопка — тёмная, иначе она бы с ним слилась */
.final .btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(43, 32, 48, .6);
}
.final .cta-glow { display: none; }

/* ---------- Подвал ---------- */
.footer { position: relative; background: var(--page); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 30px 0;
  font-size: 14px;
  color: var(--ink-faint);
}
.footer .brand { color: var(--ink); }

/* ---------- Анимации ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes letter { from { opacity: 0; transform: translateY(45%); filter: blur(10px); } }
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }
@keyframes shine { to { left: calc(100% + 40px); } }
@keyframes breathe { 50% { opacity: .7; transform: scale(1.04, 1.12); } }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes load {
  0% { transform: scaleX(0); }
  75% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes step {
  0%, 30% { color: var(--ink); }
  45%, 100% { color: var(--ink-faint); }
}

/* ---------- Адаптивность ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card-mods, .card-packs-wide { grid-column: span 2; grid-template-columns: 1fr; }
  .card-packs, .card-shaders, .card-versions, .card-launch { grid-column: span 1; }
  .guide-inner { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 680px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .lang-wrap { margin: 0 0 0 auto; }
  .bento { grid-template-columns: 1fr; }
  .card-mods, .card-packs, .card-shaders, .card-versions, .card-launch, .card-packs-wide { grid-column: span 1; }
  .builds { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
  .hero-actions .btn { width: 100%; }
  .cta-wrap { display: block; }
  .guide-art img { width: 100%; max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .window { transform: none; opacity: 1; }
}
