/* Главная «Натальная карта онлайн»: длинная страница, звёздное небо из «Ритуала», под телефон (~99 % трафика) */
body { min-height: 100svh; background: var(--bg); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(80% 50% at 50% 0%, #2a2116 0%, rgba(11, 10, 9, 0) 70%); }
body.is-flow { overflow: hidden; }
button, a, .v-chip { touch-action: manipulation; }
.p3-sky { position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none; }
.p4-muted { color: var(--muted); font-size: 14.5px; }
.p4-center { text-align: center; }

/* ---------- шапка ---------- */
.p4-top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px); padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(11, 10, 9, .94); border-bottom: 1px solid var(--line-2); }
.p4-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.p4-rune { width: 16px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(228, 199, 146, .6)); }
.p4-menu { border: 1px solid var(--line); color: var(--gold-2); border-radius: 99px; padding: 8px 14px; font-size: 14px; text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) { .p4-brand .v-caps { letter-spacing: .2em; font-size: 11px; } }

/* ---------- сетка ---------- */
.p4-main { position: relative; z-index: 1; display: grid; gap: 56px; padding: 32px 16px 72px; max-width: 680px; margin: 0 auto; }

/* ---------- первый экран ---------- */
.p4-hero { text-align: center; display: grid; justify-items: center; scroll-margin-top: 80px; }
.p4-hero h1 { font-size: clamp(44px, 9vw, 84px); line-height: .98; margin: 16px 0 14px; font-weight: 500; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff6e6 30%, #cdb58a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p4-lead { color: #d6cdbf; font-size: clamp(16px, 1.8vw, 18.5px); max-width: 540px; margin: 0 0 24px; }
.p4-calc { width: 100%; text-align: left; }
.p4-calc .v-form { background: rgba(22, 19, 15, .92); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 30px 80px -40px rgba(228, 199, 146, .35); }
.p4-calc .v-btn { width: 100%; min-height: 56px; font-size: 17px; }
.p4-resume { margin-top: 16px; color: var(--gold-2); font-size: 14px; }
.p4-sign { display: flex; align-items: center; gap: 12px; margin-top: 24px; text-align: left; font-size: 13px; color: var(--muted); }
.p4-sign img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line); }
.p4-sign i { display: block; font: italic 500 20px var(--serif); color: var(--text); }

/* ---------- результат ---------- */
.p4-result { display: grid; gap: 14px; scroll-margin-top: 84px; animation: p4in .6s ease both; }
@keyframes p4in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
.p4-res-h { text-align: center; }
.p4-res-h p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.p4-wheel-box { margin: 0; display: grid; justify-items: center; gap: 8px; }
.p4-wheel-box figcaption { font-size: 13.5px; color: var(--muted); text-align: center; max-width: 380px; }
.p4-wheel { width: min(100%, 360px); height: auto; }
.p4-axis { stroke: var(--gold-2); stroke-width: 1; stroke-dasharray: 4 4; opacity: .7; }
.p4-asc { fill: var(--gold-2); font: 600 10px var(--sans); letter-spacing: .1em; dominant-baseline: central; }
.mm-planet.is-locked circle { stroke: var(--dim); }
.mm-planet.is-locked text { fill: var(--dim); }
.p4-res-t { font-size: clamp(28px, 5vw, 36px); text-align: center; margin: 22px 0 0; line-height: 1.1; }

