@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'El Messiri', sans-serif;
    color: #052E98;
    min-height: 100vh;
    background-image: url('../assets/bd.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-y: auto;
}

.matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 30px 20px;
}

.matrix-logo-text {
    font-size: 36px;
    font-weight: 600;
    color: #052E98;
    text-decoration: none;
}

.nav-link.account {
    text-decoration: none;
    color: #052E98;
    font-weight: 500;
    font-size: 18px;
}

.matrix-main-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 80px;
}

.layout-container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px; 
}

.matrix-hero-block {
    width: 100%;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.hero-title {
    font-size: 32px;
    font-weight: 600;
    color: #052E98;
    margin-bottom: 20px;
}

.hero-user-data {
    display: flex;
    gap: 60px;
    font-size: 20px;
    color: #052E98;
    justify-content: flex-start;
}

.hero-user-data .data-item {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.hero-user-data .label { font-weight: 700; opacity: 0.9; }
.hero-user-data .value { font-weight: 400; }

.matrix-result-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    margin-bottom: 60px;
    padding: 0; 
}

.health-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 35px 40px;
    width: 480px;
    flex-shrink: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    font-family: 'Open Sans', sans-serif;
}

.card-title { 
    font-family: 'El Messiri', sans-serif;
    font-size: 24px; 
    font-weight: 600; 
    margin-bottom: 25px; 
    color: #3e2723; 
}

.health-table { width: 100%; }
.table-header, .table-row { display: grid; grid-template-columns: 140px 1fr 1fr 1fr; align-items: center; }
.table-header { padding-bottom: 12px; font-weight: 600; border-bottom: 1px solid #f0f0f0; margin-bottom: 10px; }
.table-row { padding: 10px 0; border-bottom: 1px dotted #e0e0e0; }
.table-row:last-child { border-bottom: none; padding-top: 15px; font-weight: 700; }
.table-header span:not(.col-chakra), .table-row span:not(.col-chakra) { text-align: center; }

.col-chakra { display: flex; align-items: center; gap: 5px; }
.chakra-num { width: 20px; font-weight: 700; }
.chakra-name { width: 95px; white-space: nowrap; font-size: 14px; }

.info-icon {
    width: 16px; height: 16px;
    border-radius: 50%; border: 1px solid #4a90e2;
    color: #4a90e2; display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-style: italic; cursor: pointer; flex-shrink: 0;
    position: relative; 
}

.info-icon::after {
    content: attr(data-tooltip);
    position: absolute; bottom: 140%; left: 50%;
    transform: translateX(-50%); width: 220px;
    background: #ffffff; color: #333; padding: 12px;
    border-radius: 10px; font-size: 12px; font-weight: 400;
    font-family: 'Open Sans', sans-serif; line-height: 1.4; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); border: 1px solid #eee;
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000; pointer-events: none;
}

.info-icon::before {
    content: ""; position: absolute; bottom: 100%; left: 50%; margin-left: -6px;
    border-width: 6px; border-style: solid; border-color: #ffffff transparent transparent transparent;
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000;
}

.info-icon:hover::after, .info-icon:hover::before {
    opacity: 1; visibility: visible; bottom: 150%;
}
.info-icon:hover::before { bottom: 110%; }

.matrix-chart-wrapper { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    padding-top: 20px; 
}
.matrix-main-chart { width: 100%; max-width: 550px; height: auto; }

.destiny-wrapper { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    margin-top: 20px; 
}

.destiny-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 30px; 
    justify-content: center; 
    max-width: 1300px; 
    font-family: 'Open Sans', sans-serif;
}

.destiny-card { 
    width: 280px; 
    height: 300px; 
    border-radius: 40px; 
    padding: 30px 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); 
}

