/* ==========================================================================
   Tarovsem.ru — публичная часть, базовые стили (brandbook v1)
   ========================================================================== */

:root {
    /* Base — тёмная тема (дизайн прода tarovsem.ru) */
    --color-bg: #1a1028;
    --color-surface: #241538;
    --color-surface-2: #2d1b45;
    --color-border: #3d2860;
    --color-text-primary: #e8e0f0;
    --color-text-secondary: #a090b8;

    /* Accent — мистический пурпур.
       700 — светлый сиреневый для ТЕКСТА на тёмном фоне;
       500 — фирменный пурпур для заливок/кнопок/градиентов;
       900 — глубокий тёмный для футера/градиентов/текста на золоте;
       50  — тёмная заливка-плашка (бывшая светлая). */
    --color-accent-900: #4a2874;
    --color-accent-700: #c9a0ff;
    --color-accent-500: #6b3fa0;
    --color-accent-300: #b89fd8;
    --color-accent-50:  #2d1b45;

    /* Gold */
    --color-gold-700: #e8c97d;
    --color-gold-500: #e8b84b;
    --color-gold-300: #f2d27a;
    --color-gold-50:  #2e2336;

    /* Semantic */
    --color-success: #5fb85f;
    --color-warning: #e8b84b;
    --color-danger: #e07a76;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.40);
    --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.55);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;

    /* Typography — Georgia serif как на проде, без веб-шрифтов */
    --font-display: Georgia, 'Times New Roman', serif;
    --font-body: Georgia, 'Times New Roman', serif;
    --font-decorative: Georgia, 'Times New Roman', serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-gold-500); }
button { font-family: inherit; cursor: pointer; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-gold-500);
    margin: 0 0 var(--space-4);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
h1 { font-size: 40px; line-height: 1.15; }
h2 { font-size: 30px; }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 18px; }
.h-hero { font-size: 56px; line-height: 1.1; margin-bottom: var(--space-6); }

p { margin: 0 0 var(--space-4); }
.lead { font-size: 19px; color: var(--color-text-secondary); line-height: 1.6; }
.small { font-size: 14px; color: var(--color-text-secondary); }
.muted { color: var(--color-text-secondary); }

@media (max-width: 767px) {
    body { font-size: 16px; }
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
    .h-hero { font-size: 36px; }
    .lead { font-size: 17px; }
}

/* Layout */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}
.container-narrow { max-width: 880px; }

.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-12) 0; }
@media (max-width: 767px) {
    .section { padding: var(--space-12) 0; }
    .section-sm { padding: var(--space-8) 0; }
}

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Header / Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, var(--color-accent-900), var(--color-surface-2));
    border-bottom: 2px solid var(--color-gold-500);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-gold-500);
}
.site-logo:hover { color: var(--color-gold-300); }
.site-logo__mark {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold-500), var(--color-accent-500));
    display: inline-block;
}

.site-nav { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.site-nav a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: background .2s ease, color .2s ease;
}
.site-nav a:hover { background: var(--color-accent-500); color: #fff; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-gold-500);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--color-gold-500);
}

