body {
  background-color: var(--background-color);
}

.header {
  max-width: 412px;
  margin: auto;
  position: relative;
  width: 100%;
}

.header-img {
  display: block;
  width: 100%;
  height: auto;
}

.text {
  font-size: clamp(7px, 2.427cqw, 10px);
  line-height: 135%;
  letter-spacing: -0.02em;
  font-family: var(--main-font);
  color: #e0dbd0;
  text-align: center;
}

.first-header {
  position: absolute;
  right: 7.28%;
  top: 55.13%;
}

.secong-header {
  position: absolute;
  right: 6.28%;
  top: 64.43%;

}

.title-first {
  position: absolute;
  right: 6.25%;
  top: 38.20%;
  letter-spacing: 0.34em;
  font-size: clamp(7px, 2.184cqw, 9px);
}

.date {
  position: absolute;
  color: #EDD199;
  right: 6.5%;
  top: 46.80%;
  letter-spacing: 0.34em;
  font-size: clamp(9px, 3.398cqw, 14px);
}

.main {
  max-width: 412px;
  margin: auto;

  width: 100%;
}

.timing-img {
  display: block;
  width: 100%;
  height: auto;
}

.timing {
  position: relative;
  max-width: 412px;
  margin: auto;
}

.first-timing {
  position: absolute;
  right: 3%;
  top: 28.5%;
  font-size: clamp(7px, 2.184cqw, 9px);
  text-align: left;
}

.title {
  color: #EDD199;
  font-size: clamp(9px, 3.398cqw, 14px);
}

.title-first-timing {
  position: absolute;
  right: 21.28%;
  top: 25.50%;
  text-align: left;
  font-size: clamp(9px, 3.398cqw, 14px);
}

.title-secong-timing {
  position: absolute;
  right: 29.28%;
  top: 37.50%;
  text-align: left;
}

.kursiv {
  font-style: italic;
  position: absolute;
  right: 7.28%;
  top: 42.8%;
  text-align: left;
  font-size: clamp(9px, 3.398cqw, 14px);
}

.second-timing {
  position: absolute;
  right: 6.28%;
  top: 45.5%;
  font-size: clamp(7px, 2.184cqw, 9px);
  text-align: left;
}

.weigth-time {
  position: absolute;
  right: 16.28%;
  top: 40%;
  text-align: left;
  font-weight: 500;
  font-family: Georgia;
  font-size: clamp(9px, 3.398cqw, 14px);
}

.title-third-timing {
  position: absolute;
  right: 29.28%;
  top: 51.30%;
  text-align: left;
}

.third-timing {
  position: absolute;
  right: 10.88%;
  top: 58.4%;
  font-size: clamp(7px, 2.184cqw, 9px);
  text-align: left;
}

.weigth-time-third {
  position: absolute;
  right: 13.28%;
  top: 54%;
  text-align: left;
  font-weight: 500;
  font-family: Georgia;
  font-size: clamp(9px, 3.398cqw, 14px);
  line-height: 91%;
}

.title-four-timing {
  position: absolute;
  right: 20.28%;
  top: 65.80%;
  text-align: left;
}

.four-timing {
  position: absolute;
  right: 9%;
  top: 68.5%;
  font-size: clamp(7px, 2.184cqw, 9px);
  text-align: left;
}

.yellow {
  color: #EDD199;
}

.title-five-timing {
  position: absolute;
  right: 25.28%;
  top: 5.70%;
  text-align: left;
}

.five-timing {
  position: absolute;
  right: 8.88%;
  top: 8.5%;
  font-size: clamp(7px, 2.184cqw, 9px);
  text-align: left;
  line-height: 120%;
}

.title-six-timing {
  position: absolute;
  right: 32.28%;
  top: 20.3%;
  text-align: left;
  font-size: clamp(9px, 3.800cqw, 16px);
}

.six-timing {
  position: absolute;
  right: 6.88%;
  top: 23.3%;
  font-size: clamp(7px, 2.184cqw, 9px);
  text-align: left;

}

.title-seven-timing {
  position: absolute;
  right: 31.28%;
  top: 36.50%;
  text-align: left;
  font-size: clamp(9px, 3.800cqw, 16px);
}

