/* ====================================================================
   ГЛОБАЛЬНЫЙ СТИЛЬ И ДИЗАЙН-СИСТЕМА СЕРВИСА «МАТРИЦА СУДЬБЫ»
   Светлая премиальная тема: благородный жемчуг, каратное золото и
   глубокий сакральный индиго (Pearl & Gold Luxury). Тема зафиксирована
   светлой — это осознанное решение бренда, единое на всех страницах.
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Фоновые цвета */
    --bg-main: #fbfaf7;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-trans: rgba(255, 255, 255, 0.88);
    --bg-card-hover: #fdfcfb;
    --bg-subtle: #f6f3ee;
    --bg-subtle-2: #faf8f4;

    /* Границы и разделители */
    --border-card: rgba(196, 174, 138, 0.32);
    --border-card-hover: rgba(183, 121, 31, 0.4);
    --border-gold: rgba(183, 121, 31, 0.45);
    --border-gold-light: rgba(183, 121, 31, 0.18);

    /* Текст */
    --text-main: #1c1917;
    --text-dark: #201a12;
    --text-muted: #6b6255;
    --text-faint: #9c9384;
    --text-gold: #8a5a17;       /* AA-безопасный тёмный золотой для текста на белом */
    --text-gold-light: #a8721f;

    /* Единственный интерактивный акцент — золото (все CTA, ссылки, фокус) */
    --accent-gold: #c07f1f;
    --accent-gold-light: #d99a3a;
    --accent-gold-dark: #8a5a17;
    --accent-gold-glow: rgba(192, 127, 31, 0.16);

    /* Вторичный декоративный акцент — сакральный индиго.
       Используется ТОЛЬКО для бренд-марки, градиентных строк и
       геометрии чакр/линий рода. Никогда — на интерактивных CTA. */
    --sacred-indigo: #4a3a8f;
    --sacred-indigo-soft: rgba(74, 58, 143, 0.08);

    --danger: #b3223c;
    --danger-soft: #fdf1f2;
    --success: #1f7a52;
    --success-soft: #eef8f2;
    --info: #1d6fa5;

    /* Скругления — единая шкала на весь сайт */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Премиальные тени (тонированы в тон фона) */
    --shadow-sm: 0 2px 6px rgba(58, 45, 26, 0.04);
    --shadow-card: 0 10px 30px -6px rgba(58, 45, 26, 0.08), 0 2px 8px -2px rgba(58, 45, 26, 0.04);
    --shadow-card-hover: 0 18px 40px -10px rgba(138, 90, 23, 0.16), 0 4px 12px -2px rgba(58, 45, 26, 0.05);
    --shadow-gold: 0 10px 25px -4px rgba(192, 127, 31, 0.28);
    --shadow-modal: 0 30px 70px -18px rgba(28, 22, 12, 0.22), 0 0 50px rgba(192, 127, 31, 0.08);

    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --nav-height: 72px;

    /* Единые кривые анимации: ease-out для входа/наведения (быстрый старт,
       отзывчивое ощущение), ease-in-out для вращений и перемещений на месте.
       Ease-in нигде не используется — она откладывает начало движения именно
       в тот момент, на который смотрит пользователь. */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 8% 12%, rgba(192, 127, 31, 0.055), transparent 42%),
        radial-gradient(circle at 92% 40%, rgba(74, 58, 143, 0.045), transparent 46%),
        radial-gradient(circle at 50% 92%, rgba(217, 154, 58, 0.05), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: 0.2px;
}

a {
    color: inherit;
}

::selection {
    background: rgba(192, 127, 31, 0.22);
    color: var(--text-dark);
}

/* Доступность: видимое кольцо фокуса золотого тона на всех интерактивных элементах */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.calc-tab:focus-visible,
.gender-btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
    /* Транзишены не гасим целиком: цвет/прозрачность помогают считывать
       состояние интерфейса. Отключаем только то, что двигает или
       масштабирует элемент. */
    .btn, .calc-tab, .gender-btn, .feature-item, .summary-card, .pricing-card,
    .interp-card, .accordion-chevron, .accordion-header, .btn-accordion-toggle,
    .modal-close, .karmic-tile-card, .program-card, .chakra-row, #matrix {
        transition-property: color, background-color, border-color, box-shadow !important;
    }
}

