/* ============================================================
   Астрея — сайт нумеролога
   Дизайн: светлый фон, тёмные линии, золотые акценты
   ============================================================ */

:root {
    --bg-0: #faf6ec;
    --bg-1: #f3ecdc;
    --bg-2: #fdfbf4;
    --ink: #2b2113;
    --muted: #6d6350;
    --faint: #766b57;
    --gold: #a97e35;
    --gold-soft: #8a641f;
    --gold-deep: #7a571a;
    --violet: #6a56d6;
    --line: rgba(169, 126, 53, 0.25);
    --line-strong: rgba(169, 126, 53, 0.5);
    --card-bg: #fffcf5;
    --header-bg: rgba(255, 252, 245, 0.78);
    --header-bg-solid: rgba(255, 252, 245, 0.94);
    --field-bg: #ffffff;
    --panel-bg: #fffcf5;
    --toast-bg: #fffcf5;
    --footer-bg: #f0e9d8;
    --nav-bg: rgba(255, 252, 245, 0.98);
    --portrait-bg: radial-gradient(circle, rgba(143, 127, 240, 0.16), #f6f1e4 75%);
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
    --radius: 18px;
    --shadow-gold: 0 18px 50px -18px rgba(169, 126, 53, 0.3);
    --shadow-card: 0 24px 60px -30px rgba(74, 60, 33, 0.22);
}

/* --- База -------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(1100px 600px at 85% -5%, rgba(143, 127, 240, 0.09), transparent 60%),
        radial-gradient(900px 500px at 10% 15%, rgba(217, 180, 95, 0.12), transparent 55%),
        radial-gradient(700px 700px at 50% 110%, rgba(217, 180, 95, 0.08), transparent 60%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1) 55%, var(--bg-0));
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow { max-width: 800px; }

::selection { background: rgba(217, 180, 95, 0.45); color: var(--ink); }

/* --- Типографика ------------------------------------------- */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

h1 em {
    font-style: italic;
    background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin: 0 0 0.8rem;
    font-weight: 600;
}

.lead { font-size: 1.13rem; color: var(--muted); max-width: 540px; }

.section-sub { color: var(--muted); max-width: 640px; margin: 0 auto; }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }

/* --- Секции ------------------------------------------------- */

.section { padding: 88px 0; position: relative; }

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head .eyebrow::before,
.section-head .eyebrow::after {
    content: "✦";
    margin: 0 10px;
    color: var(--gold-deep);
    font-size: 0.7rem;
    vertical-align: 2px;
}

/* --- Шапка -------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: var(--header-bg);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
    border-bottom-color: var(--line);
    background: var(--header-bg-solid);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.brand-mark {
    font-size: 1.5rem;
    color: var(--gold);
    text-shadow: none;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    display: flex;
    flex-direction: column;
}

.brand-text small {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

.site-nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover { color: var(--gold-soft); }

.header-cta { margin-left: 8px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* --- Кнопки -------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.btn-gold {
    background: linear-gradient(135deg, #f0d99a, #d9b45f 55%, #a97e35);
    color: #241a06;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px -16px rgba(217, 180, 95, 0.55);
    color: #241a06;
}

.btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn-dark {
    background: #2b2113;
    color: #f0d99a;
    border-color: rgba(169, 126, 53, 0.5);
}

.btn-dark:hover { color: #f0d99a; border-color: #a97e35; transform: translateY(-2px); }

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

.btn-wide { width: 100%; }

/* --- Hero ---------------------------------------------------- */

.hero {
    position: relative;
    padding: 110px 0 90px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 30px 0 44px;
}

.hero-stats {
    display: flex;
    gap: 44px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-stats b {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(100deg, var(--gold-soft), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stats span { font-size: 0.82rem; color: var(--muted); }

.hero-glow {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 127, 240, 0.1), transparent 65%);
    pointer-events: none;
}

/* --- Колесо чисел -------------------------------------------- */

.hero-wheel { display: flex; justify-content: center; }

.wheel {
    position: relative;
    width: min(420px, 76vw);
    aspect-ratio: 1;
}

.wheel-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(169, 126, 53, 0.45);
    animation: orbit 90s linear infinite;
}

.ring-inner {
    inset: 16%;
    border-style: solid;
    border-color: rgba(169, 126, 53, 0.3);
    animation-direction: reverse;
    animation-duration: 70s;
}

.wheel-core {
    position: absolute;
    inset: 38%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(217, 180, 95, 0.22), rgba(217, 180, 95, 0.03) 70%);
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 40px rgba(217, 180, 95, 0.2), inset 0 0 30px rgba(217, 180, 95, 0.12);
}

