/* ===== базовое ===== */
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(ellipse at 30% 10%, #421f2e 0%, #1d0d15 40%, #0a0407 100%);
  color: #f6e9ec;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-top: max(88px, calc(env(safe-area-inset-top) + 78px));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* ===== навигация ===== */
.nav {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(232,180,184,.22);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6);
  max-width: calc(100vw - 24px);
}
.nav a {
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #c996a0;
  text-decoration: none;
  border-radius: 999px;
  transition: color .25s, background .25s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.nav a:hover { color: #f6e9ec; background: rgba(255,255,255,.06); }
.nav a.active {
  color: #2a0f18;
  background: linear-gradient(135deg, #f3d9a0 0%, #e8b4b8 100%);
}

/* ===== сердечки ===== */
.heart {
  position: fixed;
  bottom: -40px;
  color: #e8a0ad;
  opacity: 0;
  pointer-events: none;
  animation: float linear infinite;
  z-index: 1;
}
@keyframes float {
  0%   { transform: translateY(0) rotate(0); opacity: 0; }
  10%  { opacity: .55; }
  90%  { opacity: .15; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* ===== карточка ===== */
.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(232,180,184,.22);
  border-radius: 28px;
  padding: 52px 40px 44px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
  text-align: center;
  animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ===== типографика ===== */
.ornament {
  font-size: 22px;
  color: #d4af7a;
  letter-spacing: 8px;
  margin-bottom: 22px;
  opacity: .85;
}
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1.15;
  background: linear-gradient(180deg, #fff 0%, #f0c9cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.sub {
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c996a0;
  font-weight: 300;
}
.days {
  margin: 26px 0 32px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: #d9b3ba;
  font-style: italic;
}
.days b {
  font-size: 26px;
  font-style: normal;
  color: #f3d9a0;
  font-weight: 500;
  margin: 0 4px;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,122,.5), transparent);
  margin: 0 0 30px;
}

/* ===== форма ===== */
label {
  display: block;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c996a0;
  margin-bottom: 14px;
}
textarea {
  width: 100%;
  min-height: 140px;
  padding: 18px 20px;
  resize: vertical;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(232,180,184,.25);
  border-radius: 16px;
  color: #f6e9ec;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  outline: none;
  transition: .35s;
  -webkit-appearance: none;
}
textarea::placeholder { color: #7d5a63; }
textarea:focus {
  border-color: rgba(232,180,184,.6);
  background: rgba(0,0,0,.4);
  box-shadow: 0 0 0 4px rgba(232,180,184,.08);
}
button {
  margin-top: 22px;
  width: 100%;
  padding: 17px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2a0f18;
  background: linear-gradient(135deg, #f3d9a0 0%, #e8b4b8 50%, #d49aa5 100%);
  box-shadow: 0 12px 30px -10px rgba(232,180,184,.55);
  transition: transform .25s, box-shadow .25s, opacity .25s;
  -webkit-tap-highlight-color: transparent;
  min-height: 54px;
}
button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(232,180,184,.7); }
button:active:not(:disabled) { transform: translateY(0); }
button:disabled { opacity: .5; cursor: not-allowed; }

.status {
  margin-top: 16px;
  font-size: 13.5px;
  min-height: 20px;
  color: #c996a0;
}
.status.err { color: #e88b8b; }

/* ===== финальный экран ===== */
.done { display: none; padding: 20px 0 8px; animation: rise .8s both; }
.done .big { font-size: 52px; margin-bottom: 18px; }
.done h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 32px;
  color: #f3d9a0;
  margin-bottom: 12px;
}
.done p { color: #c996a0; font-size: 15px; line-height: 1.7; }

/* ===== адаптив ===== */
@media (max-width: 520px) {
  .card { padding: 40px 22px 34px; border-radius: 22px; }
  h1 { font-size: 32px; }
  .ornament { font-size: 18px; letter-spacing: 6px; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 11px; font-size: 11px; letter-spacing: 1px; }
}
