/* ============================================================
   Red Dead Redemption 2 — промо-лендинг
   1. Переменные и базовые стили
   2. Утилиты (контейнер, кнопки, заголовки, карточки)
   3. Шапка и навигация
   4. Первый экран (hero)
   5. Секции: об игре, трейлер, лента, скриншоты, отзывы, CTA
   6. Подвал
   7. Интерактив: лайтбокс, курсор-прицел, зерно
   8. Анимации и адаптив
   ============================================================ */

/* ---------- 1. Переменные и базовые стили ---------- */
:root {
  --bg:           #0c0a08;
  --bg-dark:      #0a0806;
  --bg-card:      #131009;
  --bg-footer:    #080605;
  --red:          #d0231f;
  --red-hover:    #e8443a;
  --cream:        #ede1c8;
  --sand:         #cdbfa3;
  --sand-dim:     #b3a486;
  --muted:        #93855f;
  --muted-dark:   #6f6448;
  --line:         rgba(210, 190, 150, .14);
  --line-soft:    rgba(210, 190, 150, .08);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'PT Serif', Georgia, serif;

  --container:    1240px;
  --gap:          16px;
  --section-pad:  130px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }

blockquote { margin: 0; }

::selection { background: var(--red); color: #f5ead3; }

.accent { color: var(--red); }

/* ---------- 2. Утилиты ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line-soft);
  /* секции ниже первого экрана не рендерятся, пока не доскроллили */
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.section--dark { background: var(--bg-dark); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 52px;
}
.section-head--center {
  display: block;
  text-align: center;
}
.section-head__note {
  margin: 0;
  max-width: 320px;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  text-wrap: pretty;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 5px;
  color: var(--red);
}
.eyebrow--boxed {
  display: inline-block;
  margin: 0;
  padding: 9px 20px 8px;
  border: 1px solid rgba(208, 35, 31, .5);
  letter-spacing: 6px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream);
  text-wrap: balance;
}

.text {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--sand);
  text-wrap: pretty;
}
.text:last-child { margin-bottom: 0; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color .3s ease, transform .18s ease-out;
}
.card:hover { border-color: rgba(208, 35, 31, .55); }
.card--accent {
  border-color: rgba(208, 35, 31, .4);
  background: linear-gradient(180deg, #191008 0%, var(--bg-card) 100%);
}

/* Кнопки */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 3px;
  padding: 19px 42px;
  transition: filter .2s ease, transform .18s ease-out, box-shadow .2s ease,
              border-color .2s ease, color .2s ease;
}
.btn--primary {
  background: var(--red);
  color: #f7ecd4;
  box-shadow: 0 12px 40px rgba(208, 35, 31, .35);
}
.btn--primary:hover {
  color: #f7ecd4;
  filter: brightness(1.15);
  box-shadow: 0 18px 52px rgba(208, 35, 31, .5);
}
.btn--ghost {
  color: var(--cream);
  font-weight: 500;
  padding: 18px 36px;
  border: 1px solid rgba(232, 221, 199, .35);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red-hover); }
.btn--sm { font-size: 13px; letter-spacing: 2.5px; padding: 11px 22px; }
.btn--lg { font-size: 18px; padding: 22px 56px; box-shadow: 0 14px 48px rgba(208, 35, 31, .4); }