/* Иконки Phosphor: выравнивание базовой линии */
i.ph, i.ph-fill, i.ph-bold, i.ph-duotone, i.ph-thin, i.ph-light {
    line-height: 1;
    vertical-align: -0.125em;
}

.ph-circle-notch {
    animation: spin 0.85s linear infinite;
}

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

/* Контейнеры */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====================================================================
   БРЕНД-МАРКА: сакральный октаграм (две наложенные CSS-геометрии),
   без эмодзи и без растровых ассетов
   ==================================================================== */
.brand-icon {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.brand-icon::before,
.brand-icon::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, #e3a53f, #8a5a17);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 4px 12px rgba(138, 90, 23, 0.32);
}

.brand-icon::after {
    transform: rotate(45deg);
    opacity: 0.92;
}

/* ====================================================================
   ШАПКА САЙТА
   ==================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-card);
    padding: 0;
    box-shadow: 0 4px 20px -4px rgba(28, 22, 12, 0.04);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-height);
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
}

.brand-text {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1.6px;
    background: linear-gradient(120deg, #201a12, #6d4a15, #8a5a17);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    transition: color 0.2s ease;
    cursor: pointer;
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}

.nav-link.active {
    color: var(--accent-gold-dark);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gold);
    border-radius: var(--radius-full);
}

@media (hover: hover) and (pointer: fine) {
    .nav-link:hover {
        color: var(--accent-gold-dark);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
    background: #ffffff;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }
    nav {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border-card);
        box-shadow: var(--shadow-card);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease-in-out);
        justify-content: flex-start;
    }
    nav.nav-open {
        max-height: 320px;
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
        padding: 10px 24px 18px;
    }
    .nav-link {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    .nav-link.active::after {
        display: none;
    }
    .header-actions .btn span.btn-label-full {
        display: none;
    }
}

/* ====================================================================
   КНОПКИ
   ==================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary,
.btn-gold {
    background: linear-gradient(135deg, #d99a3a, #8a5a17);
    color: #ffffff;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
}

.btn-danger-outline {
    background: #ffffff;
    color: var(--danger);
    border: 1px solid rgba(179, 34, 60, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover:not(:active),
    .btn-gold:hover:not(:active) {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px -4px rgba(138, 90, 23, 0.38);
        background: linear-gradient(135deg, #e3a53f, #8a5a17);
    }

    .btn-outline:hover {
        background: var(--bg-subtle);
        border-color: var(--accent-gold);
        color: var(--accent-gold-dark);
    }

    .btn-danger-outline:hover {
        background: var(--danger-soft);
        border-color: var(--danger);
    }
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

/* ====================================================================
   ГЛАВНЫЙ БЛОК HERO
   ==================================================================== */
.hero-section {
    padding: 32px 0 25px;
    text-align: left;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: start;
}

@media (max-width: 991px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 127, 31, 0.09);
    border: 1px solid rgba(192, 127, 31, 0.25);
    color: var(--accent-gold-dark);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.hero-title-left {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 0.2px;
}

