/* --- Стили для Теста на тревожность GAD-7 (Amber Theme 2026) --- */
:root {
    --accent-gad7: #D97706;
    --accent-gad7-dark: #92400E;
    --accent-gad7-light: #FEF3C7;
    --gradient-gad7-card: linear-gradient(135deg, #F59E0B 0%, #B45309 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, #FFFBEB 0%, #FEF3C7 100%);
    border: 2px solid #FCD34D;
    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-gad7-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(239, 68, 68, 0.1);
    border-left: 4px solid #EF4444;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #991B1B;
}

/* Divider */
.divider {
    border-top: 1px solid #E5E7EB;
    margin: 24px 0;
}

/* GAD-7 Form */
.gad7-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gad7-header-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.q-header {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.a-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.question-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    border: 1px solid transparent;
}

.question-row:hover {
    background: #F9FAFB;
}

.question-row.selected {
    background: #FFFBEB;
    border-color: #FCD34D;
}

.question-text {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.q-num {
    font-weight: 700;
    color: var(--accent-gad7);
    min-width: 24px;
}

.question-answers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-items: center;
}

.answer-option {
    display: flex;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.answer-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    background: #fff;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer-dot::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-gad7);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.answer-option:has(input:checked) .answer-dot {
    border-color: var(--accent-gad7);
    background: var(--accent-gad7-light);
}

.answer-option:has(input:checked) .answer-dot::after {
    opacity: 1;
    transform: scale(1);
}

.answer-option:hover .answer-dot {
    border-color: var(--accent-gad7);
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-gad7-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(217, 119, 6, 0.35);
    margin-top: 12px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

/* Результаты (GAD-7 Card) */
.card--gad7 {
    background: var(--gradient-gad7-card);
    color: #fff;
    border: none;
}

.card--gad7 h2 {
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
    font-size: 16px;
}

.card--gad7-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: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    white-space: nowrap;
}

.big-result small {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.8;
}

/* Severity Bar */
.severity-container {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.severity-bar {
    height: 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.severity-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10B981 0%, #84CC16 25%, #FCD34D 50%, #F97316 75%, #EF4444 100%);
    border-radius: 8px;
    transition: width 1s ease;
    position: relative;
}

.severity-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.severity-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.severity-result {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
}

.severity-icon {
    font-size: 28px;
}

.severity-text {
    font-size: 16px;
    font-weight: 700;
}

/* Panic Alert */
.panic-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid #F97316;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.alert-icon {
    font-size: 32px;
}

.alert-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alert-text strong {
    color: #FED7AA;
    font-size: 15px;
}

.alert-text span {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
}

.helpline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10B981;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 20px;
}

.helpline-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.helpline-number {
    font-size: 20px;
    font-weight: 800;
    color: #6EE7B7;
    letter-spacing: 1px;
}

/* Summary Divider */
.summary-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 24px 0;
}

/* 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: 15px;
    font-weight: 700;
}

/* 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);
}

/* Tips Box */
.tips-box {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
}

.tips-box h4 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.tips-box ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    line-height: 1.7;
}

.tips-box li {
    margin-bottom: 6px;
}

/* ============================================ */
/* 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;
}

.amber-icon svg { color: #D97706; }
.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 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.formula-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
    padding: 24px;
    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: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-amber {
    background: #D97706;
    color: #fff;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-green {
    background: #10B981;
    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 1.5fr 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-minimal { color: #10B981; font-weight: 600; }
.severity-mild { color: #84CC16; font-weight: 600; }
.severity-moderate { color: #F97316; font-weight: 600; }
.severity-severe { color: #DC2626; font-weight: 600; }

/* Panic Info Box */
.panic-info-box {
    background: #FFFBEB;
    border: 2px solid #FCD34D;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
}

.panic-info-box p {
    margin: 0 0 12px 0;
    color: #92400E;
    font-weight: 600;
}

.panic-info-box ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
    color: #78350F;
    line-height: 1.8;
}

.panic-info-box li {
    margin-bottom: 6px;
}

.panic-help {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #FCD34D;
}

.panic-help strong {
    color: #92400E;
    display: block;
    margin-bottom: 12px;
}

.panic-help ol {
    margin: 0;
    padding-left: 20px;
    color: #78350F;
    line-height: 1.8;
}

.panic-help li {
    margin-bottom: 6px;
}

/* 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-gad7);
    box-shadow: 0 4px 20px rgba(217, 119, 6, 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-gad7-dark);
    background: var(--accent-gad7-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-gad7-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) {
    .formulas-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .icon-heading {
        font-size: 20px;
        gap: 12px;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .big-result {
        font-size: 42px;
    }

    .gad7-header-row,
    .question-row {
        grid-template-columns: 1fr;
    }

    .a-header {
        display: none;
    }

    .question-answers {
        justify-content: space-between;
        padding: 0 8px;
    }

    .answer-dot {
        width: 36px;
        height: 36px;
    }

    .interpretation-table {
        overflow-x: auto;
    }

    .interp-row {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .info-wrapper {
        padding: 40px 0;
        margin-top: 40px;
    }

    .big-result {
        font-size: 36px;
    }

    .severity-result {
        flex-direction: column;
        text-align: center;
    }
}
