/* ============================================================
   DayZ промо-лендинг — стили
   1. Переменные и база      5. Скриншоты и лайтбокс
   2. Утилиты и кнопки       6. Трейлер
   3. Шапка                  7. Отзывы, требования, CTA
   4. Hero и бегущая строка  8. Футер и адаптив
   ============================================================ */

/* ---------- 1. Переменные и база ---------- */
:root {
  --accent: #cbd41e;
  --accent-bright: #eef768;
  --bg: #0b0d0a;
  --bg-dark: #0e110c;
  --bg-deep: #090b08;
  --surface: #12150f;
  --ink: #e9ece2;
  --ink-strong: #eef1e6;
  --ink-muted: #c3c8b8;
  --ink-dim: #a9b099;
  --ink-faint: #7d8472;
  --line: rgba(233, 236, 226, 0.09);
  --line-strong: rgba(233, 236, 226, 0.16);
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --notch: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; }

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

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

h1, h2, h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; }

::selection { background: var(--accent); color: #101208; }

/* Плёночное зерно и полоса прокрутки */
.grain {
  position: fixed;
  inset: 0;
  z-index: 44;
  pointer-events: none;
  background-image: url('assets/noise.png');
  background-size: 150px;
  opacity: 0.07;
  animation: noiseShift 0.55s steps(4, end) infinite;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 0;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(203, 212, 30, 0.7);
  pointer-events: none;
}

/* ---------- 2. Утилиты и кнопки ---------- */
.kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker--hero {
  letter-spacing: 0.34em;
  color: var(--ink-dim);
}

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

.caret {
  display: inline-block;
  width: 9px;
  height: 13px;
  margin-left: 7px;
  vertical-align: -1px;
  background: var(--accent);
  animation: blinkDot 0.9s steps(2, start) infinite;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blinkDot 1.6s ease-in-out infinite;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 28px;
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}

.section--about { padding-bottom: 30px; contain-intrinsic-size: auto 1400px; }

.section--dark {
  max-width: none;
  background: var(--bg-dark);
  border-top: 1px solid rgba(233, 236, 226, 0.08);
  border-bottom: 1px solid rgba(233, 236, 226, 0.08);
}

.section__title {
  margin-top: 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: var(--ink-strong);
  text-wrap: pretty;
}

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

.section__head--center { justify-content: center; text-align: center; }

.section__hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9aa08f;
}

.prose {
  margin: 24px 0 0;
  max-width: 62ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-muted);
}