/* ---------- 3. Шапка и навигация ---------- */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(208, 35, 31, .7);
  z-index: 60;
  transition: width .12s ease-out;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 8, 6, .9);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(210, 190, 150, .12);
}
.site-header__inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 3px;
  color: var(--cream);
  white-space: nowrap;
}
.logo-text:hover { color: var(--cream); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.5px;
}
.main-nav__link { color: #c4b391; transition: color .25s ease; }
.main-nav__link:hover { color: var(--cream); }
.main-nav__link.is-active { color: var(--red); }

/* ---------- 4. Первый экран ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 90px;
  background:
    radial-gradient(ellipse 120% 70% at 50% 118%, #2a0c08 0%, rgba(42, 12, 8, 0) 60%),
    radial-gradient(ellipse 90% 60% at 50% -10%, #1a1410 0%, rgba(26, 20, 16, 0) 70%),
    var(--bg);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__video {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100vw, 178vh);
  height: max(100vh, 56.4vw);
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: .38;
  filter: saturate(.85) contrast(1.05);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(12, 10, 8, 0) 18%),
    linear-gradient(0deg,   var(--bg) 0%, rgba(12, 10, 8, 0) 20%),
    radial-gradient(ellipse 100% 80% at 50% 45%,
      rgba(12, 10, 8, .25) 0%, rgba(12, 10, 8, .9) 78%, var(--bg) 100%);
}
.hero__glow {
  position: absolute;
  left: 50%; bottom: -18%;
  width: 1100px; height: 480px;
  margin-left: -550px;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(208, 35, 31, .28) 0%, rgba(208, 35, 31, 0) 65%);
  animation: glow-pulse 7s ease-in-out infinite;
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  max-width: 900px;
  will-change: transform, opacity;
}
.hero__logo {
  width: min(680px, 82vw);
  height: auto;
  transition: transform .25s ease-out;
}
.hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 22px;
  line-height: 1.6;
  font-style: italic;
  color: var(--sand);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
}
.specs__item {
  padding: 7px 14px 6px;
  border: 1px solid rgba(210, 190, 150, .18);
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
}
.scroll-hint:hover { color: var(--cream); }
.scroll-hint__arrow { animation: scroll-hint 1.8s ease-in-out infinite; }

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

/* Об игре */
.about {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(320px, 7fr);
  gap: 70px;
  align-items: start;
}
.about .section-title { margin-bottom: 26px; }

.features { display: grid; gap: var(--gap); }
.feature {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px 34px;
}
.feature__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--red);
}
.feature__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cream);
}
.feature__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--sand-dim);
  text-wrap: pretty;
}

/* Трейлер */
.trailer { margin: 0; }
.trailer__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(210, 190, 150, .16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  object-fit: cover;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.trailer__video:hover {
  border-color: rgba(208, 35, 31, .55);
  box-shadow: 0 30px 100px rgba(208, 35, 31, .18);
}
.trailer__caption {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

/* Бегущая лента наград */
.marquee {
  padding: 24px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 4px;
  white-space: nowrap;
  color: var(--muted);
}

/* Скриншоты */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.shot {
  position: relative;
  grid-column: span 4;
  height: 440px;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.shot--wide  { grid-column: span 8; }
.shot--third { grid-column: span 4; height: 300px; }
.shot:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 20px 55px rgba(208, 35, 31, .22);
}
.shot__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.shot:hover .shot__img { transform: scale(1.05); }
.shot__label {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px 5px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--cream);
  background: rgba(12, 10, 8, .78);
  border: 1px solid rgba(210, 190, 150, .2);
  pointer-events: none;
}

/* Отзывы */
.scores,
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.scores { margin-bottom: 18px; }

.score {
  padding: 40px 32px;
  text-align: center;
}
.score__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 76px;
  line-height: 1;
}
.score__source {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--cream);
}
.score__note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}
.testimonial__stars { margin: 0; font-size: 17px; letter-spacing: 4px; }
.star--off { color: #4a3f2c; }
.testimonial__text {
  flex: 1;
  font-size: 16px;
  line-height: 1.65;
  font-style: italic;
  color: var(--sand);
  text-wrap: pretty;
}
.testimonial__author {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
}

.disclaimer {
  margin: 26px 0 0;
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--muted-dark);
}

/* Финальный призыв */
.cta {
  position: relative;
  padding: 150px 0 120px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 110% 90% at 50% 115%, #2a0c08 0%, rgba(42, 12, 8, 0) 62%),
    var(--bg);
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 820px;
}
.cta .eyebrow { margin: 0; letter-spacing: 6px; }
.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 5.5vw, 74px);
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-wrap: balance;
}
.cta__text {
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.7;
  font-style: italic;
  color: var(--sand);
}
.cta__url {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted-dark);
}