@media (max-width: 767px) {
    .site-nav { display: none; }
    .site-nav.is-open {
        display: flex;
        position: absolute;
        right: var(--space-6);
        top: 64px;
        flex-direction: column;
        align-items: flex-start;
        background: var(--color-surface);
        padding: var(--space-4);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        gap: var(--space-3);
    }
    .nav-toggle { display: inline-flex; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-accent-500);
    color: #fff;
}
.btn-primary:hover { background: var(--color-accent-900); color: #fff; }

.btn-gold {
    background: var(--color-gold-500);
    color: var(--color-accent-900);
    font-weight: 600;
}
.btn-gold:hover { background: var(--color-gold-300); color: var(--color-accent-900); }

.btn-outline {
    background: transparent;
    color: var(--color-accent-700);
    border-color: var(--color-accent-700);
}
.btn-outline:hover {
    background: var(--color-accent-500);
    color: #fff;
}

.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn-block { width: 100%; }

/* Hero */
.hero {
    padding: var(--space-16) 0 var(--space-12);
    background:
        radial-gradient(ellipse 60% 50% at 80% 0%, var(--color-accent-50), transparent 70%),
        radial-gradient(ellipse 70% 60% at 0% 100%, var(--color-gold-50), transparent 70%),
        var(--color-bg);
    text-align: center;
}
.hero__kicker {
    display: inline-block;
    margin-bottom: var(--space-4);
    padding: 6px 14px;
    background: var(--color-accent-50);
    color: var(--color-accent-700);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero__title { max-width: 800px; margin-left: auto; margin-right: auto; }
.hero__lead { max-width: 640px; margin: 0 auto var(--space-8); }
.hero__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* Cards (общие карточки услуг, тарологов, фич) */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--color-gold-500); }
.card__title { margin: 0; font-size: 22px; }
.card__lead { color: var(--color-text-secondary); flex: 1; }
.card__footer { margin-top: var(--space-2); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

/* Service card (с ценой) */
.service-card {
    position: relative;
}
.service-card__price {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-accent-700);
}
.service-card__price-currency { font-size: 18px; color: var(--color-text-secondary); margin-left: 2px; }
.service-card__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-3);
    color: var(--color-text-secondary);
}
.service-card__bullets li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}
.service-card__bullets li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--color-gold-500);
    font-size: 14px;
}
.service-card.is-featured {
    border: 2px solid var(--color-gold-500);
    background: linear-gradient(180deg, var(--color-gold-50), var(--color-surface) 60%);
}
.service-card__badge {
    position: absolute;
    top: -12px; right: 16px;
    background: var(--color-gold-500);
    color: var(--color-accent-900);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Tarologist card на главной */
.tarologist-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-6);
    align-items: center;
}
.tarologist-card__avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-gold-500);
    background: var(--color-accent-50);
}
.tarologist-card__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 42px;
    color: var(--color-accent-700);
}
.tarologist-card__title { margin-bottom: 4px; font-size: 24px; }
.tarologist-card__spec { color: var(--color-gold-700); font-size: 14px; font-weight: 500; margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 539px) {
    .tarologist-card { grid-template-columns: 1fr; text-align: center; }
    .tarologist-card__avatar { margin: 0 auto; }
}

/* Tarologist landing — hero */
.tlg-hero {
    padding: var(--space-12) 0 var(--space-8);
    background: linear-gradient(180deg, var(--color-accent-50) 0%, var(--color-bg) 100%);
}
.tlg-hero__inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-12);
    align-items: center;
}
.tlg-hero__avatar {
    width: 220px; height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-gold-500);
    box-shadow: var(--shadow-md);
    background: var(--color-accent-50);
}
.tlg-hero__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 84px;
    color: var(--color-accent-700);
}
.tlg-hero__name { margin-bottom: var(--space-2); }
.tlg-hero__spec {
    color: var(--color-gold-700);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}
.tlg-hero__bio { color: var(--color-text-secondary); margin-bottom: var(--space-6); }
.tlg-hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

@media (max-width: 767px) {
    .tlg-hero__inner { grid-template-columns: 1fr; text-align: center; }
    .tlg-hero__avatar { width: 160px; height: 160px; margin: 0 auto; }
    .tlg-hero__avatar--placeholder { font-size: 64px; }
    .tlg-hero__actions { justify-content: center; }
}

/* About / long bio block */
.prose {
    max-width: 820px;
    color: var(--color-text-primary);
}
.prose p { margin-bottom: var(--space-4); }
.prose p:last-child { margin-bottom: 0; }

/* FAQ */
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-3);
}
.faq-item__q {
    font-weight: 600;
    color: var(--color-gold-500);
    margin: 0 0 var(--space-2);
    font-size: 17px;
}
.faq-item__a { margin: 0; color: var(--color-text-secondary); }

/* CTA banner */
.cta {
    background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-900));
    color: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.86); max-width: 540px; margin: 0 auto var(--space-6); }

