/* Общие сбросы и стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

@font-face {
  font-family: "MrHamiltoneG";
  src: url("fonts/mr_HamiltoneG.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li {
  margin: 0;
  padding: 0;
}

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: 15px;
}

h1 {
  font-family: "Kindentosca", sans-serif;
  font-size: 45px;
  font-weight: 400;
}

h2 {
  font-family: "Cormorant Garamond";
  font-weight: 600;
  font-size: 23px;
  line-height: 19px;
  letter-spacing: 0%;
  text-align: center;
  text-transform: uppercase;
}

/* Обёртка для центрирования и ограничения */
.main {
  margin-top: 20px;
  max-width: 700px;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.main-img {
  width: 87%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade-in 1s ease-out forwards 0.9s;
}

.names {
  position: relative;
  top: -14px !important;
  opacity: 0;
  animation: fade-in 1s ease-out forwards 0.9s;
  /* opacity: 0; */
}

.and {
  font-family: "MrHamiltoneG", serif !important;
}

.heart {
  position: relative;
  top: -5px;
  width: 35px;
  height: 35px;
  opacity: 0;
  animation: fade-in 1s ease-out forwards 0.9s;

  /* opacity: 0; */
}

.welcome-title {
  font-family: "Cormorant Garamond";
  font-weight: 600;
  font-size: 23px;
  top: -20px;
  position: relative;
  opacity: 0;
  animation: fade-in 1s ease-out forwards 0.9s;
  /* opacity: 0; */
}

.welcome-text {
  font-family: "Cormorant Garamond";
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  opacity: 0;
  animation: fade-in 1s ease-out forwards 0.9s;
}

.welcome-top {
  top: -5px;
  position: relative;
  margin-top: 20px;
  /* opacity: 0; */
}

.red-text {
  font-family: "Kindentosca";
  font-weight: 400;
  font-size: 25px;
  line-height: 19px;
  text-align: center;
  color: #7e1222;
  opacity: 0;
  animation: fade-in 1s ease-out forwards 0.9s;
}

.date {
  font-family: "Cormorant Garamond";
  font-weight: 600;
  font-size: 19px;
  line-height: 19px;
  text-align: center;
  margin-top: 18px;
  opacity: 0;
  animation: fade-in 1s ease-out forwards 0.9s;
  /* opacity: 0; */
}

.number {
  font-size: 25px;
}

.calendar {
  width: 275px;
  margin: 0 auto;
  margin-top: 33px;
  animation: fade-in-left 1s ease-out forwards 0.9s;
}

.calendar-title {
  display: flex;
  justify-content: space-between;
}

.calendar-text {
  font-family: "Kindentosca";
  font-weight: 400;
  font-size: 18px;
  line-height: 19px;
  text-align: center;
  color: #000;
}

.calendar-title {
  display: flex;
  justify-content: space-between;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  margin: 0 auto;
  margin-top: 12px;
}

.calendar-item {
  font-family: "Kindentosca";

  line-height: 1;
  color: #000;
  margin-bottom: 5.5px;
  font-family: Cormorant Infant;
  font-weight: 300;

  font-size: 19px;

  letter-spacing: 0%;
  text-align: center;
}

.calendar-item.header {
  font-family: "Cormorant Garamond";
  font-weight: 700;
  font-size: 19px;
}

.chat-block {
  /* opacity: 0; */
}

.calendar-item.special {
  position: relative;
  /* opacity: 0; */
}

.calendar-item.special span {
  position: relative;
  z-index: 2;
}

.calendar-item.special::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 45%;
  transform: translateX(-50%);
  width: 47px;
  height: 40px;
  background-image: url("/img/heart-2.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

.timer-block {
  margin-top: 40px;
  background-color: #eeeeee;
  height: 163px;
  /* opacity: 0; */
}

.timer-text {
  padding-top: 20px;
  font-family: Kindentosca;
  font-weight: 400;
  font-size: 23px;
  line-height: 25px;
  letter-spacing: 0%;
  text-align: center;
}

.timer {
  display: flex;
  justify-content: center;
  font-weight: bold;
  align-items: center;
  margin: 0 auto;
  margin-top: 35px;
}

#timer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  gap: 9px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-number {
  font-family: "Cormorant Infant";
  font-weight: 300;
  font-size: 45px;

  line-height: 19px;
  letter-spacing: 0%;
  text-align: center;
  margin-bottom: 10px;
}

.label {
  margin-top: 4px;
  font-family: "Cormorant Garamond";
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0%;
  text-align: center;
}

.separator {
  font-weight: bold;
  color: #000;
  font-family: Cormorant Infant;
  font-weight: 300;
  font-size: 45px;
  line-height: 19px;
  letter-spacing: 0%;
  text-align: center;
  margin-bottom: 34px;
}

.separator::before {
  content: ":";
}

.plan-title {
  margin-top: 55px;
  margin-bottom: 25px;
}

.plan-img {
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.plan-item {
  margin-top: 20px;
}

.plan-time {
  font-family: "Cormorant Infant";
  font-weight: 600;
  font-size: 23px;
  line-height: 19px;
  letter-spacing: 0%;
  text-align: center;
  margin-top: 15px;
}

.plan-text {
  font-family: "Cormorant Garamond";
  margin-top: 7px;
  font-weight: 400;
  font-size: 18px;
  line-height: 19px;
  letter-spacing: 0%;
  text-align: center;
}

.location {
  /* opacity: 0; */
}

.location-title {
  margin-top: 55px;
}

.location-text {
  font-family: "Cormorant Garamond";
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  margin-top: 20px;
}

.location-img {
  width: 100%;
  height: 100%;
  margin-top: 15px;
  max-width: 320px;
}

.route-block {
  margin-top: 40px;
  /* opacity: 0; */
}

.route-text {
  font-family: "Cormorant Garamond";
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  margin-top: 20px;
}

.map {
  margin-top: 35px;
}

.details {
  margin-top: 35px;
  /* opacity: 0; */
}

.details-mail {
  margin-top: 25px;
}

.details-text {
  font-family: "Cormorant Garamond";
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0%;
  text-align: center;
  margin-top: 10px;
}

.details-img {
  margin-top: 25px;
  margin-bottom: 10px;
}

.form {
  margin-top: 35px;
  padding-top: 20px;
  background-color: #eeeeee;
  /* opacity: 0; */
}

.name-family {
  font-family: "Cormorant Garamond";
  font-weight: 700;
  font-size: 12px;
  line-height: 19px;
  letter-spacing: 0%;
  text-align: center;
  text-transform: uppercase;
  margin-top: 22px;
}

.form-text {
  font-family: "Cormorant Garamond";
  font-weight: 300;
  font-size: 18px;
  line-height: 19px;
  letter-spacing: 0%;
  text-align: center;
  color: #969696;
  margin-top: 5px;
}

.input-text {
  width: 280px;
  border: none;
  border-bottom: 1px solid #d9d9d9;
  font-family: "Cormorant Infant", serif;
  font-size: 15px;
  text-align: center;
  font-variant: small-caps;
  background-color: #ffffff00;
  height: 20px;
  transition: border-color 0.3s;
  margin-top: 10px;
}

.radio-block {
  text-align: left;
  margin: 0 auto;
  max-width: 280px;
  margin-bottom: 20px;
}

.custom-radio {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.custom-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-radio input:checked ~ .checkmark {
  background-color: #ffffff;
  border-color: #000000;
}

.custom-radio input:checked ~ .checkmark::after {
  display: block;
}

.custom-radio input:checked ~ .checkmark {
  background-color: #ffffff;
  border-color: #000000;
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.custom-radio input:checked ~ .checkmark::after {
  display: block;
}

.checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 11px;
  width: 11px;
  background-color: #eeeeee;
  border: 1px solid #555;
  border-radius: 2px; /* квадрат */
}

.custom-radio .checkmark::after {
  left: 2px;
  top: 1px;
  width: 4px;
  height: 4px;
  border: solid rgb(0, 0, 0);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.fs-16 {
  font-family: "Cormorant Garamond";
  font-weight: 300;
  font-size: 18px;
  line-height: 19px;
  letter-spacing: 0%;
  text-align: center;
}

.drinks-text {
  font-family: "Cormorant Garamond";
  font-weight: 700;
  font-size: 12px;
  line-height: 19px;
  letter-spacing: 0%;
  text-align: center;
  text-transform: uppercase;
  margin-top: 44px;
}

.plan-first {
  /* opacity: 0; */
}

.plan-second {
  /* opacity: 0; */
}

.mt-17 {
  margin-top: 17px;
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mt-48 {
  margin-top: 48px;
}

.mt-30 {
  margin-top: 30px;
}

.mt-15 {
  margin-top: 15px;
}

.presence {
  font-family: "Cormorant Garamond";
  font-weight: 400;
  font-size: 12px;
  line-height: 19px;
  text-align: center;
  margin-top: 30px;
}

.presense-date {
  font-family: "Cormorant Garamond";
  font-weight: 700;
  font-size: 23px;
  line-height: 19px;
  text-align: center;
}

.btn {
  width: 178px;
  height: 26px;
  font-family: "Cormorant Garamond";
  font-weight: 700;
  font-size: 12px;
  line-height: 19px;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #969696;
  margin-top: 30px;
  margin-bottom: 27px;
  color: #000000;
}

.chat-title {
  margin-top: 45px;
  margin-bottom: 20px;
}

.chat-text {
  font-family: "Cormorant Garamond";
  font-weight: 300;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
}

.chat {
  width: 178px;
  height: 26px;
  font-family: "Cormorant Garamond";
  font-weight: 700;
  font-size: 12px;
  line-height: 19px;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #969696;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

a {
  text-decoration: none; /* убирает подчёркивание */
  color: inherit; /* делает цвет ссылки таким же, как у родителя */
}

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

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

.text-block {
  position: relative;
  height: 100px;
  width: 100%;

  text-align: center;
  color: white;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 0;
  overflow: hidden;
  margin-bottom: 30px;
}

.names-end {
  font-family: "Cormorant Garamond";
  font-weight: 600;
  font-size: 42px;
  line-height: 42px;
  text-align: center;
  /* opacity: 0; */
}

.signature {
  font-family: Cormorant Garamond;
  font-weight: 300;
  font-size: 23px;
  line-height: 19px;
  text-align: center;
  margin-top: 35px;
}

.signature-name {
  margin-top: 15px;
  font-family: "Kindentosca", sans-serif;
  font-size: 45px;
  font-weight: 400;
  color: #7e1222;
}

.signature-date {
  font-family: Cormorant Garamond;
  font-weight: 300;
  font-size: 23px;
  line-height: 23px;
  text-align: center;
  margin-bottom: 50px;
}

.footer {
  /* opacity: 0; */
}

[class*="animate"],
.calendar,
.welcome-title,
.welcome-top,
.timer-text,
.timer,
.plan-title,
.plan-item,
.location-title,
.location-img,
.location-text,
.route-title,
.route-text,
.details-title,
.details-mail,
.details-text,
.details-img,
.map,
.form-title,
.name-family,
.form-text,
.input-text,
.custom-radio,
.drinks-text,
.presence,
.presence-date,
.chat-title,
.chat-text,
.chat,
.container,
.names-end,
.signature,
.signature-name,
.signature-date {
  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;
  }
}
