/* ===== СБРОС ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* ===== ФОН ===== */
body {
  min-height: 100vh;
  background: #ff61a4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: white;
  overflow-x: hidden;
}

/* ===== КОНТЕЙНЕР ПИСЬМА ===== */
.letter {
  max-width: 420px;
  width: 100%;
  padding: 36px 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  box-shadow:
    0 0 50px rgba(255, 255, 255, 0.35),
    inset 0 0 25px rgba(255, 255, 255, 0.12);
  animation: cardAppear 2s ease;
}

/* ===== ЗАГОЛОВОК ===== */
.letter h1 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 26px;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(255,255,255,0.6);
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 0.4s;
}

/* ===== АБЗАЦЫ ===== */
.letter p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(12px);
  animation: textReveal 1.3s ease forwards;
}

/* Появление по очереди */
.letter p:nth-of-type(1) { animation-delay: 0.8s; }
.letter p:nth-of-type(2) { animation-delay: 1.3s; }
.letter p:nth-of-type(3) { animation-delay: 1.8s; }
.letter p:nth-of-type(4) { animation-delay: 2.3s; }
.letter p:nth-of-type(5) { animation-delay: 2.8s; }
.letter p:nth-of-type(6) { animation-delay: 3.3s; }

/* ===== ПОДПИСЬ ===== */
.letter .signature {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 3.9s;
}

/* ===== АНИМАЦИИ ===== */
@keyframes cardAppear {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== МОБИЛКА ===== */
@media (max-width: 480px) {
  .letter {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .letter h1 {
    font-size: 23px;
  }

  .letter p {
    font-size: 15px;
  }
}