/* Footer */
.site-footer {
    background: var(--color-accent-900);
    color: rgba(255, 255, 255, 0.74);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: var(--space-16);
}
.site-footer a { color: var(--color-gold-300); }
.site-footer a:hover { color: var(--color-gold-500); }
.site-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: var(--space-3); font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-4);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 767px) {
    .site-footer__top { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* Page header (для каталогов) */
.page-header {
    padding: var(--space-12) 0 var(--space-8);
    background: linear-gradient(180deg, var(--color-accent-50) 0%, var(--color-bg) 100%);
    text-align: center;
}
.page-header__title { margin-bottom: var(--space-3); }
.page-header__lead { color: var(--color-text-secondary); max-width: 640px; margin: 0 auto; }

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}
.breadcrumbs a { color: var(--color-text-secondary); }
.breadcrumbs a:hover { color: var(--color-accent-700); }
.breadcrumbs__sep { margin: 0 8px; opacity: 0.5; }

/* Tarot card grid (каталог карт) */
.cards-group { margin-bottom: var(--space-12); }
.cards-group__title {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    font-size: 24px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-4);
}
.tarot-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.tarot-tile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-gold-500);
    color: inherit;
}
.tarot-tile__art {
    width: 100%;
    aspect-ratio: 5 / 8;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-900));
    color: var(--color-gold-300);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-decorative, var(--font-display));
    font-size: 16px;
    border: 2px solid var(--color-gold-500);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.25);
    margin-bottom: var(--space-3);
    overflow: hidden;
    text-align: center;
    padding: 8px;
}
.tarot-tile__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.tarot-tile__art-num {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-gold-500);
    line-height: 1;
    margin-bottom: 4px;
}
.tarot-tile__art-en {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold-300);
    opacity: 0.85;
}
.tarot-tile__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-gold-500);
    margin: 0;
    line-height: 1.3;
}
.tarot-tile__suit {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tarot card show page */
.tarot-show {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
    align-items: start;
}
.tarot-show__art {
    aspect-ratio: 5 / 8;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-900));
    color: var(--color-gold-300);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-decorative, var(--font-display));
    border: 3px solid var(--color-gold-500);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 16px;
}
.tarot-show__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.tarot-show__art-num { font-size: 56px; font-weight: 600; color: var(--color-gold-500); line-height: 1; margin-bottom: 8px; }
.tarot-show__art-en { font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-gold-300); }
.tarot-show__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}
.tarot-show__keyword {
    background: var(--color-accent-50);
    color: var(--color-accent-700);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}
.tarot-show__meaning-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
}
.tarot-show__meaning-block h3 {
    margin-top: 0;
    margin-bottom: var(--space-3);
    font-size: 20px;
}
.tarot-show__meaning-block--reversed { background: var(--color-accent-50); }
@media (max-width: 767px) {
    .tarot-show { grid-template-columns: 1fr; gap: var(--space-6); }
    .tarot-show__art { max-width: 240px; margin: 0 auto; }
}

/* Spread tiles */
.spread-tile {
    display: flex;
    flex-direction: column;
    color: inherit;
}
.spread-tile__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: 13px;
    color: var(--color-text-secondary);
}
.spread-tile__cards {
    background: var(--color-gold-50);
    color: var(--color-gold-700);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
}

/* Spread show — positions */
.positions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: pos;
}
.positions-list li {
    counter-increment: pos;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-3);
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--space-4);
    align-items: start;
}
.positions-list li::before {
    content: counter(pos);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--color-accent-500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
}
.positions-list h4 { margin: 0 0 4px; font-size: 17px; }
.positions-list p { margin: 0; color: var(--color-text-secondary); font-size: 15px; }

