body {
  background-color: var(--background-color);
}

.header {
  max-width: 412px;
  width: 100%;
  margin: auto;
}

.title {
  font-family: var(--kursiv-text);
  font-weight: 400;
  font-size: 48px;
  text-align: center;
}

.header-text {
  font-size: clamp(52.42px, 14.563vw, 60px);
}

.pink {
  color: var(--kursiv-color);
}

.child {
  max-width: 412px;
  width: 100%;
}

.kursiv {
  font-family: var(--title-font);
  font-size: 24px;
}

.left-align {
  text-align: left;
  padding: 40px 29px 0;
  line-height: 121%;
}

.text-rigth {
  text-align: right;
  margin: -10px 61px 0 0;
}

.qwe {
  font-family: 'Buongiorno Rastellino Cyr';
  font-size: 32px;
}

.pink-line {
  background-color: var(--kursiv-color);
  height: 25px;
  font-size: 16px;
}

.hline {
  margin-top: -7px;
}

.ligth {
  max-width: 412px;
  width: 100%;
}

.box-music {
  margin-top: 26px;
  position: relative;
}

.audio {
  background-color: transparent;
  border: none;
  position: absolute;
  top: 8px;
  left: 178px;
  padding: 10px;
  cursor: pointer;
  width: 50px;
}

.music {
  pointer-events: none;
}

.text {
  font-family: var(--main-font);
  text-align: center;
  font-size: clamp(20.97px, 5.825vw, 24px);
}

.main {
  max-width: 412px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
}

.dear {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0 20px;
}

.calendar {
  margin-top: 56px;
  max-width: 348px;
}

.pink-card {
  background-color: var(--kursiv-color);
  color: var(--background-color);
  max-width: 412px;
  width: 100%;
}

.location {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 50px 0;
}

.medium-text {
  font-size: clamp(29.73px, 8.252vw, 34px);
}

.shirt {
  max-width: 240px;
}

.fon {
  max-width: 350px;
}

.people {
  max-width: 300px;
  margin-top: -5px;
}

.block-2 {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.map-button {
  background-color: var(--background-color);
  color: var(--kursiv-color);
  font-family: var(--kursiv-text);
  font-size: 32px;
  border: none;
  border-radius: 64px;
  width: 252px;
  margin-top: 13px;
  height: 41px;
}

.href {
  text-decoration: none;

}

.time {
  margin-top: 26px;
}

.conteiner-posistion {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 95px;
  left: 35px;
}

.box-dress {
  position: relative;
  margin: auto;
  max-width: 412px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dress-text {
  max-width: 327px;
}

.box-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 26px;
  padding: 0 25px;
  justify-content: center;
  align-items: center;
}

.pink-button {
  background-color: var(--kursiv-color);
  color: var(--background-color);
}

.line {
  margin: -10px 0;
  max-width: 412px;
}

.wishes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 30px;
}

.convert {
  margin-top: 10px;
}

.input-wrapper {
  position: relative;
  margin-top: 10px;
}

.placeholder-text {
  position: absolute;
  left: 0;
  top: 17px;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: clamp(17.48px, 4.854vw, 20px);
  line-height: 1.2;
}

input::placeholder {
  font-size: clamp(17.48px, 4.854vw, 20px);
}

.input:focus+.placeholder-text,
.input:valid+.placeholder-text {
  display: none;
}

.form-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: auto;
  transition: height 0.3s ease;
  padding: 0 35px;
}

.korrect-text {
  padding: 0 50px;
}

.allergy-error {
  display: none;
}

.allergy-field {
  max-height: 0;
  display: none;
}

.allergy-field.show {
  max-height: 100px;
  display: block;
  animation: show 0.5s ease;
}