.p4-card { background: rgba(22, 19, 15, .92); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.p4-card p { margin: 12px 0 0; color: #ddd4c6; }
.p4-card-h { display: flex; align-items: center; gap: 14px; }
.p4-card-h span:not(.p4-sym) { display: grid; gap: 2px; flex: 1; }
.p4-card-h b { font: 500 23px/1.1 var(--serif); }
.p4-card-h small { color: var(--muted); font-size: 13.5px; }
.p4-sym { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line);
  font: 22px var(--serif); color: var(--gold-2); }
.p4-card.is-muted { border-color: var(--line-2); }
.p4-locked { display: grid; gap: 10px; }
.p4-card.is-locked { border-color: var(--line-2); position: relative; overflow: hidden; }
.p4-card.is-locked .p4-sym { color: var(--muted); border-color: var(--line-2); }
.p4-lock { font-style: normal; font-size: 16px; opacity: .7; }
.p4-hint { font-size: 14.5px; }
.p4-blur { filter: blur(5px); user-select: none; pointer-events: none; opacity: .75; font-size: 14.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p4-card.is-locked { padding: 14px 18px; }
.p4-card.is-locked p { margin-top: 8px; }
.p4-unlock { display: grid; gap: 12px; text-align: center; margin-top: 8px; padding: 22px 20px; border-radius: 20px; border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(201, 164, 106, .14), rgba(22, 19, 15, .92)); }
.p4-unlock p { margin: 0; color: #ddd4c6; }
.p4-unlock small { color: var(--muted); font-size: 13px; }

.p4-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.p4-price span { color: var(--muted); font-size: 15px; }
.p4-price b { font: 500 34px var(--serif); color: var(--gold-2); }
.p4-cta { width: 100%; min-height: 58px; font-size: 17px; }

/* ---------- текстовые блоки ---------- */
.p4-text h2, .p4-offer h2, .p4-final h2 { font-size: clamp(30px, 5.4vw, 42px); line-height: 1.08; margin: 0 0 16px; }
.p4-text p { color: #d6cdbf; margin: 0 0 14px; }
.p4-list { padding: 0; margin: 0 0 14px; list-style: none; display: grid; gap: 12px; }
.p4-list li { position: relative; padding-left: 26px; color: #d6cdbf; }
.p4-list li::before { content: "✦"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 13px; }
.p4-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.p4-compare > div { padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(22, 19, 15, .8); }
.p4-compare .is-me { border-color: var(--gold); }
.p4-compare ul { padding-left: 18px; margin: 10px 0 0; font-size: 14.5px; color: #d6cdbf; display: grid; gap: 6px; }
@media (max-width: 480px) { .p4-compare { grid-template-columns: 1fr; } }

.p4-offer { display: grid; gap: 14px; padding: 24px 20px; border-radius: 22px; border: 1px solid var(--gold); scroll-margin-top: 84px;
  background: linear-gradient(180deg, rgba(201, 164, 106, .1), rgba(22, 19, 15, .95) 40%); }
.p4-offer h2 { margin: 0; }
.p4-offer-img { border-radius: 14px; aspect-ratio: 2 / 1; object-fit: cover; width: 100%; height: auto; }
.p4-offer .p4-list { margin: 0; }
.p4-example { text-align: center; font-size: 14px; color: var(--gold); text-underline-offset: 3px; }

.p4-steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; color: #d6cdbf; }
.p4-steps li::marker { color: var(--gold); font: 600 15px var(--sans); }

.p4-about { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.p4-about img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line); }
@media (max-width: 480px) { .p4-about { grid-template-columns: 1fr; } }

.p4-faq details { border-bottom: 1px solid var(--line-2); }
.p4-faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 500; position: relative; list-style: none; color: var(--text); }
.p4-faq summary::-webkit-details-marker { display: none; }
.p4-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 26px var(--serif); color: var(--gold); transition: transform .2s; }
.p4-faq details[open] summary::after { transform: rotate(45deg); }
.p4-faq details p { margin: 0 0 16px; }

.p4-svc { display: grid; }
.p4-svc-i { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.p4-svc-i img { width: 64px; height: 80px; object-fit: cover; object-position: left; border-radius: 10px; flex: none; }
.p4-svc-i span { display: grid; gap: 2px; flex: 1; }
.p4-svc-i b { font: 500 21px/1.1 var(--serif); }
.p4-svc-i small { color: var(--muted); font-size: 13px; }
.p4-svc-i i { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-style: normal; flex-wrap: wrap; }
.p4-svc-i i a { font-size: 13px; color: var(--gold); }
.p4-svc-i strong { font: 500 21px var(--serif); color: var(--gold-2); white-space: nowrap; }

.p4-final { text-align: center; display: grid; justify-items: center; gap: 4px; }
.p4-final p { color: var(--muted); margin: 0 0 16px; }

/* ---------- подвал ---------- */
.p4-foot { position: relative; z-index: 1; padding: 20px 16px 96px; text-align: center; font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--line-2); background: rgba(11, 10, 9, .7); }
.p4-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.p4-foot a { color: var(--muted); }
.p4-foot p { margin: 6px 0; }

/* ---------- нижняя панель ---------- */
.p4-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: rgba(19, 17, 14, .97); border-top: 1px solid var(--line);
  animation: p4up .3s ease both; }
@keyframes p4up { from { transform: translateY(100%); } }
.p4-bar span { display: grid; }
.p4-bar b { font: 500 20px/1.1 var(--serif); }
.p4-bar small { color: var(--muted); font-size: 13px; }
body.is-flow .p4-bar { display: none; }

/* ---------- оформление поверх страницы ---------- */
.p4-flow { position: fixed; inset: 0; z-index: 50; overflow: auto; overscroll-behavior: contain; background: var(--bg); padding: 0 16px 64px; }
.p4-flow-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 12px 0; padding-top: max(12px, env(safe-area-inset-top)); background: var(--bg); }
.p4-x { width: 40px; height: 40px; border-radius: 50%; background: none; border: 1px solid var(--line-2); color: var(--muted); font-size: 22px; cursor: pointer; }
.p3-stage { width: 100%; max-width: 640px; margin: 0 auto; display: grid; gap: 20px; transition: opacity .18s ease, transform .18s ease; }
.p3-stage.is-out { opacity: 0; transform: translate3d(0, -8px, 0); }
.st-item { animation: p4in .45s cubic-bezier(.2, .7, .2, 1) both; }
.st-say { color: #ddd4c6; font-size: 17px; }
.st-say.is-question { font: 500 clamp(28px, 5vw, 42px)/1.08 var(--serif); color: #fff6e8; text-align: center; margin-bottom: 8px; text-wrap: balance; }
.st-say.is-reading, .st-say.is-price, .st-say.is-done { background: rgba(22, 19, 15, .92); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px 24px; }
.p3-stage .v-form { background: rgba(22, 19, 15, .92); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; }
.p3-stage .v-opts { gap: 10px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* место под форму до запуска JS, чтобы текст ниже не прыгал (CLS) */
.p4-calc:empty { min-height: 660px; border: 1px solid var(--line); border-radius: 20px; background: rgba(22, 19, 15, .92); }
@media (min-width: 600px) { .p4-calc:empty { min-height: 540px; } }
.p4-refund { display: block; font-size: 12px; color: var(--dim); }
.p4-posts { display: grid; gap: 10px; }
.p4-posts a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; text-decoration: none; background: rgba(22, 19, 15, .8); }
.p4-posts b { font: 500 21px/1.15 var(--serif); color: var(--text); }
.p4-posts small { color: var(--muted); font-size: 13.5px; }
.p4-allposts { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--gold); }