/* Article cards (блог) */
.article-card {
    padding: 0;
    overflow: hidden;
}
.article-card__cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--color-accent-50);
}
.article-card .article-card__meta,
.article-card .card__title,
.article-card .card__lead {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}
.article-card .article-card__meta { padding-top: var(--space-4); padding-bottom: 0; }
.article-card .card__title { padding-top: var(--space-2); }
.article-card .card__lead { padding-bottom: var(--space-6); }
.article-card__meta {
    font-size: 13px;
    color: var(--color-text-secondary);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Article page */
.article-page__hero {
    background-size: cover;
    background-position: center;
    background-color: var(--color-accent-900);
    background-blend-mode: multiply;
    color: #fff;
    padding: var(--space-16) 0;
    margin-bottom: var(--space-8);
    position: relative;
}
.article-page__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 31, 58, 0.2) 0%, rgba(42, 31, 58, 0.8) 100%);
}
.article-page__hero .container { position: relative; z-index: 1; }
.article-page__hero .breadcrumbs--inverse { color: rgba(255, 255, 255, 0.75); margin-bottom: var(--space-4); }
.article-page__hero .breadcrumbs--inverse a { color: rgba(255, 255, 255, 0.85); }
.article-page__hero .breadcrumbs--inverse a:hover { color: var(--color-gold-300); }
.article-page__title {
    color: #fff;
    font-size: 48px;
    line-height: 1.15;
    max-width: 820px;
    margin-bottom: var(--space-3);
}
.article-page__meta {
    color: var(--color-text-secondary);
    font-size: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.article-page__hero .article-page__meta { color: rgba(255, 255, 255, 0.75); }
.article-page__excerpt { font-style: italic; border-left: 3px solid var(--color-gold-500); padding-left: var(--space-4); margin-bottom: var(--space-8); }
.article-page__body { font-size: 18px; line-height: 1.75; }
.article-page__body p { margin-bottom: var(--space-6); }

@media (max-width: 767px) {
    .article-page__title { font-size: 32px; }
    .article-page__body { font-size: 17px; }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}
.pagination__link {
    padding: 10px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-accent-700);
    font-weight: 500;
}
.pagination__link:hover {
    border-color: var(--color-accent-700);
    background: var(--color-accent-50);
}
.pagination__info { color: var(--color-text-secondary); font-size: 15px; }

/* Disclaimer */
.disclaimer {
    background: var(--color-accent-50);
    border-left: 3px solid var(--color-accent-300);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-top: var(--space-6);
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Focus */
:focus-visible {
    outline: 2px solid var(--color-accent-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Error pages (404, 500, generic) */
.error-page {
    padding: var(--space-16) 0;
    background:
        radial-gradient(ellipse 50% 40% at 50% 0%, var(--color-accent-50), transparent 70%),
        var(--color-bg);
    min-height: 60vh;
}
.error-page__code {
    font-family: var(--font-display);
    font-size: clamp(96px, 18vw, 220px);
    line-height: 1;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-accent-700), var(--color-gold-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-4);
    letter-spacing: -.02em;
}
.error-page__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}
.error-page .lead {
    max-width: 580px;
    margin: 0 auto var(--space-8);
    color: var(--color-text-secondary);
}
.error-page__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}
.error-page__suggest h2 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--color-text-primary);
}
.error-page__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: left;
}
.error-page__links a {
    color: var(--color-accent-700);
    border-bottom: 1px dashed var(--color-accent-300);
    padding-bottom: 2px;
}
.error-page__links a:hover { color: var(--color-gold-300); border-bottom-style: solid; }
.mt-12 { margin-top: var(--space-12, 48px); }

/* Sonnik */
.sonnik-search {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-6);
    max-width: 640px;
}
.sonnik-search input[type="search"] {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-body);
    background: var(--color-surface);
    color: var(--color-text-primary);
}
.sonnik-search input[type="search"]:focus {
    border-color: var(--color-accent-500);
    outline: none;
    box-shadow: 0 0 0 3px var(--color-accent-50);
}

.sonnik-categories .sonnik-category-card {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.sonnik-categories .sonnik-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(74, 47, 107, 0.12);
}
.sonnik-category-card__emoji {
    font-size: 48px;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.sonnik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
}
.sonnik-tile {
    display: block;
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.sonnik-tile:hover {
    border-color: var(--color-accent-300);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 47, 107, 0.08);
    color: inherit;
}
.sonnik-tile__title {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0 0 var(--space-2);
    color: var(--color-accent-700);
}
.sonnik-tile__lead {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.sonnik-symbol__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}
.sonnik-symbol__suffix {
    color: var(--color-text-secondary);
    font-weight: 400;
}
.sonnik-symbol__lead {
    font-size: 20px;
    color: var(--color-accent-700);
    border-left: 3px solid var(--color-gold-500);
    padding-left: var(--space-4);
    margin-bottom: var(--space-8);
}
.sonnik-symbol__keywords {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}
.sonnik-symbol__keywords-label {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-right: var(--space-2);
}
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-accent-50);
    color: var(--color-accent-700);
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.badge-upright {
    background: var(--color-gold-50);
    color: var(--color-gold-700);
}
.badge-reversed {
    background: rgba(184, 84, 80, 0.12);
    color: var(--color-danger);
}

