/* Стили отчётов из testpages/new — общие переменные и блоки для разделов «Узнать себя» */
:root {
    --primary-glow: rgba(124, 58, 237, 0.2);
    --gradient: linear-gradient(145deg, #f1eaff, #ffffff);
    --shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.1);
    --shadow-hover: 0 30px 50px -10px rgba(124, 58, 237, 0.2);
}

/* Контейнеры страниц (если не заданы в common) */
.pythagoras-container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 5%;
}

/* Заголовок страницы — градиент как в new */
.calculator-container .page-header h1,
.pythagoras-container .page-header h1,
.hd-container .page-header h1,
.natal-container .page-header h1,
.yearly-container .page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(145deg, var(--primary), #4c1d95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Форма — градиент и тень как в new */
.calculator-form-section,
.pythagoras-form-section,
.hd-form-section,
.natal-form-section,
.yearly-form-section {
    background: var(--gradient);
    border-radius: 48px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

/* Результат — общий блок */
.numerology-result,
.pythagoras-result,
.hd-result,
.natal-result,
.yearly-result {
    background: #fff;
    border-radius: 48px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 3rem;
    margin-top: 2rem;
    display: none;
    box-shadow: var(--shadow);
}
.numerology-result.visible,
.pythagoras-result.visible,
.hd-result.visible,
.natal-result.visible,
.yearly-result.visible { display: block; }

/* Шапка результата */
.result-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 2rem;
}
.person-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(145deg, var(--primary), #4c1d95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.person-info p { color: var(--text-soft); font-size: 1.1rem; }

/* Карточки чисел */
.numbers-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.number-card {
    background: var(--gradient);
    border-radius: 32px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.number-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}
.number-card .number-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}
.number-card .number-value {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(145deg, var(--primary), #4c1d95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.number-card .number-desc { color: var(--text-dark); font-weight: 600; margin-bottom: 1rem; }
.number-card .number-meaning {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    transition: all 0.4s ease;
}
.number-card:hover .number-meaning { opacity: 1; max-height: 200px; }

/* Детали и кармическая секция */
.details-section {
    background: var(--gray-light);
    border-radius: 36px;
    padding: 2rem;
    margin: 3rem 0;
}
.details-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 2rem; color: var(--primary); }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.detail-item {
    background: #fff;
    border-radius: 28px;
    padding: 1.8rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.detail-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.detail-name { font-weight: 700; color: var(--primary); margin-bottom: 0.8rem; font-size: 1.2rem; }
.detail-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(145deg, var(--primary), #4c1d95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.detail-desc { color: var(--text-dark); margin-bottom: 0.8rem; font-weight: 600; }
.detail-full { color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }

.karmic-section {
    background: linear-gradient(145deg, var(--primary-soft), #fff);
    border-radius: 36px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}
.karmic-section::before {
    content: '☯';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.05;
    color: var(--primary);
}
.karmic-title { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--primary); }
.karmic-text { font-size: 1.1rem; line-height: 1.8; color: var(--text-dark); }

/* Психоматрица — ряды, таблица, доп. числа, линии */
.rows-section {
    background: var(--gradient);
    border-radius: 36px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}
.row-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #fff;
    border-radius: 60px;
    border: 1px solid var(--border-light);
}
.row-label { min-width: 160px; font-weight: 600; color: var(--primary); padding-left: 1.5rem; }
.row-numbers { font-size: 1.3rem; font-weight: 600; letter-spacing: 4px; color: var(--text-dark); }

.matrix-table .cell-meaning {
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 0 0.5rem;
    border-top: 1px dashed var(--border-light);
    padding-top: 0.8rem;
}

.matrix-table { width: 100%; border-collapse: collapse; margin: 2.5rem 0; background: #fff; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow); }
.matrix-table td { border: 1px solid var(--border-light); padding: 1.5rem 0.8rem; text-align: center; vertical-align: top; width: 33.33%; }
.matrix-table .cell-header { font-weight: 700; color: var(--primary); margin-bottom: 0.8rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.matrix-table .cell-value { font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 0.5rem; background: linear-gradient(145deg, var(--primary), #4c1d95); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.matrix-table .cell-desc { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 0.8rem; }

.extra-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.extra-card {
    background: var(--gray-light);
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}
.extra-title { font-weight: 600; color: var(--primary); margin-bottom: 0.8rem; font-size: 1.1rem; }
.extra-value { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.extra-desc { color: var(--text-soft); font-size: 0.95rem; }

.lines-section { margin: 3rem 0; }
.lines-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.line-card {
    background: #fff;
    border-radius: 28px;
    padding: 1.8rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.line-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.line-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.line-icon { font-size: 1.5rem; }
.line-name { font-size: 1.2rem; font-weight: 600; }
.line-cells { font-size: 1.5rem; font-weight: 600; color: var(--primary); margin-bottom: 0.8rem; }
.line-desc { color: var(--text-soft); font-size: 0.95rem; }

/* Дизайн человека */
.type-banner {
    background: var(--gradient);
    border-radius: 36px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.type-content { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.type-icon {
    font-size: 4rem;
    background: #fff;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}
.type-name { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--primary); }
.type-strategy { font-size: 1.3rem; margin-bottom: 0.5rem; }
.type-desc { color: var(--text-soft); font-size: 1rem; }
.type-authority {
    background: #fff;
    padding: 0.8rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--primary-light);
}

.profile-section { background: var(--gray-light); border-radius: 36px; padding: 2rem; margin-bottom: 2.5rem; }
.profile-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.profile-value { font-size: 3rem; font-weight: 700; color: var(--primary); }
.profile-name { font-size: 1.8rem; font-weight: 600; }
.profile-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.line-card .line-number { font-size: 1.2rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; }
.line-card .line-desc { color: var(--text-dark); }

.centers-section { margin-bottom: 2.5rem; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 2rem; color: var(--primary); }
.centers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.center-card {
    background: #fff;
    border-radius: 28px;
    padding: 1.8rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.center-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.center-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.center-icon { font-size: 2rem; }
.center-name { font-size: 1.2rem; font-weight: 600; }
.center-status { display: inline-block; padding: 0.3rem 1rem; border-radius: 60px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
.status-defined { background: var(--primary); color: #fff; }
.status-undefined { background: var(--border-light); color: var(--text-soft); }
.center-desc { color: var(--text-soft); font-size: 0.95rem; }

.channels-section { margin-bottom: 2.5rem; }
.channels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.channel-card {
    background: var(--gray-light);
    border-radius: 28px;
    padding: 1.8rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.channel-card:hover { border-color: var(--primary-light); transform: translateY(-3px); }
.channel-name { font-size: 1.2rem; font-weight: 600; color: var(--primary); margin-bottom: 0.8rem; }
.channel-numbers { font-size: 1.1rem; margin-bottom: 0.8rem; }
.channel-desc { color: var(--text-soft); font-size: 0.95rem; }

.definition-section { background: var(--gradient); border-radius: 36px; padding: 2rem; margin-bottom: 2.5rem; }
.definition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.definition-card { background: #fff; border-radius: 24px; padding: 1.5rem; text-align: center; }
.definition-label { color: var(--text-soft); margin-bottom: 0.5rem; }
.definition-value { font-size: 1.5rem; font-weight: 600; color: var(--primary); }

.cross-section { background: var(--gray-light); border-radius: 36px; padding: 2rem; margin-bottom: 2.5rem; }
.cross-name { font-size: 1.8rem; font-weight: 600; color: var(--primary); margin-bottom: 1rem; }
.cross-desc { font-size: 1.1rem; line-height: 1.8; }

/* Натальная карта */
.chart-container {
    background: var(--gradient);
    border-radius: 36px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.chart-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--primary); }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.chart-circle {
    aspect-ratio: 1/1;
    background: #fff;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}
.chart-inner {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}
.asc-sign { font-size: 2.5rem; margin-bottom: 0.5rem; }
.asc-label { font-weight: 600; color: var(--primary); }
.chart-houses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.house-item {
    background: #fff;
    border-radius: 16px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

.planets-section { margin-bottom: 3rem; }
.planets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.planet-card {
    background: var(--gray-light);
    border-radius: 28px;
    padding: 1.8rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.planet-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.planet-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.planet-icon { font-size: 2rem; }
.planet-name { font-size: 1.3rem; font-weight: 600; }
.planet-position { color: var(--primary); font-weight: 500; margin-bottom: 1rem; }
.planet-desc { color: var(--text-dark); margin-bottom: 1rem; }
.planet-meaning { color: var(--text-soft); font-size: 0.95rem; border-top: 1px solid var(--border-light); padding-top: 1rem; }

.houses-section { margin-bottom: 3rem; }
.houses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.house-card {
    background: #fff;
    border-radius: 28px;
    padding: 1.8rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.house-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.house-number { font-size: 1.2rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; }
.house-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.house-desc { color: var(--text-soft); font-size: 0.95rem; }

.aspects-section { background: var(--gradient); border-radius: 36px; padding: 2rem; margin-bottom: 3rem; }
.aspects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.aspect-item { background: #fff; border-radius: 24px; padding: 1rem; text-align: center; border: 1px solid var(--border-light); }

.interpretation-section { background: var(--gray-light); border-radius: 36px; padding: 2rem; margin-bottom: 3rem; }
.interpretation-text { font-size: 1.1rem; line-height: 1.8; color: var(--text-dark); }

/* Годовой гороскоп */
.year-number-section {
    background: var(--gradient);
    border-radius: 36px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.year-number-header { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.year-number-value {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(145deg, var(--primary), #4c1d95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.year-number-info { flex: 1; }
.year-number-name { font-size: 2rem; font-weight: 600; margin-bottom: 0.5rem; }
.year-number-desc { color: var(--text-soft); font-size: 1.1rem; }

.quarters-section { margin-bottom: 3rem; }
.quarters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.quarter-card {
    background: #fff;
    border-radius: 28px;
    padding: 1.8rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.quarter-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.quarter-title { font-size: 1.3rem; font-weight: 600; color: var(--primary); margin-bottom: 1rem; }
.quarter-content { color: var(--text-dark); margin-bottom: 1rem; }
.quarter-rating { display: flex; gap: 0.3rem; margin-top: 0.5rem; }
.star { color: #fbbf24; font-size: 1.2rem; }

.spheres-section { margin-bottom: 3rem; }
.spheres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.sphere-card {
    background: var(--gray-light);
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.sphere-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.sphere-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.sphere-icon { font-size: 2rem; }
.sphere-name { font-size: 1.3rem; font-weight: 600; }
.sphere-meter { height: 10px; background: var(--border-light); border-radius: 10px; margin-bottom: 1rem; overflow: hidden; }
.sphere-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: 10px; }
.sphere-stats { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-soft); }
.sphere-desc { color: var(--text-dark); font-size: 0.95rem; }

.rulers-section { background: var(--gradient); border-radius: 36px; padding: 2rem; margin-bottom: 3rem; }
.rulers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.ruler-card { background: #fff; border-radius: 24px; padding: 1.5rem; text-align: center; border: 1px solid var(--border-light); }
.ruler-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.ruler-name { font-weight: 600; margin-bottom: 0.3rem; }
.ruler-desc { color: var(--text-soft); font-size: 0.9rem; }

.dates-section { margin-bottom: 3rem; }
.dates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.date-card {
    background: #fff;
    border-radius: 24px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.date-card:hover { border-color: var(--primary); transform: scale(1.05); }
.date-day { font-size: 1.5rem; font-weight: 600; color: var(--primary); }
.date-month { color: var(--text-soft); }

/* Кнопки действий */
.result-actions { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 3rem; justify-content: flex-end; }
.result-actions .action-btn,
.result-actions .action-btn-single {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.9rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.result-actions .action-btn:hover,
.result-actions .action-btn-single:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px var(--primary);
}

/* Подсказка формы */
.form-hint { color: var(--text-soft); font-size: 0.9rem; margin-top: 0.3rem; font-style: italic; }

/* Совместимость — блоки как в testpages/new/sovmestimost.html */
.compatibility-container { max-width: 1280px; margin: 2rem auto; padding: 0 5%; }
.compatibility-container .page-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; background: linear-gradient(145deg, var(--primary), #4c1d95); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.compatibility-form-section { background: var(--gradient); border-radius: 48px; padding: 3rem; margin-bottom: 2rem; box-shadow: var(--shadow); border: 1px solid rgba(124, 58, 237, 0.1); }
.form-compact { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; align-items: flex-end; }
.sign-selector { flex: 1 1 280px; min-width: 240px; }
.sign-selector label { display: block; font-weight: 600; margin-bottom: 0.8rem; color: var(--text-dark); font-size: 1.1rem; }
.sign-selector select { width: 100%; padding: 1rem 1.5rem; border: 2px solid var(--border-light); border-radius: 40px; font-size: 1rem; background: #fff; }
.vs-divider { font-size: 2.5rem; font-weight: 700; color: var(--primary); padding: 0 1rem; line-height: 1; }
.compatibility-result { display: none; background: #fff; border-radius: 48px; padding: 3rem; margin-top: 2rem; border: 1px solid rgba(124, 58, 237, 0.2); box-shadow: var(--shadow); }
.compatibility-result.visible { display: block; }
.compatibility-result .result-header { border-bottom: 2px solid var(--border-light); padding-bottom: 2rem; margin-bottom: 2rem; }
.signs-pair { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.sign-badge { background: var(--gradient); border-radius: 60px; padding: 0.8rem 2rem; font-size: 1.2rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border-light); }
.pair-icon { font-size: 2rem; color: var(--primary); }
.meter-section { background: var(--gradient); border-radius: 36px; padding: 2rem; margin-bottom: 2rem; }
.meter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.meter-title { font-size: 1.2rem; font-weight: 600; }
.meter-percent { font-size: 2rem; font-weight: 700; color: var(--primary); }
.meter-bar { height: 14px; background: var(--border-light); border-radius: 60px; overflow: hidden; margin-bottom: 0.5rem; }
.meter-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: 60px; transition: width 0.5s ease; }
.meter-description { color: var(--text-soft); font-style: italic; font-size: 0.95rem; }
.elements-section { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.element-card { flex: 1; min-width: 140px; background: #fff; border-radius: 28px; padding: 1.5rem; text-align: center; border: 1px solid var(--border-light); }
.element-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.element-name { font-weight: 600; margin-bottom: 0.5rem; }
.element-value { color: var(--text-soft); font-size: 0.9rem; }
.compatibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.compatibility-card { background: var(--gray-light); border-radius: 28px; padding: 1.5rem; border: 1px solid var(--border-light); transition: all 0.3s ease; }
.compatibility-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.card-icon { font-size: 1.5rem; }
.card-title { font-size: 1.2rem; font-weight: 600; }
.card-rating { margin-bottom: 0.5rem; }
.rating-stars { color: #fbbf24; font-size: 1.1rem; letter-spacing: 1px; }
.rating-value { margin-left: 0.5rem; color: var(--text-soft); font-size: 0.95rem; }
.card-desc { color: var(--text-dark); font-size: 0.9rem; }
.compatibility-interpretation .interpretation-text { font-size: 1rem; line-height: 1.7; }
.quick-reference { margin-top: 2rem; }
.reference-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; color: var(--primary); }
.reference-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.ref-item { background: var(--gray-light); border-radius: 20px; padding: 1rem; text-align: center; cursor: pointer; border: 1px solid var(--border-light); transition: all 0.3s ease; }
.ref-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.ref-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }
@media (max-width: 700px) {
    .form-compact { flex-direction: column; align-items: stretch; gap: 1.5rem; }
    .vs-divider { text-align: center; font-size: 2rem; }
    .calculate-btn { width: 100%; }
}

@media (max-width: 768px) {
    .chart-grid { grid-template-columns: 1fr; }
    .chart-houses { grid-template-columns: repeat(3, 1fr); }
    /* Уменьшение отступов для мобильных в разделе «Узнать себя» */
    .calculator-container,
    .pythagoras-container,
    .hd-container,
    .natal-container,
    .yearly-container { margin: 0.75rem auto; padding: 0 0.5rem; }
    .calculator-form-section,
    .pythagoras-form-section,
    .hd-form-section,
    .natal-form-section,
    .yearly-form-section { padding: 1.25rem; margin-bottom: 1.5rem; border-radius: 24px; }
    .numerology-result,
    .pythagoras-result,
    .hd-result,
    .natal-result,
    .yearly-result { padding: 1.25rem; margin-top: 1rem; border-radius: 24px; }
    .result-header { margin-bottom: 1rem; padding-bottom: 1rem; gap: 1rem; }
    .person-info h2 { font-size: 1.5rem; }
    .numbers-summary { gap: 1rem; margin-bottom: 1.5rem; }
    .number-card { padding: 1rem 0.75rem; border-radius: 20px; }
    .number-card .number-value { font-size: 2.5rem; }
    .details-section,
    .karmic-section { padding: 1rem; margin: 1rem 0; border-radius: 20px; }
    .details-title,
    .karmic-title,
    .section-title { font-size: 1.25rem; margin-bottom: 1rem; }
    .details-grid { gap: 0.75rem; }
    .detail-item { padding: 1rem; border-radius: 16px; }
    .detail-value { font-size: 1.75rem; }
    .rows-section,
    .type-banner,
    .profile-section,
    .centers-section,
    .channels-section,
    .definition-section,
    .cross-section { padding: 1rem; margin-bottom: 1rem; border-radius: 20px; }
    .matrix-table td { padding: 0.75rem 0.4rem; }
    .matrix-table .cell-value { font-size: 2rem; }
    .extra-numbers { gap: 0.75rem; margin: 1rem 0; }
    .extra-card { padding: 1rem; }
    .lines-grid,
    .centers-grid,
    .channels-grid { gap: 0.75rem; }
    .line-card,
    .center-card,
    .channel-card { padding: 1rem; border-radius: 16px; }
    .type-icon { width: 70px; height: 70px; font-size: 2.5rem; }
    .type-name { font-size: 1.5rem; }
    .profile-value { font-size: 2rem; }
    .profile-name { font-size: 1.25rem; }
    .year-number-value { font-size: 3rem; }
    .year-number-name { font-size: 1.5rem; }
    .quarters-grid,
    .spheres-grid,
    .planets-grid,
    .houses-grid { gap: 0.75rem; }
    .quarter-card,
    .sphere-card,
    .planet-card,
    .house-card { padding: 1rem; border-radius: 16px; }
    .result-actions { margin-top: 1.5rem; justify-content: center; }
    .result-actions .action-btn,
    .result-actions .action-btn-single { padding: 0.75rem 1.5rem; font-size: 1rem; width: 100%; max-width: 320px; }
}

/* Модалка оплаты расчёта */
.payment-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.payment-modal-overlay.show { display: flex; }
.payment-modal-box {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.payment-modal-box h3 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.payment-modal-box p { margin: 0 0 1.5rem; color: var(--text-soft, #666); }
.payment-modal-box .payment-price { font-size: 1.75rem; font-weight: 700; color: var(--primary, #7c3aed); margin-bottom: 1rem; }
.payment-modal-box .payment-modal-btn { width: 100%; padding: 1rem 1.5rem; font-size: 1.1rem; border-radius: 14px; border: none; background: linear-gradient(145deg, var(--primary, #7c3aed), #5b21b6); color: #fff; cursor: pointer; }
.payment-modal-box .payment-modal-btn:hover { opacity: 0.95; }
.payment-modal-box .payment-modal-close { display: block; margin-top: 1rem; text-align: center; color: var(--text-soft); cursor: pointer; font-size: 0.95rem; }
.payment-modal-box .payment-modal-close:hover { color: var(--primary); }
