/* --- Стили для Теста на выгорание MBI (Pink Theme 2026) --- */
:root {
    --accent-burnout: #EC4899;
    --accent-burnout-dark: #9D174D;
    --accent-burnout-light: #FDF2F8;
    --gradient-burnout-card: linear-gradient(135deg, #EC4899 0%, #BE185D 100%);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

.calc-header { margin-bottom: 32px; }
.subtitle { color: var(--text-secondary); margin-top: 8px; }

/* Сетка */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.1fr 0.9fr; } }

/* Inputs */
.calc-inputs { gap: 16px; }

/* Test Intro */
.test-intro {
    background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
    border: 2px solid #F9A8D4;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.intro-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 12px;
}

.test-intro h3 {
    text-align: center;
    color: var(--accent-burnout-dark);
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
}

.test-intro p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.intro-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.intro-list li {
    padding: 6px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.intro-note {
    background: rgba(236, 72, 153, 0.1);
    border-left: 4px solid #EC4899;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #9D174D;
}

/* Divider */
.divider {
    border-top: 1px solid #E5E7EB;
    margin: 24px 0;
}

/* Burnout Form */
.burnout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scale-section {
    background: #FDF2F8;
    border: 1px solid #F9A8D4;
    border-radius: var(--radius-md);
    padding: 16px;
}

.scale-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-burnout-dark);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-block {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(236, 72, 153, 0.1);
}

.question-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.q-text {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.rating-scale {
    display: flex;
    gap: 6px;
    justify-content: space-between;
    max-width: 450px;
}

.rating-scale label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex: 1;
}

.rating-scale input {
    width: 26px;
    height: 26px;
    accent-color: var(--accent-burnout);
    cursor: pointer;
}

.rating-scale span {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    max-width: 450px;
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-secondary);
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-burnout-card);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
    margin-top: 12px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45);
}

/* Результаты (Burnout Card) */
.card--burnout {
    background: var(--gradient-burnout-card);
    color: #fff;
    border: none;
}

.card--burnout h2 {
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
    font-size: 16px;
}

.card--burnout-placeholder {
    background: #F9FAFB;
    border: 2px dashed #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.placeholder-content {
    text-align: center;
    color: var(--text-secondary);
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

@media (min-width: 900px) {
    .sticky-card {
        position: sticky;
        top: 24px;
    }
}

.big-result {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    white-space: nowrap;
}

.big-result small {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.8;
}

/* Burnout Level */
.burnout-level {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.level-icon {
    font-size: 36px;
}

.level-text {
    font-size: 18px;
    font-weight: 700;
}

/* Summary Divider */
.summary-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 24px 0;
}

/* Scales Container */
.scales-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.scale-bar-container {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.scale-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.scale-bar-name {
    font-weight: 600;
}

.scale-bar-value {
    font-weight: 700;
}

.scale-bar {
    height: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    overflow: hidden;
}

.scale-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease;
}

.scale-bar-fill.exhaustion { background: linear-gradient(90deg, #EF4444, #DC2626); }
.scale-bar-fill.depersonalization { background: linear-gradient(90deg, #F97316, #EA580C); }
.scale-bar-fill.accomplishment { background: linear-gradient(90deg, #10B981, #059669); }

/* Stage Box */
.stage-box {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stage-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.stage-value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

/* Details List */
.details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 10px;
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* Recommendation Box */
.recommendation-box {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.rec-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.rec-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
}

/* ============================================ */
/* INFO WRAPPER - SEO Content                   */
/* ============================================ */
.info-wrapper {
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.info-wrapper .container {
    max-width: 900px;
    margin: 0 auto;
}

/* Icon Heading */
.icon-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex-shrink: 0;
    margin-top: -4px;
}

.header-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

.pink-icon svg { color: #EC4899; }
.blue-icon svg { color: #0284C7; }
.orange-icon svg { color: #EA580C; }
.red-icon svg { color: #EF4444; }
.green-icon svg { color: #10B981; }

.intro-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Formulas Grid */
.formulas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .formulas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.formula-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s;
}

.formula-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.formula-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.formula-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-pink {
    background: #EC4899;
    color: #fff;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.formula-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Soft Divider */
.soft-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 48px 0;
}

/* Calc Description */
.calc-description p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.calc-description strong {
    color: var(--text-primary);
}

.small-heading {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 20px;
}

.small-heading .header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.small-heading .header-icon svg {
    width: 20px;
    height: 20px;
}

/* Interpretation Table */
.interpretation-table {
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 32px;
}

.interp-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 2fr;
    padding: 14px 16px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 14px;
    align-items: center;
}

.interp-row.header {
    background: #F9FAFB;
    font-weight: 600;
    color: var(--text-primary);
}

.interp-row:last-child {
    border-bottom: none;
}

.score-range {
    font-weight: 700;
    color: var(--text-primary);
}

.severity-none { color: #10B981; font-weight: 600; }
.severity-mild { color: #84CC16; font-weight: 600; }
.severity-moderate { color: #F97316; font-weight: 600; }
.severity-severe { color: #EF4444; font-weight: 600; }

/* Prevention Box */
.prevention-box {
    background: #FDF2F8;
    border: 2px solid #F9A8D4;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
}

.prevention-box ul {
    margin: 0;
    padding-left: 20px;
    color: #9D174D;
    line-height: 1.8;
}

.prevention-box li {
    margin-bottom: 8px;
}

/* FAQ */
.faq-section .faq-item {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-section .faq-item[open] {
    border-color: var(--accent-burnout);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.15);
}

summary.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

summary.faq-question:hover {
    background: #F9FAFB;
}

.faq-section .faq-item[open] summary.faq-question {
    color: var(--accent-burnout-dark);
    background: var(--accent-burnout-light);
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    color: var(--text-secondary);
    font-weight: 400;
    transition: all 0.2s;
}

.faq-section .faq-item[open] summary.faq-question::after {
    content: '−';
    color: var(--accent-burnout-dark);
}

.faq-answer {
    padding: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    border-top: 1px solid #F1F5F9;
}

.faq-answer p {
    margin: 0;
}

/* ============================================ */
/* Mobile Responsive                            */
/* ============================================ */
@media (max-width: 900px) {
    .big-result {
        font-size: 56px;
    }

    .interpretation-table {
        overflow-x: auto;
    }

    .interp-row {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        font-size: 12px;
    }

    .rating-scale {
        flex-wrap: wrap;
    }

    .rating-scale label {
        width: 14.28%; /* 7 options */
    }
}

@media (max-width: 600px) {
    .info-wrapper {
        padding: 40px 0;
        margin-top: 40px;
    }

    .big-result {
        font-size: 48px;
    }

    .burnout-level {
        flex-direction: column;
        text-align: center;
    }

    .scale-title {
        font-size: 14px;
    }

    .q-text {
        font-size: 13px;
    }

    .rating-scale span {
        font-size: 9px;
    }
}