/* Forecast (taro-goroskop) */
.forecast-grid {
    gap: var(--space-6);
}
.forecast-card {
    text-align: center;
    padding: var(--space-6);
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}
.forecast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(74, 47, 107, 0.15);
    color: inherit;
}
.forecast-card__period {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--color-gold-700);
    letter-spacing: .02em;
}
.forecast-card__art {
    width: 100%;
    aspect-ratio: 2 / 3;
    max-width: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-accent-50);
    display: flex;
    align-items: center;
    justify-content: center;
}
.forecast-card__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.forecast-card__placeholder,
.forecast-show__placeholder {
    color: var(--color-accent-700);
    font-family: var(--font-display);
    font-size: 18px;
    text-align: center;
    padding: var(--space-4);
}
.forecast-card__title {
    font-family: var(--font-display);
    font-size: 24px;
    margin: 0;
    color: var(--color-text-primary);
}
.forecast-card__orientation { margin: 0; }
.forecast-card__date {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.forecast-show__period {
    color: var(--color-gold-700);
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: var(--space-2);
}
.forecast-show__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    color: var(--color-text-primary);
    margin: 0 0 var(--space-8);
}
.forecast-show__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
    align-items: start;
}
@media (max-width: 720px) {
    .forecast-show__layout { grid-template-columns: 1fr; }
}
.forecast-show__art {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-accent-50);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(74, 47, 107, 0.15);
}
.forecast-show__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.forecast-show__orientation { margin-bottom: var(--space-6); }
.forecast-show__orientation .msg-meta {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-top: var(--space-2);
}
.forecast-show__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.forecast-other {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.forecast-quick-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
    flex-wrap: wrap;
}

.forecast-personal-cta {
    background:
        radial-gradient(ellipse 50% 60% at 50% 0%, var(--color-gold-50), transparent 70%),
        var(--color-bg);
}