.wheel-core span {
    font-size: 2.6rem;
    color: var(--gold-soft);
    text-shadow: none;
    animation: pulse 4s ease-in-out infinite;
}

.wheel-numbers { position: absolute; inset: 0; }

.wheel-numbers b {
    position: absolute;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-soft);
    text-shadow: none;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.wheel-numbers b.n-master {
    color: var(--violet);
    font-size: 1.1rem;
    text-shadow: none;
}

@keyframes orbit { to { transform: rotate(360deg); } }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.18); opacity: 1; }
}

/* --- Шаги ----------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
}

.steps li {
    position: relative;
    padding: 30px 24px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card-bg);
    transition: border-color 0.25s, transform 0.25s;
}

.steps li:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.step-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gold-deep);
    margin-bottom: 14px;
}

.steps h3 { margin-bottom: 0.35em; font-size: 1.15rem; }

.steps p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* --- Карточки ------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card-bg);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    border-color: var(--line-strong);
    transform: translateY(-5px);
    box-shadow: 0 24px 50px -24px rgba(217, 180, 95, 0.28);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.card-num {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold-deep);
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #241a06;
    background: linear-gradient(135deg, #f0d99a, #d9b45f);
}

.badge--soft {
    color: var(--gold-soft);
    background: transparent;
    border: 1px solid var(--line-strong);
}

.card-title { font-size: 1.35rem; margin-bottom: 0.5em; }

.card-title a { color: var(--ink); transition: color 0.2s; }
.card-title a:hover { color: var(--gold-soft); }

.card-text {
    color: var(--muted);
    font-size: 0.94rem;
    margin: 0 0 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.price {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    background: linear-gradient(100deg, var(--gold-soft), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.price-lg { font-size: 2.3rem; }

.card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-soft);
    white-space: nowrap;
}

.card-link span { transition: transform 0.2s; display: inline-block; }
.card-link:hover span { transform: translateX(4px); }

/* --- Отзывы ---------------------------------------------------- */

.quote { margin: 0; }

.quote blockquote {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.55;
    color: var(--ink);
    flex-grow: 1;
}

.quote blockquote::before {
    content: "«";
    display: block;
    font-size: 3rem;
    line-height: 0.6;
    color: var(--gold-deep);
    margin-bottom: 14px;
}

.quote figcaption { display: flex; flex-direction: column; }

.quote figcaption b { color: var(--gold-soft); font-size: 0.95rem; }
.quote figcaption span { color: var(--faint); font-size: 0.8rem; }

/* --- Калькулятор ------------------------------------------------ */

.calc {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 52px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(143, 127, 240, 0.08), transparent 60%),
        var(--card-bg);
    box-shadow: var(--shadow-card);
}

.calc-form { display: flex; flex-direction: column; gap: 12px; }

.field-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.calc-row { display: flex; gap: 12px; }

.input {
    flex: 1;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--field-bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    color-scheme: light;
}

.input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(169, 126, 53, 0.18);
}

.calc-hint { font-size: 0.78rem; color: var(--faint); margin: 4px 0 0; }

.calc-result {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 8px;
    padding: 30px 36px;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    background: radial-gradient(400px 200px at 0% 50%, rgba(217, 180, 95, 0.1), transparent 60%), var(--panel-bg);
    animation: fade-up 0.5s ease both;
}

.calc-result-num {
    font-family: var(--font-display);
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1;
    min-width: 110px;
    text-align: center;
    background: linear-gradient(140deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: none;
}

.calc-result-text h3 { margin-bottom: 0.2em; font-size: 1.5rem; }
.calc-result-text p { margin: 0; color: var(--muted); }

/* --- О нумерологе ------------------------------------------------ */

.about-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    align-items: center;
}

.about-portrait { display: flex; justify-content: center; }

.portrait-ring {
    width: 300px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(217, 180, 95, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orbit 120s linear infinite;
}

.portrait-core {
    width: 210px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--gold);
    background: var(--portrait-bg);
    border: 1px solid var(--line-strong);
    box-shadow: inset 0 0 40px rgba(217, 180, 95, 0.1);
    animation: orbit 120s linear infinite reverse;
}

.about-copy p { color: var(--muted); }
.about-copy p:first-of-type { margin-top: 0; }

.about-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.about-list li {
    padding-left: 34px;
    position: relative;
    color: var(--ink);
    font-size: 0.95rem;
}

.about-list li::before {
    content: "✦";
    position: absolute;
    left: 6px;
    color: var(--gold);
    font-size: 0.85rem;
}

