* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow: hidden;
  background: #000;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  background: url("./nbg.jpeg") center center / cover no-repeat;
  transform: scale(1.12);
  animation: slowZoomOut 10s ease-out forwards;
  will-change: transform;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.36) 45%,
      rgba(0, 0, 0, 0.42) 100%
    );
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 0 20px;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.content h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.25),
    0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Пока изображение не загружено — скрываем надпись */
body.is-loading .content {
  opacity: 0;
  pointer-events: none;
}

/* После загрузки — показываем */
body.is-ready .content {
  opacity: 1;
}

@keyframes slowZoomOut {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .content h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }
}
