/* ============================================================
   Kingdom Come: Deliverance II — промо-лендинг
   Палитра: тёмное дерево, золото, пергамент
   ============================================================ */

:root {
  --bg:            #0d0a07;   /* основной фон */
  --bg-alt:        #14100a;   /* фон чередующихся секций */
  --bg-deep:       #0b0906;   /* подвал */
  --gold:          #c9a35c;   /* золото — акцент */
  --gold-light:    #e8c87e;   /* светлое золото — заголовки цифр */
  --gold-pale:     #f2d68e;   /* градиент кнопок, верх */
  --gold-dark:     #b0853a;   /* градиент кнопок, низ */
  --parchment:     #eadfc6;   /* заголовки */
  --text:          #c7b899;   /* основной текст */
  --text-muted:    #9c8b6e;   /* подписи */
  --blood:         #7e231a;   /* красный акцент (печать Steam) */
  --line:          rgba(201, 163, 92, .22);
  --line-strong:   rgba(201, 163, 92, .45);
  --font-display:  'Forum', Georgia, serif;
  --font-body:     'Alegreya', Georgia, serif;
}

/* ---------- Сброс и базовые стили ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-light); }
::selection { background: rgba(201, 163, 92, .35); color: #f4ead2; }

.container { max-width: 1140px; margin-inline: auto; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 2px;
  transition: filter .2s ease, transform .2s ease, background .2s ease, color .2s ease;
}

.btn--gold {
  color: #1b130a;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold-dark));
  border: 1px solid rgba(255, 238, 196, .5);
  animation: ctaGlow 2.6s ease-in-out infinite;
}
.btn--gold:hover { filter: brightness(1.14); transform: translateY(-2px); color: #140d06; }

.btn--ghost {
  color: var(--parchment);
  border: 1px solid var(--line-strong);
  opacity: .9;
}
.btn--ghost:hover { background: rgba(201, 163, 92, .12); color: #f4ead2; }

.btn--sm { font-size: 14px; padding: 11px 22px; }
.btn--lg { font-size: 20px; padding: 21px 48px; }
.btn--xl { font-size: 21px; padding: 22px 54px; }

.btn__icon { font-size: .85em; }
.btn__icon--play { color: var(--gold); }

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 28px;
  background: rgba(13, 10, 7, .94);
  border-bottom: 1px solid var(--line);
}

.header__logo img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.nav__link {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.nav__link:hover { color: var(--gold-light); }
.nav__link.is-active { color: var(--gold-light); border-bottom-color: var(--gold); }

/* Полоса прогресса прокрутки */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 70;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #a87e35, var(--gold-light));
  box-shadow: 0 0 10px rgba(232, 200, 126, .55);
}

/* ---------- Главный экран ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 24px 100px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08);
  will-change: transform;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13, 10, 7, .42),
    rgba(13, 10, 7, 0) 38%,
    rgba(13, 10, 7, .5) 84%,
    var(--bg) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1s ease both;
}

.hero__logo {
  width: min(560px, 84vw);
  height: auto;
  filter: drop-shadow(0 14px 44px rgba(0, 0, 0, .75));
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: .04em;
  color: var(--parchment);
  margin: 34px 0 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .75);
}

.hero__lead {
  max-width: 620px;
  margin: 14px 0 0;
  font-size: 19px;
  font-style: italic;
  color: #b3a385;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .8);
}

.hero__actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }

.hero__note {
  margin: 16px 0 0;
  font-size: 14px;
  color: #d8c9a8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  font-size: 26px;
  animation: bob 2.2s ease-in-out infinite;
}

/* Оценки под кнопками */
.scores { display: flex; gap: 44px; margin-top: 52px; flex-wrap: wrap; justify-content: center; }
.scores__item { display: flex; flex-direction: column; gap: 4px; }
.scores__value { font-family: var(--font-display); font-size: 24px; color: var(--gold-light); }
.scores__label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); }

