/* ==========================================================================
   RimWorld — промо-лендинг
   1. Переменные и база
   2. Типовые элементы (кнопки, карточки, заголовки секций)
   3. Шапка и навигация
   4. Первый экран
   5. Бегущая строка
   6. Рассказчики
   7. Об игре
   8. Генератор колонистов
   9. Скриншоты
  10. Отзывы
  11. Дополнения
  12. Финальный призыв
  13. Подвал
  14. Модальные окна
  15. Анимации и адаптив
   ========================================================================== */

/* ============ 1. Переменные и база ============ */
@import url("../fonts/fonts.css");

:root {
  /* Цвета взяты из палитры игры: земля, песок, ржавчина */
  --bg:            #0d0b08;
  --bg-tinted:     #100d0a;
  --bg-card:       #16120d;
  --bg-inset:      #100d09;
  --line:          #2e2718;
  --line-soft:     #241e13;
  --gold:          #c9a35f;
  --gold-light:    #e6c886;
  --ink:           #eee1c0;
  --text:          #a8977a;
  --text-dim:      #8a7c63;
  --text-faint:    #6f6350;
  --rust:          #e0793c;
  --rust-dark:     #b03d1d;

  --radius:        10px;
  --radius-lg:     12px;
  --container:     1160px;
  --header-h:      60px;

  --font-body:     Manrope, "Segoe UI", Arial, sans-serif;
  --font-display:  "Russo One", Manrope, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: #b3a385;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-light); }
::selection { background: var(--gold); color: #14110c; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.center { display: flex; justify-content: center; }

/* Полоса прогресса прокрутки */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  z-index: 70;
  background: linear-gradient(90deg, var(--gold), var(--rust));
  box-shadow: 0 0 8px rgba(224, 121, 60, .6);
}

/* ============ 2. Типовые элементы ============ */

/* -- Кнопки -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  transition: filter .25s, transform .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(180deg, var(--rust), var(--rust-dark));
  border-color: rgba(245, 170, 110, .45);
  color: #fff8ee;
  animation: emberPulse 3.5s ease-in-out infinite;
}
.btn--primary:hover { filter: brightness(1.1); color: #fff; }

.btn--ghost {
  background: rgba(201, 163, 95, .08);
  border-color: rgba(201, 163, 95, .4);
  color: var(--gold-light);
}
.btn--ghost:hover { background: rgba(201, 163, 95, .18); }

.btn--sm  { padding: 9px 18px;  font-size: 13px; font-weight: 700; letter-spacing: .05em; border-radius: 7px; }
.btn--lg  { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; padding: 15px 24px; font-size: 15px; }

.btn__arrow { font-size: 14px; opacity: .85; }
.btn__play  { font-size: 11px; }
.btn__dice  { font-size: 17px; }

/* -- Заголовки секций -- */
.section { padding: 90px 0; }
.section--tinted {
  background: var(--bg-tinted);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
/* Нижние секции рендерятся только при подходе к ним */
.section--deferred {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }

.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  margin-bottom: 32px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}
.section__title--sm { font-size: clamp(26px, 3.2vw, 38px); }
.section__lead {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
}
.section__hint { font-size: 13px; color: var(--text-dim); }

.eyebrow {
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}

/* -- Карточка -- */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.card__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* -- Сетки -- */
.grid { display: grid; gap: 18px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--dlc   { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  align-items: start;
}
.two-col--stretch { gap: 20px; align-items: stretch; }

/* -- Метки-таблетки -- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  border: 1px solid rgba(201, 163, 95, .35);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============ 3. Шапка и навигация ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(11, 9, 6, .74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 163, 95, .14);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  max-width: 1200px;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 20px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav__link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #b3a385;
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--gold-light); }

/* ============ 4. Первый экран ============ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 150px 24px 110px;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 8, 5, .82) 0%, rgba(10, 8, 5, .55) 34%,
    rgba(13, 11, 8, .78) 74%, var(--bg) 100%);
}
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, transparent 40%, rgba(5, 4, 2, .55) 100%);
}
.hero__scanlines {
  position: absolute; inset: 0;
  opacity: .14;
  background: repeating-linear-gradient(0deg,
    rgba(0, 0, 0, .5) 0 1px, transparent 1px 3px);
}
.hero__dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  text-align: center;
}
.hero__logo {
  width: min(580px, 84vw);
  height: auto;
  filter: drop-shadow(0 14px 44px rgba(0, 0, 0, .7));
  animation: floatY 7s ease-in-out infinite;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}
.hero__lead {
  max-width: 640px;
  font-size: 16.5px;
  line-height: 1.65;
  color: #b9aa8a;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.badge {
  border: 1px solid rgba(201, 163, 95, .28);
  background: rgba(14, 11, 8, .6);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: #d8c69c;
}

.hero__cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__cue-arrow { font-size: 13px; animation: scrollCue 1.8s ease-in-out infinite; }

/* Лента входящих событий */
.incidents {
  position: absolute;
  top: 50%; right: 36px;
  transform: translateY(-50%);
  z-index: 3;
  width: 252px;
}
.incidents__title {
  margin-bottom: 10px;
  padding-right: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: right;
  color: var(--text-dim);
}
.incidents__list { display: flex; flex-direction: column; gap: 10px; }
.incident {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(12, 9, 7, .8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 163, 95, .45);
  border-radius: 8px;
  padding: 10px 14px;
  transition: transform .25s;
}
.incident:hover { transform: translateX(-5px); }
.incident.is-new { animation: slideIn .5s ease both; }
/* Конвертик-иконка события */
.incident__envelope {
  position: relative;
  flex-shrink: 0;
  width: 30px; height: 22px;
  border-radius: 3px;
}
.incident__envelope::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 10px solid rgba(0, 0, 0, .28);
}
.incident__kind {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.incident__label { font-size: 13.5px; font-weight: 700; color: #e6dabc; }

/* Типы событий: угроза / нейтральное / удача */
.incident--threat  { border-color: rgba(224, 105, 70, .45); }
.incident--threat  .incident__kind { color: #e08563; }
.incident--threat  .incident__envelope { background: #a34527; }
.incident--neutral { border-color: rgba(201, 163, 95, .45); }
.incident--neutral .incident__kind { color: #dcb96a; }
.incident--neutral .incident__envelope { background: #96702c; }
.incident--luck    { border-color: rgba(125, 170, 195, .45); }
.incident--luck    .incident__kind { color: #9fc3d6; }
.incident--luck    .incident__envelope { background: #3f6b85; }

/* ============ 5. Бегущая строка ============ */
.marquee {
  overflow: hidden;
  padding: 13px 0;
  background: #0f0c09;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track:hover { animation-play-state: paused; }
.marquee__group {
  display: flex;
  gap: 34px;
  padding-right: 34px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.marquee__star { color: var(--gold); }

/* ============ 6. Рассказчики ============ */
.picker { display: flex; flex-direction: column; gap: 14px; }
.picker__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color .3s, transform .3s, background .3s;
}
.picker__option:hover { border-color: rgba(201, 163, 95, .5); transform: translateX(4px); }
.picker__option.is-active {
  border-color: rgba(201, 163, 95, .55);
  background: rgba(201, 163, 95, .06);
}
.picker__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 19px;
}
.picker__name { font-size: 16px; font-weight: 800; color: var(--ink); }
.picker__sub  { margin-top: 2px; font-size: 13px; color: var(--text-dim); }
.picker__note { padding: 4px 6px; font-size: 13px; line-height: 1.6; color: #7d7159; }

.storyteller { padding: 30px 32px; min-height: 340px; }
.storyteller__name {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
}
.storyteller__desc {
  min-height: 80px;
  margin-bottom: 20px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}
.storyteller .chips { margin-bottom: 26px; }
.storyteller .card__label + .chart,
.storyteller .card__label { margin-bottom: 8px; }

.chart {
  margin: 0;
  padding: 14px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.chart__svg { display: block; width: 100%; height: 110px; }
.chart__grid { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.chart__line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 620;
}
.chart__line.is-drawing { animation: drawLine 1.2s ease both; }
.chart__dot { fill: var(--gold-light); }
.chart__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============ 7. Об игре ============ */
.feature { transition: border-color .3s, transform .3s; }
.feature:hover { border-color: rgba(201, 163, 95, .4); transform: translateY(-3px); }
.feature__icon {
  width: 22px; height: 22px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.feature__icon .is-filled { fill: var(--gold); stroke: none; }
.feature__title { margin-bottom: 8px; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.feature__text  { font-size: 14.5px; line-height: 1.65; color: var(--text); }

.video-frame {
  position: relative;
  margin: 18px 0 0;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-frame__video { display: block; width: 100%; height: auto; }
.video-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 24px 16px;
  background: linear-gradient(180deg, transparent, rgba(8, 6, 4, .85));
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #d8c69c;
}
.video-frame + .center { margin-top: 28px; }

/* ============ 8. Генератор колонистов ============ */
.notes { display: flex; flex-direction: column; gap: 22px; }
.notes__item { display: flex; gap: 16px; align-items: flex-start; }
.notes__mark { color: var(--gold); font-size: 16px; line-height: 1.4; }
.notes__title { margin-bottom: 4px; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.notes__text  { font-size: 14px; line-height: 1.6; color: var(--text); }
.notes__footnote { font-size: 13px; line-height: 1.6; color: #7d7159; }

.colonist { padding: 28px; }
.colonist__body.is-fresh { animation: fadeIn .4s ease both; }
.colonist__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.colonist__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 22px;
  color: #17120a;
}
.colonist__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
}
.colonist__meta { margin-top: 3px; font-size: 13px; color: var(--text-dim); }
.colonist .chips { margin-bottom: 22px; }

.skills { display: flex; flex-direction: column; gap: 13px; margin-bottom: 22px; }
.skill__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #d8c69c;
}
.skill__passion { color: var(--rust); }
.skill__value { font-size: 12px; color: var(--text-dim); }
.skill__track { height: 7px; border-radius: 99px; background: #241d12; overflow: hidden; }
.skill__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), #e0be7a);
  transition: width .7s cubic-bezier(.2, .7, .2, 1);
}

.forecast {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 18px;
  border-top: 1px solid #241d12;
}
.forecast__value {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
}
.forecast__text { font-size: 13px; line-height: 1.55; color: var(--text); }
.forecast__text b { color: #d8c69c; }

/* ============ 9. Скриншоты ============ */
.gallery {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery__image {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .6s ease;
}
.gallery__image:hover { transform: scale(1.025); }
.gallery__image.is-fresh { animation: fadeIn .45s ease both; }

.gallery__nav,
.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: rgba(10, 8, 6, .72);
  border: 1px solid rgba(201, 163, 95, .4);
  color: var(--gold-light);
  font-size: 17px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .25s;
}
.gallery__nav:hover,
.modal__nav:hover { background: rgba(201, 163, 95, .25); }
.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }

.gallery__counter,
.modal__counter {
  position: absolute;
  right: 18px; bottom: 14px;
  padding: 5px 12px;
  background: rgba(10, 8, 6, .72);
  border: 1px solid rgba(201, 163, 95, .3);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #d8c69c;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #1a150f;
  cursor: pointer;
  transition: transform .25s;
}
.thumb:hover { transform: translateY(-3px); }
.thumb img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
  transition: opacity .25s;
}
.thumb:hover img,
.thumb.is-active img { opacity: 1; }
.thumb.is-active::after {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid var(--gold);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5);
}

/* ============ 10. Отзывы ============ */
.rating { display: flex; flex-direction: column; gap: 18px; padding: 30px; }
.rating__verdict {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  color: var(--gold);
}
.meter__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #d8c69c;
}
.meter__track { height: 9px; border-radius: 99px; background: #241d12; overflow: hidden; }
.meter__fill  { height: 100%; background: linear-gradient(90deg, var(--gold), #e0be7a); }
.rating__note { font-size: 13.5px; line-height: 1.6; color: var(--text); }
.rating__metacritic {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #241d12;
  font-size: 14px;
  color: var(--ink);
}
.rating__metacritic small { font-size: 12.5px; font-weight: 400; color: var(--text-dim); }
.rating__score {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 8px;
  background: #22211c;
  border: 1px solid #3a382f;
  font-family: var(--font-display);
  font-size: 18px;
  color: #e8e3d3;
}

.quotes { display: flex; flex-direction: column; gap: 16px; }
.quote {
  flex: 1;
  padding: 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .3s, transform .3s;
}
.quote:hover { border-color: rgba(201, 163, 95, .4); transform: translateY(-3px); }
.quote__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.quote__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 15px;
  color: #f0e6cc;
}
.quote__name { font-size: 14px; font-weight: 800; color: var(--ink); }
.quote__meta { font-size: 12px; color: var(--text-dim); }
.quote__recommend { color: var(--gold); }
.quote__text { font-size: 15px; line-height: 1.65; color: #b9aa8a; }

.disclaimer { margin-top: 18px; font-size: 12px; color: var(--text-faint); }

/* ============ 11. Дополнения ============ */
.dlc {
  display: block;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s;
}
.dlc:hover { border-color: rgba(201, 163, 95, .45); transform: translateY(-3px); }
.dlc__year  { margin-bottom: 10px; font-family: var(--font-display); font-size: 12px; color: var(--gold); }
.dlc__title { margin-bottom: 6px; font-size: 16px; font-weight: 800; color: var(--ink); }
.dlc__desc  { font-size: 13px; line-height: 1.55; color: var(--text-dim); }

/* ============ 12. Финальный призыв ============ */
.buy {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.buy__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(5px) brightness(.3);
  transform: scale(1.12);
}
.buy__shade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 45%, rgba(13, 11, 8, .2), rgba(13, 11, 8, .94));
}
.buy__dust { position: absolute; inset: 0; pointer-events: none; }
.buy__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 900px;
  padding: 120px 24px 90px;
  text-align: center;
}
.buy__icon {
  width: 58px; height: 58px;
  border-radius: 13px;
  border: 1px solid rgba(201, 163, 95, .3);
  animation: floatY 6s ease-in-out infinite;
}
.buy__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.buy__lead { max-width: 560px; font-size: 16px; line-height: 1.65; color: #b9aa8a; }

.sysreq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 760px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(201, 163, 95, .18);
  text-align: left;
}
.sysreq__os {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--gold);
}
.sysreq__lines { font-size: 13px; line-height: 1.8; color: var(--text); }

/* ============ 13. Подвал ============ */
.site-footer { background: #0b0906; border-top: 1px solid var(--line-soft); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 34px;
  padding-bottom: 24px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.site-footer__inner img { height: 16px; width: auto; opacity: .85; }
.site-footer__legal { padding-bottom: 30px; font-size: 11.5px; line-height: 1.6; color: #57503f; }

/* ============ 14. Модальные окна ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(5, 4, 2, .9);
  backdrop-filter: blur(8px);
  animation: fadeIn .25s both;
}
.modal[hidden] { display: none; }
.modal__frame {
  position: relative;
  width: min(1040px, 96vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(201, 163, 95, .35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
  animation: zoomIn .3s ease both;
}
.modal__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__image {
  max-width: 94vw;
  max-height: 88vh;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 163, 95, .3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .75);
  animation: zoomIn .25s ease both;
}
.modal__nav { width: 50px; height: 50px; font-size: 19px; background: rgba(22, 18, 13, .9); }
.modal__nav--prev { left: 26px; }
.modal__nav--next { right: 26px; }
.modal__close {
  position: absolute;
  top: 22px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(22, 18, 13, .9);
  border: 1px solid rgba(201, 163, 95, .4);
  color: var(--gold-light);
  font-size: 17px;
  cursor: pointer;
  transition: background .25s;
}
.modal__close:hover { background: rgba(201, 163, 95, .25); }
.modal__counter { right: auto; left: 50%; bottom: 24px; transform: translateX(-50%); }

/* ============ 15. Анимации и адаптив ============ */

/* Появление блоков при прокрутке (классы ставит main.js) */
.is-hidden {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.is-shown { opacity: 1; transform: none; }

/* Подсветка, следующая за курсором (js-spotlight) */
.spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}

/* Тлеющие частицы */
.dust-mote {
  position: absolute;
  bottom: -10px;
  border-radius: 99px;
  animation: dust linear infinite;
}

@keyframes floatY    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes marquee   { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn    { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes slideIn   { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes drawLine  { from { stroke-dashoffset: 620; } to { stroke-dashoffset: 0; } }
@keyframes scrollCue { 0%, 100% { transform: translateY(0); opacity: .85; } 50% { transform: translateY(9px); opacity: .35; } }
@keyframes emberPulse{ 0%, 100% { box-shadow: 0 8px 30px rgba(196, 86, 32, .35); } 50% { box-shadow: 0 8px 42px rgba(220, 110, 45, .55); } }
@keyframes dust      { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .15; } 100% { transform: translateY(-82vh); opacity: 0; } }

/* -- Планшеты -- */
@media (max-width: 1199px) {
  .incidents { display: none; }
}

/* -- Мобильные -- */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .section { padding: 70px 0; }
  .hero { padding: 120px 20px 90px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .buy__content { padding: 90px 20px 70px; }
  .modal__nav--prev { left: 10px; }
  .modal__nav--next { right: 10px; }
}

@media (max-width: 520px) {
  .btn--lg { padding: 14px 22px; font-size: 15px; }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .card, .rating, .colonist, .storyteller { padding: 22px; }
}

/* -- Уважаем системную настройку «меньше движения» -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