@keyframes show {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.radio {
  display: flex;
  flex-direction: column;
  outline: none;
  border: none;
  padding: 0;
}

.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-circle {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid var(--color-text);
  border-radius: 50%;
  background: transparent;
  transition: all 0.15s;
  position: relative;
}

.input {
  border-bottom: 1px solid #000;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-top: 1px solid transparent;
  background-color: transparent;
  max-width: 330px;
  width: 100%;
  height: 33px;
  margin-top: 9px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  outline: none;
}

.input::placeholder {
  color: #000;
  font-size: 20px;
}

.input:focus {
  border: 1px solid black;
  transition: border 0.5s ease;
}

.custom-radio:hover .radio-circle {
  border-color: var(--color-text);
}

.custom-radio input[type="radio"]:checked+.radio-circle {
  border-color: var(--color-text);
  background: var(--color-text);
}

.radio-text {
  text-align: left;
  font-size: 18px;
  font-family: var(--main-font);

  font-weight: 400;
}

.button {
  max-width: 330px;
  width: 100%;
  transition: all 0.3s ease;
  justify-self: center;
  align-self: center;
  font-family: var(--main-font);
}

.button.touch-pressed {
  background-color: #6b6b6b;
}

@media (hover: hover) {
  .button:hover {
    background-color: var(--background-color-light);
    color: var(--hot-pink-color);
  }
}

.form-send {
  text-align: center;
}

.error-text {
  display: none;
}

.error-text.show {
  display: block;
  animation: show 0.3s ease;
  text-align: left;
}

.radio-error {
  display: none;
  text-align: left;
  font-size: 15px;
}

.radio-error.show {
  display: block;
  animation: show 0.3s ease;
}

@keyframes show {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.varints-text {
  padding-bottom: 5px;
}

.varints {
  padding-bottom: 13px;
  font-size: 15px;
  text-align: left;
}

.custom-radio {
  font-size: 20px;
  text-align: left;
}

.checkbox {
  font-size: 20px;
}

.error-icon {
  font-size: 16px;
}

.input_box {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: var(--main-font);
}

.korrect-text {
  font-size: 20px;
  padding: 9px 40px 20px;

}

.form {
  font-family: var(--main-font);
}

.button {
  font-family: var(--kursiv-text);
  align-self: center;
  justify-self: center;
  width: 252px;
}

.flower {
  margin-bottom: 50px;
  max-width: 412px;
}

.timer-text {
  font-size: clamp(50.73px, 14.078vw, 58px);
  ;
  text-align: center;
  font-family: var(--main-font);
  position: relative;
  width: 100%;
  color: var(--color-text);
}

.colon {
  width: auto;
  font-family: var(--button-font);
  font-size: clamp(50.73px, 14.078vw, 58px);
  ;
  margin-bottom: 5px;
}

.timer {
  display: flex;
  gap: 2px;
  justify-content: center;
  align-items: center;
  position: relative;
}

.timer-title {
  font-size: 48px;
  margin-bottom: 30px;
}

span {
  text-align: center;
}

.time-text {
  font-size: 64px;
  line-height: 78%;
}

.timer-text_small {
  font-size: 15px;
}

.timerting {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.anketa-text {
  transform: rotateZ(-8deg);
  font-weight: 400;
  margin-bottom: 12px;
}

.days::after,
.hours::after,
.minutes::after,
.seconds::after {
  position: absolute;
  top: 63px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-family: var(--main-font);
  font-weight: 400;
  color: var(--kursiv-color);
  text-transform: uppercase;
  white-space: nowrap;
}

.days::after {
  content: "дней";
}

.hours::after {
  content: "часов";
}

.minutes::after {
  content: "минут";
}

.seconds::after {
  content: "секунд";
}

html.envelope-locked,
body.envelope-locked {
  overflow: hidden !important;
  height: 100%;
  overscroll-behavior: none;
}

/* Заставка поверх всего сайта */
.envelope-screen {
  position: fixed;
  inset: 0;
  max-width: 412px;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;

  margin: auto;

  overflow: hidden;
  background: #CC8D81;

  cursor: pointer;
  opacity: 1;
  visibility: visible;

  transition:
    opacity 1.4s ease,
    visibility 1.4s ease;
}

/* Изображение конверта */
.envelope-image {
  display: block;

  width: 100%;
  max-width: 412px;

  object-fit: cover;
  object-position: center;

  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Подсказка */
.envelope-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;

  padding: 0 16px;

  color: #e0dbd0;
  font-family: 'Gogol', serif;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.04em;

  animation: envelopeHint 2s ease-in-out infinite;
  pointer-events: none;
}

/* Плавное исчезновение */
.envelope-screen.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Плавное появление подсказки */
@keyframes envelopeHint {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

/* На небольших экранах */
@media (max-width: 412px) {
  .envelope-hint {
    font-size: 12px;
    bottom: 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .envelope-hint {
    animation: none;
  }
}

.text-convert {
  font-size: 33px;
  line-height: 90%;
  color: white;
  position: absolute;
  top: clamp(174.76px, 48.544vw, 200px);
  left: 0;
  right: 0;
  margin: auto;
  width: 120px;
}

.kursiv-convert {
  position: absolute;
  font-size: 23px;
  line-height: 90%;
  left: 0;
  right: 0;
  margin: auto;
  width: 164px;
  top: clamp(494.18px, 137.136vw, 565px);
  color: white;
  font-family: 'Gogol';
}