/* ========================================
   Позвать на свидание — main UI
   Neutral, modern, Unbounded + Manrope
   ======================================== */

:root {
  --accent: #c45d6a;
  --accent-deep: #a34452;
  --accent-soft: #e8b4bc;
  --accent-glow: rgba(196, 93, 106, 0.28);
  --accent-glow-soft: rgba(196, 93, 106, 0.14);
  --bg-1: #f6f5f3;
  --bg-2: #eceae6;
  --bg-3: #e4e8ee;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --text: #1f2430;
  --text-soft: #5c6475;
  --gray: #8b93a3;
  --shadow: 0 12px 36px rgba(31, 36, 48, 0.08);
  --shadow-lg: 0 20px 50px rgba(31, 36, 48, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Manrope', system-ui, sans-serif;
  --font-display: 'Unbounded', 'Manrope', sans-serif;

  /* aliases for older class names */
  --pink-400: var(--accent);
  --pink-500: var(--accent);
  --pink-600: var(--accent-deep);
  --pink-200: var(--accent-soft);
  --pink-100: #f3e6e8;
  --pink-glow: var(--accent-glow);
  --pink-glow-soft: var(--accent-glow-soft);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(196, 93, 106, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(120, 140, 170, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(180, 170, 150, 0.15) 0%, transparent 55%),
    linear-gradient(165deg, #fafaf8 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

button, input, textarea, select { font-family: inherit; }

.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-heart {
  position: absolute;
  bottom: -10%;
  opacity: 0;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
  filter: grayscale(0.35) opacity(0.7);
  user-select: none;
}

@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  8% { opacity: var(--heart-opacity, 0.12); }
  92% { opacity: var(--heart-opacity, 0.12); }
  100% { transform: translateY(-110vh) translateX(var(--drift, 20px)) rotate(360deg); opacity: 0; }
}

.site-header, .main, .site-footer { position: relative; z-index: 1; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.nav a { color: var(--text-soft); font-weight: 500; font-size: 0.92rem; }
.nav a:hover { color: var(--text); }
.nav-cta {
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  box-shadow: var(--shadow);
}

.main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--gray);
  font-size: 0.85rem;
}
.site-footer p + p { margin-top: 0.35rem; }
.site-footer .footer-contact a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer .footer-contact a:hover { color: var(--accent-deep); }
.site-footer .footer-legal {
  margin-top: 0.65rem;
  font-size: 0.8rem;
}
.site-footer .footer-legal a {
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer .footer-legal a:hover { color: var(--text-soft); }

.legal-wrap {
  max-width: 780px;
  margin: 0.5rem auto 2.5rem;
  padding: 2rem 1.75rem 2.25rem;
}
.legal-doc .legal-hero {
  margin-bottom: 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(31, 36, 48, 0.08);
}
.legal-doc .legal-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.55rem;
}
.legal-doc h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: var(--text);
}
.legal-doc .legal-lead {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 62ch;
}
.legal-doc .legal-summary {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(243, 230, 232, 0.55), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(196, 93, 106, 0.18);
}
.legal-doc .legal-summary h2 {
  margin-top: 0;
  font-size: 1rem;
}
.legal-doc section {
  margin-bottom: 0.35rem;
}
.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 1.45rem 0 0.65rem;
  color: var(--text);
}
.legal-doc p,
.legal-doc li {
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}
.legal-doc p + p { margin-top: 0.55rem; }
.legal-doc ul {
  padding-left: 1.15rem;
  margin: 0.55rem 0 0.75rem;
}
.legal-doc li { margin: 0.28rem 0; }
.legal-doc a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc .legal-contact {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(31, 36, 48, 0.08);
}
.legal-doc .legal-accept {
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: rgba(31, 36, 48, 0.04);
  font-weight: 500;
  color: var(--text);
}

.agree-box {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1.1rem 0 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(31, 36, 48, 0.04);
  border: 1.5px solid rgba(31, 36, 48, 0.08);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-soft);
}
.agree-box input { margin-top: 0.2rem; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.agree-box a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2a3140 0%, #1f2430 100%);
  box-shadow: 0 10px 28px rgba(31, 36, 48, 0.22);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(31, 36, 48, 0.28);
  filter: brightness(1.06);
  color: #fff;
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(31, 36, 48, 0.12);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 36, 48, 0.25);
  color: var(--text);
}

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; border-radius: 999px; }

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
}

.flash {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.flash-success { background: rgba(220, 240, 225, 0.95); color: #1f6b3a; border: 1px solid #b7dfc4; }
.flash-error { background: rgba(255, 230, 230, 0.95); color: #9b1c1c; border: 1px solid #f0c0c0; }
.flash-info { background: rgba(255, 255, 255, 0.85); color: var(--text-soft); border: 1px solid rgba(31,36,48,0.08); }

/* ===== Landing ===== */
.page-landing .main { max-width: 820px; padding-top: 0.5rem; }

.landing-hero {
  text-align: center;
  padding: 2.5rem 0.5rem 1.75rem;
}

.mega-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}

.mega-sub {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--text-soft);
  font-weight: 500;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.howto {
  padding: 0.5rem 0 2rem;
}

.howto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.howto-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.howto-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.howto-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.howto-list p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
}

.create-section { padding-bottom: 2rem; }
.create-panel { max-width: 640px; margin: 0 auto; }

.create-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
}

