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

/* ---------- 1. Переменные и база ---------- */
:root {
  --bg:            #0A0C0B;
  --bg-alt:        #0D100E;
  --surface:       #121513;
  --text:          #EDEEE8;
  --text-muted:    #C7CCC3;
  --text-dim:      #98A096;
  --accent:        #EFC13B;
  --accent-rgb:    239, 193, 59;
  --teal:          #2EC4B6;
  --line:          rgba(237, 238, 232, 0.10);
  --line-strong:   rgba(237, 238, 232, 0.25);

  --font-display: 'Russo One', 'Arial Black', sans-serif;
  --font-body:    'Manrope', 'Helvetica Neue', Helvetica, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --container: 1180px;
  --radius:    12px;
  --header-h:  68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3 { font-weight: 400; margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

::selection { background: rgba(var(--accent-rgb), 0.35); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus { left: 16px; top: 16px; color: var(--bg); }


/* ---------- 2. Типовые элементы ---------- */
.section { padding: 100px 0; }

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(237, 238, 232, 0.07);
  border-bottom: 1px solid rgba(237, 238, 232, 0.07);
}

.section__head { margin-bottom: 42px; }

.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section__num {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mono-note {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.6;
  color: var(--text-dim);
}

.mono-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.13);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--accent { border-color: rgba(var(--accent-rgb), 0.4); color: var(--accent); }
.tag--solid  { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 10px 40px rgba(var(--accent-rgb), 0.3);
}
.btn--primary:hover { filter: brightness(1.08); color: var(--bg); }

.btn--ghost {
  background: rgba(10, 12, 11, 0.4);
  border-color: rgba(237, 238, 232, 0.28);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); color: var(--text); }

.btn--sm { padding: 10px 16px; font-size: 12px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--xl { padding: 21px 44px; font-size: 19px; }


/* ---------- 3. Шапка и навигация ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 12, 11, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(237, 238, 232, 0.08);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo__img { height: 34px; width: auto; }

.logo__tag {
  padding: 3px 6px;
  border: 1px solid rgba(237, 238, 232, 0.18);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

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

.nav__list { display: flex; align-items: center; gap: 4px; }

.nav__link {
  display: block;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.nav__link:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}


/* ---------- 4. Герой ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 94vh;
  padding: 100px 28px 70px;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; background: var(--bg); }

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 12, 11, 0.72) 0%,
    rgba(10, 12, 11, 0.30) 42%,
    rgba(10, 12, 11, 0.80) 78%,
    var(--bg) 100%);
}

.hero__glow {
  position: absolute;
  width: 58vw;
  height: 58vw;
  pointer-events: none;
}
.hero__glow--left {
  left: -12%;
  top: -18%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.10), transparent 70%);
  animation: drift-a 18s ease-in-out infinite alternate;
}
.hero__glow--right {
  right: -14%;
  bottom: -22%;
  background: radial-gradient(closest-side, rgba(46, 196, 182, 0.09), transparent 70%);
  animation: drift-b 22s ease-in-out infinite alternate;
}

.hero__dust { position: absolute; inset: 0; pointer-events: none; }

.hero__dust span {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.55);
  animation: float-up 9s ease-in-out infinite;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: min(980px, 100%);
  text-align: center;
}

.hero__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__title { margin: 6px 0 0; line-height: 0; }

.hero__logo {
  width: min(640px, 88%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 60px rgba(46, 196, 182, 0.35));
}

.hero__lead {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

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

.hero__platforms {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}
.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll-arrow {
  font-size: 16px;
  color: var(--text-dim);
  animation: bob 1.8s ease-in-out infinite;
}


/* ---------- 5. Бегущая строка ---------- */
.marquee {
  background: var(--accent);
  padding: 12px 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__text {
  margin: 0;
  padding-right: 56px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg);
}


/* ---------- 6. Трейлер ---------- */
.player {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.player__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-alt);
  cursor: pointer;
}

.player__poster { width: 100%; height: 100%; object-fit: cover; }

.player__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 11, 0.1), rgba(10, 12, 11, 0.55));
}

.player__button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent);
  color: rgba(var(--accent-rgb), 0.5);
  animation: pulse 2.2s ease-out infinite;
}
.player__button::after {
  content: '';
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 24px solid var(--bg);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.player__hint {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(237, 238, 232, 0.85);
}

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

.player__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 14px auto 0;
}
.player__meta .mono-note { margin: 0; }


/* ---------- 7. Об игре ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: start;
}

.about__text p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

.specs-list { border-top: 1px solid var(--line); margin-top: 28px; }

.specs-list__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.specs-list dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 2px;
}

.specs-list dd { font-size: 14px; color: var(--text); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stat {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  color: var(--accent);
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-dim);
}


/* ---------- 8. Особенности (табы) ---------- */
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(237, 238, 232, 0.12);
  margin-bottom: 40px;
}