/* --- FAQ ----------------------------------------------------------- */

.faq {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card-bg);
    padding: 6px 26px;
    margin-bottom: 14px;
}

.faq summary {
    cursor: pointer;
    padding: 18px 0;
    font-weight: 600;
    font-size: 1.02rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--gold);
    transition: transform 0.25s;
    flex-shrink: 0;
}

.faq[open] summary::after { transform: rotate(45deg); }

.faq p { margin: 0 0 20px; color: var(--muted); }

/* --- CTA-баннер ------------------------------------------------------ */

.section-cta { padding-top: 20px; }

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 56px;
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(500px 240px at 15% 0%, rgba(217, 180, 95, 0.14), transparent 60%),
        radial-gradient(400px 240px at 90% 100%, rgba(143, 127, 240, 0.16), transparent 60%),
        var(--bg-2);
}

.cta-banner h2 { margin-bottom: 0.15em; }
.cta-banner p { margin: 0; color: var(--muted); }

/* --- Детальная страница ---------------------------------------------- */

.back-link {
    display: inline-block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 36px;
}

.back-link:hover { color: var(--gold-soft); }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.detail-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.detail-main h1 { margin-bottom: 0.3em; }

.detail-lead {
    font-size: 1.08rem;
    color: var(--muted);
    margin: 0 0 40px;
    max-width: 640px;
}

.detail-block {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.detail-block h2 { font-size: 1.5rem; margin-bottom: 0.5em; }
.detail-block p { color: var(--muted); margin: 0; }

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    padding-left: 34px;
    position: relative;
    color: var(--ink);
}

.check-list li::before {
    content: "✦";
    position: absolute;
    left: 4px;
    color: var(--gold);
}