.blue-card { background: #dcf5ff; } .red-card { background: #fff0eb; }
.purple-card { background: #fbe2ff; } .green-card { background: #e8ffe8; }

.destiny-title { 
    font-family: 'Open Sans', sans-serif; 
    font-size: 16px; 
    font-weight: 600; 
    text-align: center; 
    margin-bottom: 25px; 
    color: #4a90e2; 
}
.destiny-title span { font-size: 14px; opacity: 0.8; color: #333; font-weight: 400; }
.red-card .destiny-title { color: #ff6b6b; } .purple-card .destiny-title { color: #6c5ce7; } .green-text { color: #2ecc71; }

.destiny-values { display: flex; justify-content: space-around; width: 100%; margin-bottom: 10px; }
.val-group { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.val-label { font-size: 15px; font-weight: 500; } .val-num { font-size: 18px; font-weight: 700; }

.destiny-total {
    margin-top: auto;
    position: relative;
    padding-top: 40px;
    width: 100%;
    text-align: center;
    z-index: 1; 
}

.destiny-total::before,
.destiny-total::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 55px;
    top: 15px;
}

.destiny-total::before {
    right: 50%;
    transform-origin: right center;
    transform: rotate(32deg);
}

.destiny-total::after {
    left: 50%;
    transform-origin: left center;
    transform: rotate(-32deg);
}

.blue-card .destiny-total::before,
.blue-card .destiny-total::after {
    background-color: #4a90e2;
}

.red-card .destiny-total::before,
.red-card .destiny-total::after {
    background-color: #ff6b6b;
}

.purple-card .destiny-total::before,
.purple-card .destiny-total::after {
    background-color: #6c5ce7;
}

.ancestor-table { display: flex; flex-direction: column; gap: 20px; margin-top: 15px; width: 100%; }
.ancestor-row { display: flex; justify-content: space-between; padding: 0 15px; font-weight: 600; font-size: 16px; }
.anc-nums { letter-spacing: 1px; }

.red { color: #e53935; } .orange { color: #fb8c00; } .yellow { color: #f9a825; }
.green { color: #43a047; } .light-blue { color: #039be5; } .blue { color: #1e88e5; } .purple { color: #8e24aa; }

.tariffs-container-with-bg {
    position: relative;
    width: 100%;
    margin-top: 60px;
    padding-bottom: 20px;
}

.circles-top-left, 
.circles-bottom-right {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: 600px;
    height: auto;
    opacity: 0.8;
    padding-bottom: 200px;
}

.bg-circles-img {
    width: 100%;
    height: auto;
    display: block;
}

.circles-top-left {
    top: 0;
    left: -100px;
}

.circles-bottom-right {
    bottom: -100px;
    right: -100px;
}

.modules-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 40px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.module-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.icon-wrapper {
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.side-icon {
    width: 28px;
    height: auto;
    display: block;
}

.module-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    min-height: 50px;
    cursor: default;
}

.module-title {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #999;
    margin: 0;
}

.status-text {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.02em;
    color: #20A70E;
    text-align: center;
}

.module-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: all 0.4s ease;
    background: #fff;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.module-row.active .module-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.module-row.active .module-content {
    max-height: 2000px;
    opacity: 1;
    padding-bottom: 20px;
    border-top: 1px solid #f0f0f0;
}

.module-row.is-open .module-header {
    cursor: pointer;
}

.module-row.is-open .module-title {
    color: #333;
}

.module-row.is-locked .module-card {
    background: #fff;
}

.module-row.is-locked .icon-wrapper {
    position: relative;
    cursor: help;
}

/* Зеленый заголовок (В позитиве) */
.content-subtitle.text-green {
    color: #20A70E; /* Насыщенный зеленый */
}

/* Розовый заголовок (В негативе) */
.content-subtitle.text-red {
    color: #D2320F; /* Ярко-розовый */
}
.module-row.is-locked:hover::after {
    content: attr(data-locked-msg);
    position: absolute;
    top: -40px;
    right: 0;
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}

.tariffs-section {
    width: 100%;
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 20px;
}

.tariffs-header-block {
    text-align: center;
    margin-bottom: 50px;
}

.tariffs-main-title {
    font-family: 'El Messiri', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #052E98;
    line-height: 1.4;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.tariff-card {
    display: flex;
    background: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    min-height: 250px;
}

.tariff-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
}

.tariff-name {
    font-family: 'El Messiri', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.tariff-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
}

.tariff-meta {
    font-size: 13px;
    color: #888;
    margin-top: auto;
}

.tariff-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tariff-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.check-icon {
    color: #20A70E;
    margin-top: 4px;
}

.tariff-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.discount-badge {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #FF0077;
    font-weight: 700;
}

.tariff-price-block {
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.bg-yellow { background-color: #FDF398; }
.bg-blue   { background-color: #94D6F7; }
.bg-green  { background-color: #96E6A6; }
.bg-pink   { background-color: #FFA6F3; }

.price-val {
    font-family: 'El Messiri', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.old-price {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    text-decoration: line-through;
    color: #555;
    margin-bottom: 5px;
}

.tariff-btn {
    display: inline-block;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #1a0533;
    border: none;
    font-family: 'El Messiri', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.tariff-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.matrix-footer {
    width: 100%;
    max-width: 1300px;
    margin: 80px auto 0;
    padding: 0 20px 50px;
    font-family: 'Raleway', sans-serif;
}

.footer-divider {
    width: 100%;
    height: 1.5px;
    background-color: #ffffff;
    margin-bottom: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.col-left { align-items: flex-start; }
.col-center { align-items: center; }
.col-right { align-items: flex-end; }

.footer-link, .footer-support {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer-brand {
    font-family: 'El Messiri', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.footer-copyright {
    font-size: 14px;
    color: #000000;
    font-weight: 400;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.social-btn {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.social-btn i {
    font-size: 24px;
    color: #052E98;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(5, 46, 152, 0.2);
}

.social-btn .fa-whatsapp:hover {
    color: #25D366;
}

.footer-link:hover, .footer-support:hover {
    opacity: 0.7;
}

.footer-legal {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* --- ДОБАВЛЕНО: Скрываем мобильную кнопку по умолчанию --- */
.mobile-btn {
    display: none;
}
/* --------------------------------------------------------- */

/* =========================================
   1. ПЛАНШЕТЫ И НОУТБУКИ (до 1200px)
   ========================================= */
@media screen and (max-width: 1200px) {
    
    /* --- Общие отступы (делаем поменьше, 20px вместо 5%) --- */
    .matrix-header, 
    .layout-container,
    .modules-wrapper,
    .tariffs-section,
    .matrix-footer {
        max-width: 100%;
        padding-left: 20px; 
        padding-right: 20px;
        box-sizing: border-box; 
    }

    /* --- Главный блок (Hero) --- */
    .matrix-hero-block {
        text-align: center;
        padding: 0 10px;
    }
    .hero-user-data {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    /* --- Результаты (Матрица + Карта здоровья) --- */
    .matrix-result-flex {
        display: flex;
        flex-direction: column;
        align-items: center; 
        gap: 40px;
    }

    /* 🔥 ВАЖНОЕ ИЗМЕНЕНИЕ: МЕНЯЕМ ПОРЯДОК 🔥 */
    
    /* 1. Диаграмма встает ПЕРВОЙ (сразу после hero-block) */
    .matrix-chart-wrapper {
        order: 1; 
        width: 100%;
        max-width: 600px; /* Ограничиваем, чтобы не была гигантской */
        margin: 0 auto;   /* Центрируем */
    }

    /* 2. Карта здоровья встает ВТОРОЙ (внизу) */
    .health-card {
        order: 2;
        width: 100%;
        max-width: 100%; 
    }

    /* Сетка предназначений */
    .destiny-grid {
        gap: 20px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* --- Модули (Аккордеон) --- */
    .modules-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch; 
    }
    .module-row {
        width: 100%;
        max-width: 100%;
    }

    /* --- ИСПРАВЛЕНИЕ ФОНОВЫХ КРУЖКОВ (ОБРЕЗКА) --- */
    .tariffs-container-with-bg {
        position: relative;
        overflow: hidden; 
    }

    .circles-bottom-right {
        transform: translateX(60%);
        max-width: 80%; 
    }
}

/* =========================================
   2. СРЕДНИЕ ЭКРАНЫ (до 992px)
   ========================================= */
@media screen and (max-width: 992px) {
    /* Тарифы в одну колонку */
    .tariffs-grid {
        display: grid;
        grid-template-columns: 1fr; 
        width: 100%;
        max-width: 100%; 
        gap: 20px;
    }

    .tariff-card {
        flex-direction: column;
        width: 100%;
    }
    
    /* Блок цены в тарифе */
    .tariff-price-block {
        width: 100%;
        height: auto;
        padding: 20px;
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
    .price-val { margin-bottom: 0; }
    .old-price { margin-bottom: 0; margin-right: 10px; }
}

/* =========================================
   3. МОБИЛЬНЫЕ (до 768px)
   ========================================= */
@media screen and (max-width: 768px) {
/* --- УСМИРЯЕМ КАРТОЧКИ ПРЕДНАЗНАЧЕНИЯ --- */
    .destiny-wrapper {
        width: 100%;
        padding: 0; /* Контролируем внешние отступы */
        box-sizing: border-box;
    }

    .destiny-grid {
        display: flex; 
        flex-direction: column; /* Выстраиваем строго в колонку */
        gap: 20px;
        width: 100%;
    }

    .destiny-card {
        width: 100%; /* Убиваем жесткие 280px, теперь карточка резиновая */
        max-width: 100%;
        height: auto; /* Убиваем жесткие 300px, чтобы контент не выпадал */
        min-height: 250px; /* Минимальная высота для красоты */
        padding: 25px 20px;
        box-sizing: border-box;
    }

    .destiny-values {
        padding: 0 20px; /* Чуть сдвигаем значения к центру */
        margin-bottom: 20px;
    }

    .destiny-total {
        margin-top: 20px; /* Задаем отступ сверху, раз высота теперь auto */
    }

    /* Делаем декоративные линии чуть короче, чтобы не вылезли */
    .destiny-total::before,
    .destiny-total::after {
        width: 45px;
    }

    .ancestor-table {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .matrix-header, 
    .layout-container,
    .modules-wrapper,
    .tariffs-section,
    .matrix-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Футер в столбик */
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .col-socials { display: contents; }

    /* Соцсети */
    .social-icons-row {
        order: 1; 
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
        gap: 20px;
    }

    .social-circle {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .social-circle i { font-size: 24px; }

    /* Бренд и копирайт */
    .col-brand {
        order: 2;
        margin-bottom: 10px;
    }

    .footer-brand-text, 
    .footer-copyright {
        display: block; 
        font-family: 'Open Sans', sans-serif;
        font-size: 14px;
        color: #333;
        margin: 5px 0;
    }
    .footer-brand-text::after { content: ""; } 

    /* Ссылки */
    .col-links {
        order: 3;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .footer-link {
        font-size: 16px;
        color: #000;
        text-decoration: none;
    }

    /* Поддержка */
    .footer-support {
        order: 4;
        margin-top: 10px;
        font-size: 16px;
        color: #000;
        text-decoration: underline;
    }

    .footer-legal {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 11px;
    }

    /* --- ДОБАВЛЕНО: Кнопка "РАССЧИТАТЬ ПРОГНОЗ ПО ГОДАМ" для мобильных --- */
    .submit-btn {
        display: none; /* Прячем основную десктопную кнопку */
    }
    
    .mobile-btn {
        display: flex; 
        order: 5; 
        width: 100%; 
        height: 65px;
        align-items: center; 
        justify-content: center;
        background-color: #b0b5bd; 
        color: white;
        border-radius: 35px; 
        font-weight: 700; 
        font-size: 14px; 
        text-transform: uppercase;
        box-shadow: 0 10px 20px rgba(176, 181, 189, 0.3);
        margin-top: 0; 
        border: none;
        cursor: pointer;
    }
    /* --------------------------------------------------------------------- */
}

/* Контейнер с прокруткой (если не влезает на телефон) */
.years-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    /* Скрываем полосу прокрутки для красоты */
    scroll-width: none; 
}
.years-wrapper::-webkit-scrollbar { display: none; }

/* Список овалов в ряд */
.years-list {
    display: flex;
    gap: 10px; /* Расстояние между овалами */
    padding: 0 5px;
}

/* Стиль одного овала (Неактивный) */
.year-bubble {
    flex: 0 0 auto; /* Не сжимать */
    min-width: 80px;
    padding: 10px 20px;
    
    border: 1px solid #E0E0E0; /* Светло-серая рамка */
    border-radius: 50px;       /* Овальная форма */
    background: #fff;
    
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #333;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

/* Стиль АКТИВНОГО овала (Текущий возраст) */
.year-bubble.active {
    border: 2px solid #56CCF2;
    font-weight: 700;
    color: #000;
}

.year-bubble.locked-year {
    background: #f0f0f0;
    color: #bbb;
    border-color: #ddd;
    cursor: not-allowed;
    position: relative;
}
.year-bubble.locked-year::after {
    content: '\1F512';
    font-size: 10px;
    position: absolute;
    top: -4px;
    right: -2px;
}
/* =========================================================
   MATRIX CHART — ПОЛНАЯ ПЕРЕСБОРКА (СТАБИЛЬНАЯ ВЕРСИЯ)
   ВСТАВИТЬ В САМЫЙ НИЗ ФАЙЛА
   ========================================================= */

/* Контейнер диаграммы */
.matrix-chart-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

/* Обертка для картинки + значений */
.matrix-chart-box {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1 / 1; /* квадрат */
}

/* Само изображение */
.matrix-main-chart {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.svg-val{
    text-anchor: middle;
    dominant-baseline: middle;
    font-weight: 800;
}

/* Базовые стили всех чисел */
.mat-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
    z-index: 20;
    color: #333;
    pointer-events: none;
}

/* Центр */
.pos-center {
    top: 50%;
    left: 50%;
    font-size: 26px;
    color: #d4ac0d;
}

/* Главные точки (крест) */
.pos-month  { top: 12%; left: 50%; font-size: 22px; color: #8e44ad; }
.pos-day    { top: 50%; left: 12%; font-size: 22px; color: #8e44ad; }
.pos-year   { top: 50%; left: 88%; font-size: 22px; color: #c0392b; }
.pos-bottom { top: 88%; left: 50%; font-size: 22px; color: #c0392b; }

/* Родовые углы */
.pos-tl { top: 23%; left: 23%; font-size: 18px; color: #555; }
.pos-tr { top: 23%; left: 77%; font-size: 18px; color: #555; }
.pos-br { top: 77%; left: 77%; font-size: 18px; color: #555; }
.pos-bl { top: 77%; left: 23%; font-size: 18px; color: #555; }

/* Внешний круг (возрастные промежутки) */
.pos-5  { top: 36%; left: 16%; font-size: 12px; }
.pos-15 { top: 16%; left: 36%; font-size: 12px; }
.pos-25 { top: 16%; left: 64%; font-size: 12px; }
.pos-35 { top: 36%; left: 84%; font-size: 12px; }
.pos-45 { top: 64%; left: 84%; font-size: 12px; }
.pos-55 { top: 84%; left: 64%; font-size: 12px; }
.pos-65 { top: 84%; left: 36%; font-size: 12px; }
.pos-75 { top: 64%; left: 16%; font-size: 12px; }

/* Вертикаль (чакры) */
.pos-sky-1   { top: 28%; left: 50%; font-size: 14px; color: #2980b9; }
.pos-sky-2   { top: 38%; left: 50%; font-size: 14px; color: #3498db; }

.pos-earth-1 { top: 62%; left: 50%; font-size: 14px; color: #e67e22; }
.pos-earth-2 { top: 72%; left: 50%; font-size: 14px; color: #c0392b; }

/* Горизонталь */
.pos-pers-1  { top: 50%; left: 28%; font-size: 14px; color: #27ae60; }
.pos-pers-2  { top: 50%; left: 38%; font-size: 14px; color: #27ae60; }

.pos-money-1 { top: 50%; left: 72%; font-size: 14px; color: #555; }
.pos-money-2 { top: 50%; left: 62%; font-size: 14px; color: #555; }

/* Линия любви / денег */
.pos-money-entry  { top: 42%; left: 63%; font-size: 14px; color: #27ae60; font-weight: 900; }
.pos-love-entry   { top: 63%; left: 57%; font-size: 14px; color: #e74c3c; font-weight: 900; }
.pos-money-center { top: 57%; left: 63%; font-size: 14px; color: #333; font-weight: 900; }

/* Мобильная адаптация */
@media (max-width: 480px) {
    .mat-val { font-size: 11px; }
    .pos-center { font-size: 18px; }
    .pos-month,
    .pos-day,
    .pos-year,
    .pos-bottom { font-size: 16px; }
}

/* ===== КОНВЕРСИОННЫЕ ЭЛЕМЕНТЫ ===== */

/* Соцдоказательства */
.social-proof-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 16px 20px;
    background: rgba(106, 13, 173, 0.08);
    border-radius: 12px;
    margin: 30px auto;
    max-width: 900px;
    flex-wrap: wrap;
}
.proof-item {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}
.proof-item strong {
    color: #6a0dad;
}

/* CTA оффер */
.cta-offer-block {
    max-width: 520px;
    margin: 40px auto;
    padding: 35px 30px;
    background: linear-gradient(135deg, #1a0533 0%, #2d1150 50%, #1a0533 100%);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(106, 13, 173, 0.3);
    position: relative;
}
.offer-badge {
    display: inline-block;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #1a0533;
    font-weight: 700;
    font-size: 1.3em;
    padding: 8px 24px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.offer-prices {
    margin-bottom: 15px;
}
.offer-old-price {
    color: #ff4444;
    text-decoration: line-through;
    font-size: 1.4em;
    margin-right: 12px;
    opacity: 0.8;
}
.offer-new-price {
    color: #00ff88;
    font-size: 2.5em;
    font-weight: 800;
}
.offer-desc {
    color: rgba(255,255,255,0.85);
    font-size: 1em;
    margin-bottom: 12px;
}
.offer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    display: inline-block;
}
.offer-list li {
    color: #fff;
    padding: 5px 0;
    font-size: 1em;
}
.offer-timer-wrapper {
    margin-bottom: 20px;
}
.offer-timer-label {
    color: #ffd700;
    font-size: 0.95em;
    display: block;
    margin-bottom: 8px;
}
.offer-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.timer-block {
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 14px;
    color: #fff;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}
.timer-block small {
    font-size: 0.4em;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
}
.timer-sep {
    color: #ffd700;
    font-size: 1.5em;
    font-weight: 700;
}

/* Золотая CTA кнопка (по ТЗ) */
.cta-gold-btn {
    display: inline-block;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #1a0533;
    font-weight: 700;
    font-size: 1.2em;
    padding: 18px 35px;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.cta-gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

/* Карусель отзывов */
.reviews-carousel {
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    padding: 0 20px;
}
.reviews-title {
    text-align: center;
    font-family: 'El Messiri', sans-serif;
    color: #2d1150;
    margin-bottom: 20px;
    font-size: 1.4em;
}
.reviews-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
    min-width: 260px;
    max-width: 280px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    scroll-snap-align: start;
    flex-shrink: 0;
}
.review-stars {
    font-size: 1.2em;
    margin-bottom: 10px;
}
.review-text {
    font-size: 0.95em;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}
.review-author {
    font-size: 0.85em;
    color: #888;
    font-weight: 500;
}

/* Попап "Покупают сейчас" */
.live-purchase-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInLeft 0.4s ease;
    max-width: 320px;
}
.live-purchase-popup::before {
    content: '🛒';
    font-size: 1.3em;
}
.popup-text {
    font-size: 0.9em;
    color: #333;
}
.popup-close {
    position: absolute;
    top: 4px;
    right: 8px;
    cursor: pointer;
    color: #999;
    font-size: 1.2em;
}

@keyframes slideInLeft {
    from { transform: translateX(-120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* Mobile adaptation for conversion elements */
@media (max-width: 768px) {
    .social-proof-bar { flex-direction: column; gap: 10px; align-items: center; }
    .cta-offer-block { margin: 20px 15px; padding: 25px 20px; }
    .offer-new-price { font-size: 2em; }
    .reviews-carousel { padding: 0 10px; }
    .review-card { min-width: 240px; }
    .live-purchase-popup { left: 10px; right: 10px; max-width: none; bottom: 10px; }
}