/* ---------- 6. Подвал ---------- */
.site-footer {
  padding: 34px 0;
  background: var(--bg-footer);
  border-top: 1px solid rgba(210, 190, 150, .1);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--muted);
}
.site-footer__legal {
  margin: 0;
  max-width: 640px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-dark);
  text-wrap: pretty;
}

/* ---------- 7. Интерактив ---------- */

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(6, 5, 4, .94);
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox[hidden] { display: none; }

.lightbox.is-open { opacity: 1; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid rgba(210, 190, 150, .2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .8);
  transform: scale(.96);
  transition: transform .3s ease;
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__close {
  position: absolute;
  top: 22px; right: 28px;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--cream);
  cursor: pointer;
}
.lightbox__close:hover { color: var(--red); }

/* Курсор-прицел */
.reticle,
.reticle__dot {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  border-radius: 50%;
  transition: opacity .25s ease, border-color .2s ease;
}
.reticle {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(237, 225, 200, .6);
}
.reticle__dot {
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--red);
}
.reticle.is-visible,
.reticle__dot.is-visible { opacity: 1; }
.reticle.is-hot { border-color: var(--red); }

/* Пыль и искры в hero */
.dust { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dust__mote {
  position: absolute;
  border-radius: 50%;
  background: rgba(236, 224, 196, .2);
  animation: dust-float linear infinite;
}
.dust__mote--ember {
  background: rgba(228, 118, 52, .35);
  box-shadow: 0 0 6px rgba(228, 118, 52, .8);
}

/* След от выстрела */
.bullet-burst,
.bullet-hole {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}
.bullet-burst {
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid var(--red);
  z-index: 89;
  animation: shot-burst .45s ease-out forwards;
}
.bullet-hole {
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  z-index: 88;
  background: radial-gradient(circle, #050403 0%, #16100b 55%, rgba(22, 16, 11, 0) 72%);
  box-shadow: inset 0 0 0 1px rgba(210, 190, 150, .18);
  animation: hole-fade 2.2s ease-in forwards;
}

/* Зерно плёнки */
.film-grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: .07;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 8. Анимации ---------- */
@keyframes glow-pulse  { 0%, 100% { opacity: .55 } 50% { opacity: .9 } }
@keyframes scroll-hint { 0%, 100% { transform: translateY(0); opacity: .6 } 50% { transform: translateY(9px); opacity: 1 } }
@keyframes marquee     { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes shot-burst  { from { opacity: .9 } to { transform: scale(4.6); opacity: 0 } }
@keyframes hole-fade   { 0%, 72% { opacity: 1 } 100% { opacity: 0 } }
@keyframes dust-float  {
  0%   { transform: translate3d(0, 0, 0); opacity: 0 }
  8%   { opacity: .9 }
  92%  { opacity: .5 }
  100% { transform: translate3d(-36px, -46vh, 0); opacity: 0 }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px) }
  to   { opacity: 1; transform: none }
}

/* появление элементов первого экрана */
.fade-in { animation: fade-up .85s ease both; }
.fade-in--d1 { animation-delay: .15s; }
.fade-in--d2 { animation-delay: .3s; }
.fade-in--d3 { animation-delay: .45s; }
.fade-in--d4 { animation-delay: .6s; }

/* появление по скроллу (класс навешивает script.js) */
.reveal.is-hidden {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .main-nav__link { display: none; }
}

@media (max-width: 760px) {
  :root { --section-pad: 84px; }
  .container { padding: 0 20px; }
  .hero { padding: 104px 20px 80px; }
  .hero__lead { font-size: 19px; }
  .btn { padding: 16px 28px; font-size: 14px; letter-spacing: 2px; }
  .gallery { grid-template-columns: 1fr; }
  .shot, .shot--wide, .shot--third { grid-column: span 1; height: 260px; }
  .scores, .testimonials { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 22px; }
  .reticle, .reticle__dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
      transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
