@font-face {
  font-family: "Caravan";
  src: url("./fonts/Caravan.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  background-color: white;
  text-align: center;
}

main {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

p {
  font-family: Cormorant Infant;
  font-weight: 400;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
}

h1 {
  font-family: "Caravan";
  font-size: 78px;
  font-weight: 400;

  text-align: center;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

h2 {
  font-family: Cormorant Infant;
  font-weight: 600;
  font-size: 30px;
  line-height: 30px;
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: black;
}

/* Обёртка для центрирования и ограничения */
.wrapper {
  max-width: 700px;
  width: 100%;
  height: 729px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

/* Контейнер с фоном */
.container {
  position: relative;
  max-width: 500px;
  width: 100%;
  height: 100%;
  background-image: url("./img/main.png");
  background-size: cover; /* На мобилках — заполняем весь экран */
  background-repeat: no-repeat;
  background-position: center bottom;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  animation: fade-in 1s ease-out forwards 0.9s;
}

.subtitle {
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-in 1s ease-out forwards 0.9s;
}

.title {
  opacity: 0;
  animation: fade-in 1s ease-out forwards 0.9s;
}

.date {
  font-family: "Cormorant Infant";
  font-weight: 400;
  font-size: 55px;
  display: flex;
  color: #ffffff;
  line-height: 56px;
  flex-direction: column;
  align-items: center;
  margin-bottom: 480px;
  font-weight: 300;
  font-family: Cormorant Infant;
  text-align: center;
  text-transform: uppercase;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #ffffff;
  margin: 0 auto;
}

.start-text {
  padding-top: 20px !important;
}

.start-info {
  margin-bottom: 50px;
}

.block {
  background-color: #f0e9e4;
}

.location-title {
  padding-top: 48px;
  margin-bottom: 20px;
}

.location-text {
  margin-top: 10px;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
}

.location-address__title {
  font-family: Cormorant Infant;
  font-weight: 500;
  margin-top: 8px;
  font-size: 15px;
  line-height: 16px;
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
}

.dress-text {
  padding-bottom: 48px;
}

.location-button {
  background: #dfd5c9;
  width: 209px;
  height: 30px;
  border: none;
  font-family: Cormorant Infant;
  font-weight: 600;
  font-size: 9px;
  line-height: 11px;
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 50px;
  color: #000;
}

.timeline-section {
  height: 380px;
  display: flex;
  justify-content: center;
  padding: 40px;
}

.dress-title {
  padding-top: 48px;
  margin-bottom: 20px;
}

.dress-text {
  margin-top: 20px;
}

.pb-50 {
  padding-bottom: 50px;
}

.accept {
  margin-top: 50px;
}

.accept-button {
  color: #000;
  width: 209px;
  height: 30px;
  background-color: #dfd5c9;
  font-family: Cormorant Infant;
  font-weight: 1000;
  font-size: 10px;
  line-height: 9px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  border: none;
  margin-top: 23px;
}

.transfer {
  margin-top: 50px;
}

.transfer-text {
  margin-top: 20px;
}

.rings {
  margin-top: 43px;
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 500 / 470;
  background-image: url("./img/rings.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.text-block-2 {
  font-family: Cormorant Infant;
  font-weight: 600;
  font-size: 30px;
  line-height: 30px;
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-text {
  font-family: Montserrat;
  font-weight: 300;
  color: #000;
  font-size: 17px;
  margin-top: 50px;
  line-height: 17px;
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
}

.footer-name {
  font-family: "Caravan";
  font-size: 78px;
  font-weight: 400;
  margin-bottom: 50px;
  text-align: center;
  margin-top: 0px;
  position: relative;
  z-index: 2;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 43px;
  height: 268px;
  margin-top: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #d8c4b3;
  transform: translateX(-50%);
}

.circle {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #d8c4b3;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.circle.top {
  top: 0;
}

.circle.bottom {
  bottom: 0;
}

.event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 280px;
  position: relative;
}

.left,
.right {
  width: 50%;
  text-align: center;
}

.time {
  font-size: 28px;
  font-weight: bold;
  border-bottom: 1px dotted #d8c4b3;
  display: inline-block;
  padding-bottom: 8px;
  width: 100%;

  font-family: Cormorant Infant;
  font-weight: 600;

  font-size: 30px;
  line-height: 20px;
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
}

.desc {
  margin-top: 10px;
  letter-spacing: 1px;
  font-family: Cormorant Infant;
  font-weight: 400;
  font-size: 15px;
  line-height: 16px;
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
}

.icon {
  font-size: 40px;
}

.first {
  margin-top: 14px;
}

.accept-input {
  border: 0;
  width: 300px;
  border-bottom: 1px solid #f0e9e4;
  height: 30px;
  margin-top: 10px;
  text-align: center;
  outline: none;
  font-family: Cormorant Infant;
  padding: 0;
  font-size: 15px;
}

.accept-text {
  margin-top: 20px;
  font-size: 10px;
}

[class*="animate"],
.start-text,
.location-title,
.location-text,
.location-address__title,
.location-button,
.timeline,
.event,
.dress-title,
.dress-text,
p,
h2,
.footer-name,
.rings,
.accept-input,
.transfer-title,
button {
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