.tabs__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.tabs__btn-num { font-family: var(--font-mono); font-size: 10px; opacity: 0.7; }

.tabs__panel[hidden] { display: none; }

.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
  animation: fade-in 0.45s ease both;
}

.feature__title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
}

.feature__desc {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

.feature__list { display: flex; flex-direction: column; gap: 10px; }

.feature__list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
.feature__list li::before { content: '+ '; color: var(--accent); }

.feature__media {
  position: relative;
  height: 360px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
}

.feature__video { width: 100%; height: 100%; object-fit: cover; }

.feature__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(10, 12, 11, 0.65);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(237, 238, 232, 0.8);
}


/* ---------- 9. Скриншоты и лайтбокс ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery__item--wide { grid-column: span 2; grid-row: span 2; }

.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.25s ease;
}
.gallery__btn:hover { border-color: rgba(var(--accent-rgb), 0.5); }

.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.5s ease;
}
.gallery__item--wide .gallery__btn img { aspect-ratio: auto; }
.gallery__btn:hover img { transform: scale(1.04); }

.gallery__num {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(10, 12, 11, 0.65);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(237, 238, 232, 0.8);
}

.gallery__note { margin-top: 18px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5vh 4vw;
  background: rgba(6, 8, 7, 0.94);
  backdrop-filter: blur(6px);
  animation: fade-in 0.25s ease;
}
.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.lightbox__close,
.lightbox__nav {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 12, 11, 0.6);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--accent); color: var(--accent); }

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
}


/* ---------- 10. Отзывы ---------- */
.score {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.score__value {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  color: var(--accent);
}

.score__body { display: flex; flex-direction: column; gap: 10px; }
.score__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.score__note { margin: 0; font-size: 14px; color: var(--text-dim); }

.reviews {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.reviews__row {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-right: 18px;
}
.reviews__row--left  { animation: marquee 52s linear infinite; }
.reviews__row--right { animation: marquee 60s linear infinite reverse; margin-top: 18px; }
.reviews:hover .reviews__row { animation-play-state: paused; }

.review {
  flex: 0 0 390px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review__stars {
  margin: 0;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
}

.review__text {
  margin: 12px 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #D9DDD5;
  text-wrap: pretty;
}
.review__text::before { content: '«'; }
.review__text::after  { content: '»'; }

.review__author {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}


/* ---------- 11. Требования ---------- */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.specs__card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.specs__card--accent { border-color: rgba(var(--accent-rgb), 0.4); }

.specs__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.specs__card-title {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.5px;
}

.specs__card .specs-list { margin-top: 10px; }
.specs__card .specs-list__row { grid-template-columns: 110px 1fr; }


/* ---------- 12. Финальный призыв и футер ---------- */
.cta {
  position: relative;
  padding: 130px 28px;
  text-align: center;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.14), transparent 72%);
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cta__lead {
  max-width: 560px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

.cta__stores { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }

.cta__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer {
  border-top: 1px solid rgba(237, 238, 232, 0.08);
  padding: 36px 0 44px;
}

.footer__inner { display: flex; flex-direction: column; gap: 20px; }

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__logo { height: 26px; width: auto; opacity: 0.9; }

.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer__legal {
  max-width: 920px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
}


/* ---------- 13. Анимации ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0);   opacity: 0.45; }
  50%      { transform: translateY(8px); opacity: 1; }
}

@keyframes pulse {
  0%        { box-shadow: 0 0 0 0 currentColor; }
  70%, 100% { box-shadow: 0 0 0 26px rgba(0, 0, 0, 0); }
}

@keyframes float-up {
  0%, 100% { transform: translateY(0);      opacity: 0.15; }
  50%      { transform: translateY(-30px);  opacity: 0.85; }
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 30px) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.06); }
  to   { transform: translate(-50px, -24px) scale(1); }
}

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


/* ---------- 14. Адаптив ---------- */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; grid-row: auto; }
  .gallery__item--wide .gallery__btn img { aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 28px 24px;
    background: rgba(10, 12, 11, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 12px 4px; font-size: 14px; border-bottom: 1px solid var(--line); }

  .section { padding: 72px 0; }
  .hero { min-height: 88vh; padding-top: 80px; }
  .hero__lead { font-size: 16px; }
  .about { gap: 36px; }
  .feature { gap: 32px; }
  .feature__media { height: 260px; }
  .cta { padding: 96px 28px; }
}

@media (max-width: 620px) {
  .container, .site-header__inner { padding: 0 18px; }
  .site-header__inner { padding: 12px 18px; }

  .hero { padding: 72px 18px 56px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .badge { font-size: 10px; letter-spacing: 1.5px; }

  .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
  .review { flex-basis: 300px; }
  .specs-list__row,
  .specs__card .specs-list__row { grid-template-columns: 1fr; gap: 4px; }
  .player__hint { display: none; }
  .lightbox__nav { width: 40px; height: 40px; }
}
