@font-face { font-family: Prata; src: url(fonts/prata-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Lora; src: url(fonts/lora-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* кириллица — только для строки ИП в подвале (тот же набор Lora, что на сайте) */
@font-face { font-family: Lora; src: url(fonts/lora-cyrillic.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #0e0b1a; --bg2: #161126; --panel: rgba(255,255,255,0.04);
  --text: #ece8ff; --muted: #a79fce; --line: rgba(205,163,73,0.18);
  --gold: #cda349; --gold-hi: #f0d68a; --gold-ink: #1a1408;
  --star: rgba(255,255,255,0.75); --wheel: rgba(205,163,73,0.30);
  --me: rgba(185,139,255,0.16); --tara: rgba(255,255,255,0.06);
  --err: #ff9b8a; --ok: #9fe0b4;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f2ea; --bg2: #ece5d6; --panel: rgba(255,255,255,0.7);
    --text: #1d1830; --muted: #5d5574; --line: rgba(138,106,43,0.22);
    --gold: #8a6a2b; --gold-hi: #6f531c; --gold-ink: #fffaf0;
    --star: rgba(60,48,110,0.35); --wheel: rgba(138,106,43,0.35);
    --me: rgba(120,90,200,0.12); --tara: rgba(255,255,255,0.9);
    --err: #b3321c; --ok: #1f7a43;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 Lora, Georgia, serif; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, .logo { font-family: Prata, Georgia, serif; font-weight: 400; }

/* небо */
.sky { position: relative; overflow: hidden; background:
  radial-gradient(1200px 600px at 75% -10%, var(--bg2), transparent 70%), var(--bg); }
.sky::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9; background-image:
  radial-gradient(1.2px 1.2px at 12% 18%, var(--star), transparent 60%), radial-gradient(1px 1px at 28% 62%, var(--star), transparent 60%),
  radial-gradient(1.4px 1.4px at 46% 30%, var(--star), transparent 60%), radial-gradient(1px 1px at 63% 78%, var(--star), transparent 60%),
  radial-gradient(1.2px 1.2px at 82% 22%, var(--star), transparent 60%), radial-gradient(1px 1px at 91% 58%, var(--star), transparent 60%),
  radial-gradient(1px 1px at 6% 84%, var(--star), transparent 60%), radial-gradient(1.3px 1.3px at 37% 90%, var(--star), transparent 60%),
  radial-gradient(1px 1px at 55% 8%, var(--star), transparent 60%), radial-gradient(1px 1px at 72% 44%, var(--star), transparent 60%); }

header { position: relative; z-index: 2; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.logo { font-size: 26px; letter-spacing: .02em; color: var(--gold-hi); text-decoration: none; }
nav { display: flex; gap: 28px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }

.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
h1 { font-size: 52px; line-height: 1.12; margin: 0 0 20px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 32em; }
.btn { display: inline-block; border: 0; cursor: pointer; font: 600 16px/1 Lora, Georgia, serif; padding: 16px 28px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); text-decoration: none; }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* чат с колесом зодиака позади */
.stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.wheel { position: absolute; width: 520px; max-width: 120%; aspect-ratio: 1; color: var(--wheel); }
.chat { position: relative; width: 100%; max-width: 380px; padding: 18px; border-radius: 24px; border: 1px solid var(--line);
  background: var(--panel); backdrop-filter: blur(6px); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ava { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--gold-hi), var(--gold) 70%); }
.chat-head small { display: block; color: var(--muted); font-size: 12px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; margin: 8px 0; font-size: 15px; line-height: 1.5; }
.msg.me { margin-left: auto; background: var(--me); border-bottom-right-radius: 4px; }
.msg.tara { background: var(--tara); border: 1px solid var(--line); border-bottom-left-radius: 4px; }

section.block { padding: 88px 0; border-top: 1px solid var(--line); }
h2 { font-size: 38px; line-height: 1.2; margin: 0 0 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.text { color: var(--muted); margin: 0; max-width: 34em; }
ul.pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
ul.pts li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
ul.pts b { color: var(--gold-hi); font-weight: 600; }

.signs { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 28px; font-size: 22px; color: var(--gold); font-family: "Segoe UI Symbol", "Noto Sans Symbols", sans-serif; }

/* форма */
.access { text-align: center; }
.access .text { margin: 0 auto 32px; }
form { max-width: 460px; margin: 0 auto; text-align: left; }
label.f { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input[type=email] { width: 100%; font: 17px Lora, Georgia, serif; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; outline: none; }
input[type=email]:focus { border-color: var(--gold); }
.bad input[type=email] { border-color: var(--err); }
.errmsg { display: none; color: var(--err); font-size: 14px; margin: 8px 0 0; }
.bad .errmsg { display: block; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 18px 0 22px; }
.agree input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.agree.need { color: var(--err); margin-bottom: 6px; }
.needmsg { display: none; color: var(--err); font-size: 14px; margin: 0 0 22px; }
.agree.need + .needmsg { display: block; }
form .btn { width: 100%; }
[hidden] { display: none !important; }
/* форма закрыта, пока на <html> не стоит data-waitlist="open" (правка CC-0 01.11: почту не собираем до решения о хранении) */
[data-waitlist="closed"] .open-only { display: none; }
.closed { max-width: 460px; margin: 0 auto; font-size: 18px; color: var(--gold-hi); }
[data-waitlist="open"] .closed { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done { display: none; max-width: 460px; margin: 0 auto; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ok); font-size: 18px; }
.sent form { display: none; }
.sent .done { display: block; }

footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
footer p { margin: 0 0 12px; max-width: 46em; }
footer .links a { color: var(--muted); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar { flex-wrap: wrap; row-gap: 10px; padding: 16px 0 8px; }
  nav { width: 100%; gap: 20px; font-size: 14px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 28px; padding-bottom: 64px; }
  h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .stage { min-height: 400px; }
  .wheel { width: 420px; }
  section.block { padding: 64px 0; }
  h2 { font-size: 30px; }
  .two { grid-template-columns: 1fr; gap: 28px; }
  .btn.cta { width: 100%; text-align: center; }
}

/* заглушки /en/privacy/, /en/terms/, /en/contact/ — до текстов (CC-0) */
.stub { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 120px; min-height: 60vh; }

/* Pricing (анкета Prodamus, наряд CC-0 02.11): две группы — подписки и пакеты токенов; суммы в рублях */
.pricing h3.pgroup { font: 600 15px/1.3 Lora, Georgia, serif; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold-hi); margin: 32px 0 14px; }
.pricing h3.pgroup span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-left: 8px; }
ul.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
ul.plans.packs { grid-template-columns: repeat(2, 1fr); max-width: 66%; }
ul.plans li { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
  display: flex; flex-direction: column; gap: 6px; }
ul.plans b { font-weight: 600; }
ul.plans .price { font: 400 28px/1.2 Prata, Georgia, serif; color: var(--gold-hi); }
ul.plans .price small { font: 400 14px Lora, Georgia, serif; color: var(--muted); margin-left: 4px; }
ul.plans .tok { color: var(--muted); font-size: 15px; }
.pricing .pnote { max-width: 46em; }
footer .seller { font-size: 13px; }
footer .seller a { color: var(--muted); }
@media (max-width: 760px) {
  ul.plans, ul.plans.packs { grid-template-columns: 1fr; max-width: none; }
}

/* Terms / Privacy (черновики CC-0 02.11 вместо «Coming soon.») */
main.doc { padding-top: 40px; padding-bottom: 72px; }   /* бока — от .wrap (не обнулять) */
main.doc > * { max-width: 46em; }
main.doc h1 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 18px; }
main.doc h2 { font-size: 24px; margin: 36px 0 10px; }
main.doc p { margin: 0 0 14px; color: var(--muted); }
main.doc b { color: var(--text); font-weight: 600; }
main.doc a { color: var(--gold-hi); }
main.doc .tbl { overflow-x: auto; margin: 6px 0 18px; }
main.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
main.doc th, main.doc td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; }
main.doc th { color: var(--gold-hi); font-weight: 600; background: var(--panel); }