.prose--tight { margin-top: 16px; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: var(--notch);
  transition: filter 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary { background: var(--accent); color: #11130a; }
.btn--primary:hover { color: #11130a; filter: brightness(1.15); transform: translateY(-2px); }

.btn--ghost {
  background: rgba(10, 12, 8, 0.55);
  border: 1px solid rgba(233, 236, 226, 0.35);
  color: var(--ink);
  font-weight: 600;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { flex: 0 0 auto; padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 17px 38px; font-size: 18px; letter-spacing: 0.1em; }
.btn--xl { margin-top: 38px; padding: 19px 46px; font-size: 20px; }

.btn--glow { animation: pulseGlow 3.2s ease-in-out infinite; }

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

/* Появление при скролле */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.7, 0.25, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 3. Шапка ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 28px;
  background: linear-gradient(rgba(8, 10, 7, 0.94), rgba(8, 10, 7, 0.78));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__logo { display: flex; flex: 0 0 auto; }
.site-header__logo img { display: block; height: 30px; width: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9bfae;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--accent); }

/* ---------- 4. Hero и бегущая строка ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -14% 0 0 0;
  z-index: 0;
  will-change: transform;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.85) contrast(1.06) brightness(0.72);
  animation: heroZoom 28s ease-in-out infinite alternate;
}

.hero__scrim,
.hero__vignette { position: absolute; inset: 0; z-index: 1; }

.hero__scrim {
  background: linear-gradient(180deg, rgba(9, 11, 8, 0.62) 0%, rgba(9, 11, 8, 0.18) 42%, rgba(11, 13, 10, 0.9) 86%, var(--bg) 100%);
}

.hero__vignette {
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(7, 9, 6, 0.72) 100%);
}

.fog {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.fog--a {
  left: -20%;
  top: 30%;
  width: 90vw;
  height: 55vh;
  opacity: 0.8;
  background: radial-gradient(closest-side, rgba(186, 200, 176, 0.16), transparent 70%);
  animation: fogDriftA 30s ease-in-out infinite;
}

.fog--b {
  right: -25%;
  top: 52%;
  width: 80vw;
  height: 50vh;
  opacity: 0.7;
  background: radial-gradient(closest-side, rgba(170, 186, 160, 0.13), transparent 70%);
  animation: fogDriftB 24s ease-in-out infinite;
}

.fog--c {
  left: -15%;
  bottom: -10%;
  width: 80vw;
  height: 45vh;
  opacity: 0.7;
  background: radial-gradient(closest-side, rgba(186, 200, 176, 0.14), transparent 70%);
  animation: fogDriftB 26s ease-in-out infinite;
}

.hero__inner {
  position: relative;
  z-index: 5;
  max-width: 1000px;
  padding: 130px 24px 100px;
  text-align: center;
  will-change: transform, opacity;
}

.hero__logo {
  width: min(600px, 76vw);
  height: auto;
  margin-top: 30px;
  filter: drop-shadow(0 16px 46px rgba(0, 0, 0, 0.65));
}

.glitch { position: relative; margin-top: 30px; }

.glitch__text,
.glitch__layer {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.glitch__text { color: var(--ink-strong); }

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

.glitch__layer--a { color: var(--accent); animation: glitchA 6.5s linear infinite; }
.glitch__layer--b { color: #a83232; animation: glitchB 8.2s linear infinite; }

.hero__lede {
  margin: 18px auto 0;
  max-width: 660px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 66px 0 0;
}

.stats__item {
  padding: 4px 34px;
  text-align: left;
  border-left: 1px solid var(--line-strong);
}
.stats__item:first-child { border-left-color: transparent; }

.stats__label {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9aa08f;
}

.stats__value {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-strong);
}

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

.hero__scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 6;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  animation: bounceHint 1.8s ease-in-out infinite;
}

.ticker {
  position: relative;
  z-index: 10;
  overflow: hidden;
  padding: 11px 0;
  background: var(--accent);
  color: #101207;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

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

.ticker__text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: pre;
}

/* ---------- Об игре ---------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: center;
}

.keyart {
  position: relative;
  margin: 0;
  border: 1px solid rgba(233, 236, 226, 0.14);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.keyart img { display: block; width: 100%; height: auto; filter: saturate(0.9); }

.keyart__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(8, 10, 7, 0.9));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b9bfae;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 80px;
}

.card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: opacity 0.6s ease, transform 0.45s ease, border-color 0.25s ease;
}
.card:hover { border-color: var(--accent); }

.card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--accent);
}

.card__title {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-strong);
}

.card__text {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-dim);
}

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

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

.shot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(233, 236, 226, 0.1);
  cursor: zoom-in;
  transition: border-color 0.25s ease;
}
.shot:hover { border-color: var(--accent); }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.55) contrast(1.04);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.45s ease;
}
.shot:hover img { transform: scale(1.07); filter: saturate(1.08) contrast(1.04); }

.shot__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 11px;
  background: linear-gradient(transparent, rgba(8, 10, 7, 0.88));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-muted);
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 5, 0.95);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 88vw;
  max-height: 78vh;
  border: 1px solid rgba(233, 236, 226, 0.25);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  cursor: default;
  animation: lbIn 0.28s ease;
}

.lightbox__caption {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #b9bfae;
}

.lightbox__nav,
.lightbox__close {
  position: absolute;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 18px 16px;
  font-size: 30px;
  background: rgba(10, 12, 8, 0.6);
  border: 1px solid rgba(233, 236, 226, 0.3);
}
.lightbox__nav:hover { border-color: var(--accent); color: var(--accent); }

.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }

.lightbox__close {
  top: 20px;
  right: 22px;
  padding: 0;
  font-size: 34px;
  background: none;
  border: none;
}
.lightbox__close:hover { color: var(--accent); }

/* ---------- 6. Трейлер ---------- */
.trailer { max-width: 1060px; margin: 0 auto; }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(233, 236, 226, 0.14);
}

.player__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.player__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.9);
}

.player__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  margin: -66px 0 0 -46px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: rgba(10, 12, 8, 0.55);
  transition: transform 0.25s ease, background 0.25s ease;
}

.player__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -15px 0 0 -8px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid var(--accent);
}

.player__poster:hover .player__play { transform: scale(1.08); background: rgba(20, 24, 14, 0.75); }

.player__label {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-top: 44px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-strong);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

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

.player__note {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9aa08f;
}

/* ---------- 7. Отзывы, требования, CTA ---------- */
.score {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.score__item {
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
}

.score__item--accent { border-color: var(--accent); }

.score__value {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-strong);
}

.score__item--accent .score__value { text-transform: uppercase; color: var(--accent); }

.score__label {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aa08f;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: opacity 0.6s ease, transform 0.45s ease, border-color 0.25s ease;
}
.review:hover { border-color: rgba(233, 236, 226, 0.3); }

.review__head { display: flex; align-items: center; gap: 12px; }

.review__avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #11130a;
}

.review__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-strong);
}

.review__hours {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #9aa08f;
}

