/* --- Стили для Теста на темперамент (Indigo Theme 2026) --- */
:root {
    --accent-temp: #6366F1;
    --accent-temp-dark: #3730A3;
    --accent-temp-light: #E0E7FF;
    --gradient-temp-card: linear-gradient(135deg, #6366F1 0%, #4F46E5 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, #EEF2FF 0%, #E0E7FF 100%);
    border: 2px solid #C7D2FE;
    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-temp-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(99, 102, 241, 0.1);
    border-left: 4px solid #6366F1;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--accent-temp-dark);
}

/* Divider */
.divider {
    border-top: 1px solid #E5E7EB;
    margin: 24px 0;
}

/* Temperament Form */
.temperament-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-block {
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.question-block:last-child {
    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: 8px;
    justify-content: space-between;
    max-width: 350px;
}

.rating-scale label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex: 1;
}

.rating-scale input {
    width: 28px;
    height: 28px;
    accent-color: var(--accent-temp);
    cursor: pointer;
}

.rating-scale span {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    max-width: 350px;
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-secondary);
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-temp-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(99, 102, 241, 0.35);
    margin-top: 12px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* Результаты (Temperament Card) */
.card--temperament {
    background: var(--gradient-temp-card);
    color: #fff;
    border: none;
}

.card--temperament h2 {
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
    font-size: 16px;
}

.card--temperament-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;
    }
}

/* Temperament Result */
.temperament-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.temp-icon {
    font-size: 64px;
}

.temp-name {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}

.temp-percent-bar {
    height: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.temp-percent-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #A5B4FC, #6366F1, #4F46E5);
    border-radius: 6px;
    transition: width 1.5s ease;
}

.temp-percent-text {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
}

/* Summary Divider */
.summary-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 24px 0;
}

/* All Types Container */
.all-types-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.type-bar-container {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.type-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.type-bar-name {
    font-weight: 600;
}

.type-bar-value {
    font-weight: 700;
}

.type-bar {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.type-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.type-bar-fill.sanguine { background: linear-gradient(90deg, #34D399, #10B981); }
.type-bar-fill.choleric { background: linear-gradient(90deg, #F87171, #EF4444); }
.type-bar-fill.phlegmatic { background: linear-gradient(90deg, #60A5FA, #3B82F6); }
.type-bar-fill.melancholic { background: linear-gradient(90deg, #A78BFA, #8B5CF6); }

/* 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);
}

/* Careers Box */
.careers-box {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
}

.careers-box h4 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.careers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.career-tag {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

/* ============================================ */
/* 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;
}

.indigo-icon svg { color: #6366F1; }
.orange-icon svg { color: #EA580C; }

.intro-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Temperaments Grid */
.temperaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.temp-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.temp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.temp-card-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.temp-card h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.temp-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.temp-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.temp-card li {
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #F3F4F6;
}

.temp-card li:last-child {
    border-bottom: none;
}

.sanguine-card { border-top: 4px solid #10B981; }
.sanguine-card h4 { color: #10B981; }

.choleric-card { border-top: 4px solid #EF4444; }
.choleric-card h4 { color: #EF4444; }

.phlegmatic-card { border-top: 4px solid #3B82F6; }
.phlegmatic-card h4 { color: #3B82F6; }

.melancholic-card { border-top: 4px solid #8B5CF6; }
.melancholic-card h4 { color: #8B5CF6; }

/* Soft Divider */
.soft-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 48px 0;
}

/* 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-temp);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 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-temp-dark);
    background: var(--accent-temp-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-temp-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) {
    .temperaments-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .icon-heading {
        font-size: 20px;
        gap: 12px;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .temp-name {
        font-size: 24px;
    }

    .rating-scale {
        flex-wrap: wrap;
    }

    .rating-scale label {
        width: 20%;
    }
}

@media (max-width: 600px) {
    .info-wrapper {
        padding: 40px 0;
        margin-top: 40px;
    }

    .temp-icon {
        font-size: 48px;
    }

    .temp-name {
        font-size: 20px;
    }
}
