@font-face {
  font-family: Montserrat;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Montserrat-Regular.woff2") format("woff2");
}

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

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #0e0e0e;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  line-height: 20px;
  word-wrap: break-word;
}

/* Фон: видео на весь экран */
.media__inner {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #0e0e0e;
}

.media__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}

/* Фолбэк-картинка, если видео не загрузилось */
.media__bg {
  position: absolute;
  inset: 0;
  display: none;
  background: url("poster.png") center / cover no-repeat;
  opacity: .5;
}

body.video-error .media__bg { display: block; }
body.video-error .media__video { display: none; }

.media__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(180deg, #0e0e0e 0%, transparent 26%, transparent 52%, #0e0e0e 100%);
  opacity: .8;
  pointer-events: none;
}

/* Контент */
.dev {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  text-align: center;
}

.dev__logo,
.dev__text {
  animation: dev-reveal .7s cubic-bezier(.22, .61, .36, 1) backwards;
}

.dev__logo {
  display: block;
  width: 132px;
  height: auto;
  align-self: start;
  margin-top: 8vh;
}

.dev__text {
  --dev-reveal-shift: -28px;
  margin: 0;
  grid-row: 2;
  font-size: 28px;
  line-height: 1.2;
}

@keyframes dev-reveal {
  from { transform: translateY(var(--dev-reveal-shift, 28px)); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 560px) {
  .dev__logo { width: 176px; }
}

@media (min-width: 1024px) {
  .dev__logo { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .dev__logo, .dev__text { animation: none; }
}