.seven-timing {
  position: absolute;
  right: 15.98%;
  top: 40%;
  font-size: clamp(7px, 2.184cqw, 9px);
  text-align: left;

}

.title-eigth-timing {
  position: absolute;
  right: 29%;
  top: 53.30%;
  text-align: left;
  font-size: clamp(9px, 3.800cqw, 16px);
}

.eigth-timing {
  position: absolute;
  right: 8.5%;
  top: 56.5%;
  font-size: clamp(7px, 2.184cqw, 9px);
  text-align: left;

}

.footer {
  max-width: 412px;
  margin: auto;
  position: relative;
  width: 100%;
}

.footer-img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-first {
  position: absolute;
  right: 0;
  left: 0;
  top: 33.5%;
  line-height: 110%;
}

.footer-second {
  position: absolute;
  right: 0;
  left: 0;
  top: 44%;
  line-height: 110%;
}

.footer-third {
  position: absolute;
  right: 0;
  left: 0;
  top: 51%;
  line-height: 110%;
}

.place {
  position: absolute;
  color: #EDD199;
  right: 43.5%;
  top: 5.40%;
  font-size: clamp(15px, 4.398cqw, 19px);
}

.adress {
  position: absolute;

  left: 16%;
  top: 10.5%;
  line-height: 110%;
}

.href {
  text-decoration: none;
  color: #EDD199;
  font-size: clamp(9px, 3.398cqw, 14px);
}

.button {
  background-color: transparent;
  border: none;
  position: absolute;

  right: 43.5%;
  top: 16.5%;

}


/* Пока вступление не закончится, сайт скрыт */
.header,
.main {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}

/* Показываем сайт */
body.site-visible .header,
body.site-visible .main {
  opacity: 1;
  visibility: visible;
}

/* Общий экран вступления */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: black;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}

/* Плавное исчезновение вступления */
.intro.intro-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Экран конверта */
.envelope-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: #17120f;
  cursor: pointer;
  opacity: 1;
  transition: opacity 1s ease;
  background-color: #fff;
}

/* Конверт плавно исчезает */
.envelope-screen.envelope-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Изображение конверта */
.envelope-img {
  display: block;
  width: 100%;
  max-width: 412px;
  padding-top: 90px;
  object-fit: cover;
  object-position: center;
}

.envelope-screen:hover .envelope-img {
  transform: scale(1.03);
}

/* Подпись под конвертом */
.envelope-hint {
  color: #ebe3ce;
  font-family: Georgia, serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-align: center;
  opacity: 0;
}

/* Экран видео */
.video-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}

/* Показываем видео */
.video-screen.video-visible {
  opacity: 1;
  visibility: visible;
}

/* Само видео */
.video-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* На случай вертикального видео на большом экране */
@media (min-aspect-ratio: 4/5) {
  .video-screen video {
    object-fit: contain;
  }
}


.text-img {
  position: absolute;
  right: 0;
  left: 0;
  top: 103px;
  z-index: 10;
  margin: auto;
  width: 320px;

  opacity: 0;
  animation: fadeIn 1.7s ease forwards;
  animation-delay: 0.8s;
}

.text-convert {
  position: absolute;
  right: 0;
  left: 0;
  top: 214px;
  z-index: 10;
  margin: auto;
  font-size: 10px;
  color: #EDD199;

  opacity: 0;
  animation: fadeIn 1.7s ease forwards;
  animation-delay: 0.8s;
}

.first-convert {
  position: absolute;
  right: 0;
  left: 0;
  margin: auto;
  top: 40px;
  color: #EDD199;
  font-size: 14px;
  width: 200px;
  opacity: 0;
  margin: auto;
  animation: fadeIn 1.7s ease forwards;
  animation-delay: 0.3s;
  display: block;
}

.text-push {

  z-index: 10;
  margin: auto;
  font-size: 12px;
  color: #8C4D00;
  margin-top: -40px;
  opacity: 0;
  animation: fadeIn 1.7s ease forwards;
  animation-delay: 1.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}