.review__badge {
  margin-left: auto;
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.review__text {
  margin: 0;
  flex: 1;
  font-size: 15px;
  line-height: 1.68;
  color: #c9cebd;
}

.review__foot {
  margin: 0;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  border-top: 1px solid rgba(233, 236, 226, 0.08);
}

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

.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.spec-card {
  padding: 30px 28px;
  background: #10130d;
  border: 1px solid rgba(233, 236, 226, 0.12);
}

.spec-card--recommended { border-color: var(--accent); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.spec-table__caption {
  padding-bottom: 16px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: #b9bfae;
  border-bottom: 1px solid rgba(233, 236, 226, 0.12);
}

.spec-card--recommended .spec-table__caption { color: var(--accent); }

.spec-table th,
.spec-table td { padding: 12px 0; vertical-align: top; }

.spec-table th {
  width: 148px;
  padding-right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.spec-table td { font-size: 15px; color: #d9ddce; }

.spec-table tbody tr:first-child th,
.spec-table tbody tr:first-child td { padding-top: 22px; }

.cta {
  position: relative;
  overflow: hidden;
  padding: 150px 28px;
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: -18% 0;
  z-index: 0;
  transform: scaleX(-1);
  will-change: transform;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(0.8) brightness(0.5);
}

.cta__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(11, 13, 10, 0.55) 30%, rgba(11, 13, 10, 0.72) 70%, var(--bg-deep) 100%);
}

.cta__inner { position: relative; z-index: 5; }

.cta__logo {
  width: min(340px, 60vw);
  height: auto;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.7));
}

.cta__title {
  margin-top: 34px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-strong);
}

.cta__lede {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.cta__note {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9aa08f;
}

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  background: rgba(12, 15, 10, 0.8);
  border: 1px solid var(--accent);
  backdrop-filter: blur(6px);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, background 0.2s ease;
}
.to-top:hover { background: rgba(30, 36, 20, 0.9); }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- 8. Футер и адаптив ---------- */
.site-footer {
  padding: 32px 28px;
  background: var(--bg-deep);
  border-top: 1px solid rgba(233, 236, 226, 0.08);
}

.site-footer__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
}

.site-footer__row img { height: 22px; width: auto; opacity: 0.8; }

.site-footer__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.site-footer__legal {
  max-width: 1240px;
  margin: 18px auto 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: #5f6656;
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .section { padding: 80px 20px; }
  .about__grid { gap: 36px; }
  .features { margin-top: 48px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .stats__item { padding: 4px 20px; }
  .stats__value { font-size: 28px; }
  .cta { padding: 100px 20px; }
  .lightbox__nav { padding: 10px 14px 13px; font-size: 24px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--big { grid-column: span 1; grid-row: span 1; }
  .btn--lg, .btn--xl { padding: 15px 26px; font-size: 16px; }
  .spec-card { padding: 22px 18px; }
  .spec-table th { width: 110px; }
}

/* ---------- Анимации ---------- */
@keyframes fogDriftA {
  0%   { transform: translate3d(-8%, 0, 0); }
  50%  { transform: translate3d(6%, -4%, 0); }
  100% { transform: translate3d(-8%, 0, 0); }
}

@keyframes fogDriftB {
  0%   { transform: translate3d(6%, 2%, 0); }
  50%  { transform: translate3d(-7%, -3%, 0); }
  100% { transform: translate3d(6%, 2%, 0); }
}

@keyframes noiseShift {
  0%   { background-position: 0 0; }
  25%  { background-position: -42px 26px; }
  50%  { background-position: 28px -38px; }
  75%  { background-position: -24px -14px; }
  100% { background-position: 0 0; }
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.11); }
}

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

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 34px rgba(203, 212, 30, 0.2); }
  50%      { box-shadow: 0 12px 54px rgba(203, 212, 30, 0.45); }
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes bounceHint {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.75; }
  50%      { transform: rotate(45deg) translate(7px, 7px); opacity: 0.2; }
}

@keyframes glitchA {
  0%, 85%, 100% { clip-path: inset(0 0 100% 0); opacity: 0; transform: none; }
  86% { clip-path: inset(8% 0 58% 0);  opacity: 0.9; transform: translate(-6px, 2px); }
  88% { clip-path: inset(62% 0 6% 0);  opacity: 0.9; transform: translate(5px, -2px); }
  90% { clip-path: inset(32% 0 40% 0); opacity: 0.7; transform: translate(-3px, 1px); }
  92% { clip-path: inset(0 0 100% 0);  opacity: 0; transform: none; }
}

@keyframes glitchB {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); opacity: 0; transform: none; }
  91% { clip-path: inset(70% 0 4% 0);  opacity: 0.85; transform: translate(6px, 1px); }
  93% { clip-path: inset(14% 0 66% 0); opacity: 0.85; transform: translate(-5px, -1px); }
  95% { clip-path: inset(0 0 100% 0);  opacity: 0; transform: none; }
}

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