.order-card {
    position: sticky;
    top: 110px;
    padding: 34px 30px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.order-label {
    margin: 0 0 4px;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.order-perks {
    list-style: none;
    margin: 22px 0 26px;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--muted);
}

.order-note {
    margin: 16px 0 0;
    font-size: 0.8rem;
    color: var(--faint);
    text-align: center;
}

/* --- Подвал ----------------------------------------------------------- */

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--line);
    background: var(--footer-bg);
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .brand-mark { font-size: 1.7rem; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.footer-col { display: flex; flex-direction: column; gap: 8px; }

.footer-col h4 {
    margin: 0 0 10px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.footer-col a, .footer-col span, .footer-col p {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-col a:hover { color: var(--gold-soft); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 0.78rem;
}

/* --- Тост --------------------------------------------------------------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translate(-50%, 20px);
    z-index: 100;
    max-width: 480px;
    padding: 16px 26px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: var(--toast-bg);
    color: var(--ink);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: var(--shadow-card);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- Анимации появления --------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* --- Адаптив --------------------------------------------------------------- */

@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-wheel { order: -1; }
    .wheel { width: min(320px, 70vw); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .calc { grid-template-columns: 1fr; padding: 36px 28px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .portrait-ring { width: 220px; }
    .portrait-core { width: 150px; font-size: 2.6rem; }
    .detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .hero { padding: 70px 0 60px; }
    .hero-stats { gap: 26px; flex-wrap: wrap; }
    .steps { grid-template-columns: 1fr; }
    .calc-row { flex-direction: column; }
    .calc-result { flex-direction: column; text-align: center; gap: 12px; }
    .calc-result-num { min-width: auto; }
    .cta-banner { flex-direction: column; text-align: center; padding: 36px 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { justify-content: center; text-align: center; }

    /* мобильное меню */
    .nav-toggle { display: flex; }
    .header-cta { display: none; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 18px 24px 22px;
        background: var(--nav-bg);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(14px);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 10px 0; font-size: 1.05rem; }
}

/* ============================================================
   Калькулятор «Звезда»
   ============================================================ */

.zvezda-form {
    max-width: 560px;
    margin: 0 auto 56px;
}

.zvezda-error {
    margin: 14px 0 0;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(180, 60, 60, 0.4);
    background: rgba(180, 60, 60, 0.08);
    color: #8f2f2f;
    font-size: 0.92rem;
}

.zvezda-result {
    max-width: 800px;
    margin: 0 auto 64px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.zvezda-star { display: flex; justify-content: center; }

.star-circle {
    position: relative;
    width: min(720px, 92vw);
    aspect-ratio: 1;
}

.star-ring {
    position: absolute;
    inset: 3.5%;
    border-radius: 50%;
    border: 1px dashed rgba(58, 51, 37, 0.4);
    animation: orbit 90s linear infinite;
    pointer-events: none;
}

.star-glow {
    display: none;
}

.star-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star-lines circle {
    fill: none;
    stroke: rgba(58, 51, 37, 0.55);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
    animation: fade-up 0.6s ease both;
}

.star-point--outer {
    border-color: #a97e35;
    box-shadow: 0 0 0 6px rgba(169, 126, 53, 0.14),
                0 0 0 1px rgba(169, 126, 53, 0.3);
}

.star-lines line {
    stroke: #4a4133;
    stroke-width: 1.3;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    filter: none;
    animation: fade-up 0.5s ease both;
}

.star-lines line.major {
    stroke: #2b2113;
    stroke-width: 2;
    filter: none;
}

.star-point {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 800;
    color: #2b2113;
    background: #fffcf5;
    border: 1px solid rgba(58, 51, 37, 0.55);
    box-shadow: 0 2px 8px rgba(74, 60, 33, 0.18);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
}

.star-point:hover {
    transform: translate(-50%, -50%) scale(1.12);
}

.star-point.active {
    transform: translate(-50%, -50%) scale(1.25);
    z-index: 2;
}

.energy-panel {
    position: static;
    min-height: 0;
    padding: 30px 32px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.energy-panel-hint {
    margin: 0;
    text-align: center;
    color: var(--faint);
    padding: 96px 0;
    line-height: 1.9;
}

.energy-body h3 { margin-bottom: 0.35em; }

.energy-sub {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin: 18px 0 6px;
}

.energy-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    white-space: pre-line;
}

.zvezda-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 72px;
}

.zvezda-block {
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card-bg);
}

.zvezda-block h2 { font-size: 1.35rem; margin-bottom: 0.2em; }

.zvezda-note { margin: 0 0 18px; color: var(--faint); font-size: 0.84rem; }

.chips { display: flex; gap: 14px; flex-wrap: wrap; }

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 800;
    color: #2b2113;
    background: radial-gradient(circle, rgba(217, 180, 95, 0.22), #fffcf5);
    border: 1px solid rgba(169, 126, 53, 0.55);
    text-shadow: none;
}

.chip-danger {
    color: #8f2f2f;
    border-color: rgba(200, 90, 90, 0.6);
    background: radial-gradient(circle, rgba(200, 90, 90, 0.16), #fff6f4);
    text-shadow: none;
}

.chakra-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.chakra-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--muted);
    border-bottom: 1px dashed var(--line);
    padding-bottom: 8px;
}

.chakra-list b {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--gold-soft);
}.spheres-title { text-align: center; margin-bottom: 36px; }

.sphere-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.sphere-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.sphere-list li {
    display: grid;
    grid-template-columns: 52px 44px 1fr;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 10px;
}

.sphere-code { font-size: 0.74rem; color: var(--faint); letter-spacing: 0.06em; }

.sphere-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 800;
    color: #2b2113;
    border: 1px solid rgba(169, 126, 53, 0.55);
    background: #fffcf5;
}

.sphere-energy { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 980px) {
    .zvezda-result { gap: 32px; }
    .zvezda-blocks { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .star-circle { width: 94vw; }
    .star-point { width: 32px; height: 32px; font-size: 0.95rem; }
    .energy-panel-hint { padding: 40px 0; }
}

/* --- Квадрат Пифагора ---------------------------------------- */

.pifagor-result {
    max-width: 720px;
    margin: 0 auto;
    animation: fade-up 0.5s ease both;
}

.pifagor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.pifagor-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 12px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background:
        radial-gradient(200px 120px at 50% 0%, rgba(217, 180, 95, 0.1), transparent 70%),
        var(--card-bg);
    text-align: center;
    transition: border-color 0.25s, transform 0.25s;
}

.pifagor-cell:hover { border-color: var(--gold); transform: translateY(-3px); }

.pifagor-digits {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--ink);
    text-shadow: none;
    min-height: 2.2rem;
}

.pifagor-cell-title {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.pifagor-working { text-align: center; margin-bottom: 32px; }

.pifagor-working h2 { font-size: 1.4rem; }

.pifagor-working .chips { justify-content: center; margin-bottom: 14px; }

.pifagor-note {
    font-size: 0.88rem;
    color: var(--faint);
    text-align: center;
    margin: 0;
}

@media (max-width: 640px) {
    .pifagor-grid { gap: 8px; }
    .pifagor-digits { font-size: 1.3rem; min-height: 1.6rem; }
    .pifagor-cell-title { font-size: 0.62rem; }
}