/* Zodiac — element themes */
:root {
    --zodiac-fire-bg: linear-gradient(135deg, #2e1a20, #241522);
    --zodiac-fire-accent: #ff8a5c;
    --zodiac-earth-bg: linear-gradient(135deg, #1e2a1a, #1a2415);
    --zodiac-earth-accent: #a7d977;
    --zodiac-air-bg: linear-gradient(135deg, #1a2430, #15202c);
    --zodiac-air-accent: #74c0ee;
    --zodiac-water-bg: linear-gradient(135deg, #16242c, #122028);
    --zodiac-water-accent: #5fd5d5;
}
.zodiac-fire  { --zod-bg: var(--zodiac-fire-bg);  --zod-accent: var(--zodiac-fire-accent); }
.zodiac-earth { --zod-bg: var(--zodiac-earth-bg); --zod-accent: var(--zodiac-earth-accent); }
.zodiac-air   { --zod-bg: var(--zodiac-air-bg);   --zod-accent: var(--zodiac-air-accent); }
.zodiac-water { --zod-bg: var(--zodiac-water-bg); --zod-accent: var(--zodiac-water-accent); }

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-4);
}
.zodiac-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.zodiac-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-6);
    background: var(--zod-bg, var(--color-surface));
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text-primary);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
}
.zodiac-tile::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--zod-accent, var(--color-accent-700));
}
.zodiac-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
    color: var(--color-text-primary);
}
.zodiac-tile__symbol {
    font-size: 56px;
    line-height: 1;
    color: var(--zod-accent, var(--color-accent-700));
}
.zodiac-tile__name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
}
.zodiac-tile__dates,
.zodiac-tile__element {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.zodiac-tile--mini { padding: var(--space-4); }
.zodiac-tile--mini .zodiac-tile__symbol { font-size: 40px; }
.zodiac-tile--mini .zodiac-tile__name { font-size: 17px; }

/* Zodiac index — list with mini-cards preview */
.zodiac-list {
    display: grid;
    gap: var(--space-6);
}
.zodiac-list__item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: var(--space-4) var(--space-6);
    padding: var(--space-6);
    background: var(--zod-bg, var(--color-surface));
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
}
.zodiac-list__item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--zod-accent);
}
.zodiac-list__item:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    color: var(--color-text-primary);
}
.zodiac-list__head {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
.zodiac-list__symbol {
    font-size: 56px;
    line-height: 1;
    color: var(--zod-accent);
}
.zodiac-list__name {
    font-family: var(--font-display);
    font-size: 28px;
    margin: 0;
}
.zodiac-list__meta {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-top: 2px;
}
.zodiac-list__cards {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    gap: var(--space-3);
    align-items: center;
}
@media (max-width: 720px) {
    .zodiac-list__item { grid-template-columns: 1fr; }
    .zodiac-list__cards { grid-column: 1; grid-row: 2; justify-content: flex-start; }
}
.zodiac-list__card {
    width: 64px;
    text-align: center;
}
.zodiac-list__card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    display: block;
}
.zodiac-list__card-fallback {
    aspect-ratio: 2 / 3;
    background: var(--color-accent-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--color-accent-700);
    padding: 4px;
}
.zodiac-list__card-pos {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}
.zodiac-list__cta {
    grid-column: 1;
    grid-row: 2;
    color: var(--zod-accent);
    font-weight: 600;
    align-self: end;
}

/* Zodiac landing — hero */
.zodiac-hero {
    padding: var(--space-12) 0;
    background:
        radial-gradient(ellipse 60% 70% at 70% 30%, var(--zod-bg), transparent 70%),
        var(--color-accent-900);
    color: #fff;
}
.zodiac-hero .breadcrumbs--inverse a,
.zodiac-hero .breadcrumbs--inverse span {
    color: rgba(255, 255, 255, 0.85);
}
.zodiac-hero .breadcrumbs--inverse a:hover { color: #fff; }
.zodiac-hero__inner {
    display: flex;
    gap: var(--space-8);
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--space-6);
}
.zodiac-hero__symbol {
    font-size: 128px;
    line-height: 1;
    color: var(--color-gold-300);
    text-shadow: 0 0 40px rgba(212, 168, 75, 0.3);
}
.zodiac-hero__name {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    margin: 0;
    color: #fff;
}
.zodiac-hero__meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-top: var(--space-2);
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}
.zodiac-hero__lead {
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    margin-top: var(--space-4);
    max-width: 640px;
}

/* Three-cards spread (zodiac & personal) */
.forecast-spread__header {
    text-align: center;
    margin-bottom: var(--space-8);
}
.forecast-spread__header h2 {
    font-family: var(--font-display);
    font-size: 28px;
    margin: 0;
}
.three-cards-spread {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
@media (max-width: 720px) {
    .three-cards-spread { grid-template-columns: 1fr; }
}
.three-cards-spread__slot {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(74, 47, 107, 0.06);
}
.three-cards-spread__pos {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-gold-700);
    font-weight: 600;
    letter-spacing: .02em;
}
.three-cards-spread__art {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-accent-50);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(74, 47, 107, 0.18);
}
.three-cards-spread__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.three-cards-spread__fallback {
    color: var(--color-accent-700);
    font-family: var(--font-display);
    text-align: center;
    padding: var(--space-4);
}
.three-cards-spread__title {
    font-family: var(--font-display);
    font-size: 22px;
    margin: var(--space-2) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}
.three-cards-spread__text {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}
.three-cards-spread__text p:last-child { margin-bottom: 0; }
.three-cards-spread__more {
    margin-top: auto;
    color: var(--color-accent-700);
    font-weight: 500;
    font-size: 14px;
}

