:root {
  --color-primary: #000000;
  --color-secondary: #ffffff;
}

html,
body {
  background-color: var(--color-primary);
  overflow: hidden;
}

body {
  margin: 0;
}

video,
canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shade {
  -webkit-mask-image: none;
  mask-image: none;
}

@media (pointer: coarse) {
  .shade {
    -webkit-mask-image: radial-gradient(
      circle at center,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.5) 25%,
      rgba(255, 255, 255, 0) 100%
    );
    mask-image: radial-gradient(
      circle at center,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.5) 25%,
      rgba(255, 255, 255, 0) 100%
    );
    mask-mode: alpha;
    mask-repeat: no-repeat;
    mask-size: cover;
  }
}

.video-desktop {
  /* display: block;
  width: 100vw;
  height: 100vh;
  object-fit: cover; */
}

.preview-mobile {
  display: none;
  background-image: url("/media/preview.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* На мобилках видео скрываем, картинку показываем */
@media (max-width: 768px) {
  .video-desktop {
    display: none;
  }

  .preview-mobile {
    display: block;
    height: inherit;
    /* margin-left: -50%; */
  }
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  pointer-events: none;

  -webkit-mask-image: radial-gradient(
    circle 350px at var(--x, 50%) var(--y, 50%),
    transparent 0%,
    black 80%
  );
  mask-image: radial-gradient(
    circle 350px at var(--x, 50%) var(--y, 50%),
    transparent 0%,
    black 80%
  );
}

@media (pointer: coarse) {
  .overlay {
    display: none !important;
  }
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  height: 2.4rem;
  margin-top: 1rem;
  margin-left: 40px;
}

.links {
  display: flex;
  gap: 6rem;
  margin-top: 1rem;
  margin-right: 40px;
}

.links a svg {
  fill: white;
  transition: transform 0.2s, opacity 0.2s;
}

.links a:hover svg {
  transform: scale(1.1);
  opacity: 0.85;
}

@media (pointer: coarse), (max-width: 768px) {
  .header {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
  }

  .logo {
    margin-left: 0;
    margin-top: 1rem;
  }

  .links {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    gap: 5rem;
    width: auto;
    justify-content: center;
  }

  .links a {
    display: inline-flex;
  }
}
