@media (max-width: 768px) {
    .title {
        height: 30em;
        margin: 0 0.5rem;
        border-radius: 1.25rem;
        background-position: center;
    }

    .title-block {
        margin-top: 90px;
        width: 90%;
        padding: 1rem;
        align-items: center;
    }

    .title-block h1 {
        text-align: center;
    }

    .title p {
        font-size: 1rem;
        text-align: center;
    }

  .wrapper {
    padding: 0 0.85rem;
    gap: 2rem;
  }

  .that-hor1 {
    flex-direction: column;
    gap: 1rem;
  }

  .that-ver1 {
    width: 100%;
    margin-left: 0;
  }

 .location {
  width: 100%;
  margin-left: 0;
  padding: 0 0rem;
  box-sizing: border-box;
 }

  .date > .hor {
    flex-wrap: wrap;
    justify-content: center;
  }

  .title {
    height: auto;
    padding: 1rem 0;
    margin-top: 1.0rem;
    background-size: cover;
    background-position: center;
  }

  .title-block {
    width: 100%;
    padding: 1.5rem;
    align-items: center;
    text-align: center;

    margin-left: -60px;
  }

  .title-block h1 {
    font-size: 35px;
  }

  .title p {
    font-size: 35px;
    text-align: center;
  }

.title {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.title:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}


  .guest-form {
    margin-top: -30px;
    margin-bottom: -20px;
  }

.date {
  position: relative;
  margin-top: 20px;
  max-width: 350px;
  height: 7rem;
  padding: 1rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  }

.date > h1,
.date > h2,
.date > .timer {
  transform: scale(0.7);
  transform-origin: center center;
}

.date > h1 {
    position: absolute;
    top: 23.5%;
    left: 18%;
    transform: translateX(-50%) scale(0.68);
  }

  .date > .hor {
    position: absolute;
    top: 4%;
    left: 63%;
    transform: translateX(-50%) scale(1.3);

    white-space: nowrap;
    flex-wrap: nowrap !important;
  }

  .date > h2 {
    position: absolute;
    top: 46%;
    left: 21%;
    transform: translateX(-50%) scale(0.75);
  }

  .date > .timer {
    margin-bottom: 60px;

    position: absolute;
    top: 54%;
    left: 66%;
    transform: translateX(-50%) scale(0.75);
  }

.location-description {
  margin: 0 !important;
}

.select-wrapper select {
  font-size: 112%;
}

.footer-contacts {
  align-items: center;
  gap: 0.75rem;
  padding: 0;
}

.footer-contacts a {
  text-align: center;
}

 .fancy-link {
    animation: mobileGlow 3s ease-in-out infinite;
    position: relative;
  }

  .fancy-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent2), var(--accent1), var(--accent2dark));
    background-size: 200% auto;
    animation: mobileUnderline 4s linear infinite;
  }
}