/* Personal form & result */
.personal-form {
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(74, 47, 107, 0.08);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.personal-form__field { display: flex; flex-direction: column; gap: var(--space-2); }
.personal-form__field label {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--color-text-primary);
    font-weight: 600;
}
.personal-form__field input {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-body);
    background: var(--color-bg);
}
.personal-form__field input:focus {
    border-color: var(--color-accent-500);
    outline: none;
    box-shadow: 0 0 0 3px var(--color-accent-50);
    background: var(--color-surface);
}
.personal-form__error {
    color: var(--color-danger);
    font-size: 14px;
    margin: 0;
}
.personal-form__hint {
    color: var(--color-text-secondary);
    font-size: 13px;
    margin: var(--space-2) 0 0;
    text-align: center;
}

.personal-result__head {
    text-align: center;
    margin-bottom: var(--space-8);
}
.personal-result__greeting {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}
.personal-result__sign {
    color: var(--color-gold-700);
    margin-left: var(--space-2);
}
.personal-result__sign-link {
    color: var(--color-text-secondary);
}
.personal-result__sign-link a {
    color: var(--color-accent-700);
    font-weight: 600;
}

/* ==========================================================================
   Card page — расширенная страница карты Таро
   ========================================================================== */

.cardpage__hero {
    padding: var(--space-12) 0 var(--space-8);
    background:
        radial-gradient(ellipse 60% 70% at 80% 0%, rgba(107, 63, 160, 0.35), transparent 70%),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(232, 184, 75, 0.10), transparent 70%),
        var(--color-bg);
}
.cardpage__hero-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-12);
    align-items: start;
    margin-top: var(--space-4);
}
.cardpage__art {
    aspect-ratio: 5 / 8;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 3px solid var(--color-gold-500);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(232, 184, 75, 0.18);
    background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-900));
    position: sticky;
    top: 90px;
}
.cardpage__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cardpage__art-fallback {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--color-gold-300);
}
.cardpage__art-num { font-size: 64px; font-weight: 600; color: var(--color-gold-500); }
.cardpage__art-en { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 8px; }

.cardpage__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.pill--major { background: var(--color-gold-500); color: var(--color-accent-900); }
.pill--minor { background: var(--color-accent-500); color: #fff; }
.pill--ghost { background: var(--color-surface); color: var(--color-text-primary); border: 1px solid var(--color-border); }

.cardpage__title { font-size: clamp(34px, 5vw, 52px); margin: 0 0 4px; color: var(--color-gold-500); }
.cardpage__title-en {
    font-family: var(--font-display); font-style: italic;
    font-size: 20px; color: var(--color-text-secondary); margin: 0 0 var(--space-4);
}
.cardpage__affirm {
    font-family: var(--font-display); font-size: 20px; font-style: italic;
    color: var(--color-accent-700);
    border-left: 3px solid var(--color-gold-500); padding-left: var(--space-4);
    margin: 0 0 var(--space-6);
}

.cardpage__yesno {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}
.cardpage__yesno-label { color: var(--color-text-secondary); font-size: 14px; }
.cardpage__yesno-answer { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.cardpage__yesno--yes   { border-color: rgba(95, 184, 95, 0.4); }
.cardpage__yesno--yes   .cardpage__yesno-answer { color: var(--color-success); }
.cardpage__yesno--no    { border-color: rgba(224, 122, 118, 0.4); }
.cardpage__yesno--no    .cardpage__yesno-answer { color: var(--color-danger); }
.cardpage__yesno--maybe .cardpage__yesno-answer { color: var(--color-gold-500); }

.cardpage__h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}
.cardpage__h2::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 64px; height: 3px; background: var(--color-gold-500); border-radius: 3px;
}
.cardpage__h2.text-center::after { left: 50%; transform: translateX(-50%); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.chip {
    display: inline-block; padding: 5px 13px; border-radius: 999px;
    font-size: 13px; font-weight: 500;
}
.chip--up  { background: rgba(232, 184, 75, 0.14); color: var(--color-gold-300); border: 1px solid rgba(232, 184, 75, 0.3); }
.chip--rev { background: rgba(224, 122, 118, 0.12); color: var(--color-danger); border: 1px solid rgba(224, 122, 118, 0.28); }

.passport {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}
.passport__item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    text-align: center;
    transition: border-color .2s ease, transform .2s ease;
}
.passport__item:hover { border-color: var(--color-gold-500); transform: translateY(-3px); }
.passport__item--wide { grid-column: 1 / -1; }
.passport__icon { font-size: 36px; line-height: 1; margin-bottom: var(--space-3); }
.passport__icon--num {
    font-family: var(--font-display); font-weight: 700; color: var(--color-gold-500);
    width: 56px; height: 56px; margin: 0 auto var(--space-3);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--color-gold-500); border-radius: 50%; font-size: 26px;
}
.passport__label {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--color-text-secondary); margin-bottom: 4px;
}
.passport__value {
    font-family: var(--font-display); font-size: 21px; font-weight: 600;
    color: var(--color-gold-500); margin-bottom: var(--space-2);
}
.passport__desc { font-size: 14px; color: var(--color-text-secondary); line-height: 1.5; margin: 0; }

