* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 700px at 50% -10%, #2a2117 0%, #0d0f14 55%, #07080b 100%);
  color: #e9e3d6; font: 15px/1.5 -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: grid; place-items: center; overflow: hidden;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; }
.card {
  position: relative; width: min(380px, 92vw); padding: 40px 36px 32px; text-align: center;
  background: rgba(20, 22, 28, .62); border: 1px solid rgba(232, 200, 140, .16); border-radius: 22px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: rise .8s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.emblem { width: 64px; height: 64px; color: #e2bd78; filter: drop-shadow(0 0 18px rgba(226, 189, 120, .35)); }
h1 { font: 500 34px/1.1 "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; margin: 12px 0 4px; letter-spacing: .02em; }
p { margin: 0 0 24px; color: #9b968c; font-size: 14px; }
input {
  width: 100%; margin-bottom: 12px; padding: 13px 16px; border-radius: 12px; font: inherit; color: inherit;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); outline: none; transition: .2s;
}
input:focus { border-color: rgba(226, 189, 120, .6); box-shadow: 0 0 0 4px rgba(226, 189, 120, .12); }
button {
  width: 100%; margin-top: 6px; padding: 13px; border: 0; border-radius: 12px; cursor: pointer;
  font: 600 15px/1 inherit; font-family: inherit; color: #1b1408;
  background: linear-gradient(135deg, #f0d39a, #c99a4e); box-shadow: 0 10px 30px rgba(201, 154, 78, .3); transition: .2s;
}
button:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(201, 154, 78, .42); }
.err { min-height: 22px; margin-top: 12px; color: #ff9b8a; font-size: 14px; }
textarea { width: 100%; margin-bottom: 12px; padding: 13px 16px; border-radius: 12px; font: inherit; color: inherit; resize: vertical;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); outline: none; }
textarea:focus { border-color: rgba(226, 189, 120, .6); box-shadow: 0 0 0 4px rgba(226, 189, 120, .12); }
.consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13px; color: #9b968c; margin: 4px 0 10px; }
.consent input { width: auto; margin: 3px 0 0; accent-color: #e2bd78; }
.links { margin-top: 14px; font-size: 13px; color: #6f6a62; }
.links a, .consent a { color: #c9a868; text-decoration: none; }
.links.foot { margin-top: 18px; }
b { color: #f0d39a; font-weight: 600; }
button:disabled { cursor: wait; }
.hint-phone { margin: -4px 0 12px; font-size: 12.5px; color: #8f8a80; }
.mode { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.mode button { flex: 1; margin: 0; padding: 9px 6px; background: none; box-shadow: none; color: #9b968c; font-weight: 500; font-size: 13.5px; line-height: 1.25; }
.mode button.on { color: #1b1408; background: linear-gradient(135deg, #f0d39a, #c99a4e); }
.mode button:hover { transform: none; }
.chan-label { text-align: left; font-size: 13px; color: #9b968c; margin: 4px 0 8px; }
.chans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.chans label { cursor: pointer; }
.chans input { display: none; }
.chans span { display: block; padding: 11px 8px; border-radius: 12px; font-size: 14px; color: #cfc9bc;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); transition: .15s; }
.chans input:checked + span { color: #1b1408; background: linear-gradient(135deg, #f0d39a, #c99a4e); border-color: transparent; font-weight: 600; }
.chans small { display: block; font-size: 11.5px; font-weight: 400; opacity: .75; margin-top: 2px; }
.tg-open { display: block; margin-top: 12px; padding: 12px; border-radius: 12px; text-align: center; text-decoration: none; font-weight: 600;
  color: #fff; background: #2aabee; }
.hint-phone b { color: #c9a868; font-weight: 600; }
