/* Шрифт: Manrope (OFL), переменный 400–800, раздаём сами – без Google Fonts (их сервера получали бы IP посетителей) */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/fonts/manrope-cyrillic-e58febde317b69ceb51690ea201850c9.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/fonts/manrope-latin-938c6e8019b69313372c47dbb7a7c930.woff2") format("woff2");
    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;
}

:root {
    --font-display: "Manrope", "Segoe UI", Roboto, sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bg: #f6f4fd;
    --surface: #ffffff;
    --surface-2: #f1eefc;
    --text: #17142b;
    --muted: #625d7d;
    --accent: #6c47ff;
    /* цвет свечения значков: тем же оттенком в обоих состояниях, иначе переход тени идёт через чёрный */
    --glow: rgba(108, 71, 255, 0.45);
    --glow-off: rgba(108, 71, 255, 0);
    --accent-soft: #efeaff;
    --border: #e5e0f3;
    --shadow-card: 0 1px 2px rgba(23, 20, 43, 0.04), 0 12px 32px -18px rgba(60, 40, 160, 0.28);

    /* Фирменные акценты – одинаковые в обеих темах */
    --violet: #8b5cf6;
    --pink: #ff6fae;
    --gold: #f3c969;
    --grad: linear-gradient(120deg, #7c5cff 0%, #b84ff0 55%, #ff6fae 100%);
    --grad-text: linear-gradient(100deg, #c4b2ff 0%, #f19bff 50%, #ffb38a 100%);
    --warn-bg: #fff6dc;
    --warn-border: #ecd38a;

    /* «Ночное небо» шапки – одинаковое в обеих темах */
    --night-1: #1b1543;
    --night-2: #110d2c;
    --night-3: #0a0819;
    --night-text: #f1eefc;
    --night-muted: #c4bde6;
    --star: #f5e3a6;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 40px;

    --radius: 14px;
    --radius-lg: 22px;
    --max: 760px;
    --wide: 1200px;
    --tap: 44px;

    color-scheme: light;
}

/*
 * Тёмная тема: по системной настройке, если посетитель не выбрал светлую явно,
 * и всегда – если выбрал тёмную (data-theme на <html> ставит js/theme.js).
 * Значения в двух блоках должны совпадать.
 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0c0a1d;
        --surface: #15122b;
        --surface-2: #1b1736;
        --text: #eeebff;
        --muted: #a6a1c6;
        --accent: #a98dff;
        --glow: rgba(169, 141, 255, 0.55);
        --glow-off: rgba(169, 141, 255, 0);
        --accent-soft: #221c45;
        --border: #262144;
        --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.8);
        --warn-bg: #3a3220;
        --warn-border: #6b5a2a;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0c0a1d;
    --surface: #15122b;
    --surface-2: #1b1736;
    --text: #eeebff;
    --muted: #a6a1c6;
    --accent: #a98dff;
    --glow: rgba(169, 141, 255, 0.55);
    --glow-off: rgba(169, 141, 255, 0);
    --accent-soft: #221c45;
    --border: #262144;
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    --warn-bg: #3a3220;
    --warn-border: #6b5a2a;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/*
 * Ссылки – три вида, у каждого свой понятный сигнал «сюда можно нажать»:
 * 1) в тексте – тонкое полупрозрачное подчёркивание с отступом, при наведении яркое;
 * 2) заголовок-ссылка в карточке – без подчёркивания, но со стрелкой «→», кликабельна вся карточка (.card-link);
 * 3) короткие ссылки-метки – плашками (.tag-link).
 */
a {
    color: var(--accent);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
    transition: text-decoration-color 0.15s, color 0.15s;
}
a:hover { text-decoration-color: currentColor; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container--wide { max-width: calc(var(--wide) + 2 * var(--space-4)); }

main.container { padding-top: var(--space-5); padding-bottom: var(--space-6); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.6rem); line-height: 1.15; margin: 0 0 var(--space-3); }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 1.8em 0 0.6em; scroll-margin-top: var(--space-4); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin: 1.4em 0 0.4em; }

/* Шапка сайта: липкая, полупрозрачная поверх ночного неба */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 8, 25, 0.78);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--night-text);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-3); min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--night-text); text-decoration: none; }
.logo__mark { width: 34px; height: 34px; color: #c4b2ff; flex: none; filter: drop-shadow(0 0 10px rgba(167, 139, 255, 0.55)); }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }

.site-nav { margin-left: var(--space-4); }
.site-nav__list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: var(--tap);
    padding: 0 14px;
    border-radius: 999px;
    color: var(--night-muted);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.site-nav__item:has(.site-nav__menu) > .site-nav__link::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.7;
}
.site-nav__link:hover,
.site-nav__item:focus-within > .site-nav__link { color: #fff; background: rgba(255, 255, 255, 0.07); }

/* Выпадающее меню: по наведению и по фокусу с клавиатуры – без JS */
.site-nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: -8px;
    min-width: 330px;
    list-style: none;
    margin: 0;
    padding: 8px;
    background: rgba(21, 18, 43, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
/* мостик над меню: курсор не «проваливается» в зазор между пунктом и меню */
.site-nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.site-nav__item:hover > .site-nav__menu,
.site-nav__item:focus-within > .site-nav__menu { opacity: 1; visibility: visible; transform: none; }
.site-nav__menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--night-text);
    text-decoration: none;
}
.site-nav__menu a:hover,
.site-nav__menu a:focus-visible { background: rgba(167, 139, 255, 0.12); outline: none; }
.site-nav__menu svg {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 12px;
    background: rgba(167, 139, 255, 0.14);
    color: #c4b2ff;
}
.site-nav__menu strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.site-nav__menu small { display: block; color: var(--night-muted); font-size: 0.82rem; line-height: 1.35; }

.site-header__cta { margin-left: auto; }

/* Переключатель темы: иконка текущего режима (система / светлая / тёмная) */
.theme-toggle {
    flex: none;
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--night-muted);
    cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--night-text); background: rgba(255, 255, 255, 0.1); }
.theme-toggle:focus-visible { outline: 2px solid var(--star); outline-offset: 0; }
.theme-toggle svg { width: 20px; height: 20px; display: none; }
.theme-toggle[data-choice="system"] .theme-toggle__system,
.theme-toggle[data-choice="light"] .theme-toggle__light,
.theme-toggle[data-choice="dark"] .theme-toggle__dark { display: block; }

/* Меню-бургер для телефона: <details>, открывается без JS */
.mnav { display: none; }
.mnav__button {
    list-style: none;
    display: grid;
    align-content: center;
    gap: 5px;
    width: var(--tap);
    height: var(--tap);
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}
.mnav__button::-webkit-details-marker { display: none; }
.mnav__button span { display: block; height: 2px; border-radius: 2px; background: var(--night-text); transition: transform 0.2s, opacity 0.2s; }
.mnav[open] .mnav__button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mnav[open] .mnav__button span:nth-child(2) { opacity: 0; }
.mnav[open] .mnav__button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: var(--space-3) var(--space-4) var(--space-5);
    background: #0c0a1d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: var(--space-4);
}
.mnav__panel .site-nav__list { flex-direction: column; align-items: stretch; gap: var(--space-2); }
.mnav__panel .site-nav__link { font-size: 1.05rem; color: var(--night-text); padding: 0 4px; }
.mnav__panel .site-nav__link::after { display: none; }
.mnav__panel .site-nav__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}
.mnav__panel .site-nav__menu::before { display: none; }
.mnav__panel .button { justify-self: stretch; }

@media (max-width: 1100px) {
    .site-nav__link { padding: 0 10px; }
    .site-header .site-header__cta { display: none; }
    .theme-toggle { margin-left: auto; }
}
@media (max-width: 860px) {
    .site-nav { display: none; }
    .mnav { display: block; }
    .site-header__inner { min-height: 60px; }
}

/* Hero: ночное небо из CSS-градиентов, без картинок */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--night-text);
    background:
        radial-gradient(ellipse 70% 90% at 85% -10%, rgba(140, 110, 255, 0.45), transparent 60%),
        radial-gradient(ellipse 60% 70% at 0% 110%, rgba(84, 60, 190, 0.35), transparent 60%),
        linear-gradient(165deg, var(--night-1) 0%, var(--night-2) 55%, var(--night-3) 100%);
    padding: var(--space-3) 0 var(--space-6);
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-repeat: repeat;
}
.hero::before {
    background-image:
        radial-gradient(1px 1px at 12% 18%, var(--star) 50%, transparent 51%),
        radial-gradient(1px 1px at 37% 72%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 64% 33%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 81% 81%, var(--star) 50%, transparent 51%),
        radial-gradient(1px 1px at 92% 12%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 52% 54%, #fff 50%, transparent 51%);
    background-size: 230px 230px;
    opacity: 0.75;
}
.hero::after {
    background-image:
        radial-gradient(2px 2px at 22% 44%, var(--star) 50%, transparent 51%),
        radial-gradient(1px 1px at 71% 63%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 46% 9%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 47%, var(--star) 50%, transparent 51%);
    background-size: 370px 370px;
    background-position: 60px 90px;
    opacity: 0.6;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: var(--night-text); margin-top: var(--space-3); }
.hero__lead { color: var(--night-muted); font-size: 1.1rem; margin: 0; max-width: 34em; }
.hero--home { padding-top: var(--space-6); }

.hero__sign { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-3); }
.hero__sign h1 { margin-top: 0; }
.hero__glyph {
    flex: none;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: var(--star);
    border: 1px solid rgba(245, 227, 166, 0.45);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 32px rgba(245, 227, 166, 0.18);
}
.hero__glyph svg { width: 55%; height: 55%; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0; }
.chips li {
    padding: 2px var(--space-3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--night-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Хлебные крошки: «стеклянная» плашка на ночном фоне, звенья – с подсветкой, текущая страница – приглушённо */
.breadcrumbs { display: flex; min-width: 0; }
.breadcrumbs__list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    margin: 0;
    padding: 4px;
    list-style: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.84rem;
    font-weight: 600;
}
.breadcrumbs__list li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs__list li + li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin: 0 6px 0 4px;
    border-top: 1.6px solid rgba(196, 178, 255, 0.55);
    border-right: 1.6px solid rgba(196, 178, 255, 0.55);
    transform: rotate(45deg);
}
.breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--night-muted);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.breadcrumbs__link:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.breadcrumbs__link svg { width: 15px; height: 15px; color: var(--gold); }
.breadcrumbs__current {
    padding: 0 12px 0 4px;
    color: rgba(241, 238, 252, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 26em;
}
@media (max-width: 600px) {
    .breadcrumbs__list { font-size: 0.8rem; }
    .breadcrumbs__link { padding: 0 9px; }
    /* на телефоне текущая страница – уже в заголовке под крошками */
    .breadcrumbs__list li:last-child { display: none; }
}

/* Сводка «Главное в …» */
.summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-5);
    margin: 0 0 var(--space-5);
    box-shadow: 0 6px 24px rgba(30, 20, 80, 0.06);
}
.hero + main > .summary:first-child { margin-top: calc(-1 * var(--space-6) + var(--space-3)); position: relative; }
.summary__title { margin: 0 0 var(--space-2); font-size: 1.15rem; }
.summary__body ul { list-style: none; margin: 0; padding: 0; }
.summary__body li { position: relative; padding: var(--space-2) 0 var(--space-2) 1.6em; border-top: 1px solid var(--border); }
.summary__body li:first-child { border-top: 0; }
.summary__body li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }

/* Оглавление */
.toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0 0 var(--space-4); }
.toc a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 var(--space-4);
    border-radius: 999px;
    background: var(--accent-soft);
    text-decoration: none;
    font-size: 0.95rem;
}

/* Сетка знаков */
.sign-grid {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.sign-grid a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3) 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    height: 100%;
}
.sign-grid a:hover { border-color: var(--accent); }
.sign-grid .is-current a { background: var(--accent-soft); border-color: var(--accent); }
.sign-grid__icon { width: 28px; height: 28px; color: var(--accent); }
.sign-grid__name { font-weight: 600; margin-top: 6px; }
.sign-grid__dates { font-size: 0.85rem; color: var(--muted); }

/* Тексты из Markdown */
.content table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 0.95rem; }
.content th, .content td { border: 1px solid var(--border); padding: var(--space-2) 10px; text-align: left; vertical-align: top; }
.content th { background: var(--accent-soft); }
.content td:first-child { white-space: nowrap; font-weight: 600; }
/* Цитата-акцент: одна ёмкая мысль текста крупно – разбивает «полотно» */
.content blockquote {
    margin: 1.6em 0;
    padding: var(--space-1) 0 var(--space-1) 18px;
    border-left: 3px solid var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.4;
}
.content blockquote p { margin: 0; }

/* Текст пары знаков: разделы с собственной вёрсткой (PairLayout) */
.pair-text > section, .pair-text > .spheres, .pair-text > .duo { margin-top: 2.4em; }
.pair-text h2 { margin-top: 0; }
.lead { display: block; margin-bottom: var(--space-1); font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }

