* {
  box-sizing: border-box;
}

:root {
  --bg: #090709;
  --card: #0d0b0d;
  --card-2: #130d11;
  --pink: #ff3970;
  --pink-soft: #f58aa9;
  --pink-dark: #6f2944;
  --text: #f7edf1;
  --muted: #c7b5bd;
  --line: #33252c;
}

html {
  min-height: 100%;
  background: #151515;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #151515;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.site-shell {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 4%,
      rgba(117, 4, 47, .33),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #0b080a 0%,
      #090709 100%
    );
}

/* =========================
   ЭКРАН
========================= */

.screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 56px 24px 42px;
  overflow: hidden;
}
.eyebrow,
h1,
.intro,
.question-card,
.signature {
  width: 100%;
  max-width: 342px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   СВЕЧЕНИЕ
========================= */

.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(45px);
}

.glow-top {
  width: 190px;
  height: 150px;
  top: -75px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(120, 0, 57, .32);
}

/* =========================
   ВЕРХНИЙ ТЕКСТ
========================= */

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--pink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
}

h1,
h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff6f7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

h1 {
  font-size: clamp(35px, 9vw, 43px);
  line-height: 0.98;
  text-align: center;
}

/* =========================
   ОПИСАНИЕ
========================= */

.intro {
  margin-top: 17px;
  margin-bottom: 19px;
  max-width: 280px;
  text-align: center;
}
/* =========================
   КАРТОЧКА
========================= */

.question-card {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  border-radius: 17px;
  background: #000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .42);
}

.question-card-inner {
  padding: 13px 11px 11px;
  border: 1px solid #2a2528;
  border-radius: 13px;
  background: linear-gradient(
    180deg,
    #111011,
    #0c0b0c
  );
}

.question {
  margin: 0 0 10px;
  color: #eee8eb;
  font-size: 11px;
  line-height: 1.35;
}

/* =========================
   INPUT
========================= */

.answer-input {
  width: 100%;
  height: 37px;
  padding: 0 12px;
  border: 1px solid #2e2b2e;
  border-radius: 8px;
  outline: none;
  color: #fff;
  background: #191819;
  font-size: 11px;
  transition: .2s ease;
}

.answer-input::placeholder {
  color: #6f6b6e;
}

.answer-input:focus {
  border-color: #7d2949;
  box-shadow: 0 0 0 3px rgba(255, 57, 112, .08);
}

/* =========================
   КНОПКА
========================= */

.primary-button {
  width: 100%;
  height: 37px;
  margin-top: 9px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  background: linear-gradient(
    135deg,
    #ff3d72,
    #ff4f7d
  );
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 45, 105, .17);
  transition:
    transform .18s ease,
    filter .18s ease;
}

.primary-button:active {
  transform: scale(.98);
}

.primary-button:hover {
  filter: brightness(1.08);
}

/* =========================
   ОШИБКА
========================= */

.error-message {
  min-height: 14px;
  margin: 7px 0 0;
  color: #ff7d9d;
  font-size: 10px;
  text-align: center;
}

/* =========================
   ПОДПИСЬ
========================= */

.signature {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: #c64e79;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* =========================
   СКРЫТИЕ
========================= */

.hidden {
  display: none !important;
}

/* =========================
   ВТОРОЙ ЭКРАН
========================= */

.surprise-screen {
  padding-top: 65px;
}

.surprise-screen h2 {
  font-size: 25px;
  line-height: 1.08;
  margin-bottom: 20px;
}

/* =========================
   ФОТО
========================= */

.photo {
  overflow: hidden;
  background: #fff;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-large {
  width: 100%;
  height: 240px;
  border: 1px solid #f0a4b9;
  border-radius: 20px;
}

.photo-wide {
  width: 100%;
  height: 170px;
  margin-bottom: 22px;
}

/* =========================
   ТЕКСТ ВТОРОГО ЭКРАНА
========================= */

.section-label {
  margin: 20px 0 22px;
  color: #dfc9d1;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  text-align: center;
}

.wish-card {
  padding: 17px 15px 18px;
  border: 1px solid #6b2a46;
  border-radius: 17px;
  background: #1d0b13;
  text-align: center;
}

.wish-title {
  margin-bottom: 8px;
  color: var(--pink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.wish-text {
  color: #fff3f5;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
}

.final-text {
  margin: 22px 0 0;
  color: #ff6290;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  text-align: center;
}

/* =========================
   АНИМАЦИЯ
========================= */

.fade-in {
  animation: fadeIn .7s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SHAKE
========================= */

.shake {
  animation: shake .32s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* =========================
   ПК
========================= */

@media (min-width: 500px) {

  .site-shell {
    min-height: 870px;
    margin: 32px auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
  }

  .screen {
    min-height: 870px;
  }
}