/* Летящие искры (наполняются из JS) */
.embers { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.ember {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: #f0c377;
  opacity: 0;
  animation-name: emberRise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ---------- Секции ---------- */

.section { padding: 110px 24px; scroll-margin-top: 70px; }
.section--alt { background: var(--bg-alt); border-block: 1px solid rgba(201, 163, 92, .12); }

.section__head { text-align: center; }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.15;
  color: var(--parchment);
  margin: 16px 0 0;
}

.section__sub { margin: 12px 0 0; font-size: 16px; font-style: italic; color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.eyebrow--gold { color: var(--gold); }

.text { margin: 18px 0 0; }
.text:first-of-type { margin-top: 0; }

.dropcap {
  float: left;
  font-family: var(--font-display);
  font-size: 62px;
  line-height: .8;
  color: var(--gold);
  padding: 8px 10px 0 0;
}

.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.divider__line { height: 1px; width: 90px; background: linear-gradient(90deg, rgba(201, 163, 92, .6), transparent); }
.divider__mark { color: var(--gold); font-size: 13px; }

.grid { display: grid; gap: 52px; align-items: center; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.tags { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--text);
  border: 1px solid rgba(201, 163, 92, .3);
  background: rgba(201, 163, 92, .05);
  padding: 8px 16px;
}

/* Рамка вокруг изображения */
.figure {
  margin: 0;
  border: 1px solid rgba(201, 163, 92, .35);
  background: rgba(201, 163, 92, .05);
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  transition: transform .5s ease;
}
.figure__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.figure__caption { margin-top: 12px; font-size: 14px; font-style: italic; color: var(--text-muted); text-align: center; }

/* Счётчики */
.stats {
  margin-top: 90px;
  padding: 38px 20px;
  border-block: 1px solid rgba(201, 163, 92, .16);
  background: rgba(201, 163, 92, .03);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  text-align: center;
}
.stats__value { display: block; font-family: var(--font-display); font-size: 46px; color: var(--gold-light); }
.stats__label { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Видеоплеер ---------- */

.player {
  position: relative;
  max-width: 980px;
  margin: 44px auto 0;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(201, 163, 92, .35);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.player__poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.player__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.player__poster::after { content: ''; position: absolute; inset: 0; background: rgba(13, 10, 7, .38); }

.player__play {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(13, 10, 7, .55);
  display: grid;
  place-items: center;
  transition: transform .25s ease, background .25s ease;
}
.player__play::before {
  content: '';
  border-left: 26px solid var(--parchment);
  border-block: 16px solid transparent;
  margin-left: 7px;
}
.player__poster:hover .player__play { transform: scale(1.08); background: rgba(201, 163, 92, .18); }

.player__label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--parchment);
}

.player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---------- Вкладки ---------- */

.tabs { margin-top: 42px; }

.tabs__bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tabs__bar--center { margin-bottom: 34px; }

.tabs__btn {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(201, 163, 92, .04);
  color: var(--text-muted);
  cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.tabs__btn:hover { color: var(--parchment); }
.tabs__btn.is-active { color: var(--parchment); background: rgba(201, 163, 92, .14); border-color: var(--gold); }

.tabs__panel { margin-top: 48px; }
.tabs__panel.is-active { animation: fadeUp .55s ease both; }

.feature__title { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--parchment); margin: 0 0 18px; }

.bullets { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.bullets li { display: flex; gap: 12px; font-size: 17px; }
.bullets li::before { content: '✦'; color: var(--gold); font-size: 12px; line-height: 1.7; }

/* ---------- Галерея ---------- */

.gallery {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery__item {
  border: 1px solid rgba(201, 163, 92, .28);
  background: rgba(201, 163, 92, .04);
  padding: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .5s ease, border-color .25s ease;
}
.gallery__item:hover { border-color: var(--line-strong); }
.gallery__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide img { aspect-ratio: auto; height: 100%; }

/* Баннер-призыв внутри секции */
.cta-bar {
  margin-top: 64px;
  padding: 34px 40px;
  border: 1px solid rgba(201, 163, 92, .4);
  background: linear-gradient(115deg, rgba(201, 163, 92, .1), rgba(126, 35, 26, .12) 60%, rgba(201, 163, 92, .08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 880px;
}
.cta-bar__title { font-family: var(--font-display); font-size: 26px; color: var(--parchment); margin: 0; }
.cta-bar__text { margin: 6px 0 0; font-size: 16px; font-style: italic; color: #b3a385; }

/* ---------- Отзывы ---------- */

.verdict { margin-top: 48px; display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }

.verdict__score {
  border: 1px solid rgba(201, 163, 92, .35);
  background: rgba(201, 163, 92, .05);
  padding: 30px 48px;
  text-align: center;
}
.verdict__number { display: block; font-family: var(--font-display); font-size: 88px; line-height: 1; color: var(--gold-light); }
.verdict__caption { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); }

.verdict__stamp {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #96301f, #5c150d 70%);
  border: 3px solid rgba(0, 0, 0, .4);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5), inset 0 2px 8px rgba(255, 255, 255, .12);
  rotate: -6deg;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 18px;
}
.verdict__stampText { font-family: var(--font-display); font-size: 17px; letter-spacing: .08em; line-height: 1.3; color: #f0dcc0; }
.verdict__stampSub { margin-top: 8px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: rgba(240, 220, 192, .75); }

.reviews {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.review {
  border: 1px solid var(--line);
  background: rgba(201, 163, 92, .03);
  padding: 28px;
  transition: border-color .25s ease, transform .25s ease;
}
.review:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.review__score { font-family: var(--font-display); font-size: 30px; color: var(--gold-light); margin: 0; }
.review__quote { margin: 14px 0 0; font-size: 17px; font-style: italic; line-height: 1.6; color: #d8c9a8; }
.review__source { margin: 16px 0 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Системные требования ---------- */

.specs { max-width: 780px; margin: 36px auto 0; }

.specs__table {
  width: 100%;
  border: 1px solid rgba(201, 163, 92, .28);
  background: rgba(201, 163, 92, .04);
  border-collapse: collapse;
}
.specs__table tr + tr { border-top: 1px solid rgba(201, 163, 92, .14); }
.specs__table th,
.specs__table td { padding: 18px 30px; }
.specs__table th {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}
.specs__table td { font-size: 17px; color: var(--parchment); text-align: right; }

.specs__note { margin-top: 18px; font-size: 14px; font-style: italic; color: var(--text-muted); text-align: center; }

/* ---------- Финальный призыв ---------- */

.download {
  padding: 130px 24px;
  text-align: center;
  background:
    radial-gradient(900px 460px at 50% 0%, rgba(201, 163, 92, .14), rgba(201, 163, 92, 0) 60%),
    radial-gradient(1400px 700px at 50% 120%, rgba(126, 35, 26, .3), rgba(0, 0, 0, 0) 55%),
    var(--bg);
}
.download__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.6vw, 56px); color: var(--parchment); margin: 18px 0 0; }
.download__lead { max-width: 560px; margin: 14px auto 38px; font-size: 18px; font-style: italic; color: var(--text-muted); }
.download__note { margin-top: 18px; font-size: 14px; color: var(--text-muted); }

/* ---------- Подвал ---------- */

.footer { padding: 44px 24px 36px; text-align: center; background: var(--bg-deep); border-top: 1px solid rgba(201, 163, 92, .16); }
.footer__logo { height: 56px; width: auto; margin-inline: auto; opacity: .9; }
.footer__meta { margin: 18px 0 0; font-family: var(--font-display); font-size: 14px; letter-spacing: .1em; color: var(--text-muted); }
.footer__legal { margin: 22px 0 0; font-size: 12.5px; line-height: 1.6; color: #6d6049; }

/* ---------- Кнопка «наверх» ---------- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 65;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--gold-light);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(13, 10, 7, .85);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, background .25s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: rgba(201, 163, 92, .22); }

/* ---------- Лайтбокс ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(8, 6, 4, .93);
  animation: fadeIn .25s ease both;
}
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: 100%; max-height: 100%; border: 1px solid var(--line-strong); }
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  color: var(--parchment);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(201, 163, 92, .18); }

/* ---------- Появление блоков при прокрутке ---------- */

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Анимации ---------- */

@keyframes fadeUp   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob      { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(8px); opacity: 1; } }
@keyframes emberRise {
  0%   { transform: translate3d(0, 0, 0);                 opacity: 0; }
  8%   { opacity: .9; }
  55%  { opacity: .6; }
  100% { transform: translate3d(var(--drift, 40px), -108vh, 0); opacity: 0; }
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 6px 22px rgba(0, 0, 0, .5), 0 0 0 rgba(232, 200, 126, 0); }
  50%      { box-shadow: 0 6px 26px rgba(0, 0, 0, .55), 0 0 34px rgba(232, 200, 126, .45); }
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .header { padding: 10px 16px; }
  .nav { gap: 16px; order: 3; width: 100%; justify-content: center; }
  .section { padding: 80px 20px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--wide { grid-column: span 2; grid-row: auto; }
  .gallery__item--wide img { aspect-ratio: 16 / 10; }
  .specs__table th, .specs__table td { padding: 14px 18px; }
  .specs__table td { font-size: 16px; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .scores { gap: 24px; }
  .cta-bar { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