/* Центрированный заголовок для второстепенных страниц (блог, курс) */
.hero-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.hero-title span {
    background: linear-gradient(120deg, #8a5a17, #d99a3a, var(--sacred-indigo));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-lede {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Вкладки 5 калькуляторов */
.calc-tabs-wrapper-left {
    display: flex;
    margin-bottom: 20px;
}

.calc-tabs {
    display: inline-flex;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    padding: 5px;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.calc-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.15s var(--ease-out);
    white-space: nowrap;
    border: none;
    background: transparent;
    font-family: var(--font-body);
}

.calc-tab:active {
    transform: scale(0.96);
}

.calc-tab.active {
    background: linear-gradient(135deg, #d99a3a, #8a5a17);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(138, 90, 23, 0.28);
}

@media (hover: hover) and (pointer: fine) {
    .calc-tab:hover:not(.active) {
        color: var(--text-dark);
    }
}

/* Форма расчета слева */
.calc-card-left {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    box-shadow: var(--shadow-card);
    position: relative;
}

.calc-card-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 3px;
    background: linear-gradient(90deg, #8a5a17, var(--sacred-indigo), #8a5a17);
    border-radius: 0 0 4px 4px;
}

/* Правая презентационная карточка */
.hero-right {
    display: flex;
    flex-direction: column;
}

.hero-presentation-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.hero-presentation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--sacred-indigo), #8a5a17, var(--sacred-indigo));
    border-radius: 0 0 4px 4px;
}

.presentation-header {
    margin-bottom: 22px;
}

.presentation-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fbf3e4;
    border: 1px solid rgba(192, 127, 31, 0.28);
    color: var(--accent-gold-dark);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.presentation-title {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.presentation-title span {
    background: linear-gradient(120deg, #8a5a17, #d99a3a, var(--sacred-indigo));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.presentation-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Продающие преимущества в правой части */
.presentation-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 13px 14px;
    background: var(--bg-subtle-2);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .feature-item:hover {
        background: #fbf3e4;
        border-color: rgba(192, 127, 31, 0.3);
        transform: translateX(3px);
    }
}

.feature-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: rgba(192, 127, 31, 0.1);
    color: var(--accent-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.feature-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.feature-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Статистика доверия */
.presentation-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid var(--border-card);
    padding-top: 18px;
}

.trust-stat {
    text-align: center;
}

.trust-num {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: var(--accent-gold-dark);
    font-family: var(--font-display);
}

.trust-lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.form-input {
    background: #fdfdfc;
    border: 1px solid #d8cfbf;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 15.5px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s var(--ease-out);
    box-shadow: inset 0 1px 3px rgba(28, 22, 12, 0.03);
}

.form-input::placeholder {
    color: #a89e8c;
}

.form-input:focus {
    border-color: var(--accent-gold);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.gender-toggle {
    display: flex;
    gap: 12px;
}

.gender-btn {
    flex: 1;
    padding: 11px;
    border-radius: var(--radius-md);
    border: 1px solid #d8cfbf;
    background: #f9f7f2;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s var(--ease-out);
}

.gender-btn:active {
    transform: scale(0.97);
}

.gender-btn.active {
    border-color: var(--accent-gold);
    background: rgba(192, 127, 31, 0.1);
    color: var(--accent-gold-dark);
    font-weight: 700;
}

/* Строка доверия под кнопкой расчёта: снимает типовые возражения
   (платно? регистрация? долго?) в момент первого действия */
.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 14px;
}

.hero-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-trust-strip i {
    color: var(--success);
    font-size: 13px;
}

/* ====================================================================
   ОБЛАСТЬ РЕЗУЛЬТАТОВ РАСЧЕТА
   ==================================================================== */
.result-section {
    display: none;
    margin-top: 34px;
    animation: fadeIn 0.4s var(--ease-out);
}

.result-section.active {
    display: block;
}

.result-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 45px;
}

@media (max-width: 991px) {
    .result-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

.matrix-visual-box {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    position: relative;
    width: 100%;
    min-height: 580px;
}

.summary-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.text-content-paragraph {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.75;
    color: #3a342b;
}

.text-content-paragraph strong {
    color: var(--text-dark);
    font-weight: 800;
}

.summary-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .summary-card:hover {
        border-color: var(--accent-gold);
        transform: translateY(-2px);
        box-shadow: var(--shadow-card-hover);
    }
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.summary-arcana-badge {
    background: #fbf3e4;
    color: var(--accent-gold-dark);
    border: 1px solid rgba(192, 127, 31, 0.3);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
}

.summary-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* ====================================================================
   РАЗДЕЛЫ РАСШИФРОВОК И ТИЗЕРНЫЙ ПЕЙВОЛЛ
   ==================================================================== */
.interpretations-section {
    margin-top: 55px;
}

.section-headline {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-subheadline {
    text-align: center;
    color: var(--text-muted);
    font-size: 15.5px;
    max-width: 620px;
    margin: 0 auto 30px;
    line-height: 1.65;
}

/* Липнет под шапкой во время чтения списка — сама плашка кликов не
   перехватывает (pointer-events: none), только кнопка внутри неё, иначе
   невидимая часть строки блокировала бы клики по карточкам под ней. */
.interp-controls {
    position: sticky;
    top: 88px;
    z-index: 40;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    pointer-events: none;
}

.interp-controls .btn-accordion-toggle {
    pointer-events: auto;
    box-shadow: var(--shadow-card);
}

.btn-accordion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-subtle-2);
    border: 1px solid var(--border-card);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s var(--ease-out);
}

.btn-accordion-toggle:active {
    transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
    .btn-accordion-toggle:hover {
        background: #fbf3e4;
        border-color: rgba(192, 127, 31, 0.4);
        color: var(--accent-gold-dark);
    }
}

.interp-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.interp-grid .interp-card {
    animation: fadeIn 0.5s var(--ease-out) backwards;
}
.interp-grid .interp-card:nth-child(1) { animation-delay: 0ms; }
.interp-grid .interp-card:nth-child(2) { animation-delay: 50ms; }
.interp-grid .interp-card:nth-child(3) { animation-delay: 100ms; }
.interp-grid .interp-card:nth-child(4) { animation-delay: 150ms; }
.interp-grid .interp-card:nth-child(5) { animation-delay: 200ms; }
.interp-grid .interp-card:nth-child(n+6) { animation-delay: 240ms; }

.interp-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .interp-card:hover {
        border-color: rgba(192, 127, 31, 0.4);
        box-shadow: var(--shadow-card-hover);
    }
}

.interp-card.free {
    border-left: 5px solid var(--success);
}

.interp-card.locked {
    border-left: 5px solid var(--accent-gold);
}

.interp-card.open {
    box-shadow: var(--shadow-card);
    border-color: rgba(192, 127, 31, 0.45);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    transition: background-color 0.2s ease, transform 0.15s var(--ease-out);
}

.accordion-header:active {
    transform: scale(0.995);
}

@media (hover: hover) and (pointer: fine) {
    .accordion-header:hover {
        background: #fdfbf6;
    }
}

.interp-card.open .accordion-header {
    background: var(--bg-subtle-2);
}

.accordion-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.accordion-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 18.5px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.35;
}