.create-lead { display: none; }


.field-label-inline {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.meta { color: var(--text-soft); font-size: 0.88rem; }

/* Auth */
.page-auth .main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 140px);
}

.auth-card { width: 100%; max-width: 420px; }
.auth-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  text-align: center;
  letter-spacing: -0.02em;
}
.auth-sub { text-align: center; color: var(--text-soft); margin-bottom: 1.25rem; font-size: 0.95rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.9rem; }
.auth-switch { text-align: center; margin-top: 1.1rem; color: var(--text-soft); font-size: 0.9rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; font-weight: 500; color: var(--text-soft); }
.input, .textarea, .select {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(31, 36, 48, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(196, 93, 106, 0.55);
  box-shadow: 0 0 0 4px var(--accent-glow-soft);
}

.textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

/* Cabinet */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-head p { color: var(--text-soft); margin-top: 0.25rem; }

.invite-list { display: grid; gap: 1rem; }

.invite-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.invite-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.invite-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }

.badge {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(31, 36, 48, 0.08);
  color: var(--text-soft);
  margin-top: 0.45rem;
}

.badge-active { background: rgba(80, 180, 120, 0.18); color: #1a7a45; }
.badge-answered { background: rgba(196, 93, 106, 0.16); color: var(--accent-deep); }
.badge-pending { background: rgba(210, 170, 80, 0.22); color: #8a6200; }

.invite-actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; }

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-soft);
}
.empty-state .emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }

.wizard { max-width: 720px; margin: 0 auto; }

.draft-preview {
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(31, 36, 48, 0.04);
  border: 1px solid rgba(31, 36, 48, 0.06);
}
.draft-preview h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.draft-preview ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.draft-preview li { font-size: 0.95rem; }

.activity-builder { display: flex; flex-direction: column; gap: 0.75rem; margin: 0.75rem 0; }
.activity-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}
.activity-row .emoji-input { text-align: center; padding-left: 0.4rem; padding-right: 0.4rem; }
.activity-row .js-random-act {
  min-width: 42px;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  transition: transform 0.35s var(--ease);
}
.activity-row .js-random-act.is-spun {
  transform: rotate(360deg) scale(1.08);
}

.option-list { display: flex; flex-direction: column; gap: 0.85rem; margin: 1rem 0; }

.option-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1.5px solid rgba(31, 36, 48, 0.1);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.option-item label[for] {
  cursor: pointer;
  display: block;
}

.option-item label[for] h4 { font-size: 0.98rem; margin-bottom: 0.2rem; color: var(--text); }
.option-item label[for] p { font-size: 0.85rem; color: var(--text-soft); line-height: 1.4; font-weight: 400; }

.option-item:hover { border-color: rgba(196, 93, 106, 0.4); transform: translateY(-2px); }
.option-item.selected {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow-soft);
  background: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(243, 230, 232, 0.65));
}

.option-item > input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.option-item .conditional-fields .input,
.option-item .conditional-fields .textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 0.35rem;
}

.option-item .conditional-fields .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: default;
  margin-top: 0.65rem;
}

.option-item .conditional-fields .field span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
}

.option-item h4 { font-size: 0.98rem; margin-bottom: 0.2rem; }
.option-item p { font-size: 0.85rem; color: var(--text-soft); line-height: 1.4; }
.option-price { font-weight: 700; color: var(--accent-deep); white-space: nowrap; }

.total-box {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: rgba(31, 36, 48, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.total-box .sum { font-size: 1.4rem; color: var(--text); font-family: var(--font-display); }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.gender-toggle { display: flex; gap: 0.65rem; flex-wrap: wrap; margin: 0.35rem 0 0.5rem; }
.gender-toggle label {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid rgba(31, 36, 48, 0.12);
  background: rgba(255,255,255,0.7);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}
.gender-toggle input { display: none; }
.gender-toggle label:has(input:checked) {
  background: var(--text);
  color: #fff;
  border-color: transparent;
}

.conditional-fields { display: none; margin-top: 0.75rem; }
.conditional-fields.show { display: block; animation: fadeIn 0.35s var(--ease); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.link-box { display: flex; gap: 0.5rem; margin: 1rem 0; flex-wrap: wrap; }
.link-box input { flex: 1; min-width: 180px; }

.response-block { margin-top: 1.25rem; display: grid; gap: 0.65rem; }
.response-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(31, 36, 48, 0.08);
  font-size: 0.95rem;
}
.response-row strong { color: var(--text-soft); font-weight: 500; }

@media (max-width: 768px) {
  .invite-card { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: 48px 1fr auto auto; }
  .response-row { grid-template-columns: 1fr; }
  .option-item { grid-template-columns: auto 1fr; }
  .option-price { grid-column: 2; }
  .landing-hero { padding-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