.influence-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
}
.influence { display: flex; flex-direction: column; gap: var(--space-4); }
.influence__row { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: var(--space-4); }
.influence__label { font-size: 15px; font-weight: 500; color: var(--color-text-primary); }
.influence__track {
    height: 12px; border-radius: 999px; background: var(--color-bg);
    overflow: hidden; border: 1px solid var(--color-border);
}
.influence__fill {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--color-accent-500), var(--color-gold-500));
    border-radius: 999px;
}
.influence__val { text-align: right; font-size: 14px; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }

.symbolism {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-gold-500);
    border-radius: var(--radius-md);
    padding: var(--space-6) var(--space-8);
}
.symbolism .prose { max-width: none; }
.symbolism .prose p:last-child { margin-bottom: 0; }

.meanings { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.meaning-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-8);
}
.meaning-card--up  { border-top: 3px solid var(--color-gold-500); }
.meaning-card--rev { border-top: 3px solid var(--color-danger); }
.meaning-card__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.meaning-card__head h3 { margin: 0; font-size: 22px; }
.meaning-card__icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.meaning-card--up  .meaning-card__icon { background: rgba(232, 184, 75, 0.16); color: var(--color-gold-500); }
.meaning-card--rev .meaning-card__icon { background: rgba(224, 122, 118, 0.16); color: var(--color-danger); }
.meaning-card .prose { max-width: none; }
.meaning-card .prose p:last-child { margin-bottom: 0; }

.spheres { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.sphere-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-8);
}
.sphere-card__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.sphere-card__head h3 { margin: 0; font-size: 21px; }
.sphere-card__icon { font-size: 28px; line-height: 1; }
.sphere-card__pos { margin-bottom: var(--space-4); }
.sphere-card__pos:last-child { margin-bottom: 0; }
.sphere-card__pos p { margin: 6px 0 0; color: var(--color-text-secondary); line-height: 1.65; }
.sphere-card__tag {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.sphere-card__tag--up  { background: rgba(232, 184, 75, 0.16); color: var(--color-gold-300); }
.sphere-card__tag--rev { background: rgba(224, 122, 118, 0.14); color: var(--color-danger); }

.advice-block {
    text-align: center;
    background:
        radial-gradient(ellipse 70% 80% at 50% 0%, rgba(232, 184, 75, 0.12), transparent 70%),
        var(--color-surface);
    border: 1px solid var(--color-gold-500);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-8);
}
.advice-block__icon { font-size: 32px; color: var(--color-gold-500); margin-bottom: var(--space-2); }
.advice-block__title { margin-bottom: var(--space-4); }
.advice-block .prose { max-width: 620px; margin: 0 auto; }
.advice-block .prose p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
    .cardpage__hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .cardpage__art { position: static; max-width: 280px; margin: 0 auto; }
    .meanings, .spheres { grid-template-columns: 1fr; }
    .cardpage__yesno { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}
@media (max-width: 520px) {
    .influence__row { grid-template-columns: 96px 1fr 32px; gap: var(--space-2); }
    .influence__label { font-size: 13px; }
}