.card-arcana-title {
    font-size: 13px;
    color: var(--accent-gold-dark);
    font-weight: 700;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
}

.card-badge.free {
    background: var(--success-soft);
    color: #14563b;
    border: 1px solid rgba(31, 122, 82, 0.22);
}

.card-badge.locked {
    background: #fbf3e4;
    color: var(--accent-gold-dark);
    border: 1px solid rgba(192, 127, 31, 0.3);
}

.accordion-chevron {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f7f5f0;
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease-in-out), background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.interp-card.open .accordion-chevron {
    transform: rotate(180deg);
    background: #fbf3e4;
    color: var(--accent-gold-dark);
    border-color: rgba(192, 127, 31, 0.3);
}

.accordion-body {
    display: none;
    padding: 0 26px 26px 26px;
    animation: fadeIn 0.3s var(--ease-out);
}

.interp-card.open .accordion-body {
    display: block;
    border-top: 1px solid #f2ede3;
}

.accordion-body-inner {
    padding-top: 18px;
}

/* Тизер-превью: часть кликабельного заголовка, поэтому виден только пока
   карточка свёрнута — раскрытая карточка показывает полный контент вместо
   него, дублировать текст незачем */
.card-teaser-preview {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 64ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.interp-card.open .card-teaser-preview {
    display: none;
}

.locked-blur-overlay {
    position: relative;
    padding: 24px;
    background: #f8f6f1;
    border-radius: var(--radius-md);
    border: 1px dashed #d8cfbf;
    margin-top: 16px;
}

.blurred-text {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    color: #a89e8c;
    font-size: 14px;
    line-height: 1.8;
}

.locked-cta-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid var(--border-gold);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px -5px rgba(28, 22, 12, 0.16), 0 0 20px rgba(192, 127, 31, 0.1);
}

.locked-cta-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.locked-cta-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.full-content-box {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.interpretation-prose {
    font-size: 15px;
    line-height: 1.8;
    color: #3a342b;
}

.interpretation-prose h3 {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 18px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(192, 127, 31, 0.16);
}

.interpretation-prose h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--sacred-indigo);
    margin-top: 14px;
    margin-bottom: 6px;
}

.interpretation-prose p {
    margin-bottom: 12px;
}

.interpretation-prose ul, .interpretation-prose ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.interpretation-prose li {
    margin-bottom: 6px;
}

.interpretation-prose strong {
    color: var(--text-dark);
    font-weight: 800;
}

.energy-block {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    line-height: 1.7;
}

.energy-block h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
}

.energy-block.positive {
    background: var(--success-soft);
    border-left: 4px solid #1f7a52;
    color: #123c28;
}

.energy-block.negative {
    background: var(--danger-soft);
    border-left: 4px solid #b3223c;
    color: #5c1220;
}

