* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 35, 24, 0.78) 0%,
    rgba(18, 35, 24, 0.40) 42%,
    rgba(18, 35, 24, 0.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 620px;
  max-width: calc(100% - 40px);
  padding-top: 16vh;
  margin-left: 7vw;
  color: #fff7e8;
  font-family: Georgia, 'Times New Roman', serif;
}

.intro-block {
  margin-bottom: 34px;
}

.intro {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.35;
  text-shadow: 0 4px 18px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1.2s ease forwards;
}

.line-1 { animation-delay: 0.5s; }
.line-2 { animation-delay: 1.6s; }
.line-3 { animation-delay: 2.7s; }

.names {
  margin-top: 22px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.05;
  font-style: italic;
  letter-spacing: 1px;
  text-shadow: 0 8px 26px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1.3s ease forwards;
  animation-delay: 3.8s;
}

.names span {
  color: #d6bd7a;
  padding: 0 12px;
}

.date {
  margin-top: 22px;
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 5px 18px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 4.8s;
}

.open-btn {
  margin-top: 34px;
  padding: 16px 34px;
  border: 1px solid rgba(255, 247, 232, 0.75);
  border-radius: 999px;
  background: rgba(95, 105, 63, 0.88);
  color: #fff7e8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 5.6s;
}

.open-btn:hover {
  background: rgba(124, 133, 82, 0.95);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero {
    background-position: center;
  }

  .hero::after {
    background: linear-gradient(
      0deg,
      rgba(18, 35, 24, 0.90) 0%,
      rgba(18, 35, 24, 0.42) 52%,
      rgba(18, 35, 24, 0.05) 100%
    );
  }

  .hero-content {
    width: auto;
    max-width: none;
    margin: 0 22px;
    padding-top: 48vh;
  }

  .intro {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .intro-block {
    margin-bottom: 22px;
  }

  .names {
    font-size: 38px;
  }

  .date {
    font-size: 16px;
    letter-spacing: 3px;
  }

  .open-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
  }
}