.aspect__head { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: var(--space-5); align-items: center; margin-bottom: var(--space-3); }
.aspect__name { margin: 0 0 var(--space-2); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
.aspect__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.aspect__facts li { padding: 2px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 0.88rem; }

.wheel-mini { --tone: var(--accent); width: 190px; height: 190px; display: block; }
.wheel-mini--harmony { --tone: #c9962c; }
.wheel-mini--tension { --tone: #d8653a; }
.wheel-mini__ring { fill: none; stroke: var(--border); stroke-width: 1.2; }
.wheel-mini__spoke { stroke: var(--border); stroke-width: 0.8; }
.wheel-mini__sign { color: var(--muted); opacity: 0.55; }
.wheel-mini__aspect { stroke: var(--tone); stroke-width: 2; stroke-linecap: round; }
.wheel-mini--neutral .wheel-mini__aspect { stroke-dasharray: 5 4; }
.wheel-mini__dot { fill: var(--surface); stroke: var(--tone); stroke-width: 1.6; }
.wheel-mini__pair { color: var(--tone); }
.wheel-mini__deg { fill: var(--muted); font-size: 15px; font-weight: 600; }

.spheres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.sphere { --c: var(--accent); padding: var(--space-4) 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.sphere:nth-child(4n+1) { --c: #d4537e; }
.sphere:nth-child(4n+2) { --c: #d8853a; }
.sphere:nth-child(4n+3) { --c: #1d9e75; }
.sphere:nth-child(4n+4) { --c: #378add; }
.sphere__head { display: flex; align-items: center; gap: 10px; }
.sphere__head h2 { flex: 1; margin: 0; font-size: 1.15rem; }
.sphere__icon { width: 24px; height: 24px; flex: none; color: var(--c); }
.sphere__score { font-weight: 700; font-size: 1.05rem; }
.sphere .bar { display: block; height: 6px; margin: 10px 0 var(--space-3); background: var(--accent-soft); }
.sphere .bar span { background: var(--c); }
.sphere p { font-size: 0.97rem; }
.sphere p:last-child, .duo__card p:last-child { margin-bottom: 0; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.duo--single { grid-template-columns: 1fr; }
.duo__card { padding: var(--space-4) 18px; background: var(--accent-soft); border-radius: var(--radius); }
.duo__card h2 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.duo__card p { font-size: 0.97rem; }

.helps ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.helps li {
    position: relative;
    padding: 10px 14px 10px 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.97rem;
    line-height: 1.5;
}
.helps li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

/* Страница знака: профиль и карточки пар (SignLayout) */
.profile__head { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-3); }
.profile__glyph {
    flex: none;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
}
.profile__glyph svg { width: 48px; height: 48px; }
.profile__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); margin: 0; flex: 1; }
.profile__facts dt { font-size: 0.8rem; color: var(--muted); }
.profile__facts dd { margin: 0; font-weight: 600; }

.pair-cards__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.pair-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-4) 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.pair-cards--best .pair-card { border-color: color-mix(in srgb, #c9962c 55%, var(--border)); }
.pair-card__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.pair-card__glyphs { display: flex; gap: 4px; color: var(--accent); }
.pair-cards--best .pair-card__glyphs { color: #c9962c; }
.pair-card__glyphs svg { width: 26px; height: 26px; }
.pair-card__title { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.pair-card p { font-size: 0.97rem; margin: 0 0 var(--space-3); }
.pair-card__links { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pair-card__links a, .pair-card__links li > span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    font-size: 0.88rem;
    text-decoration: none;
}
.pair-card__score { font-weight: 700; }

/* Хаб совместимости: факторы расчёта и стихии (HubLayout) */
.factors ul { list-style: none; counter-reset: factor; padding: 0; display: grid; gap: var(--space-3); }
.factors li {
    counter-increment: factor;
    position: relative;
    padding: var(--space-4) 18px var(--space-4) 64px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.factors li::before {
    content: counter(factor);
    position: absolute;
    left: 18px;
    top: var(--space-4);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 32px;
    text-align: center;
}

.element-cards { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.element-card {
    --c: var(--accent);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-4) 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--c);
    border-radius: var(--radius);
    font-size: 0.97rem;
}
.element-card--fire { --c: #d8653a; }
.element-card--earth { --c: #7a9a3a; }
.element-card--air { --c: #2a9fb8; }
.element-card--water { --c: #378add; }
.element-card__glyphs { display: flex; gap: 6px; color: var(--c); }
.element-card__glyphs svg { width: 26px; height: 26px; }
.element-card__title { font-family: var(--font-display); font-size: 1.15rem; }

@media (max-width: 600px) {
    .profile__head { flex-direction: column; align-items: flex-start; }
    .pair-cards__grid, .element-cards { grid-template-columns: 1fr; }
}

/* Годовой гороскоп знака: периоды, темы, лента дат (HoroscopeLayout) */
.year-text > section { margin-top: 2.4em; }
.year-text h2 { margin-top: 0; }

.year-track { margin: var(--space-2) 0 var(--space-4); }
.year-track__line {
    position: relative;
    height: 8px;
    border-radius: 999px;
    /* Деления по месяцам */
    background:
        repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), var(--bg) calc(100% / 12 - 1px) calc(100% / 12)),
        var(--accent-soft);
}
.year-track__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 8px;
    border-radius: 999px;
    background: var(--accent);
}
.year-track__fill.is-point {
    top: -3px;
    bottom: auto;
    width: 14px !important;
    height: 14px;
    margin-left: -7px;
    background: var(--star);
    border: 2px solid var(--accent);
}
.year-track__months { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 4px; font-size: 0.75rem; color: var(--muted); text-align: center; }

.theme-card { --c: var(--accent); padding: var(--space-4) 20px var(--space-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.theme-card--love { --c: #d4537e; }
.theme-card--work { --c: #378add; }
.theme-card--money { --c: #c9962c; }
.theme-card--home { --c: #d8853a; }
.theme-card--friends { --c: #1d9e75; }
.theme-card--talk { --c: #2a9fb8; }
.theme-card--self { --c: #8a6cf0; }
.theme-card--beauty { --c: #c75fa0; }
.theme-card__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.theme-card__head h2 { margin: 0; font-size: 1.3rem; }
.theme-card__icon {
    width: 40px;
    height: 40px;
    flex: none;
    padding: 8px;
    border-radius: 50%;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
}

.key-dates__months { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-4); }
.key-dates__scale { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-size: 0.72rem; color: var(--muted); text-align: center; }
.key-dates__list { list-style: none; padding: 0; margin: var(--space-1) 0 0; }
.key-date {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border);
}
.key-date__text { display: flex; flex-direction: column; line-height: 1.4; }
.key-date__when { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.key-date__event { font-weight: 600; }
.key-date__event::first-letter, .key-date__meaning::first-letter { text-transform: uppercase; }
.key-date__meaning { font-size: 0.92rem; color: var(--muted); }
.key-date .year-track { margin: 0; }

@media (max-width: 600px) {
    .key-dates__months { grid-template-columns: 1fr; }
    .key-dates__months > span { display: none; }
    .key-date { grid-template-columns: 1fr; gap: var(--space-2); }
}

@media (max-width: 600px) {
    .aspect__head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .aspect__facts { justify-content: center; }
    .spheres, .duo, .helps ul { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    /* Символ знака над заголовком, чтобы не сжимать H1 */
    .hero__sign { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
    .hero__glyph { width: 56px; height: 56px; }

    /* Оглавление – горизонтальная лента с прокруткой */
    .toc { margin: 0 calc(-1 * var(--space-4)); }
    .toc ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 var(--space-4); scrollbar-width: none; }
    .toc li { flex: none; }
}

/* На телефоне строки таблицы – карточки: дата сверху, событие и трактовка ниже */
@media (max-width: 600px) {
    .content table, .content tbody, .content tr, .content td { display: block; width: 100%; }
    .content thead { display: none; }
    .content tr {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: var(--space-3) var(--space-4);
        margin-bottom: var(--space-2);
    }
    .content td { border: 0; padding: 0; }
    .content td:first-child { color: var(--accent); white-space: normal; }
    .content td:nth-child(2) { font-weight: 600; }
    .content td:nth-child(3) { color: var(--muted); }
}

[x-cloak] { display: none !important; }

/* Промо-блок на главной */
.promo {
    display: grid;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(30, 20, 80, 0.06);
}
.hero + main > .promo:first-child { margin-top: calc(-1 * var(--space-6) + var(--space-3)); position: relative; }
.promo:hover { border-color: var(--accent); }
.promo__title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.promo__text { color: var(--muted); }
.promo__cta { color: var(--accent); font-weight: 600; }

/* Калькулятор */
.calc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: 0 6px 24px rgba(30, 20, 80, 0.06);
    margin-bottom: var(--space-6);
}
.hero + main > .calc:first-child { margin-top: calc(-1 * var(--space-6) + var(--space-3)); position: relative; }
.calc__form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
.calc__form > :not(.calc__person) { grid-column: 1 / -1; }
.calc__person { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-3); min-width: 0; }
.calc__person legend { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: var(--space-2); }
.field { display: grid; gap: var(--space-1); }
.field__label { font-size: 0.9rem; font-weight: 600; }
.field__hint { font-weight: 400; color: var(--muted); }
.field input {
    font: inherit;
    min-height: var(--tap);
    padding: 0 var(--space-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    width: 100%;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.button {
    font: inherit;
    font-weight: 600;
    min-height: 52px;
    padding: 0 var(--space-5);
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #6a4ce6, #4a2fbf);
    color: #fff;
    cursor: pointer;
    justify-self: start;
    box-shadow: 0 6px 18px rgba(91, 63, 209, 0.35);
}
.button:hover { filter: brightness(1.08); }
.button:focus-visible { outline: 3px solid var(--star); outline-offset: 2px; }
.calc__error { color: #b42318; margin: 0; }
.calc__privacy { color: var(--muted); font-size: 0.85rem; margin: 0; }

@media (max-width: 600px) {
    .calc { padding: var(--space-4); }
    .calc__form { grid-template-columns: 1fr; }
    .button { justify-self: stretch; }
}

/* Результат */
.result { border-top: 1px solid var(--border); margin-top: var(--space-5); padding-top: var(--space-5); scroll-margin-top: var(--space-4); }
.result h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.result__head { display: flex; align-items: center; gap: var(--space-5); }
.result__title { margin: 0 0 var(--space-1); }
.result__head p { margin: 0; }
.score-ring {
    --p: 0;
    flex: none;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(closest-side, var(--surface) 78%, transparent 79%),
        conic-gradient(var(--accent) calc(var(--p) * 1%), var(--accent-soft) 0);
}
.score-ring__value { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; }

.partners { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-5); }
.partner { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.partner h3 { margin: 0 0 var(--space-2); font-size: 1.05rem; }
.planet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); font-size: 0.95rem; }
.planet-list li { display: flex; align-items: center; gap: var(--space-2); }
.planet-list__icon { width: 18px; height: 18px; color: var(--accent); flex: none; }
.planet-list__q { color: var(--muted); cursor: help; }
.result__note { background: var(--accent-soft); border-radius: 8px; padding: var(--space-2) var(--space-3); font-size: 0.9rem; }

.spheres { display: grid; gap: var(--space-4); }
.sphere__head { display: flex; justify-content: space-between; font-weight: 600; }
.sphere__score { color: var(--accent); }
.sphere p { margin: var(--space-2) 0 0; font-size: 0.95rem; }
.bar { height: 8px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; margin-top: var(--space-1); }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a6cf0, var(--accent)); transition: width 0.6s ease; }

.aspect-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.aspect-list__item {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: 8px;
    background: var(--bg);
    border-left: 3px solid var(--border);
    font-size: 0.95rem;
}
.aspect-list__item.is-harm, .aspect-list__item.is-conj { border-left-color: var(--accent); }
.aspect-list__item.is-tens { border-left-color: #d9a441; }
.aspect-list__kind { color: var(--muted); white-space: nowrap; }
.result__disclaimer { color: var(--muted); font-size: 0.85rem; margin-top: var(--space-5); }

@media (max-width: 600px) {
    .result__head { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
    .partners { grid-template-columns: 1fr; }
    .aspect-list__item { flex-direction: column; gap: 0; }
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Совместимость знаков: шапка пары */
.hero__pair { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.hero__plus { color: var(--night-muted); font-size: 1.5rem; }

/* Карточки с оценками (пара, рейтинг знака, таблица хаба) */
.scores-card, .ranking, .matrix-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-5);
    margin: 0 0 var(--space-5);
    box-shadow: 0 6px 24px rgba(30, 20, 80, 0.06);
}
.hero + main > .scores-card:first-child,
.hero + main > .ranking:first-child,
.hero + main > .matrix-card:first-child { margin-top: calc(-1 * var(--space-6) + var(--space-3)); position: relative; }
.scores-card__total { display: flex; align-items: center; gap: var(--space-4); }
.scores-card__title, .ranking__title, .matrix-card__title { margin: 0 0 var(--space-1); font-size: 1.2rem; }
.scores-card__hint { margin: 0; color: var(--muted); font-size: 0.95rem; }
.scores-card__list { margin: var(--space-4) 0 0; display: grid; gap: var(--space-2); }
.score-row { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: var(--space-3); }
.score-row dt { font-weight: 600; }
.score-row dd { margin: 0; display: flex; align-items: center; gap: var(--space-3); }
.score-row .bar { flex: 1; margin: 0; }
.score-row__value { width: 3em; text-align: right; color: var(--accent); font-weight: 600; }
.scores-card__note { color: var(--muted); font-size: 0.85rem; margin: var(--space-3) 0 0; }

.ranking__list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-1); }
.ranking__item { display: grid; grid-template-columns: 22px minmax(9em, 1.2fr) 2fr 3em; align-items: center; gap: var(--space-3); min-height: 40px; }
.ranking__icon { width: 22px; height: 22px; color: var(--accent); }
.ranking__name { white-space: nowrap; }
.ranking__bar { margin: 0; }
.ranking__score { text-align: right; font-weight: 600; color: var(--accent); }

.partner-chips { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.partner-chips a, .partner-chips__plain {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--tap);
    padding: 0 var(--space-3);
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
}
.partner-chips a:hover { border-color: var(--accent); }
.partner-chips__plain { color: var(--muted); }
.partner-chips .is-current .partner-chips__plain { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.partner-chips__icon { width: 18px; height: 18px; color: var(--accent); }
.partner-chips__score { color: var(--muted); font-size: 0.85rem; }

/* Таблица 12×12 */
/* position: relative – иначе абсолютно спозиционированные .visually-hidden внутри таблицы
   «выпадают» из контейнера прокрутки и растягивают всю страницу по ширине */
.matrix-scroll { position: relative; overflow-x: auto; margin: var(--space-3) calc(-1 * var(--space-5)) 0; padding: 0 var(--space-5); }
.matrix { border-collapse: separate; border-spacing: 3px; font-size: 0.85rem; min-width: 680px; }
.matrix th, .matrix td { text-align: center; padding: 0; }
.matrix thead th { padding-bottom: var(--space-1); }
.matrix tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    text-align: left;
    white-space: nowrap;
    padding-right: var(--space-2);
    font-weight: 600;
}
.matrix tbody th .matrix__icon { margin-right: 4px; vertical-align: -3px; }
.matrix__icon { width: 18px; height: 18px; color: var(--accent); }
.matrix td a, .matrix td span { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 6px; text-decoration: none; color: var(--text); }
.matrix td.is-high a, .matrix td.is-high span { background: color-mix(in srgb, var(--accent) 34%, transparent); }
.matrix td.is-mid a, .matrix td.is-mid span { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.matrix td.is-low a, .matrix td.is-low span { background: var(--bg); }
.matrix td a { font-weight: 700; outline: 1px solid var(--accent); }
.matrix td a:hover { background: var(--accent); color: #fff; }

@media (max-width: 600px) {
    .scores-card, .ranking, .matrix-card { padding: var(--space-4); }
    .matrix-scroll { margin: var(--space-3) calc(-1 * var(--space-4)) 0; padding: 0 var(--space-4); }
    .ranking__item { grid-template-columns: 22px 1fr 3em; }
    .ranking__bar { display: none; }
    .score-row { grid-template-columns: 6.5em 1fr; }
    .scores-card__total { gap: var(--space-3); }
    .scores-card__total > div:last-child { min-width: 0; }
    .scores-card .score-ring { width: 88px; height: 88px; }
    .scores-card .score-ring__value { font-size: 1.5rem; }
}

.promo--secondary { margin-top: var(--space-3); }

/* Натальная карта: форма */
/* Дата и время – рядом; общее правило .calc__form растягивает поля на всю ширину */
.calc__form--natal > .field { grid-column: auto; }
.calc__form--natal > .field--wide { grid-column: 1 / -1; }
.combobox { position: relative; }
.combobox input {
    font: inherit;
    min-height: var(--tap);
    padding: 0 var(--space-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    width: 100%;
}
.combobox input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.combobox__list {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    top: 100%;
    margin: 4px 0 0;
    padding: var(--space-1) 0;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(20, 10, 60, 0.18);
    max-height: 320px;
    overflow-y: auto;
}
.combobox__list li { padding: var(--space-2) var(--space-3); cursor: pointer; display: grid; min-height: var(--tap); align-content: center; }
.combobox__list li.is-active { background: var(--accent-soft); }
.combobox__name { font-weight: 600; }
.combobox__label { font-size: 0.85rem; color: var(--muted); }
.combobox__empty { color: var(--muted); cursor: default; }

/* Натальная карта: круг */
.wheel-wrap { max-width: 560px; margin: var(--space-4) auto; }
.wheel { width: 100%; height: auto; display: block; }
.wheel__ring { fill: none; stroke: var(--text); stroke-opacity: 0.55; stroke-width: 1.2; }
.wheel__ring--thin { stroke-opacity: 0.25; }
.wheel__sign-line { stroke: var(--text); stroke-opacity: 0.4; stroke-width: 1; }
.wheel__tick { stroke: var(--text); stroke-opacity: 0.3; stroke-width: 1; }
.wheel__sign--fire { color: #d9643a; }
.wheel__sign--earth { color: #5f8f3a; }
.wheel__sign--air { color: #3a86c8; }
.wheel__sign--water { color: #2f9a9a; }
.wheel__cusp { stroke: var(--muted); stroke-opacity: 0.6; stroke-width: 1; }
.wheel__axis { stroke: var(--text); stroke-width: 1.8; }
.wheel__axis-label { font: 600 12px system-ui, sans-serif; fill: var(--text); }
.wheel__house-num { font: 11px system-ui, sans-serif; fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
.wheel__planet { color: var(--accent); }
.wheel__planet-tick { stroke: var(--accent); stroke-width: 1.5; }
.wheel__deg { font: 10px system-ui, sans-serif; fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
.wheel__aspect { stroke-width: 1.2; stroke-opacity: 0.75; }
.wheel__aspect--harm { stroke: var(--accent); }
.wheel__aspect--tens { stroke: #d9a441; }

/* Натальная карта: таблицы и расшифровка */
.result__meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
.table-scroll { overflow-x: auto; }
.natal-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.natal-table th, .natal-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.natal-table th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.natal-table__icon { width: 18px; height: 18px; color: var(--accent); vertical-align: -4px; margin-right: 4px; }
.natal-table__retro { color: #d9a441; font-weight: 700; font-size: 0.8rem; margin-left: 4px; }
.natal-table__angle td { font-weight: 600; }
.cusps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-1) var(--space-3); font-size: 0.95rem; }
/* номер, значок, знак и градус – в одну строку: перенос «Скорпион / 26°00′» читается плохо */
.cusps li { display: flex; align-items: center; white-space: nowrap; }
.cusps li .natal-table__icon { flex: none; }
.cusps__n { display: inline-block; min-width: 1.6em; color: var(--muted); font-weight: 600; }
a.cusps__n { color: var(--accent); }
.reading__more { display: inline-block; margin-top: var(--space-1); font-size: 0.9rem; }
.reading { display: grid; gap: var(--space-3); }
.reading__item { padding: var(--space-3) var(--space-4); background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.reading__item h4 { margin: 0 0 var(--space-1); font-size: 1rem; }
.reading__item p { margin: 0; font-size: 0.95rem; }
.aspect-list__title { display: inline-flex; align-items: center; gap: 4px; }
.credits { color: var(--muted); font-size: 0.8rem; margin-top: var(--space-5); }
.credits a { color: inherit; }

@media (max-width: 600px) {
    .calc__form--natal { grid-template-columns: 1fr; }
    .wheel-wrap { margin-left: calc(-1 * var(--space-2)); margin-right: calc(-1 * var(--space-2)); }
}

/* Дома натальной карты */
.hero__glyph--number { font-family: var(--font-display); font-weight: 700; font-size: 2rem; }
.house-grid { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.house-grid a, .house-grid__plain {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--space-3);
    min-height: 60px;
    padding: var(--space-2) var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    height: 100%;
}
.house-grid a:hover { border-color: var(--accent); }
.house-grid__plain { color: var(--muted); }
.house-grid .is-current .house-grid__plain { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.house-grid__n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent); min-width: 1.4em; text-align: center; }
.house-grid__theme { font-size: 0.92rem; line-height: 1.3; }

.pager { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); }
.pager__link { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; max-width: 48%; }
.pager__link:hover { border-color: var(--accent); }
.pager__link--next { text-align: right; margin-left: auto; }
.pager__hint { font-size: 0.8rem; color: var(--muted); }

/* Перелинковка */
.related { margin-top: var(--space-6); }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3); }
.related-card {
    display: grid;
    gap: var(--space-1);
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
}
.related-card:hover { border-color: var(--accent); }
.related-card__title { font-weight: 600; color: var(--accent); }
.related-card__text { color: var(--muted); font-size: 0.95rem; }

/* Подвал */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-5) 0; color: var(--muted); font-size: 0.9rem; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4) var(--space-5); margin-bottom: var(--space-5); }
.footer-nav__title { margin: 0 0 var(--space-1); font-weight: 600; color: var(--text); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--muted); display: inline-flex; align-items: center; min-height: var(--tap); }
.footer-nav a:hover { color: var(--accent); }
.disclaimer { margin: 0 0 var(--space-2); }
.site-footer__copy { margin: 0; }

.draft-notice {
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.9rem;
    margin: 0 0 var(--space-4);
}

/* Планеты: сетки знаков/планет без ссылки (страница ещё не написана) и пояснение о положении планеты */
.sign-grid__plain {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3) 14px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    height: 100%;
}
.sign-grid .is-current .sign-grid__plain { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text); }
.dignity-note {
    margin: 0 0 var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--accent-soft);
    border-radius: var(--radius);
    font-size: 0.95rem;
}
.planet-houses .house-grid { margin-bottom: 0; }

/* Обзор и страницы планет (PlanetPageLayout) */
.planet-cards, .sign-cards, .dignity-cards { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: var(--space-3); }
.planet-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.planet-card, .sign-card, .dignity-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-4) 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
}
.planet-card__glyph { width: 32px; height: 32px; color: var(--accent); }
.planet-card__title { font-family: var(--font-display); font-size: 1.15rem; }
.planet-card__title a { text-decoration: none; }

.speed { margin: var(--space-4) 0; padding: var(--space-4) 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.speed__title { font-family: var(--font-display); font-weight: 700; margin-bottom: var(--space-3); }
.speed__row { display: grid; grid-template-columns: 22px 6.5em minmax(0, 1fr) 9.5em; align-items: center; gap: 10px; padding: 4px 0; font-size: 0.92rem; }
.speed__glyph { width: 20px; height: 20px; color: var(--accent); }
.speed__track { height: 8px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.speed__bar { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--accent) 45%, var(--muted)); }
.speed__bar.is-personal { background: var(--accent); }
.speed__time { color: var(--muted); font-size: 0.85rem; }

.formula { display: flex; align-items: stretch; gap: var(--space-2); margin: var(--space-4) 0; }
.formula__part {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-4) var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.92rem;
}
.formula__part svg { width: 34px; height: 34px; color: var(--accent); }
.formula__n { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 34px; color: var(--accent); }
.formula__q { font-weight: 700; }
.formula__plus { align-self: center; font-size: 1.4rem; color: var(--muted); }

.sign-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sign-card__head { display: flex; align-items: center; gap: 10px; }
.sign-card__glyph { width: 26px; height: 26px; color: var(--accent); flex: none; }
.sign-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.sign-card__tag { margin-left: auto; padding: 1px 10px; border-radius: 999px; background: color-mix(in srgb, #c9962c 22%, transparent); font-size: 0.78rem; }

.dignity-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dignity-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.dignity-card__signs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.dignity-card__signs svg { width: 22px; height: 22px; color: var(--accent); }
.dignity-card__text { color: var(--muted); }

.cta-card { padding: var(--space-5) 22px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.cta-card p:last-of-type { margin-bottom: var(--space-4); }
.cta-card__button {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 var(--space-5);
    border-radius: 999px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 600px) {
    .sign-cards, .dignity-cards { grid-template-columns: 1fr; }
    .formula { flex-direction: column; }
    .formula__plus { transform: rotate(90deg); }
    .speed__row { grid-template-columns: 22px 5.5em minmax(0, 1fr); }
    .speed__time { grid-column: 2 / -1; margin-top: -4px; }
}


/* Страница дома: планеты в доме карточками (HouseLayout) */
.house-planets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-4); }
.house-planet {
    padding: var(--space-4) 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    scroll-margin-top: var(--space-5);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.house-planet p { font-size: 0.95rem; margin: 0 0 var(--space-2); }
.house-planet__head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-2); }
.house-planet__head h3 { margin: 0; font-family: var(--font-display); font-size: 1.1rem; }
.house-planet__glyph { width: 28px; height: 28px; flex: none; color: var(--accent); }
.house-planet__more { font-size: 0.9rem; text-decoration: none; }
/* Пришли по ссылке «Подробнее: Венера в 7 доме» из калькулятора – карточка подсвечена */
.house-planet:target { border-color: #c9962c; box-shadow: 0 0 0 3px color-mix(in srgb, #c9962c 30%, transparent); }
.house-planet:target .house-planet__glyph { color: #c9962c; }
.sign-cards--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sign-cards--compact .sign-card { font-size: 0.9rem; padding: var(--space-3) 14px; }
.note-card { padding: var(--space-4) 20px; background: var(--accent-soft); border-radius: var(--radius); }
.note-card p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
    .sign-cards--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .house-planets, .sign-cards--compact { grid-template-columns: 1fr; }
}


/* Обзор домов (HousesHubLayout) */
.house-spheres { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.house-spheres a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    height: 100%;
    padding: var(--space-3) 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
}
.house-spheres a:hover { border-color: var(--accent); }
.house-spheres__title { display: block; font-family: var(--font-display); }
.house-spheres__text { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

.house-groups { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-5); align-items: center; margin-bottom: var(--space-4); }
.house-wheel { width: 100%; height: auto; display: block; }
.house-wheel__sector path { stroke: var(--bg); stroke-width: 2; transition: opacity 0.15s; }
.house-wheel__sector:hover path { opacity: 0.8; }
.house-wheel__sector.is-angular path { fill: var(--accent); }
.house-wheel__sector.is-succedent path { fill: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.house-wheel__sector.is-cadent path { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.house-wheel__sector text { fill: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 15px; pointer-events: none; }
.house-wheel__sector.is-angular text { fill: var(--bg); }
.house-wheel__angle { fill: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.house-group-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.house-group-card { display: flex; flex-direction: column; padding: var(--space-3) 16px; background: var(--surface); border: 1px solid var(--border); border-left-width: 6px; border-radius: var(--radius); font-size: 0.93rem; }
.house-group-card strong { font-family: var(--font-display); font-size: 1.05rem; }
.house-group-card--angular { border-left-color: var(--accent); }
.house-group-card--succedent { border-left-color: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.house-group-card--cadent { border-left-color: color-mix(in srgb, var(--accent) 22%, var(--surface)); }

.example-cards { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0; }
.example-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-align: center;
    text-decoration: none;
    font-size: 0.93rem;
}
.example-card:hover { border-color: var(--accent); }
.example-card svg { width: 34px; height: 34px; color: var(--accent); }
.example-card strong { font-family: var(--font-display); font-size: 1.1rem; }
.example-cards__vs { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 600px) {
    .house-spheres { grid-template-columns: 1fr; }
    .house-groups { grid-template-columns: 1fr; justify-items: center; }
    .house-wheel { max-width: 280px; }
    .example-cards { flex-direction: column; }
    .example-card { width: 100%; }
}


/* Заголовок-ссылка в карточке: стрелка «→» и кликабельная карточка целиком */
.card-link { position: relative; }
.card-link__title {
    color: var(--accent);
    text-decoration: none;
}
.card-link__title::after {
    content: " →";
    display: inline-block;
    margin-left: 2px;
    transition: transform 0.15s;
}
/* Растягиваем ссылку на всю карточку – попасть пальцем проще */
.card-link__title::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:hover { border-color: var(--accent); }
.card-link:hover .card-link__title::after { transform: translateX(3px); }
.card-link:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-link__title:focus-visible { outline: none; }

/* Короткие ссылки-метки плашками */
.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px 3px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.tag-link:hover { background: color-mix(in srgb, var(--accent) 22%, var(--accent-soft)); }
.tag-link svg { width: 18px; height: 18px; }
.tag-plain { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 8px; font-weight: 600; }
.tag-plain svg { width: 18px; height: 18px; color: var(--muted); }

/* Строка рейтинга знака – ссылка на пару целиком */
.ranking__item { padding: 0 var(--space-2); margin: 0 calc(-1 * var(--space-2)); border-radius: 8px; transition: background 0.15s; }
.ranking__item.card-link:hover { background: var(--accent-soft); }

/* Медленная планета в знаке: раздел-карточка с годами рождения */
.sign-part { margin: var(--space-5) 0; padding: var(--space-4) 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); scroll-margin-top: 80px; }
.sign-part:target, .sign-part:has(h2:target) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sign-part__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sign-part__head h2 { margin: 0; }
.sign-part__glyph { width: 30px; height: 30px; color: var(--accent); flex: none; }
.sign-part__years { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: var(--space-3) 0; font-size: 0.88rem; }
.sign-part__label { color: var(--muted); margin-right: 4px; }
.sign-part__year { padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); font-variant-numeric: tabular-nums; }
.sign-part p:last-child { margin-bottom: 0; }

/* Луна сегодня */
.moon-hero { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-3); }
.moon-hero h1 { margin-top: 0; }
.moon-hero__date { color: var(--night-muted); margin: 0 0 var(--space-3); }
.moon-disc { width: 44px; height: 44px; flex: none; }
.moon-disc--big { width: 132px; height: 132px; filter: drop-shadow(0 0 22px rgba(255, 244, 214, 0.25)); }
.moon-disc__dark { fill: #2a2650; }
.moon-disc__lit { fill: #f4ecd2; }
.moon-now { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-5); }
.moon-card { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4) 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.moon-card__label { color: var(--muted); font-size: 0.85rem; }
.moon-card__value { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.moon-card__sign { display: flex; align-items: center; gap: 8px; }
.moon-card__sign svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.moon-card__note { color: var(--muted); font-size: 0.88rem; }
.moon-events { margin: var(--space-4) 0 var(--space-5); }
.moon-texts { display: grid; gap: var(--space-3); }
.moon-week { margin-top: var(--space-6); }
.moon-week__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-2); }
.moon-week__day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--space-3) 6px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.85rem; }
.moon-week__day.is-today { border-color: var(--accent); }
.moon-week__date { font-weight: 600; }
.moon-week__phase { line-height: 1.2; }
.moon-week__illum { color: var(--muted); }
.moon-week__sign { display: flex; justify-content: center; align-items: center; gap: 4px; }
.moon-week__sign svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 860px) {
    .moon-now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .moon-week__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .moon-hero { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
    .moon-disc--big { width: 96px; height: 96px; }
    .moon-week__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.moon-week__change { color: var(--muted); font-size: 0.78rem; line-height: 1.25; }

/* Луна сегодня: справочная часть */
.wax-wane { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-4) 0; }
.wax-wane__card { margin: 0; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.wax-wane__pic { width: 64px; height: 64px; flex: none; }
.wax-wane__letter { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; font-weight: 700; color: var(--accent); width: 0.8em; text-align: center; }
.wax-wane__card figcaption { line-height: 1.4; }
.wax-wane__card figcaption span { color: var(--muted); font-size: 0.9rem; }

.phase-track { position: relative; height: 46px; margin: var(--space-5) 12px var(--space-2); }
.phase-track__line { position: absolute; left: 0; right: 0; top: 24px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a2650, #f4ecd2 50%, #2a2650); }
.phase-track__tick { position: absolute; top: 32px; transform: translateX(-50%); font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.phase-track__today { position: absolute; top: 0; transform: translateX(-50%); padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.75rem; line-height: 18px; white-space: nowrap; }
.phase-track__today::after { content: ""; position: absolute; left: 50%; top: 18px; width: 2px; height: 10px; margin-left: -1px; background: var(--accent); }
.phase-cards { list-style: none; padding: 0; margin: var(--space-3) 0 var(--space-4); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.phase-card { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4) 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.93rem; }
.phase-card__title { font-family: var(--font-display); font-size: 1.05rem; }

.lunar-scheme { margin: var(--space-4) 0; padding: var(--space-4) 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.lunar-scheme__row, .lunar-scheme__labels { display: grid; grid-template-columns: 0.45fr 1fr 1fr 1fr 0.4fr; gap: 3px; }
.lunar-scheme__seg { padding: 6px 0; text-align: center; font-weight: 700; border-radius: 6px; background: var(--accent-soft); }
.lunar-scheme__seg--first { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.lunar-scheme__more { align-self: center; text-align: center; color: var(--muted); }
.lunar-scheme__labels { margin-top: 4px; font-size: 0.75rem; color: var(--muted); }
.lunar-scheme__labels span { white-space: nowrap; }
.lunar-scheme__fig { margin: var(--space-3) 0 0; }
.lunar-scheme__fig strong { font-family: var(--font-display); font-size: 1.3rem; }

@media (max-width: 760px) {
    .phase-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .wax-wane { grid-template-columns: 1fr; }
    .lunar-scheme__labels span:nth-child(n+3) { visibility: hidden; }
}


/* ===================== Анимации =====================
 * Только transform / opacity и короткие заполнения; содержимое видно и без них.
 * .motion на <html> ставит js/motion.js (и не ставит при «уменьшить движение»).
 */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

/* 1. Живое небо: звёзды мерцают, изредка пролетает падающая звезда */
.hero::before { animation: twinkle 5s ease-in-out infinite alternate; }
.hero::after { animation: twinkle 7.5s ease-in-out -3s infinite alternate; }
@keyframes twinkle { from { opacity: 0.8; } to { opacity: 0.3; } }

.shooting-star {
    position: absolute;
    width: 130px;
    height: 1.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 246, 220, 0.95));
    /* голова справа, полёт вправо-вниз: голова впереди, хвост тянется следом */
    transform: rotate(32deg);
    transform-origin: right center;
    opacity: 0;
    pointer-events: none;
    animation: shoot 14s linear infinite;
}
.shooting-star::after {
    content: "";
    position: absolute;
    right: -2px;
    top: -1.5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff6dc;
    box-shadow: 0 0 8px 2px rgba(255, 246, 220, 0.7);
}
/* видна ~5 % периода: короткий росчерк, потом долгая пауза */
@keyframes shoot {
    0% { opacity: 0; transform: rotate(32deg) translateX(0); }
    1% { opacity: 1; }
    5% { opacity: 0; transform: rotate(32deg) translateX(260px); }
    100% { opacity: 0; transform: rotate(32deg) translateX(260px); }
}

/* 2. Проценты: кольцо и полоски заполняются при появлении на экране, число отсчитывает motion.js */
.motion .score-ring { animation: ring-fill 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both paused; }
.motion .bar span,
.motion .speed__bar { animation: bar-fill 1s cubic-bezier(0.2, 0.7, 0.2, 1) both paused; transform-origin: left center; }
.motion .score-ring.is-visible,
.motion .bar.is-visible span,
.motion .speed__track.is-visible .speed__bar { animation-play-state: running; }
@keyframes ring-fill { from { --p: 0; } }
@keyframes bar-fill { from { transform: scaleX(0); } }

/* 3. Натальная карта прорисовывается: круги, знаки, планеты, затем линии аспектов */
.wheel__ring { stroke-dasharray: 1; animation: draw 0.9s ease-out both; }
.wheel__sign { animation: fade-pop 0.4s ease-out both; animation-delay: calc(0.5s + var(--i, 0) * 0.04s); }
.wheel__planet { animation: fade-pop 0.45s ease-out both; animation-delay: calc(1s + var(--i, 0) * 0.07s); }
.wheel__aspect { stroke-dasharray: 1; animation: draw 0.7s ease-out 1.8s both; }
.wheel__deg, .wheel__house-num, .wheel__axis-label { animation: fade 0.5s ease-out 1.4s both; }
.wheel__sign, .wheel__planet { transform-box: fill-box; transform-origin: center; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes fade { from { opacity: 0; } }

/* 4. Луна сегодня: мягкое свечение, отметка «сегодня» встаёт на шкалу */
.moon-disc--big { animation: moon-glow 6s ease-in-out infinite alternate; }
@keyframes moon-glow {
    from { filter: drop-shadow(0 0 14px rgba(255, 244, 214, 0.18)); }
    to { filter: drop-shadow(0 0 30px rgba(255, 244, 214, 0.42)); }
}
.motion .phase-track .phase-track__today { animation: slide-in 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both paused; }
.motion .phase-track.is-visible .phase-track__today { animation-play-state: running; }
@keyframes slide-in { from { left: 0; opacity: 0; } }

/* 5. Отклики: карточки приподнимаются, значки «вспыхивают», тема меняется плавно */
.card-link { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.15s, background 0.15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -12px rgba(60, 40, 160, 0.45); }
.ranking__item.card-link:hover { transform: none; box-shadow: none; }
.card-link svg { transition: transform 0.3s ease, filter 0.3s ease; filter: drop-shadow(0 0 0 var(--glow-off)); }
.card-link:hover svg:not(.card-link__title svg) { transform: scale(1.12) rotate(-6deg); filter: drop-shadow(0 0 6px var(--glow)); }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
    transition: background-color 0.4s, color 0.4s, border-color 0.4s, fill 0.4s, stroke 0.4s !important;
}

/* 6. Результат калькулятора появляется мягко */
.motion .result > div > * { animation: rise 0.5s ease-out both; }
.motion .result > div > :nth-child(2) { animation-delay: 0.12s; }
.motion .result > div > :nth-child(3) { animation-delay: 0.24s; }
.motion .result > div > :nth-child(n+4) { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

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

/* Уведомление о cookie и политика конфиденциальности */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-3) var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 36px -12px rgba(18, 15, 43, 0.55);
    font-size: 0.92rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { margin: 0; flex: 1; }
.cookie-banner__actions { display: flex; gap: var(--space-2); flex: none; }
.button--small { min-height: 44px; padding: 0 var(--space-4); font-size: 0.92rem; box-shadow: none; }
.button--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.button--ghost:hover { border-color: var(--accent); filter: none; }
.motion .cookie-banner:not([hidden]) { animation: rise 0.4s ease-out both; }
.link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; min-height: var(--tap); }
.link-button:hover { color: var(--accent); }
.footer-nav .link-button { color: var(--muted); text-decoration: none; }
.footer-nav .link-button:hover { color: var(--accent); }
.privacy-operator { margin-top: var(--space-5); }
.privacy-operator p { margin: 0 0 var(--space-2); }
.privacy-operator__todo { color: #b42318; }
.privacy-updated { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; }
    .cookie-banner__actions .button { flex: 1; justify-self: auto; }
}

/* Лунный календарь: сетка месяца, ключевые даты, периоды, знаки, таблица по дням, год */
.moon-intro { margin-top: var(--space-5); }
.moon-cal { margin-top: var(--space-5); }
.moon-grid { margin: var(--space-3) 0; }
.moon-grid__head, .moon-grid__body { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.moon-grid__head span { text-align: center; color: var(--muted); font-size: 0.8rem; padding-bottom: 4px; }
.moon-grid__day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.moon-grid__day.is-new, .moon-grid__day.is-full { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.moon-grid__num { font-weight: 700; font-size: 0.9rem; }
.moon-grid__day .moon-disc { width: 26px; height: 26px; }
.moon-grid__sign svg { width: 16px; height: 16px; color: var(--accent); display: block; }
.moon-grid__lday { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.moon-cal__legend { color: var(--muted); font-size: 0.88rem; }

.moon-events-list { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.moon-event { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.moon-event.is-new, .moon-event.is-full { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.moon-event__title { font-family: var(--font-display); font-weight: 700; }
.moon-event__date { font-variant-numeric: tabular-nums; }
.moon-event__sign { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.88rem; }
.moon-event__sign svg { width: 16px; height: 16px; color: var(--accent); }

.moon-periods { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.moon-period { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border-left: 4px solid #f4ecd2; }
.moon-period.is-waning { border-left-color: #2a2650; }

.moon-signs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--space-4); }
.moon-signs li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.moon-signs svg { width: 20px; height: 20px; color: var(--accent); }
.moon-signs span { color: var(--muted); }

/* Таблица по дням: зебра и подсветка строки вместо вертикальных линий; ключевые дни – акцентом; неделя – разделителем */
.moon-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.moon-table th { text-align: left; padding: 8px 10px; color: var(--muted); font-weight: 600; font-size: 0.82rem; border-bottom: 1px solid var(--border); }
.moon-table td { padding: 8px 10px; vertical-align: middle; }
.moon-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.moon-table tbody tr:hover td { background: var(--accent-soft); }
.moon-table tbody tr.is-week-end td { border-bottom: 1px solid var(--border); }
.moon-table tbody tr.is-key td { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.moon-table tbody tr.is-key td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.moon-table td:first-child { border-radius: 8px 0 0 8px; }
.moon-table td:last-child { border-radius: 0 8px 8px 0; }
.moon-table__date { white-space: nowrap; }
.moon-table__day { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-right: 6px; }
.moon-table__dow { color: var(--muted); font-size: 0.82rem; }
.moon-table__dow.is-weekend { color: var(--accent); }
.moon-table__phase { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.moon-table__phase .moon-disc { width: 22px; height: 22px; }
.moon-table__badge { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.75rem; }
.moon-table__illum { white-space: nowrap; font-variant-numeric: tabular-nums; }
.moon-table__bar { display: inline-block; vertical-align: middle; width: 48px; height: 5px; margin-right: 8px; border-radius: 3px; background: var(--border); overflow: hidden; }
.moon-table__bar span { display: block; height: 100%; background: #f4ecd2; }
.moon-table__chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); font-size: 0.85rem; white-space: nowrap; }
.moon-table__arrow { color: var(--muted); margin: 0 4px 0 2px; }
.moon-table__unit { display: inline-block; white-space: nowrap; margin: 1px 0; }
.moon-table__sign { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.moon-table__sign svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.moon-table__time { color: var(--muted); font-size: 0.85rem; }

/* Телефон: строка таблицы – карточка, подпись столбца – из data-label */
@media (max-width: 640px) {
    .moon-table thead { display: none; }
    .moon-table, .moon-table tbody, .moon-table tr, .moon-table td { display: block; width: auto; }
    .moon-table tr { margin-bottom: var(--space-2); padding: 8px 4px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
    .moon-table tbody tr td, .moon-table tbody tr:nth-child(even) td, .moon-table tbody tr:hover td { background: none; }
    .moon-table tbody tr.is-key { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
    .moon-table tbody tr.is-key td:first-child { box-shadow: none; }
    .moon-table tbody tr.is-week-end td { border-bottom: 0; }
    .moon-table td { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px 10px; border-radius: 0 !important; }
    .moon-table td:not(.moon-table__date)::before { content: attr(data-label); flex: 0 0 100px; color: var(--muted); font-size: 0.8rem; }
}

.moon-year { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.moon-year__month { display: flex; flex-direction: column; gap: 6px; padding: var(--space-3) 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.moon-year__row { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.moon-year__row .moon-disc { width: 18px; height: 18px; }
.moon-month-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }

@media (max-width: 760px) {
    .moon-events-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .moon-year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .moon-signs { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .moon-grid__lday { display: none; }
    .moon-grid__day .moon-disc { width: 20px; height: 20px; }
    .moon-year { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Редизайн: общие компоненты и главная
   ========================================================================== */

/* Кнопки: градиент бренда, «стекло» на тёмном фоне, светлая – на градиентной плашке */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--grad);
    background-size: 140% 100%;
    background-position: 0 0;
    box-shadow: 0 10px 28px -10px rgba(140, 80, 255, 0.65);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.005em;
    transition: background-position 0.4s ease, box-shadow 0.2s, transform 0.15s, filter 0.15s;
}
.button:hover { filter: none; background-position: 100% 0; box-shadow: 0 14px 34px -10px rgba(190, 80, 240, 0.75); }
.button:active { transform: translateY(1px); }
.button svg { width: 20px; height: 20px; flex: none; }
.button--large { min-height: 58px; padding: 0 28px; font-size: 1.02rem; }
.site-header .button { min-height: 44px; padding: 0 20px; font-size: 0.93rem; }
.button--glass {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--night-text);
    box-shadow: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.button--glass:hover { background: rgba(255, 255, 255, 0.13); box-shadow: none; }
.button--light { background: #fff; color: #2a1a6b; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45); }
.button--light:hover { background: #fff; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.55); }

/* Надпись над заголовком раздела */
.eyebrow {
    margin: 0 0 var(--space-2);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e0a43c;
}
.eyebrow--pill {
    display: inline-flex;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(243, 201, 105, 0.1);
    border: 1px solid rgba(243, 201, 105, 0.28);
    color: var(--gold);
    letter-spacing: 0.08em;
}
.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Первый экран главной */
.home-hero {
    position: relative;
    overflow: hidden;
    color: var(--night-text);
    background:
        radial-gradient(ellipse 55% 70% at 78% 40%, rgba(124, 92, 255, 0.32), transparent 65%),
        radial-gradient(ellipse 45% 60% at 10% 100%, rgba(255, 111, 174, 0.16), transparent 60%),
        radial-gradient(ellipse 40% 50% at 30% 0%, rgba(84, 60, 190, 0.35), transparent 60%),
        linear-gradient(180deg, var(--night-3) 0%, var(--night-2) 60%, var(--night-3) 100%);
    margin-top: -68px;
    padding: calc(68px + var(--space-6)) 0 72px;
}
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 18%, var(--star) 50%, transparent 51%),
        radial-gradient(1px 1px at 37% 72%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 64% 33%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 81% 81%, var(--star) 50%, transparent 51%),
        radial-gradient(1px 1px at 92% 12%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 52% 54%, #fff 50%, transparent 51%);
    background-size: 260px 260px;
    opacity: 0.7;
}
.home-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}
.home-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: var(--space-6);
}
.home-hero h1 {
    margin: var(--space-4) 0 var(--space-4);
    font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #fff;
}
.home-hero__lead { margin: 0; max-width: 32em; font-size: 1.15rem; color: var(--night-muted); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.home-hero__facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin: var(--space-6) 0 0;
    padding: var(--space-4) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.home-hero__facts li { display: grid; max-width: 13em; line-height: 1.35; }
.home-hero__facts strong { font-size: 1.05rem; color: #fff; }
.home-hero__facts span { font-size: 0.86rem; color: var(--night-muted); }
.home-hero__art { position: relative; justify-self: end; width: min(100%, 560px); }

/* Круг зодиака: кольцо знаков медленно вращается, планеты и аспекты стоят */
.sky-wheel { display: block; width: 100%; height: auto; overflow: visible; }
.sky-wheel__rotor { transform-origin: 300px 300px; animation: wheel-spin 240s linear infinite; }
.sky-wheel__ring { fill: none; stroke: rgba(196, 178, 255, 0.28); stroke-width: 1; }
.sky-wheel__ring--outer { stroke: url(#sw-ring); stroke-width: 1.6; opacity: 0.85; }
.sky-wheel__ring--thin { stroke-dasharray: 2 6; stroke: rgba(196, 178, 255, 0.35); }
.sky-wheel__tick { stroke: rgba(196, 178, 255, 0.22); stroke-width: 1; }
.sky-wheel__tick--major { stroke: rgba(196, 178, 255, 0.4); }
.sky-wheel__sign { color: #d9ccff; opacity: 0.9; }
.sky-wheel__aspect { stroke-width: 1.4; stroke-linecap: round; opacity: 0.75; }
.sky-wheel__aspect--harm { stroke: #8fd3ff; }
.sky-wheel__aspect--tens { stroke: #ff8fb8; stroke-dasharray: 5 5; }
.sky-wheel__dot { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)); }
.sky-wheel__planet { color: var(--gold); }
.sky-wheel__core { fill: rgba(18, 14, 46, 0.9); stroke: rgba(196, 178, 255, 0.35); }
.sky-wheel__logo { color: #c4b2ff; filter: drop-shadow(0 0 12px rgba(167, 139, 255, 0.8)); }
@keyframes wheel-spin { to { transform: rotate(360deg); } }

/* Разделы главной */
.home { padding-bottom: var(--space-6); }
.home-section { margin-top: 88px; }
.home-section:first-child { margin-top: var(--space-5); }
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; }
.section-head__aside { margin: 0; color: var(--muted); }

/* Большие карточки калькуляторов: иллюстрация сверху, метка, текст, призыв */
.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card {
    --tint: 124, 92, 255;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.feature-card--pink { --tint: 255, 111, 174; }
.feature-card--gold { --tint: 243, 180, 80; }
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--tint), 0.55);
    box-shadow: 0 26px 50px -26px rgba(var(--tint), 0.65);
}
.feature-card__art {
    position: relative;
    display: grid;
    place-items: center;
    height: 170px;
    margin: 0 -8px 6px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 55%, rgba(var(--tint), 0.45), transparent 62%),
        linear-gradient(160deg, #1b1543, #0d0a22);
    overflow: hidden;
}
.feature-card__art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 75% 20%, var(--star) 50%, transparent 51%),
        radial-gradient(1px 1px at 60% 80%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 88% 62%, #fff 50%, transparent 51%);
    opacity: 0.8;
}
.feature-card__ring { position: absolute; width: 140px; height: 140px; fill: none; stroke: rgba(var(--tint), 0.7); stroke-width: 1; transition: transform 0.6s ease; }
.feature-card__ring path { stroke: rgba(255, 255, 255, 0.14); }
.feature-card__glyph { position: relative; width: 56px; height: 56px; color: #ffe2a6; filter: drop-shadow(0 0 14px rgba(255, 220, 140, 0.8)); }
.feature-card:hover .feature-card__ring { transform: rotate(45deg); }
.feature-card__duo { position: relative; display: flex; gap: 6px; }
.feature-card__duo svg {
    width: 76px;
    height: 76px;
    padding: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(var(--tint), 0.6);
    color: #ffd0e3;
    filter: drop-shadow(0 0 12px rgba(var(--tint), 0.6));
    transition: transform 0.4s ease;
}
.feature-card:hover .feature-card__duo svg:first-child { transform: translateX(8px); }
.feature-card:hover .feature-card__duo svg:last-child { transform: translateX(-8px); }
.feature-card__grid { position: relative; display: grid; grid-template-columns: repeat(6, 26px); gap: 12px 14px; }
.feature-card__grid svg { width: 26px; height: 26px; color: rgba(255, 255, 255, 0.35); transition: color 0.3s, filter 0.3s; }
.feature-card__grid svg.is-on { color: #ffd98a; filter: drop-shadow(0 0 8px rgba(255, 200, 100, 0.9)); }
.feature-card:hover .feature-card__grid svg { color: rgba(255, 255, 255, 0.6); }
.feature-card__title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.feature-card__text { color: var(--muted); font-size: 0.97rem; flex: 1; }
.feature-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; color: var(--accent); }
.feature-card__cta span { transition: transform 0.2s; }
.feature-card:hover .feature-card__cta span { transform: translateX(4px); }
.feature-card .chip { background: rgba(var(--tint), 0.14); color: rgb(var(--tint)); }
:root[data-theme="light"] .feature-card .chip { filter: brightness(0.8); }

/* Сетка знаков (главная, гороскопы, совместимость) */
.sign-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.sign-grid a {
    position: relative;
    padding: 18px;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.sign-grid a:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 20px 40px -24px var(--glow); }
.sign-grid__icon {
    width: 48px;
    height: 48px;
    padding: 11px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
}
.sign-grid__name { font-weight: 800; font-size: 1.05rem; margin-top: 12px; letter-spacing: -0.01em; }
.page-home .sign-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }

/* Луна сейчас – полоса на главной */
.moon-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-5);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    color: var(--night-text);
    background:
        radial-gradient(ellipse 40% 120% at 8% 50%, rgba(255, 236, 190, 0.18), transparent 60%),
        linear-gradient(120deg, #1b1543 0%, #120e30 60%, #1d1240 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.moon-band__now { display: flex; align-items: center; gap: 28px; }
.moon-band__disc { width: 104px; height: 104px; filter: drop-shadow(0 0 26px rgba(255, 240, 200, 0.35)); }
.moon-band__title { margin: 0 0 var(--space-2); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: #fff; }
.moon-band__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; }
.moon-band__facts li { display: grid; line-height: 1.3; }
.moon-band__facts span { font-size: 0.8rem; color: var(--night-muted); }
.moon-band__facts strong { display: inline-flex; align-items: center; gap: 6px; font-size: 1.05rem; color: #fff; }
.moon-band__facts svg { width: 18px; height: 18px; color: var(--gold); }
.moon-band__links { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Справочник */
.guide-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.guide-card {
    display: grid;
    gap: 6px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s;
}
.guide-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.guide-card svg { width: 44px; height: 44px; padding: 10px; margin-bottom: 8px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.guide-card__title { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.guide-card__text { color: var(--muted); font-size: 0.93rem; line-height: 1.45; }

/* Принципы */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principle {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
}
.principle h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.principle p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.principle__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--grad);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 10px 24px -10px rgba(140, 80, 255, 0.7);
}

/* Финальный призыв */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-5);
    padding: 44px 48px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(ellipse 50% 120% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
        var(--grad);
    box-shadow: 0 30px 60px -30px rgba(160, 80, 255, 0.8);
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: #fff; }
.cta-band p { margin: 0; max-width: 34em; opacity: 0.9; }

/* Подвал */
.site-footer {
    margin-top: var(--space-6);
    padding: 56px 0 28px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-soft) 45%, transparent));
}
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: var(--space-6); margin-bottom: var(--space-5); }
.site-footer__brand .logo { color: var(--text); }
.site-footer__brand .logo__mark { color: var(--accent); filter: none; }
.site-footer__brand p { margin: var(--space-3) 0 0; max-width: 26em; color: var(--muted); }
.footer-nav { margin-bottom: 0; }
.footer-nav__title { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: var(--space-2); }
.footer-nav a { text-decoration: none; min-height: 36px; }
.site-footer .disclaimer { padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: 0.85rem; }

/* Адаптив главной */
@media (max-width: 1080px) {
    .page-home .sign-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .home-hero__inner { grid-template-columns: 1fr; gap: var(--space-5); }
    .home-hero__art { justify-self: center; width: min(78%, 380px); }
    .home-hero { padding-top: calc(60px + var(--space-5)); margin-top: -60px; }
    .feature-cards, .principles { grid-template-columns: 1fr; }
    .section-head { grid-template-columns: 1fr; align-items: start; gap: var(--space-2); }
    .site-footer__top { grid-template-columns: 1fr; gap: var(--space-5); }
}
@media (max-width: 600px) {
    .home-section { margin-top: 64px; }
    .page-home .sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .page-home .sign-grid a { padding: 12px; }
    .page-home .sign-grid__dates { display: none; }
    .guide-cards { grid-template-columns: 1fr; }
    .home-hero__actions .button { width: 100%; }
    .home-hero__facts { gap: var(--space-3); }
    .moon-band, .cta-band { padding: 24px; }
    .moon-band__now { gap: 18px; }
    .moon-band__disc { width: 76px; height: 76px; }
}

/* ==========================================================================
   Редизайн: страницы калькуляторов (натальная карта, совместимость по дате)
   ========================================================================== */

/* Первый экран: текст и выгоды слева, форма в карточке справа */
.calc-hero {
    position: relative;
    overflow: hidden;
    color: var(--night-text);
    background:
        radial-gradient(ellipse 50% 70% at 85% 30%, rgba(124, 92, 255, 0.3), transparent 65%),
        radial-gradient(ellipse 40% 60% at 0% 100%, rgba(255, 111, 174, 0.14), transparent 60%),
        linear-gradient(180deg, var(--night-3) 0%, var(--night-2) 70%, var(--night-3) 100%);
    margin-top: -68px;
    padding: calc(68px + var(--space-4)) 0 80px;
}
.calc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 18%, var(--star) 50%, transparent 51%),
        radial-gradient(1px 1px at 37% 72%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 64% 33%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 81% 81%, var(--star) 50%, transparent 51%),
        radial-gradient(1px 1px at 52% 54%, #fff 50%, transparent 51%);
    background-size: 260px 260px;
    opacity: 0.6;
}
.calc-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}
/* круг зодиака за карточкой формы – только фон */
.calc-hero__art {
    position: absolute;
    right: max(-120px, calc(50% - 760px));
    top: 50%;
    width: 720px;
    transform: translateY(-50%);
    opacity: 0.35;
    pointer-events: none;
}
.calc-hero__orbs {
    position: absolute;
    right: max(0px, calc(50% - 640px));
    top: 50%;
    display: flex;
    gap: 0;
    transform: translateY(-50%);
    opacity: 0.18;
    pointer-events: none;
}
.calc-hero__orbs svg { width: 360px; height: 360px; padding: 80px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); color: #ffd0e3; }
.calc-hero__orbs svg + svg { margin-left: -120px; color: #c4b2ff; }
.calc-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    align-items: center;
    gap: var(--space-6);
}
.calc-hero h1 {
    margin: var(--space-3) 0;
    font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: #fff;
}
.calc-hero .breadcrumbs { margin-bottom: var(--space-4); }
.calc-hero__lead { margin: 0; max-width: 30em; font-size: 1.1rem; color: var(--night-muted); }
.calc-hero__perks { list-style: none; display: grid; gap: 14px; margin: var(--space-5) 0 0; padding: 0; }
.calc-hero__perks li { display: flex; align-items: flex-start; gap: 14px; line-height: 1.4; }
.calc-hero__perks svg {
    flex: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 13px;
    background: rgba(167, 139, 255, 0.14);
    border: 1px solid rgba(167, 139, 255, 0.25);
    color: var(--gold);
}
.calc-hero__perks strong { display: block; color: #fff; }
.calc-hero__perks span { color: var(--night-muted); font-size: 0.93rem; }

/* Карточка формы */
.calc-card {
    position: relative;
    padding: 28px;
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(167, 139, 255, 0.35);
    box-shadow: 0 40px 80px -40px rgba(124, 92, 255, 0.75), 0 0 0 6px rgba(167, 139, 255, 0.08);
}
.calc-card__title { margin: 0 0 var(--space-4); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.calc-card .calc__form { gap: var(--space-4); }
.calc-card .calc__person { gap: var(--space-2); }
.calc-card .calc__person legend { font-size: 1rem; font-weight: 800; color: var(--accent); }
.calc-card .button { justify-self: stretch; min-height: 56px; font-size: 1.02rem; }

/* Поля ввода – крупнее и мягче */
.field input,
.combobox input {
    min-height: 50px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    font: inherit;
    font-weight: 600;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.combobox input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field__label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.combobox__list { z-index: 20; border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.5); }

/* Результат */
.calc-main { padding-top: var(--space-4); }
.calc-result {
    margin-top: 0;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    scroll-margin-top: 90px;
}
.calc-result .result__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.calc-result h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin: 1.8em 0 0.7em; }
.result__note { border-radius: 12px; padding: 12px 16px; }

/* Натальная карта: круг слева, данные справа */
.natal-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; margin-top: var(--space-4); }
.natal-layout .wheel-wrap { max-width: none; margin: 0; position: sticky; top: 90px; }
.natal-layout__data h3:first-of-type { margin-top: 0; }
.natal-table th, .natal-table td { padding: 9px 10px; }
.natal-table tbody tr:hover { background: var(--accent-soft); }
.reading { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.reading__item { padding: 18px 20px; border-radius: 16px; background: var(--surface-2); }
.reading__item h4 { font-size: 1.05rem; font-weight: 800; }
.aspect-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aspect-list__item { border-radius: 12px; background: var(--surface-2); }

/* Совместимость: крупное кольцо и партнёры */
.calc-result .result__head { gap: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.calc-result .score-ring { width: 140px; height: 140px; }
.calc-result .partners { gap: 16px; }
.calc-result .partner { border-radius: 16px; background: var(--surface-2); padding: 18px 20px; }
.calc-result .sphere { border-radius: 16px; background: var(--surface-2); }

/* Текст страницы и боковая колонка */
.page-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-6); align-items: start; margin-top: var(--space-6); }
.page-cols > .content { max-width: 760px; }
.page-cols > .content > :first-child { margin-top: 0; }
.page-aside { position: sticky; top: 92px; margin-top: 0; }
.page-aside h2 { margin: 0 0 var(--space-3); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.related__grid--aside { grid-template-columns: 1fr; gap: 12px; }
.related-card {
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s;
}
.related-card:hover { transform: translateY(-2px); }
.related-card__title { font-weight: 800; color: var(--text); }
.related--wide { margin-top: var(--space-6); }

/* Типографика текстов */
.content h2 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); line-height: 1.2; margin: 1.9em 0 0.6em; }
.content h3 { font-size: 1.2rem; }
.content p, .content li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.content ul li::marker, .content ol li::marker { color: var(--accent); }
.content table { border-radius: 14px; overflow: hidden; border-style: hidden; box-shadow: 0 0 0 1px var(--border); }
.content blockquote { border-radius: 0 16px 16px 0; }
.credits { color: var(--muted); font-size: 0.85rem; margin-top: var(--space-6); }

@media (max-width: 1000px) {
    .calc-hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
    .calc-hero__art { width: 520px; right: -200px; top: 30%; opacity: 0.22; }
    .natal-layout { grid-template-columns: minmax(0, 1fr); }
    .natal-layout .wheel-wrap { position: static; max-width: 560px; margin: 0 auto; }
    .page-cols { grid-template-columns: minmax(0, 1fr); }
    .page-aside { position: static; }
    .related__grid--aside { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 600px) {
    .calc-hero { padding-bottom: 56px; }
    .calc-card { padding: 20px; border-radius: 20px; }
    .calc-hero__perks { display: none; }
    .calc-result { padding: 20px; border-radius: 18px; }
    .reading, .aspect-list { grid-template-columns: 1fr; }
    .calc-result .score-ring { width: 110px; height: 110px; }
    .calc-hero__orbs { opacity: 0.1; right: -160px; }
}
.reading__more { display: block; width: fit-content; }
.calc-result .partner h3 { margin: 0 0 10px; font-size: 1.05rem; }
.calc-result .score-ring {
    background:
        radial-gradient(closest-side, var(--surface) 80%, transparent 81%),
        conic-gradient(#7c5cff 0%, #ff6fae calc(var(--p) * 1%), var(--accent-soft) 0);
}
/* пока скрипт темы не загрузился, кнопка скрыта – бургер всё равно у правого края */
.theme-toggle[hidden] ~ .mnav { margin-left: auto; }
@media (max-width: 600px) {
    .natal-table th, .natal-table td { padding: 8px 6px; }
}
/* закрытый <details> в Chrome только не рисует панель, но она всё равно расширяет страницу */
.mnav:not([open]) .mnav__panel { display: none; }
.mnav__panel .site-nav__menu a { min-width: 0; }
.mnav__panel .site-nav__menu span { min-width: 0; }
/* поля даты и времени с маской (js/birth-input.js): цифры одинаковой ширины – маска не «прыгает» */
.field input[inputmode="numeric"] { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.field input::placeholder, .combobox input::placeholder { color: var(--muted); opacity: 0.7; font-weight: 500; letter-spacing: 0.04em; }
/* подписи разной длины («Время рождения – если знаете» переносится) – поля всё равно на одной линии */
.calc-card .calc__form--natal { align-items: end; }

/* ==========================================================================
   Результат натальной карты: расшифровка и аспекты
   ========================================================================== */

/* Цвета планет ([data-planet] → --pc) – в разделе «Круг натальной карты» ниже */

/* Карточка расшифровки */
.reading { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reading-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(var(--pc), 0.1), transparent 70%),
        var(--surface-2);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.reading-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--pc), 0.9), rgba(var(--pc), 0));
}
.reading-card:hover { border-color: rgba(var(--pc), 0.45); }
.reading-card__head { display: flex; align-items: center; gap: 14px; }
.reading-card__glyph {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(var(--pc), 0.14);
    border: 1px solid rgba(var(--pc), 0.35);
    color: rgb(var(--pc));
}
.reading-card__glyph svg { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(var(--pc), 0.6)); }
.reading-card__title { margin: 0; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.reading-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.reading-card__tags > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px 2px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}
.reading-card__tags svg { width: 14px; height: 14px; color: var(--accent); }
.reading-card__text { margin: 0; font-size: 0.96rem; line-height: 1.6; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.reading-card__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }

/* Ссылка-плашка: «Солнце в Рыбах →» */
.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pill-link span[aria-hidden] { color: var(--accent); transition: transform 0.2s; }
.pill-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.pill-link:hover span[aria-hidden] { transform: translateX(3px); }

/* Аспекты: легенда и карточки */
.aspect-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: -6px 0 14px; font-size: 0.84rem; color: var(--muted); }
.aspect-legend span { display: inline-flex; align-items: center; gap: 7px; }
.aspect-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 8px var(--ac); }
/* светлая тема – насыщеннее, чтобы подписи читались на белом; тёмная – светлее */
.is-harm { --ac: #2b86d9; }
.is-tens { --ac: #e0553e; }
.is-neutral { --ac: #c08a12; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .is-harm { --ac: #7cc4ff; }
    :root:not([data-theme="light"]) .is-tens { --ac: #ff8a7a; }
    :root:not([data-theme="light"]) .is-neutral { --ac: #f3c969; }
}
:root[data-theme="dark"] .is-harm { --ac: #7cc4ff; }
:root[data-theme="dark"] .is-tens { --ac: #ff8a7a; }
:root[data-theme="dark"] .is-neutral { --ac: #f3c969; }

.aspect-cards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.aspect-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px 12px 12px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.aspect-card:hover { border-color: color-mix(in srgb, var(--ac) 55%, transparent); }
.aspect-card__pair { display: flex; align-items: center; }
.aspect-card__planet {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(var(--pc), 0.14);
    border: 1px solid rgba(var(--pc), 0.4);
    color: rgb(var(--pc));
}
.aspect-card__planet svg { width: 20px; height: 20px; }
.aspect-card__sym {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin: 0 -6px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--ac) 60%, transparent);
    color: var(--ac);
    box-shadow: 0 0 10px color-mix(in srgb, var(--ac) 40%, transparent);
}
.aspect-card__sym svg { width: 14px; height: 14px; }
.aspect-card__body { display: grid; line-height: 1.3; }
.aspect-card__body strong { font-weight: 800; font-size: 0.97rem; }
.aspect-card__name { color: var(--ac); font-size: 0.85rem; font-weight: 700; }
.aspect-card__orb { display: grid; justify-items: end; gap: 4px; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.aspect-card__meter { display: block; width: 64px; height: 5px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.aspect-card__meter span { display: block; height: 100%; border-radius: inherit; background: var(--ac); }

/* Таблица планет и дома – в тон карточкам */
.natal-table { border-collapse: separate; border-spacing: 0; }
.natal-table td { border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent); }
.cusps a.cusps__n { text-decoration: none; }

@media (max-width: 900px) {
    .reading, .aspect-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
    .aspect-card { grid-template-columns: auto minmax(0, 1fr); }
    .aspect-card__orb { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; }
}

/* ==========================================================================
   Круг натальной карты (рисует js/natal.js → renderWheel)
   ========================================================================== */

/* Стихии и планеты: в светлой теме – насыщенные оттенки, в тёмной – светлые */
:root {
    --el-fire: 214, 90, 52;
    --el-earth: 86, 140, 52;
    --el-air: 48, 128, 200;
    --el-water: 32, 150, 150;
}
[data-planet] { --pc: 108, 71, 255; }
[data-planet="sun"], [data-planet="asc"] { --pc: 196, 140, 20; }
[data-planet="moon"] { --pc: 96, 112, 170; }
[data-planet="mercury"] { --pc: 30, 140, 200; }
[data-planet="venus"] { --pc: 214, 70, 140; }
[data-planet="mars"] { --pc: 214, 72, 56; }
[data-planet="jupiter"] { --pc: 214, 120, 40; }
[data-planet="saturn"] { --pc: 112, 90, 200; }
[data-planet="uranus"] { --pc: 20, 160, 150; }
[data-planet="neptune"] { --pc: 60, 100, 210; }
[data-planet="pluto"] { --pc: 140, 70, 210; }
[data-planet="node"] { --pc: 110, 105, 140; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --el-fire: 255, 138, 107;
        --el-earth: 159, 212, 110;
        --el-air: 124, 196, 255;
        --el-water: 95, 224, 208;
    }
    :root:not([data-theme="light"]) [data-planet] { --pc: 167, 139, 255; }
    :root:not([data-theme="light"]) [data-planet="sun"], :root:not([data-theme="light"]) [data-planet="asc"] { --pc: 243, 201, 105; }
    :root:not([data-theme="light"]) [data-planet="moon"] { --pc: 196, 208, 255; }
    :root:not([data-theme="light"]) [data-planet="mercury"] { --pc: 120, 210, 255; }
    :root:not([data-theme="light"]) [data-planet="venus"] { --pc: 255, 143, 196; }
    :root:not([data-theme="light"]) [data-planet="mars"] { --pc: 255, 122, 107; }
    :root:not([data-theme="light"]) [data-planet="jupiter"] { --pc: 255, 176, 112; }
    :root:not([data-theme="light"]) [data-planet="saturn"] { --pc: 185, 166, 255; }
    :root:not([data-theme="light"]) [data-planet="uranus"] { --pc: 111, 227, 214; }
    :root:not([data-theme="light"]) [data-planet="neptune"] { --pc: 122, 168, 255; }
    :root:not([data-theme="light"]) [data-planet="pluto"] { --pc: 196, 139, 255; }
    :root:not([data-theme="light"]) [data-planet="node"] { --pc: 166, 161, 198; }
}
:root[data-theme="dark"] {
    --el-fire: 255, 138, 107;
    --el-earth: 159, 212, 110;
    --el-air: 124, 196, 255;
    --el-water: 95, 224, 208;
}
:root[data-theme="dark"] [data-planet] { --pc: 167, 139, 255; }
:root[data-theme="dark"] [data-planet="sun"], :root[data-theme="dark"] [data-planet="asc"] { --pc: 243, 201, 105; }
:root[data-theme="dark"] [data-planet="moon"] { --pc: 196, 208, 255; }
:root[data-theme="dark"] [data-planet="mercury"] { --pc: 120, 210, 255; }
:root[data-theme="dark"] [data-planet="venus"] { --pc: 255, 143, 196; }
:root[data-theme="dark"] [data-planet="mars"] { --pc: 255, 122, 107; }
:root[data-theme="dark"] [data-planet="jupiter"] { --pc: 255, 176, 112; }
:root[data-theme="dark"] [data-planet="saturn"] { --pc: 185, 166, 255; }
:root[data-theme="dark"] [data-planet="uranus"] { --pc: 111, 227, 214; }
:root[data-theme="dark"] [data-planet="neptune"] { --pc: 122, 168, 255; }
:root[data-theme="dark"] [data-planet="pluto"] { --pc: 196, 139, 255; }
:root[data-theme="dark"] [data-planet="node"] { --pc: 166, 161, 198; }

.wheel { overflow: visible; font-family: var(--font-body); }
.wheel__bg { fill: url(#wheel-bg); }
.wheel__bg-in { stop-color: var(--surface); }
.wheel__bg-out { stop-color: var(--surface-2); }
.wheel__band { stroke: none; }
.wheel__band--fire { fill: rgba(var(--el-fire), 0.1); }
.wheel__band--earth { fill: rgba(var(--el-earth), 0.1); }
.wheel__band--air { fill: rgba(var(--el-air), 0.1); }
.wheel__band--water { fill: rgba(var(--el-water), 0.1); }
.wheel__ring { fill: none; stroke: var(--text); stroke-opacity: 0.22; stroke-width: 1; }
.wheel__ring--rim { stroke: url(#wheel-rim); stroke-opacity: 0.9; stroke-width: 2; }
.wheel__ring--thin { stroke-opacity: 0.18; }
.wheel__inner { fill: var(--bg); fill-opacity: 0.55; }
.wheel__sign-line { stroke: var(--text); stroke-opacity: 0.16; stroke-width: 1; }
.wheel__tick { stroke: var(--text); stroke-opacity: 0.14; stroke-width: 1; }
.wheel__tick--major { stroke-opacity: 0.3; }
.wheel__sign--fire { color: rgb(var(--el-fire)); }
.wheel__sign--earth { color: rgb(var(--el-earth)); }
.wheel__sign--air { color: rgb(var(--el-air)); }
.wheel__sign--water { color: rgb(var(--el-water)); }
.wheel__cusp { stroke: var(--text); stroke-opacity: 0.16; stroke-width: 1; stroke-dasharray: 3 4; }
.wheel__axis { stroke: var(--accent); stroke-opacity: 0.85; stroke-width: 1.6; }
.wheel__axis-label rect { fill: var(--accent); }
.wheel__axis-label text { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; fill: #fff; text-anchor: middle; dominant-baseline: middle; }
.wheel__house-num { font-size: 11px; font-weight: 700; fill: var(--muted); fill-opacity: 0.8; text-anchor: middle; dominant-baseline: middle; }

.wheel__aspect { stroke-width: 1.5; stroke-linecap: round; stroke-opacity: var(--o, 0.7); }
.wheel { --harm: #2b86d9; --tens: #e0553e; }
.wheel__aspect--harm { stroke: var(--harm); }
.wheel__aspect--tens { stroke: var(--tens); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .wheel { --harm: #7cc4ff; --tens: #ff8a7a; }
}
:root[data-theme="dark"] .wheel { --harm: #7cc4ff; --tens: #ff8a7a; }

.wheel__planet { color: rgb(var(--pc)); }
.wheel__dot { fill: rgb(var(--pc)); }
.wheel__lead { stroke: rgb(var(--pc)); stroke-opacity: 0.55; stroke-width: 1; }
.wheel__chip { fill: var(--surface); stroke: rgb(var(--pc)); stroke-width: 1.4; filter: drop-shadow(0 0 6px rgba(var(--pc), 0.45)); }
.wheel__glyph { color: rgb(var(--pc)); }
.wheel__deg { font-size: 10.5px; font-weight: 700; fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
.wheel__retro { fill: #e0553e; font-size: 9px; }

.natal-layout .wheel-wrap {
    padding: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.12), transparent 70%);
}
.natal-layout .wheel-wrap { width: 100%; box-sizing: border-box; }

/* ==========================================================================
   Результат совместимости по дате рождения
   ========================================================================== */
[data-el="fire"] { --ec: var(--el-fire); }
[data-el="earth"] { --ec: var(--el-earth); }
[data-el="air"] { --ec: var(--el-air); }
[data-el="water"] { --ec: var(--el-water); }

.compat-head__text { margin: 0; }
.compat-head__pair { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; }
.sun-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: rgba(var(--ec), 0.12);
    border: 1px solid rgba(var(--ec), 0.4);
    font-weight: 800;
}
.sun-chip svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: rgba(var(--ec), 0.18); color: rgb(var(--ec)); }
.compat-head__heart { display: grid; place-items: center; color: var(--pink); }
.compat-head__heart svg { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(255, 111, 174, 0.7)); }

/* Партнёры: номер, планеты цветными значками, знак справа */
.partner__head { display: flex; align-items: center; gap: 10px; }
.partner__num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
}
.partner__planets { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }
.partner__planets li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    font-size: 0.95rem;
}
.partner__planets li:last-child { border-bottom: 0; }
.partner__glyph {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(var(--pc), 0.14);
    border: 1px solid rgba(var(--pc), 0.4);
    color: rgb(var(--pc));
}
.partner__glyph svg { width: 17px; height: 17px; }
.partner__pname { color: var(--muted); }
.partner__sign { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.partner__sign svg { width: 18px; height: 18px; color: var(--accent); }

/* Стихии солнечных знаков */
.element-pair { display: grid; gap: 12px; padding: 20px 22px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.element-pair__badges { display: flex; align-items: center; gap: 12px; margin: 0; }
.element-badge {
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(var(--ec), 0.14);
    border: 1px solid rgba(var(--ec), 0.45);
    color: rgb(var(--ec));
    font-weight: 800;
}
.element-pair__plus { color: var(--muted); font-weight: 800; }
.element-pair__text { margin: 0; }

/* Значки сфер и номер партнёра у планет в аспектах */
.calc-result .sphere__head { gap: 12px; }
.calc-result .sphere__icon { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: color-mix(in srgb, var(--c) 16%, transparent); }
.aspect-card__planet { position: relative; }
.aspect-card__planet b {
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
}
.calc-result .sphere__name { flex: 1; font-weight: 800; }

/* ==========================================================================
   Редизайн: тематические страницы (совместимость знаков – хаб, знак, пара)
   ========================================================================== */

/* Первый экран: широкий, ночное небо под липкой шапкой; справа – полезная карточка */
.topic-hero {
    position: relative;
    overflow: hidden;
    color: var(--night-text);
    background:
        radial-gradient(ellipse 50% 70% at 80% 30%, rgba(124, 92, 255, 0.28), transparent 65%),
        radial-gradient(ellipse 40% 60% at 5% 100%, rgba(255, 111, 174, 0.12), transparent 60%),
        linear-gradient(180deg, var(--night-3) 0%, var(--night-2) 70%, var(--night-3) 100%);
    margin-top: -68px;
    padding: calc(68px + var(--space-4)) 0 72px;
}
.topic-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 18%, var(--star) 50%, transparent 51%),
        radial-gradient(1px 1px at 37% 72%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 64% 33%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 81% 81%, var(--star) 50%, transparent 51%),
        radial-gradient(1px 1px at 52% 54%, #fff 50%, transparent 51%);
    background-size: 260px 260px;
    opacity: 0.6;
}
.topic-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}
.topic-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    align-items: center;
    gap: var(--space-6);
}
.topic-hero h1 {
    margin: var(--space-4) 0 var(--space-3);
    font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: #fff;
}
.topic-hero__lead { margin: 0; max-width: 32em; font-size: 1.1rem; color: var(--night-muted); }
.topic-hero .breadcrumbs { margin-bottom: var(--space-4); }

/* Медальоны знаков в цвете стихии */
.medallions { display: flex; align-items: center; gap: 14px; }
.medallion {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(var(--ec), 0.4), rgba(var(--ec), 0.1) 70%);
    border: 1px solid rgba(var(--ec), 0.6);
    color: #fff;
    box-shadow: 0 0 30px rgba(var(--ec), 0.35), inset 0 0 18px rgba(var(--ec), 0.25);
}
.medallion svg { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(var(--ec), 0.9)); }
.medallions--large .medallion { width: 104px; height: 104px; }
.medallions--large .medallion svg { width: 52px; height: 52px; }
.medallions__link { display: grid; place-items: center; color: var(--pink); }
.medallions__link svg { width: 24px; height: 24px; filter: drop-shadow(0 0 10px rgba(255, 111, 174, 0.8)); }
/* в шапке страниц – всегда «тёмные» оттенки стихий, фон там ночной в обеих темах */
.topic-hero [data-el="fire"] { --ec: 255, 138, 107; }
.topic-hero [data-el="earth"] { --ec: 159, 212, 110; }
.topic-hero [data-el="air"] { --ec: 124, 196, 255; }
.topic-hero [data-el="water"] { --ec: 95, 224, 208; }

/* Метки в первом экране – «стекло» на ночном фоне */
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hero-chips li {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: var(--night-text);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Карточка процентов в первом экране */
.scores-card--hero {
    margin: 0;
    padding: 26px;
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(167, 139, 255, 0.35);
    box-shadow: 0 40px 80px -40px rgba(124, 92, 255, 0.75), 0 0 0 6px rgba(167, 139, 255, 0.08);
}
.scores-card .score-ring,
.ranking .score-ring {
    background:
        radial-gradient(closest-side, var(--surface) 80%, transparent 81%),
        conic-gradient(#7c5cff 0%, #ff6fae calc(var(--p) * 1%), var(--accent-soft) 0);
}
.scores-card__title { font-weight: 800; }
.score-row { grid-template-columns: 6.5em 1fr; }
.score-row dt { font-weight: 700; color: var(--muted); }
.score-row .bar { height: 8px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.score-row .bar span { background: var(--grad); border-radius: inherit; }
.score-row__value { font-weight: 800; color: var(--text); }

/* Основная часть */
.topic-main { padding-top: var(--space-3); }
.topic-main .page-cols { margin-top: 0; }
.page-main { min-width: 0; max-width: 780px; }
.page-main > .content { max-width: none; }

/* Сводка «Главное» и оглавление */
.summary {
    border-radius: 20px;
    border: 1px solid var(--border);
    background:
        radial-gradient(ellipse 60% 100% at 0% 0%, rgba(124, 92, 255, 0.1), transparent 70%),
        var(--surface);
    box-shadow: var(--shadow-card);
    padding: 22px 26px;
}
.hero + main > .summary:first-child { margin-top: 0; }
.summary__title { font-weight: 800; }
.summary__body li::before { content: "✦"; color: var(--gold); }
.toc ul { gap: 8px; margin: var(--space-4) 0 var(--space-5); }
.toc a {
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.88rem;
    transition: border-color 0.15s, background 0.15s;
}
.toc a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Блоки текста пары и знака */
.pair-text > section, .pair-text > .spheres, .pair-text > .duo { margin-top: 2.6em; }
.aspect__head { padding: 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.aspect__facts li { background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.pair-text .sphere { padding: 20px 22px; border-radius: 18px; background: var(--surface-2); border-color: var(--border); }
.pair-text .sphere__icon { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: color-mix(in srgb, var(--c) 16%, transparent); }
.pair-text .sphere__head h2 { font-weight: 800; font-size: 1.1rem; }
.sphere .bar { height: 6px; border-radius: 999px; overflow: hidden; }
.duo__card {
    padding: 22px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 70% 90% at 100% 0%, rgba(255, 111, 174, 0.1), transparent 70%),
        var(--surface-2);
    border: 1px solid var(--border);
}
.duo__card h2 { font-weight: 800; }
.helps li { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.content blockquote {
    border-left: 3px solid transparent;
    border-image: var(--grad) 1;
    background: var(--surface-2);
    padding: 16px 22px;
    font-weight: 600;
}

/* Боковая колонка: мини-калькулятор и ссылки */
.mini-calc {
    display: grid;
    gap: 12px;
    padding: 22px;
    border-radius: 20px;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 111, 174, 0.14), transparent 70%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(124, 92, 255, 0.16), transparent 70%),
        var(--surface);
    border: 1px solid rgba(167, 139, 255, 0.35);
    box-shadow: var(--shadow-card);
}
.mini-calc__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.mini-calc__text { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.mini-calc .field input { min-height: 46px; }
.mini-calc .button { justify-self: stretch; min-height: 50px; }
.mini-calc .calc__privacy { text-align: center; }
.aside-links {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.aside-links__title { margin: 0 0 6px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.aside-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.93rem;
    text-decoration: none;
}
.aside-links a:hover { background: var(--accent-soft); }
.aside-links svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }

/* Совместимость знака с другими – карточками */
.partners-section { margin-top: var(--space-6); }
.partner-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.partner-chips a, .partner-chips__plain {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 14px 8px 8px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, border-color 0.2s;
}
.partner-chips a:hover { transform: translateY(-2px); border-color: var(--accent); }
.partner-chips__icon { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.partner-chips__score { font-weight: 800; color: var(--accent); font-size: 0.9rem; }
.partner-chips .is-current .partner-chips__plain { background: var(--accent-soft); border-color: var(--accent); }

.cta-band--page { margin-top: 64px; }

@media (max-width: 1000px) {
    .topic-hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
    .scores-card--hero { max-width: 560px; }
}
@media (max-width: 600px) {
    .topic-hero { padding-bottom: 52px; }
    .medallion { width: 60px; height: 60px; }
    .medallion svg { width: 30px; height: 30px; }
    .medallions--large .medallion { width: 80px; height: 80px; }
    .medallions--large .medallion svg { width: 40px; height: 40px; }
    .scores-card--hero { padding: 20px; border-radius: 20px; }
    .summary { padding: 18px 20px; }
}
/* заголовки внутри карточек текста пары – без общего отступа сверху (.content h2) */
.content.pair-text h2 { margin-top: 0; }
.pair-text .sphere__head h2 { margin: 0; }

/* Лучшие пары знака – карточка в первом экране */
.best-card {
    padding: 24px;
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(167, 139, 255, 0.35);
    box-shadow: 0 40px 80px -40px rgba(124, 92, 255, 0.75), 0 0 0 6px rgba(167, 139, 255, 0.08);
}
.best-card__title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.best-card__list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.best-card__list li {
    display: grid;
    grid-template-columns: 28px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.best-card__place { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 0.85rem; }
.best-card__list svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.best-card__list a { font-weight: 800; color: var(--text); text-decoration: none; }
.best-card__list a:hover { color: var(--accent); }
.best-card__list strong { font-size: 1.05rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.best-card__all { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.9rem; text-decoration: none; }

/* Карточки рейтинга и таблицы – в общем стиле */
.scores-card, .ranking, .matrix-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.ranking { padding: 26px 28px; margin-bottom: var(--space-6); }
.ranking__title, .matrix-card__title { font-weight: 800; font-size: 1.35rem; }
.ranking__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.ranking__item { grid-template-columns: 34px minmax(8em, 1fr) minmax(60px, 1.2fr) 3em; min-height: 48px; }
.ranking__icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent-soft); }
.ranking__name { font-weight: 700; }
.ranking__bar { height: 8px; border-radius: 999px; overflow: hidden; background: var(--accent-soft); }
.ranking__bar span { background: var(--grad); border-radius: inherit; }
.ranking__score { font-weight: 800; color: var(--text); }
.ranking { scroll-margin-top: 90px; }
#ranking-title { scroll-margin-top: 100px; }

.matrix-card { padding: 26px 28px; margin-bottom: var(--space-6); }
.matrix { border-spacing: 4px; font-size: 0.9rem; min-width: 760px; width: 100%; }
.matrix td a, .matrix td span { min-height: 46px; border-radius: 10px; }
.matrix td.is-high a, .matrix td.is-high span { background: linear-gradient(135deg, rgba(124, 92, 255, 0.55), rgba(255, 111, 174, 0.45)); color: #fff; }
.matrix td.is-mid a, .matrix td.is-mid span { background: rgba(124, 92, 255, 0.2); }
.matrix td.is-low a, .matrix td.is-low span { background: var(--surface-2); }
.matrix td a { outline: 0; box-shadow: inset 0 0 0 1px rgba(167, 139, 255, 0.45); transition: transform 0.15s, box-shadow 0.15s; }
.matrix td a:hover { transform: scale(1.08); background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(160, 80, 240, 0.8); }
.matrix__icon { width: 20px; height: 20px; }
.signs-section { margin-bottom: var(--space-6); }

/* Подборщик пары на хабе */
.pair-picker {
    display: grid;
    gap: 16px;
    padding: 26px;
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(167, 139, 255, 0.35);
    box-shadow: 0 40px 80px -40px rgba(124, 92, 255, 0.75), 0 0 0 6px rgba(167, 139, 255, 0.08);
}
.pair-picker__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.pair-picker__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; }
.pair-picker__plus { display: grid; place-items: center; height: 50px; color: var(--pink); }
.pair-picker__plus svg { width: 22px; height: 22px; }
.pair-picker .button { justify-self: stretch; min-height: 54px; }
.field select {
    width: 100%;
    min-height: 50px;
    padding: 0 38px 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a98dff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center,
        var(--bg);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    appearance: none;
    cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

@media (max-width: 900px) {
    .ranking__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .ranking, .matrix-card { padding: 18px; }
    .ranking__item { grid-template-columns: 34px 1fr 3em; }
    .best-card, .pair-picker { padding: 20px; border-radius: 20px; }
}
/* Карточки пар в тексте знака – в стиле карточек расшифровки */
.pair-card { padding: 20px 22px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.pair-cards--best .pair-card {
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(243, 201, 105, 0.12), transparent 70%),
        var(--surface-2);
    border-color: rgba(243, 201, 105, 0.35);
}
.pair-card__glyphs svg { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: var(--accent-soft); }
.pair-card__title { font-weight: 800; }
.pair-card__links a, .pair-card__links li > span {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text);
}
.pair-card__links a:hover { border-color: var(--accent); background: var(--accent-soft); }
.pair-card__score { color: var(--accent); }

/* ==========================================================================
   Гороскоп на год: первый экран, выбор знака, блоки текста
   ========================================================================== */

/* «Главное в году» – карточкой на первом экране */
.hero-summary .summary {
    margin: 0;
    padding: 24px 26px;
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(167, 139, 255, 0.35);
    box-shadow: 0 40px 80px -40px rgba(124, 92, 255, 0.75), 0 0 0 6px rgba(167, 139, 255, 0.08);
}
.hero-summary .summary__title { font-size: 1.2rem; margin-bottom: 6px; }
.hero-summary .summary__body li { font-size: 0.93rem; line-height: 1.45; padding: 9px 0 9px 1.6em; }

/* Выбор знака: 12 значков сеткой */
.sign-picker { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.sign-picker a {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 12px 4px 10px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.sign-picker svg { width: 26px; height: 26px; color: var(--accent); transition: filter 0.2s; }
.sign-picker a:hover { transform: translateY(-2px); border-color: var(--accent); }
.sign-picker a:hover svg { filter: drop-shadow(0 0 6px var(--glow)); }
.sign-picker .is-current a { background: var(--grad); border-color: transparent; color: #fff; }
.sign-picker .is-current svg { color: #fff; }
.sign-picker-card .sign-picker a { padding: 14px 4px 12px; font-size: 0.85rem; }
.sign-picker-card .sign-picker svg { width: 30px; height: 30px; }
.aside-box { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.aside-box .aside-links__title { margin-bottom: 12px; }
.aside-box + .aside-links { margin-top: 16px; }

/* Шкала года – в цветах бренда */
.year-track__line { height: 10px; }
.year-track__fill { background: var(--grad); box-shadow: 0 0 12px rgba(160, 80, 240, 0.5); }
.year-track__fill.is-point { width: 16px !important; height: 16px; top: -3px; margin-left: -8px; background: var(--gold); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(243, 201, 105, 0.8); }
.year-track__months { font-weight: 700; }

/* Период года – карточкой со шкалой */
.year-text .period {
    padding: 22px 24px;
    border-radius: 20px;
    background:
        radial-gradient(ellipse 60% 90% at 100% 0%, rgba(124, 92, 255, 0.12), transparent 70%),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.year-text .period h2 { margin-top: 0; }
.year-text > section { margin-top: 2.4em; }
.year-text > section:first-child { margin-top: 0; }

/* Тематические карточки: любовь, работа, деньги… */
.theme-card {
    padding: 22px 24px 8px;
    border-radius: 20px;
    background:
        radial-gradient(ellipse 60% 90% at 0% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%),
        var(--surface-2);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.theme-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--c), transparent); }
.theme-card__head h2 { margin: 0; font-weight: 800; }
.theme-card__icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; }

/* Ключевые даты – строки-карточки */
.key-dates__list { display: grid; gap: 8px; margin-top: 8px; }
.key-date {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
    transition: border-color 0.15s;
}
.key-date:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.key-date__when {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    font-weight: 800;
    font-size: 0.8rem;
}
.key-date__event { font-weight: 800; }
.key-dates__months { padding: 0 18px; }
.key-dates__scale { font-weight: 700; }

@media (max-width: 600px) {
    .hero-summary .summary { padding: 18px 20px; border-radius: 20px; }
    .sign-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .year-text .period, .theme-card { padding-left: 18px; padding-right: 18px; }
}

/* Обзор года: «Небо года» – дорожки по месяцам */
.sky-year {
    margin-bottom: var(--space-6);
    padding: 26px 28px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(124, 92, 255, 0.14), transparent 70%),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.sky-year__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.sky-year__head h2 { margin: 0; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
.sky-year__head p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.sky-year__months, .sky-lane { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: center; }
.sky-year__months > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-size: 0.75rem; font-weight: 700; color: var(--muted); text-align: center; }
.sky-lane { min-height: 46px; border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.sky-lane__name { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 0.93rem; }
.sky-lane__name svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: color-mix(in srgb, var(--lc) 16%, transparent); color: var(--lc); }
.sky-lane__track {
    position: relative;
    height: 26px;
    border-radius: 8px;
    /* деления по месяцам */
    background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), color-mix(in srgb, var(--border) 80%, transparent) calc(100% / 12 - 1px) calc(100% / 12));
}
.sky-lane__bar {
    position: absolute;
    top: 3px;
    bottom: 3px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    min-width: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lc), color-mix(in srgb, var(--lc) 60%, #ff6fae));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 0 14px color-mix(in srgb, var(--lc) 45%, transparent);
}
.sky-lane__bar + .sky-lane__bar { opacity: 0.9; }
.sky-lane__bar.is-point { top: 4px; width: 18px !important; height: 18px; margin-left: -9px; padding: 0; border-radius: 50%; background: var(--gold); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--lc), 0 0 12px rgba(243, 201, 105, 0.9); }
.sky-lane--jupiter { --lc: #e08a3a; }
.sky-lane--retro { --lc: #e0553e; }
.sky-lane--saturn { --lc: #8a6cf0; }
.sky-lane--eclipse { --lc: #c08a12; }

/* События года карточками */
.year-overview > section { margin-top: 2.6em; }
.year-overview > section:first-child { margin-top: 0; }
.year-events__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.year-event {
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.year-event--wide { grid-column: 1 / -1; }
.year-event__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.year-event__head h3 { margin: 0; font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.year-event__glyph { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.year-event__glyph svg { width: 24px; height: 24px; }
.year-event p { font-size: 0.96rem; }
.year-event p:last-child { margin-bottom: 0; }

/* Таблицы в текстах – шапка в цвет бренда, чередование строк */
.content table { background: var(--surface); }
.content th { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), color-mix(in srgb, #ff6fae 14%, var(--surface))); font-weight: 800; }
.content tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }

/* «Как читать гороскоп на год» – выделенный блок с действиями */
.read-howto {
    padding: 26px 28px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 60% 100% at 100% 0%, rgba(255, 111, 174, 0.14), transparent 70%),
        radial-gradient(ellipse 60% 100% at 0% 100%, rgba(124, 92, 255, 0.16), transparent 70%),
        var(--surface);
    border: 1px solid rgba(167, 139, 255, 0.3);
}
.read-howto h2 { margin-top: 0; }
.read-howto__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 0; }

@media (max-width: 900px) {
    .year-events__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .sky-year { padding: 18px; }
    .sky-year__months, .sky-lane { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .sky-year__months > span { display: none; }
    .sky-lane { padding: 8px 0; }
    .sky-lane__bar span { display: none; }
    .read-howto { padding: 20px; }
}

/* ==========================================================================
   Луна: «Луна сегодня» и лунный календарь
   ========================================================================== */

/* Живая карточка в первом экране: диск и четыре показателя */
.moon-live {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 26px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 240, 200, 0.16), transparent 45%),
        var(--surface);
    color: var(--text);
    border: 1px solid rgba(167, 139, 255, 0.35);
    box-shadow: 0 40px 80px -40px rgba(124, 92, 255, 0.75), 0 0 0 6px rgba(167, 139, 255, 0.08);
}
.moon-live__disc { width: 140px; height: 140px; filter: drop-shadow(0 0 32px rgba(255, 240, 200, 0.45)); }
.moon-live .moon-now { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; width: 100%; }
.moon-live .moon-card { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.moon-card__label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.moon-card__value { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.moon-card__note { font-size: 0.8rem; line-height: 1.35; }
.moon-live__events { margin: 0; font-size: 0.88rem; color: var(--muted); text-align: center; }
.moon-live__events strong { color: var(--text); }
.moon-live__events a { display: block; margin-top: 6px; font-weight: 700; }

/* Неделя вперёд – лентой из 7 дней */
.moon-week { margin-top: 0; }
.moon-week h2 { margin: 0 0 14px; }
.moon-week__list { gap: 12px; margin: 0; }
.moon-week__day {
    gap: 8px;
    padding: 16px 8px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, border-color 0.2s;
}
.moon-week__day:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.moon-week__day .moon-disc { width: 52px; height: 52px; filter: drop-shadow(0 0 10px rgba(255, 240, 200, 0.3)); }
.moon-week__day.is-today { background: linear-gradient(180deg, rgba(124, 92, 255, 0.22), var(--surface) 70%); border-color: rgba(167, 139, 255, 0.6); }
.moon-week__date { font-weight: 800; }
.moon-week__day.is-today .moon-week__date { color: var(--accent); }
.moon-week__phase { font-weight: 700; }
.moon-week__sign { font-weight: 700; }

/* Три текста о сегодняшней Луне – в ряд */
.moon-texts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: var(--space-6) 0; }
.moon-texts .theme-card { --c: var(--accent); }
.moon-texts .theme-card:nth-child(2) { --c: #e0a43c; }
.moon-texts .theme-card:nth-child(3) { --c: #ff6fae; }
.moon-texts .theme-card h2 { font-size: 1.15rem; }

/* Календарь месяца: ключевые даты в первом экране */
.month-card {
    padding: 24px;
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(167, 139, 255, 0.35);
    box-shadow: 0 40px 80px -40px rgba(124, 92, 255, 0.75), 0 0 0 6px rgba(167, 139, 255, 0.08);
}
.month-card__title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.month-card .moon-events-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 10px; }
.moon-event { border-radius: 14px; background: var(--surface-2); padding: 12px 14px; }
.moon-event.is-new, .moon-event.is-full { border-color: rgba(167, 139, 255, 0.55); background: linear-gradient(180deg, rgba(124, 92, 255, 0.16), var(--surface-2)); }
.moon-event__title { font-weight: 800; }
.month-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }

/* Сетка месяца – крупнее, в карточке на всю ширину */
.moon-cal-card { padding: 26px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); margin-bottom: var(--space-6); }
.moon-cal-card h2 { margin: 0 0 6px; }
.moon-grid__head, .moon-grid__body { gap: 8px; }
.moon-grid__head span { font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; }
.moon-grid__day { gap: 5px; padding: 10px 4px; border-radius: 14px; background: var(--surface-2); transition: transform 0.15s, border-color 0.15s; }
.moon-grid__day:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.moon-grid__day .moon-disc { width: 34px; height: 34px; }
.moon-grid__num { font-size: 1rem; font-weight: 800; }
.moon-grid__day.is-new, .moon-grid__day.is-full { background: linear-gradient(180deg, rgba(124, 92, 255, 0.25), var(--surface-2)); border-color: rgba(167, 139, 255, 0.7); box-shadow: 0 0 18px -6px rgba(167, 139, 255, 0.8); }
.moon-period { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); border-left-width: 4px; }
.moon-signs li { border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent); }
.moon-year__month { border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); }
.moon-month-nav .tag-link { border-radius: 999px; }

@media (max-width: 900px) {
    .moon-texts { grid-template-columns: minmax(0, 1fr); }
    .moon-week__list { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
    .moon-week__day { scroll-snap-align: start; }
}
@media (max-width: 600px) {
    .moon-live, .month-card { padding: 20px; border-radius: 20px; }
    .moon-live__disc { width: 112px; height: 112px; }
    .moon-cal-card { padding: 16px 12px; }
    .moon-grid__head, .moon-grid__body { gap: 4px; }
    .moon-grid__day .moon-disc { width: 24px; height: 24px; }
}
/* первый экран без правой карточки; текст без боковой колонки – не шире удобной строки */
.topic-hero__inner--single { grid-template-columns: minmax(0, 1fr); }
.topic-main > .content, .topic-main > section.content { max-width: 780px; }
/* Буквы месяцев под каждой шкалой года; месяцы события – выделены */
.year-track__months { margin-top: 5px; font-size: 0.7rem; font-weight: 700; color: color-mix(in srgb, var(--muted) 65%, transparent); }
.year-track__months .is-on { color: var(--accent); font-weight: 800; }
.key-date .year-track__months { margin-top: 4px; }
.year-track__months .is-on { background: var(--accent-soft); border-radius: 6px; }
/* меню последнего пункта шапки открывается влево – иначе на узких экранах выходит за край и расширяет страницу */
.site-nav__item:last-child > .site-nav__menu { left: auto; right: -8px; }
/* трёхбуквенные месяцы – мельче и без переносов, чтобы помещались в 1/12 шкалы и на телефоне */
.year-track__months { font-size: 0.66rem; letter-spacing: -0.01em; }
.year-track__months span { white-space: nowrap; overflow: hidden; }
@media (max-width: 420px) {
    .year-track__months { font-size: 0.58rem; letter-spacing: -0.03em; }
}

/* ==========================================================================
   Справочник натальной карты: планеты, планета в знаке, дома
   ========================================================================== */

/* Медальоны планеты и номера дома (фон шапки ночной в обеих темах – цвета фиксированные) */
.medallion--planet { --ec: 243, 201, 105; }
.medallion--number { --ec: 169, 141, 255; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.04em; text-shadow: 0 0 14px rgba(169, 141, 255, 0.9); }
.medallions--large .medallion--number { font-size: 3rem; }
.medallions__word { color: var(--night-muted); font-weight: 800; font-size: 1.2rem; }

/* Призыв рассчитать карту – в боковой колонке */
.calc-cta {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(255, 255, 255, 0.2), transparent 70%),
        var(--grad);
    box-shadow: 0 24px 50px -24px rgba(160, 80, 240, 0.8);
}
.calc-cta__wheel { position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.calc-cta__title { position: relative; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.calc-cta__text { position: relative; margin: 0; font-size: 0.9rem; line-height: 1.5; opacity: 0.92; }
.calc-cta .button { position: relative; justify-self: stretch; background: #fff; color: #2a1a6b; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
.calc-cta .button:hover { background: #fff; }

/* Пометка о классическом положении (обитель, падение…) */
.dignity-note { border-radius: 16px; background: var(--surface-2); border: 1px solid rgba(243, 201, 105, 0.4); }

/* Сетки домов и планет – карточками */
.house-grid { gap: 10px; }
.house-grid a, .house-grid__plain { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
.house-grid a:hover { transform: translateY(-2px); }
.house-grid__n { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.house-grid__theme { font-weight: 700; color: var(--text); }

/* Карточки планет, знаков, классических положений */
.planet-card, .sign-card, .dignity-card { border-radius: 18px; background: var(--surface-2); border-color: var(--border); }
.planet-card__title, .dignity-card__title { font-weight: 800; }
.planet-card__glyph { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-soft); }
.speed, .sign-part { border-radius: 20px; box-shadow: var(--shadow-card); }
.speed__bar { background: var(--grad); }
.formula__part { border-radius: 18px; background: var(--surface-2); }
.formula__n { font-weight: 800; }
.sign-part__glyph { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-soft); }

/* Карточка-призыв внутри текста («Как узнать свою Луну») */
.cta-card {
    padding: 24px 26px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 60% 100% at 100% 0%, rgba(255, 111, 174, 0.14), transparent 70%),
        radial-gradient(ellipse 60% 100% at 0% 100%, rgba(124, 92, 255, 0.16), transparent 70%),
        var(--surface);
    border: 1px solid rgba(167, 139, 255, 0.3);
}
.cta-card__button {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 28px -10px rgba(140, 80, 255, 0.65);
}

/* Медленная планета в знаке: карточка в цвете стихии знака (--ec из data-el) */
.sign-part {
    position: relative;
    overflow: hidden;
    padding: 24px 26px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 55% 90% at 0% 0%, rgba(var(--ec), 0.14), transparent 70%),
        var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--ec)) 22%, var(--border));
}
.sign-part::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, rgb(var(--ec)), transparent 70%); }
.sign-part > * { position: relative; }
.sign-part__watermark {
    position: absolute !important;
    right: -24px;
    bottom: -30px;
    width: 190px;
    height: 190px;
    color: rgb(var(--ec));
    opacity: 0.07;
    pointer-events: none;
}
.sign-part__head { gap: 14px; flex-wrap: nowrap; }
.sign-part__head > div { min-width: 0; }
.sign-part__head h2 { font-size: 1.4rem; }
.sign-part__medallion {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(var(--ec), 0.35), rgba(var(--ec), 0.1) 70%);
    border: 1px solid rgba(var(--ec), 0.55);
    color: rgb(var(--ec));
    box-shadow: 0 0 20px rgba(var(--ec), 0.25);
}
.sign-part__medallion svg { width: 26px; height: 26px; }
.sign-part__element { display: block; margin-top: 2px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.sign-part__years { margin: 16px 0 14px; }
.sign-part__year { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; background: color-mix(in srgb, rgb(var(--ec)) 12%, var(--surface-2)); font-weight: 700; }
.sign-part__year.is-now { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -8px rgba(160, 80, 240, 0.8); }
.sign-part__year b { padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Классические положения: обитель и экзальтация – тёплые, изгнание и падение – холодные */
.dignity-tag { align-self: flex-start; padding: 3px 12px; font-weight: 800; font-size: 0.78rem; white-space: nowrap; }
.dignity-tag--domicile { background: rgba(243, 201, 105, 0.18); color: #e0a43c; border: 1px solid rgba(243, 201, 105, 0.4); }
.dignity-tag--exaltation { background: rgba(124, 196, 120, 0.16); color: #5fb05a; border: 1px solid rgba(124, 196, 120, 0.4); }
.dignity-tag--detriment { background: rgba(124, 160, 255, 0.14); color: #7a9bff; border: 1px solid rgba(124, 160, 255, 0.35); }
.dignity-tag--fall { background: rgba(196, 139, 255, 0.14); color: #b48cff; border: 1px solid rgba(196, 139, 255, 0.35); }

/* Переход к знаку из боковой колонки */
.sign-jump { margin-top: 16px; }
.sign-jump ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; }
.sign-jump a {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 8px 2px;
    border-radius: 12px;
    background: color-mix(in srgb, rgb(var(--ec)) 10%, var(--surface-2));
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
}
.sign-jump a:hover { transform: translateY(-2px); background: color-mix(in srgb, rgb(var(--ec)) 22%, var(--surface-2)); }
.sign-jump svg { width: 22px; height: 22px; color: rgb(var(--ec)); }
.sign-part { scroll-margin-top: 90px; }
.sign-part h2 { scroll-margin-top: 100px; }
@media (max-width: 600px) {
    .sign-part { padding: 20px; }
    .sign-part__head { flex-wrap: wrap; }
    .sign-part__watermark { width: 140px; height: 140px; }
}

/* Планета в 12 знаках – короткие карточки в цвете стихии знака */
.sign-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 60% 100% at 0% 0%, rgba(var(--ec), 0.13), transparent 70%),
        var(--surface-2);
    border: 1px solid color-mix(in srgb, rgb(var(--ec)) 20%, var(--border));
}
.sign-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, rgb(var(--ec)), transparent); }
.sign-card:hover { border-color: rgba(var(--ec), 0.55); }
.sign-card__medallion {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(var(--ec), 0.32), rgba(var(--ec), 0.08) 70%);
    border: 1px solid rgba(var(--ec), 0.5);
    color: rgb(var(--ec));
}
.sign-card__medallion svg { width: 18px; height: 18px; }
.sign-card__title { font-weight: 800; color: var(--text); }
.sign-card__tag.dignity-tag { margin-left: auto; }

/* Сильные и непростые положения – каждое в своём цвете, как метки */
.dignity-card { --dc: 167, 139, 255; position: relative; overflow: hidden; border-radius: 18px; background: radial-gradient(ellipse 70% 100% at 100% 0%, rgba(var(--dc), 0.14), transparent 70%), var(--surface-2); border: 1px solid rgba(var(--dc), 0.3); }
.dignity-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, rgb(var(--dc)), transparent 80%); }
.dignity-card--domicile { --dc: 224, 164, 60; }
.dignity-card--exaltation { --dc: 95, 176, 90; }
.dignity-card--detriment { --dc: 122, 155, 255; }
.dignity-card--fall { --dc: 180, 140, 255; }
.dignity-card__title { color: rgb(var(--dc)); font-size: 1.15rem; }
.dignity-card__signs .tag-link, .dignity-card__signs .tag-plain {
    background: rgba(var(--ec), 0.14);
    border: 1px solid rgba(var(--ec), 0.4);
    color: var(--text);
}
.dignity-card__signs svg { color: rgb(var(--ec)); }

/* ==========================================================================
   Фоновые анимации первых экранов разделов (templates/hero-art.html)
   Фон шапки ночной в обеих темах – цвета фиксированные.
   ========================================================================== */
.topic-hero__art {
    position: absolute;
    top: 50%;
    right: max(-150px, calc(50% - 770px));
    width: 640px;
    transform: translateY(-50%);
    opacity: 0.32;
    pointer-events: none;
}
/* справа нет карточки – анимация занимает это место и видна ярче */
.topic-hero:has(.topic-hero__inner--single) .topic-hero__art { right: max(-40px, calc(50% - 640px)); width: 500px; opacity: 0.8; }
.hero-art { display: block; width: 100%; height: auto; overflow: visible; }
.ha-ring { fill: none; stroke: rgba(196, 178, 255, 0.38); stroke-width: 1.2; }
.ha-ring--thin { stroke: rgba(196, 178, 255, 0.22); }
.ha-ring--dash { stroke-dasharray: 3 8; }
.ha-tick { stroke: rgba(196, 178, 255, 0.3); stroke-width: 1; }
.ha-axis { stroke: rgba(243, 201, 105, 0.55); stroke-width: 1.6; }
.ha-glyph { color: #d9ccff; }
.ha-core { fill: rgba(18, 14, 46, 0.85); stroke: rgba(196, 178, 255, 0.35); }
.ha-center { color: #c4b2ff; filter: drop-shadow(0 0 12px rgba(167, 139, 255, 0.8)); }
.ha-label { fill: rgba(217, 204, 255, 0.75); font: 700 15px var(--font-body); text-anchor: middle; dominant-baseline: middle; }
.ha-num { fill: rgba(243, 201, 105, 0.85); font: 800 26px var(--font-display); text-anchor: middle; dominant-baseline: middle; }
.ha-glow { fill: rgba(255, 111, 174, 0.35); filter: blur(24px); }
.ha-glow--moon { fill: rgba(255, 240, 200, 0.35); }
.ha-glow--sun { fill: rgba(243, 201, 105, 0.5); }

/* вращение */
.ha-spin, .ha-orbit { transform-box: view-box; transform-origin: 300px 300px; animation: ha-rotate 60s linear infinite; }
.ha-spin--slow { animation-duration: 160s; }
.ha-spin--reverse { animation-duration: 90s; animation-direction: reverse; }
.ha-spin--year { animation-duration: 36s; }
.ha-spin--marker { animation-duration: 24s; }
.ha-orbit { animation-duration: var(--t, 40s); }
/* центр вращения задан у каждого знака в разметке (fill-box у <use> на телефонах считается неверно) */
.ha-upright { transform-box: view-box; animation: ha-rotate 60s linear infinite reverse; }
@keyframes ha-rotate { to { transform: rotate(360deg); } }

/* кольцо знаков: треугольники стихий по очереди проступают */
.ha-trine { fill: none; stroke-width: 1.4; opacity: 0; animation: ha-twinkle 16s ease-in-out infinite; }
.ha-trine--0 { stroke: #ff8a6b; }
.ha-trine--1 { stroke: #9fd46e; animation-delay: 4s; }
.ha-trine--2 { stroke: #7cc4ff; animation-delay: 8s; }
.ha-trine--3 { stroke: #5fe0d0; animation-delay: 12s; }
@keyframes ha-twinkle { 0%, 100% { opacity: 0; } 12%, 25% { opacity: 0.9; } 40% { opacity: 0; } }

/* пара: два тела на орбите и бьющееся сердце */
.ha-body { fill: rgba(18, 14, 46, 0.9); stroke-width: 1.6; }
.ha-body--a { stroke: #ff8fc4; filter: drop-shadow(0 0 10px rgba(255, 143, 196, 0.7)); }
.ha-body--b { stroke: #ff7a6b; filter: drop-shadow(0 0 10px rgba(255, 122, 107, 0.7)); }
.ha-body-glyph { color: #ffe2ef; }
/* Центр масштаба – в координатах рисунка (сердце в центре 600×600): fill-box у <use> мобильные браузеры
   считают неверно, и сердце «уезжало» по диагонали */
.ha-heart { color: #ff6fae; transform-box: view-box; transform-origin: 300px 300px; animation: ha-beat 2.4s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(255, 111, 174, 0.9)); }
@keyframes ha-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.28); } 28% { transform: scale(1); } 42% { transform: scale(1.16); } 56% { transform: scale(1); } }
.ha-spark { fill: #fff; opacity: 0.7; }

/* путь года: Солнце идёт по кругу месяцев */
.ha-sun { fill: #f3c969; filter: drop-shadow(0 0 14px rgba(243, 201, 105, 0.95)); }
.ha-sun--center { filter: drop-shadow(0 0 22px rgba(243, 201, 105, 0.95)); }
.ha-sun-glyph { color: #7a4a00; }
.ha-sun-trail { fill: none; stroke: rgba(243, 201, 105, 0.6); stroke-width: 3; stroke-dasharray: 160 1411; stroke-linecap: round; transform-box: view-box; transform: rotate(-127deg); transform-origin: 300px 300px; }

/* Луна: неподвижное кольцо фаз и маркер «текущей фазы» */
.ha-moon-dark { fill: #2a2650; stroke: rgba(196, 178, 255, 0.3); }
.ha-moon-lit { fill: #f4ecd2; }
.ha-moon-big { fill: #f4ecd2; filter: drop-shadow(0 0 26px rgba(255, 240, 200, 0.7)); animation: ha-glowing 6s ease-in-out infinite alternate; }
@keyframes ha-glowing { to { filter: drop-shadow(0 0 40px rgba(255, 240, 200, 0.9)); } }
.ha-marker { fill: none; stroke: rgba(243, 201, 105, 0.8); stroke-width: 2; filter: drop-shadow(0 0 10px rgba(243, 201, 105, 0.9)); }

/* планетарий */
.ha-planet { fill: rgba(18, 14, 46, 0.9); stroke: rgba(196, 178, 255, 0.6); stroke-width: 1.2; }
.ha-planet-glyph { color: #f3c969; }

@media (max-width: 1000px) {
    .topic-hero__art { width: 460px; right: -170px; top: 34%; opacity: 0.2; }
    .topic-hero:has(.topic-hero__inner--single) .topic-hero__art { width: 420px; right: -150px; opacity: 0.35; }
}
/* невысокий первый экран без карточки: анимация целиком помещается по высоте (с поправкой на липкую шапку) */
.topic-hero:has(.topic-hero__inner--single) { padding-bottom: 96px; }
.topic-hero:has(.topic-hero__inner--single) .topic-hero__art { width: 340px; right: max(0px, calc(50% - 600px)); top: calc(50% + 30px); opacity: 0.85; }
@media (max-width: 1000px) {
    .topic-hero:has(.topic-hero__inner--single) .topic-hero__art { width: 300px; right: -90px; opacity: 0.3; }
}
/* страницы с карточкой справа: анимация по центру карточки и крупнее – орбиты огибают карточку */
.topic-hero__art { width: 860px; right: max(-430px + 236px, calc(50% - 600px + 236px - 430px)); opacity: 0.5; }
@media (max-width: 1000px) {
    .topic-hero__art { width: 460px; right: -170px; top: 34%; opacity: 0.2; }
}

/* ==========================================================================
   Доводка оставшихся блоков старого стиля до редизайна
   ========================================================================== */

/* Заголовок-ссылка в карточке: цвет текста, стрелка – акцентом и сдвигается при наведении */
.card-link__title { color: var(--text); font-weight: 800; text-decoration: none; }
.card-link__title::after { color: var(--accent); }
.card-link:hover .card-link__title { color: var(--accent); }

/* Ссылки в списках и подписях – без подчёркивания, акцент при наведении (в тексте статей подчёркивание остаётся) */
.speed__name, .house-planet__more, .tag-link, .aside-links a, .moon-year__month a { text-decoration: none; }

/* Оглавление: «стеклянные» плашки цвета текста с маркером, акцент при наведении */
.toc ul { gap: 8px; }
.toc a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px 0 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
}
.toc a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex: none; }
.toc a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

/* Карточки планет (хаб планет) – в цвете планеты, как карточки расшифровки */
.planet-cards { gap: 14px; }
.planet-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 70% 90% at 0% 0%, rgba(var(--pc), 0.14), transparent 70%),
        var(--surface-2);
    border: 1px solid color-mix(in srgb, rgb(var(--pc)) 22%, var(--border));
    transition: transform 0.2s, border-color 0.2s;
}
.planet-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, rgb(var(--pc)), transparent 75%); }
.planet-card:hover { transform: translateY(-3px); border-color: rgba(var(--pc), 0.6); }
.planet-card__medallion {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    border-radius: 14px;
    background: rgba(var(--pc), 0.14);
    border: 1px solid rgba(var(--pc), 0.4);
    color: rgb(var(--pc));
}
.planet-card__medallion svg { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(var(--pc), 0.6)); }
.planet-card__title { font-size: 1.15rem; }
.planet-card > span:last-child { color: var(--muted); }

/* Шкала скорости планет: значок и подпись в цвете планеты, полоска – в цвет планеты */
.speed { padding: 22px 24px; }
.speed__title { font-weight: 800; }
.speed__glyph { color: rgb(var(--pc)); }
.speed__name { color: var(--text); font-weight: 700; }
.speed__name:hover { color: rgb(var(--pc)); }
.speed__bar, .speed__bar.is-personal { background: linear-gradient(90deg, rgba(var(--pc), 0.55), rgb(var(--pc))); }

/* Формула «планета + знак + дом» */
.formula { gap: 10px; }
.formula__part { padding: 18px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.formula__part:nth-child(1) { background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(243, 201, 105, 0.16), transparent 70%), var(--surface); }
.formula__part:nth-child(3) { background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(124, 92, 255, 0.18), transparent 70%), var(--surface); }
.formula__part:nth-child(5) { background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(255, 111, 174, 0.16), transparent 70%), var(--surface); }
.formula__part:nth-child(1) svg { color: #e0a43c; }
.formula__part:nth-child(5) .formula__n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.formula__q { font-weight: 800; }
.formula__plus {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 800;
}

/* Карточки стихий (хаб совместимости, «Луна сегодня») */
.element-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 70% 90% at 0% 0%, rgba(var(--ec), 0.15), transparent 70%),
        var(--surface-2);
    border: 1px solid color-mix(in srgb, rgb(var(--ec)) 25%, var(--border));
}
.element-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, rgb(var(--ec)), transparent 75%); }
.element-card__glyphs svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(var(--ec), 0.15); border: 1px solid rgba(var(--ec), 0.4); color: rgb(var(--ec)); }
.element-card__title { color: rgb(var(--ec)); font-weight: 800; }

/* Профиль знака (страница знака в совместимости) */
.profile__head { padding: 18px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.profile__glyph { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(160, 80, 240, 0.8); }
.profile__facts dt { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; }
.profile__facts dd { font-weight: 800; }

/* Мини-круг аспекта у пары */
.wheel-mini__ring { stroke: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.wheel-mini__dot { fill: var(--surface); stroke-width: 2; filter: drop-shadow(0 0 6px var(--glow)); }
.wheel-mini--harmony { --tone: #e0a43c; }
.wheel-mini--tension { --tone: #ff7a6b; }
.wheel-mini__aspect { stroke-width: 2.4; }

/* Дома: круг, группы, сферы, примеры, планеты в доме */
.house-wheel__sector path { stroke: var(--surface); stroke-width: 2.5; }
.house-wheel__sector.is-angular path { fill: #8b5cf6; }
.house-wheel__sector.is-succedent path { fill: color-mix(in srgb, #b84ff0 45%, var(--surface)); }
.house-wheel__sector.is-cadent path { fill: color-mix(in srgb, #ff6fae 22%, var(--surface)); }
.house-wheel__sector.is-angular text { fill: #fff; }
.house-wheel__sector:hover path { opacity: 1; filter: brightness(1.15) drop-shadow(0 0 8px var(--glow)); }
.house-group-card { border-radius: 16px; background: var(--surface-2); border-left-width: 4px; }
.house-group-card--angular { border-left-color: #8b5cf6; }
.house-group-card--succedent { border-left-color: #b84ff0; }
.house-group-card--cadent { border-left-color: #ff6fae; }
.house-group-card strong { font-weight: 800; }
.house-spheres a { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
.house-spheres a:hover { transform: translateY(-2px); }
.house-spheres__title { font-weight: 800; color: var(--text); }
.example-card { border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
.example-card:hover { transform: translateY(-2px); }
.example-card strong { font-weight: 800; color: var(--text); }
.example-cards__vs { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; flex: none; }
.house-planet {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 70% 90% at 0% 0%, rgba(var(--pc), 0.13), transparent 70%),
        var(--surface-2);
    border: 1px solid color-mix(in srgb, rgb(var(--pc)) 22%, var(--border));
}
.house-planet::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, rgb(var(--pc)), transparent 75%); }
.house-planet__medallion {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(var(--pc), 0.14);
    border: 1px solid rgba(var(--pc), 0.4);
    color: rgb(var(--pc));
}
.house-planet__medallion svg { width: 22px; height: 22px; }
.house-planet__head h3 { font-weight: 800; }
.house-planet__more { display: inline-flex; margin-top: 4px; font-weight: 700; color: rgb(var(--pc)); }
.house-planet:target { border-color: rgba(var(--pc), 0.8); box-shadow: 0 0 0 3px rgba(var(--pc), 0.25); }

/* Соседние дома – крупные карточки-переходы */
.pager__link {
    position: relative;
    padding: 16px 20px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    color: var(--text);
    font-weight: 800;
    transition: transform 0.2s, border-color 0.2s;
}
.pager__link:hover { transform: translateY(-2px); }
.pager__hint { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }

/* Справочные пометки */
.note-card {
    padding: 20px 22px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 60% 100% at 0% 0%, rgba(124, 92, 255, 0.12), transparent 70%),
        var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
}

/* Метки-ссылки (месяцы календаря и т. п.) */
.tag-link {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.tag-link:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-1px); }
.tag-link svg { color: var(--accent); }

/* «Луна сегодня»: фазы, «Р/С», схема лунного дня */
.phase-card { border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.phase-card .moon-disc { filter: drop-shadow(0 0 10px rgba(255, 240, 200, 0.35)); }
.phase-card__title { font-weight: 800; }
.phase-track__line { background: linear-gradient(90deg, #2a2650, #f4ecd2 50%, #2a2650); border-radius: 999px; }
.phase-track__today { background: var(--grad); color: #fff; border-radius: 999px; font-weight: 800; box-shadow: 0 6px 16px -6px rgba(160, 80, 240, 0.8); }
.wax-wane__card { border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.wax-wane__letter { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wax-wane__pic { filter: drop-shadow(0 0 12px rgba(255, 240, 200, 0.35)); }
.lunar-scheme { border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.lunar-scheme__seg { border-radius: 10px; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); font-weight: 800; }
.lunar-scheme__seg--first { background: var(--grad); color: #fff; }

/* Календарь: месяцы года и таблица по дням */
.moon-year__month { padding: 16px 18px; transition: transform 0.2s, border-color 0.2s; }
.moon-year__month:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.moon-table { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.moon-table thead th { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), color-mix(in srgb, #ff6fae 14%, var(--surface))); font-weight: 800; }
.moon-table__chip { border-radius: 999px; }
.moon-table__bar span { background: linear-gradient(90deg, #c9b98a, #f4ecd2); }

/* Уведомление о cookie – стеклянная карточка */
.cookie-banner {
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(167, 139, 255, 0.3);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.button--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.button--ghost:hover { background: var(--accent-soft); box-shadow: none; }
.button--small { min-height: 40px; padding: 0 18px; font-size: 0.88rem; }

/* ==========================================================================
   «Луна по дням» – таблица месяца на всю ширину, строки карточками
   ========================================================================== */
.moon-days { margin-top: var(--space-6); }
.moon-days h2 { margin: 0 0 14px; }
.moon-table__sign svg { color: rgb(var(--ec, 169, 141, 255)); }

@media (min-width: 641px) {
    .moon-table { border-spacing: 0 6px; border-radius: 0; overflow: visible; box-shadow: none; font-size: 0.93rem; }
    /* шапка – один градиент на всю строку, а не в каждой ячейке */
    .moon-table thead tr { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 24%, var(--surface)), color-mix(in srgb, #ff6fae 16%, var(--surface))); }
    .moon-table thead th { background: none; border: 0; padding: 12px 14px; color: var(--text); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
    .moon-table thead th:first-child { border-radius: 14px 0 0 14px; }
    .moon-table thead th:last-child { border-radius: 0 14px 14px 0; }

    .moon-table td { padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap; transition: background 0.15s; }
    .moon-table td:first-child { border-left: 1px solid var(--border); border-radius: 14px 0 0 14px; }
    .moon-table td:last-child { border-right: 1px solid var(--border); border-radius: 0 14px 14px 0; }
    .moon-table tbody tr:nth-child(even) td { background: var(--surface); }
    .moon-table tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
    /* новолуние, четверти, полнолуние */
    .moon-table tbody tr.is-key td { background: color-mix(in srgb, #8b5cf6 16%, var(--surface)); border-color: rgba(167, 139, 255, 0.45); }
    .moon-table tbody tr.is-key td:first-child { box-shadow: inset 4px 0 0 #8b5cf6; }

    /* дата – плашка с крупным числом */
    .moon-table__date { display: flex; align-items: center; gap: 10px; }
    .moon-table__day {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        margin: 0;
        border-radius: 12px;
        background: var(--surface-2);
        font-weight: 800;
        font-size: 1.1rem;
    }
    .moon-table tbody tr.is-key .moon-table__day { background: var(--grad); color: #fff; }
    .moon-table__dow { font-weight: 600; }
    .moon-table__dow.is-weekend { color: #ff6fae; }

    .moon-table__phase { gap: 12px; }
    .moon-table__phase .moon-disc { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(255, 240, 200, 0.3)); }
    .moon-table__badge { margin-left: 8px; padding: 2px 9px; background: var(--grad); font-weight: 800; }

    .moon-table__bar { width: 90px; height: 7px; border-radius: 999px; background: var(--surface-2); }
    .moon-table__bar span { border-radius: inherit; background: linear-gradient(90deg, #b9a86e, #fff4d6); box-shadow: 0 0 8px rgba(255, 240, 200, 0.5); }

    /* лунные дни и знаки – всегда в одну строку */
    .moon-table__ldays, .moon-table__signs { white-space: nowrap; }
    .moon-table__unit, .moon-table__sign { display: inline-flex; align-items: center; margin: 0; }
    .moon-table__chip { padding: 3px 10px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; }
    .moon-table__chip strong { color: var(--accent); }
    .moon-table__arrow { margin: 0 6px; }
    .moon-table__sign {
        gap: 6px;
        padding: 3px 10px 3px 6px;
        border-radius: 999px;
        background: rgba(var(--ec, 169, 141, 255), 0.12);
        border: 1px solid rgba(var(--ec, 169, 141, 255), 0.35);
        font-weight: 700;
    }
    .moon-table__sign .moon-table__arrow { margin: 0 4px 0 0; }
    .moon-table__sign svg { width: 18px; height: 18px; }

}

/* телефон: строки-карточки в общем стиле */
@media (max-width: 640px) {
    .moon-table { border-radius: 0; box-shadow: none; overflow: visible; }
    .moon-table tr { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
    .moon-table tbody tr.is-key { border-color: rgba(167, 139, 255, 0.6); background: linear-gradient(180deg, rgba(124, 92, 255, 0.18), var(--surface)); }
    .moon-table__day { font-weight: 800; }
    .moon-table__phase .moon-disc { width: 26px; height: 26px; }
    .moon-table__sign svg { width: 18px; height: 18px; }
    .moon-table__bar { width: 70px; height: 6px; border-radius: 999px; }
}
.moon-table__signs .moon-table__unit + .moon-table__unit { margin-left: 2px; }

/* ==========================================================================
   Служебные страницы: «О проекте», политика, 404
   ========================================================================== */

/* Созвездие: линии и мерцающие звёзды */
.ha-link { stroke: rgba(196, 178, 255, 0.4); stroke-width: 1.2; }
.ha-star { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)); animation: ha-star 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes ha-star { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* «О проекте»: три опоры проекта в первом экране */
.about-facts__list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.about-facts__list li { display: flex; align-items: flex-start; gap: 14px; line-height: 1.4; }
.about-facts__list strong { display: block; }
.about-facts__list li > span:last-child { color: var(--muted); font-size: 0.92rem; }
.about-facts__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px -8px rgba(140, 80, 255, 0.7);
}
.contacts-card p { margin: 0 0 12px; color: var(--muted); font-size: 0.93rem; }
.contacts-card + .aside-links { margin-top: 16px; }

/* Политика: реквизиты карточкой в первом экране, содержание сбоку */
.hero-requisites .privacy-operator {
    margin: 0;
    padding: 24px 26px;
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(167, 139, 255, 0.35);
    box-shadow: 0 40px 80px -40px rgba(124, 92, 255, 0.75), 0 0 0 6px rgba(167, 139, 255, 0.08);
}
.hero-requisites .privacy-operator p { margin: 0 0 10px; line-height: 1.45; }
.hero-requisites .privacy-operator p:last-child { margin-bottom: 0; }
.hero-requisites .privacy-operator strong { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-chip {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: var(--night-text);
    font-size: 0.88rem;
    font-weight: 600;
}
p.hero-chips { margin: var(--space-4) 0 0; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: doc; display: grid; gap: 2px; }
.doc-toc li { counter-increment: doc; }
.doc-toc a {
    display: flex;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 10px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}
.doc-toc a::before { content: counter(doc); flex: none; min-width: 1.4em; color: var(--accent); font-weight: 800; }
.doc-toc a:hover { background: var(--accent-soft); }
.doc-text h2 { scroll-margin-top: 90px; }
.doc-text table { font-size: 0.93rem; }

/* 404 */
.lost-hero { padding-bottom: 110px; }
.lost-hero__code {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(5rem, 3rem + 8vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 30px rgba(167, 139, 255, 0.45));
}
.lost-hero h1 { margin-top: var(--space-2); }
.lost-hero .home-hero__actions { margin-top: var(--space-5); }

/* ===== Карточки в цвете: сетки знаков, планет и домов, соседние дома, справочник, события года, перелинковка =====
   --kc – цвет карточки: стихия знака (--ec из data-el) или планета (--pc из data-planet), по умолчанию фиолетовый.
   Приём общий с карточками «планета в знаке»: отсвет в углу, полоска сверху, медальон, крупный значок водяным знаком. */
.sign-grid li, .house-grid li, .pager__link, .guide-card, .year-event, .related-card { --kc: 169, 141, 255; }
.sign-grid li[data-el], .house-grid li[data-el], .pager__link[data-el] { --kc: var(--ec); }
.sign-grid li[data-planet], .guide-card[data-planet], .year-event[data-planet], .related-card[data-planet] { --kc: var(--pc); }

/* Сетки знаков и планет */
.sign-grid a, .sign-grid__plain {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 18px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 85% 70% at 0% 0%, rgba(var(--kc), 0.16), transparent 70%),
        var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--kc)) 20%, var(--border));
    box-shadow: var(--shadow-card);
}
.sign-grid a::before, .sign-grid__plain::before {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgb(var(--kc)), transparent 75%);
}
.sign-grid__plain { border-style: dashed; }
.sign-grid__plain .sign-grid__icon { opacity: 0.7; }
.sign-grid a:hover { border-color: rgba(var(--kc), 0.7); box-shadow: 0 20px 40px -22px rgba(var(--kc), 0.75); }
.sign-grid .sign-grid__icon {
    width: 48px;
    height: 48px;
    padding: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(var(--kc), 0.35), rgba(var(--kc), 0.1) 70%);
    border: 1px solid rgba(var(--kc), 0.5);
    color: rgb(var(--kc));
    box-shadow: 0 0 18px rgba(var(--kc), 0.25);
}
.sign-grid__mark {
    position: absolute;
    right: -16px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    color: rgb(var(--kc));
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.4s ease, opacity 0.3s;
}
.sign-grid a:hover .sign-grid__mark { opacity: 0.16; transform: rotate(-12deg) scale(1.08); }
.sign-grid .is-current a, .sign-grid .is-current .sign-grid__plain {
    background:
        radial-gradient(ellipse 90% 80% at 0% 0%, rgba(var(--kc), 0.3), transparent 75%),
        var(--surface);
    border: 1px solid rgb(var(--kc));
    box-shadow: 0 0 0 3px rgba(var(--kc), 0.18);
    color: var(--text);
}

/* Сетка домов: цвет стихии «своего» знака (1 дом – Овен, 2 – Телец…) */
.house-grid a, .house-grid__plain {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 120% at 0% 50%, rgba(var(--kc), 0.15), transparent 70%),
        var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--kc)) 18%, var(--border));
}
.house-grid a::before, .house-grid__plain::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgb(var(--kc)), transparent 90%);
}
.house-grid a:hover { border-color: rgba(var(--kc), 0.7); box-shadow: 0 16px 32px -22px rgba(var(--kc), 0.75); }
.house-grid .house-grid__n {
    background: none;
    color: rgb(var(--kc));
    text-shadow: 0 0 14px rgba(var(--kc), 0.55);
}
.house-grid .is-current .house-grid__plain {
    background:
        radial-gradient(ellipse 90% 120% at 0% 50%, rgba(var(--kc), 0.3), transparent 75%),
        var(--surface);
    border-color: rgb(var(--kc));
    box-shadow: 0 0 0 3px rgba(var(--kc), 0.18);
}

/* Соседние дома: крупный номер в цвете стихии */
.pager__link {
    overflow: hidden;
    padding-left: 76px;
    background:
        radial-gradient(ellipse 60% 140% at 0% 50%, rgba(var(--kc), 0.18), transparent 70%),
        var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--kc)) 22%, var(--border));
}
.pager__link--next {
    padding-left: 20px;
    padding-right: 76px;
    background:
        radial-gradient(ellipse 60% 140% at 100% 50%, rgba(var(--kc), 0.18), transparent 70%),
        var(--surface);
}
.pager__link:hover { border-color: rgba(var(--kc), 0.7); box-shadow: 0 18px 36px -24px rgba(var(--kc), 0.8); }
.pager__num {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgb(var(--kc));
    text-shadow: 0 0 16px rgba(var(--kc), 0.55);
}
.pager__link--next .pager__num { left: auto; right: 20px; }
.pager__link .pager__hint { color: rgb(var(--kc)); }

/* Справочник на главной и на 404 */
.guide-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 20px;
    background:
        radial-gradient(ellipse 90% 70% at 0% 0%, rgba(var(--kc), 0.18), transparent 70%),
        var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--kc)) 22%, var(--border));
}
.guide-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgb(var(--kc)), transparent 75%);
}
.guide-card:hover { border-color: rgba(var(--kc), 0.7); box-shadow: 0 22px 44px -24px rgba(var(--kc), 0.75); }
.guide-card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(var(--kc), 0.38), rgba(var(--kc), 0.1) 70%);
    border: 1px solid rgba(var(--kc), 0.55);
    box-shadow: 0 0 22px rgba(var(--kc), 0.3);
}
.guide-card .guide-card__icon svg {
    width: 26px;
    height: 26px;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: none;
    color: rgb(var(--kc));
    filter: drop-shadow(0 0 6px rgba(var(--kc), 0.8));
}
.guide-card .guide-card__mark {
    position: absolute;
    right: -26px;
    bottom: -30px;
    width: 140px;
    height: 140px;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: none;
    color: rgb(var(--kc));
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.4s ease, opacity 0.3s;
}
.guide-card:hover .guide-card__mark { opacity: 0.15; transform: rotate(-10deg) scale(1.06); }
.guide-card__go { margin-top: auto; padding-top: 10px; font-weight: 800; color: rgb(var(--kc)); transition: transform 0.2s; }
.guide-card:hover .guide-card__go { transform: translateX(4px); }

/* События года: цвет планеты события (затмения – солнечные) */
.year-event {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(var(--kc), 0.15), transparent 70%),
        var(--surface-2);
    border-color: color-mix(in srgb, rgb(var(--kc)) 22%, var(--border));
}
.year-event::before {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgb(var(--kc)), transparent 70%);
}
.year-event__glyph {
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(var(--kc), 0.38), rgba(var(--kc), 0.1) 70%);
    border: 1px solid rgba(var(--kc), 0.55);
    color: rgb(var(--kc));
    box-shadow: 0 0 20px rgba(var(--kc), 0.3);
}
.year-event__mark {
    position: absolute;
    right: -34px;
    top: -34px;
    width: 180px;
    height: 180px;
    color: rgb(var(--kc));
    opacity: 0.06;
    pointer-events: none;
    z-index: -1;
}

/* Перелинковка у калькуляторов: значок-медальон в цвете раздела */
.related-card {
    position: relative;
    overflow: hidden;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    background:
        radial-gradient(ellipse 70% 90% at 0% 0%, rgba(var(--kc), 0.14), transparent 70%),
        var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--kc)) 20%, var(--border));
}
.related-card:hover { border-color: rgba(var(--kc), 0.7); box-shadow: 0 16px 32px -22px rgba(var(--kc), 0.75); }
.related-card__icon {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(var(--kc), 0.35), rgba(var(--kc), 0.1) 70%);
    border: 1px solid rgba(var(--kc), 0.5);
    color: rgb(var(--kc));
    box-shadow: 0 0 16px rgba(var(--kc), 0.25);
}
.related-card__title, .related-card__text { grid-column: 2; }

/* Месяцы на странице года: лунный отсвет и серебристая полоска */
.moon-year__month {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 90% at 100% 0%, rgba(196, 208, 255, 0.13), transparent 70%),
        var(--surface);
}
.moon-year__month::before {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(196, 208, 255, 0.8), transparent 70%);
}
.moon-year__month:hover { box-shadow: 0 18px 36px -24px rgba(196, 208, 255, 0.6); }
.house-grid__theme, .pager__link { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 600px) {
    .pager__link { padding-left: 50px; }
    .pager__link--next { padding-left: 16px; padding-right: 50px; }
    .pager__num { left: 14px; font-size: 1.8rem; }
    .pager__link--next .pager__num { right: 14px; }
    .pager__hint { letter-spacing: 0.04em; }
}
.house-grid__theme { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
    .house-grid a, .house-grid__plain { gap: 10px; padding-left: 12px; padding-right: 10px; }
    .house-grid__theme { font-size: 0.86rem; }
}

/* Таблица совместимости: колонка знаков закреплена у самого края прокрутки – без щели, в которой проезжали ячейки.
   Отступ слева – внутри колонки, зазор справа от неё закрыт тенью цвета карточки, мягкая тень показывает прокрутку. */
.matrix-card .matrix-scroll { margin: 16px -28px 0; padding: 0 28px 0 0; }
.matrix tbody th, .matrix .matrix__corner {
    position: sticky;
    left: 0;
    z-index: 2;
    padding-left: 28px;
    background: var(--surface);
    box-shadow: 4px 0 0 var(--surface), 14px 0 14px -12px rgba(10, 6, 40, 0.45);
}
@media (max-width: 600px) {
    .matrix-card .matrix-scroll { margin: 14px -18px 0; padding-right: 18px; }
    .matrix tbody th, .matrix .matrix__corner { padding-left: 18px; }
}
.contacts-card__region { margin: 12px 0 0; color: var(--muted); font-size: 0.88rem; }

/* Выбор знака (гороскоп: первый экран и боковая колонка) – каждый знак в цвете своей стихии */
.sign-picker li { --kc: 169, 141, 255; }
.sign-picker li[data-el] { --kc: var(--ec); }
.sign-picker a {
    background:
        radial-gradient(ellipse 90% 80% at 50% 0%, rgba(var(--kc), 0.16), transparent 75%),
        var(--surface-2);
    border-color: color-mix(in srgb, rgb(var(--kc)) 22%, var(--border));
}
.sign-picker svg { color: rgb(var(--kc)); filter: drop-shadow(0 0 6px rgba(var(--kc), 0.35)); }
.sign-picker a:hover { border-color: rgba(var(--kc), 0.75); box-shadow: 0 12px 26px -16px rgba(var(--kc), 0.85); }
.sign-picker a:hover svg { filter: drop-shadow(0 0 8px rgba(var(--kc), 0.8)); }
.sign-picker .is-current a {
    background:
        radial-gradient(ellipse 90% 90% at 50% 0%, rgba(var(--kc), 0.45), rgba(var(--kc), 0.12) 80%),
        var(--surface-2);
    border-color: rgb(var(--kc));
    box-shadow: 0 0 0 3px rgba(var(--kc), 0.2);
    color: var(--text);
}
.sign-picker .is-current svg { color: rgb(var(--kc)); filter: drop-shadow(0 0 8px rgba(var(--kc), 0.9)); }
/* плашки сразу под подзаголовком первого экрана – с отступом, а не впритык (у списка свой margin: 0) */
.topic-hero__lead + .hero-chips { margin-top: var(--space-4); }

/* ===== «Дома в натальной карте»: формула, сферы в цветах стихий, примеры в цветах планет, вопросы карточками ===== */

/* Формула «планета + знак + дом»: каждая часть в своём цвете */
.formula--houses .formula__part { --kc: 169, 141, 255; position: relative; overflow: hidden; }
.formula--houses .formula__part[data-planet] { --kc: var(--pc); }
.formula--houses .formula__part[data-el] { --kc: var(--ec); }
.formula--houses .formula__part {
    background:
        radial-gradient(ellipse 85% 80% at 50% 0%, rgba(var(--kc), 0.2), transparent 72%),
        var(--surface);
    border-color: color-mix(in srgb, rgb(var(--kc)) 25%, var(--border));
}
.formula--houses .formula__part::before {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgb(var(--kc)), transparent);
}
.formula--houses .formula__part svg,
.formula--houses .formula__n {
    color: rgb(var(--kc));
    filter: drop-shadow(0 0 8px rgba(var(--kc), 0.6));
}
.formula--houses .formula__n { background: none; -webkit-text-fill-color: currentColor; }

/* 12 сфер: цвет стихии «своего» знака (1 дом – Овен, 2 – Телец…) */
.house-spheres li { --kc: 169, 141, 255; }
.house-spheres li[data-el] { --kc: var(--ec); }
.house-spheres a {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    gap: 16px;
    padding: 16px 18px;
    background:
        radial-gradient(ellipse 60% 120% at 0% 50%, rgba(var(--kc), 0.15), transparent 70%),
        var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--kc)) 20%, var(--border));
}
.house-spheres a::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgb(var(--kc)), transparent 90%);
}
.house-spheres a:hover { border-color: rgba(var(--kc), 0.7); box-shadow: 0 18px 36px -24px rgba(var(--kc), 0.8); }
.house-spheres__n {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(var(--kc), 0.38), rgba(var(--kc), 0.1) 70%);
    border: 1px solid rgba(var(--kc), 0.55);
    box-shadow: 0 0 18px rgba(var(--kc), 0.28);
    color: rgb(var(--kc));
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(var(--kc), 0.6);
}
.house-spheres__mark {
    position: absolute;
    right: -10px;
    bottom: -16px;
    width: 86px;
    height: 86px;
    color: rgb(var(--kc));
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.4s ease, opacity 0.3s;
}
.house-spheres a:hover .house-spheres__mark { opacity: 0.16; transform: rotate(-12deg) scale(1.08); }

/* Примеры «Венера / Сатурн в 7 доме» – в цветах планет */
.example-card { --kc: 169, 141, 255; position: relative; overflow: hidden; }
.example-card[data-planet] { --kc: var(--pc); }
.example-card {
    background:
        radial-gradient(ellipse 80% 80% at 50% 0%, rgba(var(--kc), 0.18), transparent 72%),
        var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--kc)) 25%, var(--border));
}
.example-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgb(var(--kc)), transparent);
}
.example-card:hover { border-color: rgba(var(--kc), 0.75); box-shadow: 0 20px 40px -24px rgba(var(--kc), 0.85); }
.example-card svg {
    width: 50px;
    height: 50px;
    padding: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(var(--kc), 0.38), rgba(var(--kc), 0.1) 70%);
    border: 1px solid rgba(var(--kc), 0.55);
    box-shadow: 0 0 20px rgba(var(--kc), 0.3);
    color: rgb(var(--kc));
    margin-bottom: 6px;
}

/* Частые вопросы карточками – на всех страницах (обёртку делает FaqCards при сборке страницы) */
.faq-card { margin: 12px 0; }
.faq-card {
    position: relative;
    padding: 18px 22px 18px 64px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 50% 100% at 0% 0%, rgba(169, 141, 255, 0.12), transparent 70%),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.faq-card::before {
    content: "?";
    position: absolute;
    left: 18px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    box-shadow: 0 6px 16px -6px rgba(160, 80, 240, 0.8);
}
.content .faq-card h3 { margin: 4px 0 8px; font-size: 1.08rem; font-weight: 800; line-height: 1.35; }
.faq-card__answer > :last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .faq-card { padding: 16px 16px 16px 56px; }
    .faq-card::before { left: 14px; }
    .house-spheres__n { width: 40px; height: 40px; font-size: 1.05rem; }
}

/* Страницы событий года (затмения, ретроградный Меркурий): таблицы карточкой с градиентной шапкой */
.event-text table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.event-text th, .event-text td { border: 0; border-bottom: 1px solid var(--border); padding: 12px 16px; }
.event-text tr:last-child td { border-bottom: 0; }
.event-text th {
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.28), rgba(255, 111, 174, 0.2));
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.event-text tbody tr:hover td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.event-text td:first-child { color: var(--text); }
/* на телефоне – обычная таблица с заголовками столбцов (общее правило превращает строки в блоки без подписей) */
@media (max-width: 760px) {
    .event-text table { display: table; font-size: 0.8rem; }
    .event-text thead { display: table-header-group; }
    .event-text tbody { display: table-row-group; }
    .event-text tr { display: table-row; }
    .event-text th, .event-text td { display: table-cell; width: auto; padding: 9px 6px; border-bottom: 1px solid var(--border); hyphens: auto; overflow-wrap: anywhere; }
    .event-text th:first-child, .event-text td:first-child { padding-left: 12px; }
    .event-text th { font-size: 0.68rem; letter-spacing: 0.03em; }
    .event-text td:first-child { color: var(--text); white-space: normal; }
    .event-text td:nth-child(2) { font-weight: 400; }
    .event-text td:nth-child(3) { color: inherit; }
}

/* ===== Страницы событий года: карточки затмений, цифры, города, Луна, коридоры, знаки, периоды, тени, планеты ===== */
.ev-section { margin-top: 2.4em; }
.ev-section:first-child { margin-top: 0; }
.ev-sun { fill: #f3c969; filter: drop-shadow(0 0 6px rgba(243, 201, 105, 0.8)); }
.ev-moon-dark { fill: #17123a; }
.ev-moon-lit { fill: #e8e3ff; }
.ev-moon-shade { fill: rgba(40, 20, 80, 0.62); }
:root[data-theme="light"] .ev-moon-dark { fill: #2a2350; }

/* общий цвет карточки: стихия знака или планета */
.ev-eclipse, .ev-lunar__card, .ev-sign, .ev-planet, .ev-period__sign { --kc: 169, 141, 255; }
.ev-eclipse[data-el], .ev-lunar__card[data-el], .ev-sign[data-el], .ev-period__sign[data-el] { --kc: var(--ec); }
.ev-planet[data-planet] { --kc: var(--pc); }

/* затмения года */
.ev-eclipses { list-style: none; padding: 0; margin: 1em 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ev-eclipse {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 10px 16px;
    margin: 0;
    border-radius: 18px;
    text-align: center;
    background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(var(--kc), 0.18), transparent 72%), var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--kc)) 22%, var(--border));
    box-shadow: var(--shadow-card);
}
.ev-eclipse.is-solar { background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(243, 201, 105, 0.2), transparent 72%), var(--surface); }
.ev-eclipse::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, rgb(var(--kc)), transparent); }
.ev-eclipse__icon { width: 46px; height: 46px; margin-bottom: 4px; }
.ev-eclipse__date { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
.ev-eclipse__type { color: var(--muted); font-size: 0.82rem; line-height: 1.3; }
.ev-eclipse__time { font-weight: 800; font-size: 0.95rem; }
.ev-eclipse__sign { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 9px; border-radius: 999px;
    background: color-mix(in srgb, rgb(var(--kc)) 14%, var(--surface-2)); font-size: 0.8rem; font-weight: 700; }
.ev-eclipse__sign svg { width: 14px; height: 14px; color: rgb(var(--kc)); flex: none; }

/* крупные цифры полного затмения */
.ev-stats { list-style: none; padding: 0; margin: 1em 0 1.2em; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev-stats li {
    margin: 0;
    padding: 16px 14px;
    border-radius: 18px;
    text-align: center;
    background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(243, 201, 105, 0.18), transparent 70%), var(--surface);
    border: 1px solid color-mix(in srgb, #f3c969 25%, var(--border));
    box-shadow: var(--shadow-card);
}
.ev-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #f3c969, #ff8fc4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ev-stats span { color: var(--muted); font-size: 0.85rem; }

/* города: сколько Солнца закроется */
.ev-cities { list-style: none; padding: 16px 18px; margin: 1em 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.ev-cities li { display: grid; grid-template-columns: 36px 9.5em minmax(0, 1fr) 6.5em 5em; align-items: center; gap: 12px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ev-cities li:last-child { border-bottom: 0; }
.ev-cities__sun { width: 36px; height: 36px; }
.ev-cities__name { font-weight: 700; }
.ev-cities__track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ev-cities__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f3c969, #ff8fc4); }
.ev-cities__value { font-weight: 800; text-align: right; }
.ev-cities__time { color: var(--muted); font-size: 0.85rem; text-align: right; }

/* лунные затмения */
.ev-lunar { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 10px; }
.ev-lunar__card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin: 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: radial-gradient(ellipse 50% 100% at 0% 50%, rgba(var(--kc), 0.14), transparent 70%), var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--kc)) 20%, var(--border));
    box-shadow: var(--shadow-card);
}
.ev-lunar__moon { width: 52px; height: 52px; filter: drop-shadow(0 0 10px rgba(232, 227, 255, 0.35)); }
.ev-lunar__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px; }
.ev-lunar__head strong { font-family: var(--font-display); font-size: 1.1rem; }
.ev-lunar__text { color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.ev-badge { padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; }
.ev-badge.is-yes { background: rgba(111, 227, 160, 0.16); color: #4fc98a; border: 1px solid rgba(111, 227, 160, 0.4); }
.ev-badge.is-no { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* коридоры: шкала года */
.ev-track { margin: 1em 0 1.2em; padding: 20px 18px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.ev-track__line { position: relative; height: 26px; border-radius: 999px; background: var(--surface-2); }
.ev-track__span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(124, 92, 255, 0.45), rgba(255, 111, 174, 0.45)); }
.ev-track__dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid var(--surface); }
.ev-track__dot.is-solar { background: #f3c969; box-shadow: 0 0 10px rgba(243, 201, 105, 0.9); }
.ev-track__dot.is-lunar { background: #e8e3ff; box-shadow: 0 0 10px rgba(232, 227, 255, 0.7); }
.ev-track__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 6px; color: var(--muted); font-size: 0.72rem; text-align: center; }
.ev-track__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.ev-track__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ev-track__legend .ev-track__dot { position: static; margin: 0; width: 12px; height: 12px; }
.ev-track__chip { display: inline-block; width: 22px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(124, 92, 255, 0.6), rgba(255, 111, 174, 0.6)); }

/* знаки */
.ev-signs { list-style: none; padding: 0; margin: 1em 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ev-sign {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: radial-gradient(ellipse 70% 80% at 0% 0%, rgba(var(--kc), 0.16), transparent 70%), var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--kc)) 22%, var(--border));
    box-shadow: var(--shadow-card);
}
.ev-sign::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, rgb(var(--kc)), transparent 75%); }
.ev-sign__glyphs { display: flex; gap: 6px; }
.ev-sign__glyphs svg {
    width: 40px; height: 40px; padding: 9px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(var(--kc), 0.36), rgba(var(--kc), 0.1) 70%);
    border: 1px solid rgba(var(--kc), 0.5);
    color: rgb(var(--kc));
}
.ev-sign__title { font-family: var(--font-display); font-size: 1.08rem; }
.ev-sign__text { color: color-mix(in srgb, var(--text) 85%, var(--muted)); font-size: 0.95rem; }

/* периоды Меркурия */
.ev-periods { list-style: none; padding: 0; margin: 1em 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev-period {
    --pc: 30, 140, 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 18px 16px;
    border-radius: 18px;
    background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(120, 210, 255, 0.16), transparent 72%), var(--surface);
    border: 1px solid color-mix(in srgb, #78d2ff 25%, var(--border));
    box-shadow: var(--shadow-card);
}
.ev-period__season { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #5bb8e8; }
.ev-period__dates { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.95rem; }
.ev-period__dates strong { font-family: var(--font-display); }
.ev-period__signs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ev-period__arrow { color: var(--muted); }
.ev-period__sign { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
    background: color-mix(in srgb, rgb(var(--kc)) 15%, var(--surface-2)); border: 1px solid color-mix(in srgb, rgb(var(--kc)) 35%, transparent); }
.ev-period__sign svg { width: 14px; height: 14px; color: rgb(var(--kc)); }

/* тени */
.ev-shadows { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 14px; }
.ev-shadows li { margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.ev-shadows__bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; }
.ev-shadows__bar .is-shadow { background: color-mix(in srgb, #78d2ff 30%, var(--surface-2)); }
.ev-shadows__bar .is-retro { background: linear-gradient(90deg, #7c5cff, #ff6fae); }
.ev-shadows__labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; font-size: 0.85rem; }
.ev-shadows__labels span { display: grid; }
.ev-shadows__labels span:nth-child(2) { text-align: center; font-weight: 700; }
.ev-shadows__labels span:nth-child(3) { text-align: right; }
.ev-shadows__labels small { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* другие ретроградные планеты */
.ev-planets { list-style: none; padding: 0; margin: 1em 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev-planet {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 16px;
    border-radius: 18px;
    background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(var(--kc), 0.16), transparent 72%), var(--surface);
    border: 1px solid color-mix(in srgb, rgb(var(--kc)) 24%, var(--border));
    box-shadow: var(--shadow-card);
}
.ev-planet__glyph {
    display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(var(--kc), 0.38), rgba(var(--kc), 0.1) 70%);
    border: 1px solid rgba(var(--kc), 0.55);
    color: rgb(var(--kc));
    box-shadow: 0 0 16px rgba(var(--kc), 0.28);
}
.ev-planet__glyph svg { width: 22px; height: 22px; }
.ev-planet strong { font-family: var(--font-display); font-size: 1.05rem; }
.ev-planet__dates { font-size: 0.9rem; }
.ev-planet__sign { color: var(--muted); font-size: 0.82rem; }

/* «что такое» – две карточки */
.ev-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 1em 0; }
.ev-split__card { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.ev-split__card.is-sky { background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(120, 210, 255, 0.14), transparent 70%), var(--surface); }
.ev-split__card.is-astro { background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255, 143, 196, 0.14), transparent 70%), var(--surface); }
.ev-split__title { margin: 0 0 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ev-split__card p:last-child { margin-bottom: 0; }

/* выноска «кольцеобразное затмение» */
.ev-callout {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 22px;
    border-radius: 20px;
    background: radial-gradient(ellipse 50% 100% at 0% 50%, rgba(243, 201, 105, 0.14), transparent 70%), var(--surface);
    border: 1px solid color-mix(in srgb, #f3c969 25%, var(--border));
    box-shadow: var(--shadow-card);
}
.ev-callout h2 { margin-top: 0; }
.ev-callout__ring { width: 64px; height: 64px; }
.ev-callout p:last-child { margin-bottom: 0; }

@media (max-width: 1000px) {
    .ev-eclipses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ev-eclipses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ev-stats, .ev-periods, .ev-signs, .ev-split { grid-template-columns: minmax(0, 1fr); }
    .ev-planets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ev-stats strong { font-size: 1.45rem; }
    .ev-cities { padding: 12px 14px; }
    .ev-cities li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 10px; }
    .ev-cities__sun { width: 30px; height: 30px; grid-row: span 2; }
    .ev-cities__track { grid-column: 2 / -1; grid-row: 2; }
    .ev-cities__time { display: none; }
    .ev-callout { grid-template-columns: minmax(0, 1fr); }
    .ev-callout__ring { width: 48px; height: 48px; }
}
/* светлая тема: цифры полного затмения – темнее, чтобы читались на светлом фоне */
:root[data-theme="light"] .ev-stats strong { background-image: linear-gradient(90deg, #b07a0c, #c93d84); }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .ev-stats strong { background-image: linear-gradient(90deg, #b07a0c, #c93d84); }
}

/* Предупреждение (цитата в тексте страниц событий): о безопасности наблюдения затмений */
.event-text blockquote {
    position: relative;
    margin: 1.2em 0;
    padding: 16px 20px 16px 64px;
    border-radius: 18px;
    background: radial-gradient(ellipse 50% 120% at 0% 50%, rgba(255, 176, 64, 0.22), transparent 70%), var(--surface);
    border: 1px solid rgba(255, 176, 64, 0.55);
    box-shadow: 0 16px 36px -26px rgba(255, 150, 40, 0.9);
    color: var(--text);
}
.event-text blockquote::before {
    content: "!";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb040, #ff6f4f);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px -6px rgba(255, 120, 40, 0.9);
}
.event-text blockquote p { margin: 0; }
.event-text blockquote strong { color: #e8902a; }
:root[data-theme="light"] .event-text blockquote strong { color: #b5650c; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .event-text blockquote strong { color: #b5650c; }
}
@media (max-width: 600px) {
    .event-text blockquote { padding: 14px 14px 14px 54px; font-size: 0.95rem; }
    .event-text blockquote::before { left: 12px; top: 16px; transform: none; width: 30px; height: 30px; }
}