.energy-block.recomms {
    background: #eef4fa;
    border-left: 4px solid #1d6fa5;
    color: #123b57;
}

/* ====================================================================
   МОДАЛЬНОЕ ОКНО ТАРИФОВ И ОПЛАТЫ
   ==================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 19, 11, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: #ffffff;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 920px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: var(--shadow-modal);
    position: relative;
    animation: modalPop 0.3s var(--ease-out);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f2eb;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s var(--ease-out);
}

.modal-close:active {
    transform: scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
    .modal-close:hover {
        background: #ece7db;
        color: var(--text-dark);
    }
}

.modal-title {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.modal-sub {
    color: var(--text-muted);
    font-size: 14.5px;
}

/* Таймер скидки */
.countdown-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f7eef0;
    border: 1px solid rgba(179, 34, 60, 0.22);
    color: #8f1c33;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 24px;
}

.countdown-timer {
    font-family: 'Outfit', monospace;
    font-size: 16px;
    font-weight: 800;
    color: #8f1c33;
    font-variant-numeric: tabular-nums;
}

/* Сетка тарифов */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.pricing-grid .pricing-card {
    animation: fadeIn 0.4s var(--ease-out) backwards;
}
.pricing-grid .pricing-card:nth-child(1) { animation-delay: 0ms; }
.pricing-grid .pricing-card:nth-child(2) { animation-delay: 40ms; }
.pricing-grid .pricing-card:nth-child(3) { animation-delay: 80ms; }
.pricing-grid .pricing-card:nth-child(4) { animation-delay: 120ms; }

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.pricing-card:active {
    transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
    .pricing-card:hover:not(:active) {
        border-color: var(--accent-gold);
        transform: translateY(-4px);
        box-shadow: var(--shadow-card-hover);
    }
}

.pricing-card.selected {
    border: 2px solid var(--accent-gold);
    background: #fdf7ec;
    box-shadow: 0 10px 25px rgba(192, 127, 31, 0.16);
}

.pricing-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #c07f1f, #8f1c33);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(138, 90, 23, 0.3);
}

.pricing-title {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 27px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-family: var(--font-display);
}

.pricing-old-price {
    font-size: 13px;
    color: var(--text-faint);
    text-decoration: line-through;
    margin-bottom: 12px;
}

.pricing-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Форма заказа в модалке */
.checkout-box {
    background: #f8f6f1;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 20px;
    border: 1px solid #ece6d8;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: center;
}

.checkout-total-label {
    font-size: 12.5px;
    color: var(--text-muted);
}

.checkout-total-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-gold-dark);
    font-family: var(--font-display);
}

/* Напоминание о ценности прямо перед оплатой: снижает тревогу отказа */
.value-recap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: center;
    margin: 22px 0 4px;
    padding: 16px 20px;
    background: var(--success-soft);
    border: 1px solid rgba(31, 122, 82, 0.18);
    border-radius: var(--radius-md);
}

.value-recap-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #14563b;
}

.value-recap-item i {
    color: var(--success);
    font-size: 15px;
}

.checkout-actions {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.checkout-secure-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 14px;
}

.checkout-secure-note span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ====================================================================
   УВЕДОМЛЕНИЯ TOASTS
   ==================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid var(--border-card);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(28, 22, 12, 0.14);
    animation: slideIn 0.3s var(--ease-out);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--info);
}

/* ====================================================================
   ПОДВАЛ САЙТА
   ==================================================================== */
.footer {
    border-top: 1px solid var(--border-card);
    background: #ffffff;
    padding: 55px 0 35px;
    margin-top: 85px;
    font-size: 14px;
    color: var(--text-muted);
    box-shadow: 0 -4px 20px rgba(28, 22, 12, 0.02);
}

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

.footer-col h4 {
    color: var(--text-dark);
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--font-body);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 13.5px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .footer-col a:hover {
        color: var(--accent-gold-dark);
    }
}

.footer-bottom {
    border-top: 1px solid var(--border-card);
    padding-top: 24px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-faint);
}

/* ====================================================================
   АНИМАЦИИ
   ==================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ====================================================================
   АДАПТИВНОСТЬ
   ==================================================================== */
@media (max-width: 960px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title-left {
        font-size: 27px;
    }
    .hero-title {
        font-size: 28px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .checkout-total-amount, .checkout-total-label {
        text-align: left;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .metrics-row {
        grid-template-columns: 1fr;
    }
}
