/* --- Стили для Нумерологического калькулятора (Purple Theme 2026) --- */
:root {
    --accent-num: #9333EA;
    --accent-num-dark: #6B21A8;
    --accent-num-light: #F3E8FF;
    --gradient-num-card: linear-gradient(135deg, #9333EA 0%, #7C3AED 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, #FAF5FF 0%, #F3E8FF 100%);
    border: 2px solid #E9D5FF;
    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-num-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(147, 51, 234, 0.1);
    border-left: 4px solid #9333EA;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--accent-num-dark);
}

/* Form Input */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.label-icon { font-size: 16px; }

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.form-input:focus {
    border-color: var(--accent-num);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.helper-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Divider */
.divider {
    border-top: 1px solid #E5E7EB;
    margin: 24px 0;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-num-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(147, 51, 234, 0.35);
    margin-top: 12px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.45);
}

/* Результаты (Numerology Card) */
.card--numerology {
    background: var(--gradient-num-card);
    color: #fff;
    border: none;
}

.card--numerology h2 {
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
    font-size: 16px;
}

.card--numerology-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;
    }
}

/* Main Number Container */
.main-number-container {
    text-align: center;
    padding: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.main-number-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255,255,255,0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.main-number {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.main-number-label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}

.main-number-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

/* Summary Divider */
.summary-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 24px 0;
}

/* Numbers Grid */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.number-card {
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
}

.number-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.number-card-value {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.number-card-label {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.number-card-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}

/* Details List */
.details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.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-bottom: 16px;
    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,
.compatibility-box {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.careers-box h4,
.compatibility-box h4 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.careers-list,
.compatibility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.career-tag,
.compatibility-tag {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.compatibility-tag {
    background: rgba(255,255,255,0.3);
    font-size: 14px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

/* ============================================ */
/* 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;
}

.purple-icon svg { color: #9333EA; }
.gold-icon svg { color: #D97706; }
.orange-icon svg { color: #EA580C; }

.intro-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Numbers Cards Grid */
.numbers-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 48px;
}

.num-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.num-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.num-circle {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.num-1 .num-circle { background: linear-gradient(135deg, #EF4444, #DC2626); }
.num-2 .num-circle { background: linear-gradient(135deg, #F97316, #EA580C); }
.num-3 .num-circle { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.num-4 .num-circle { background: linear-gradient(135deg, #10B981, #059669); }
.num-5 .num-circle { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.num-6 .num-circle { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.num-7 .num-circle { background: linear-gradient(135deg, #EC4899, #DB2777); }
.num-8 .num-circle { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.num-9 .num-circle { background: linear-gradient(135deg, #14B8A6, #0D9488); }

.num-card h4 {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    word-wrap: break-word;
}

.num-card p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Soft Divider */
.soft-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 48px 0;
}

/* Master Numbers Grid */
.master-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.master-card {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #FCD34D;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.master-number {
    font-size: 48px;
    font-weight: 800;
    color: #B45309;
    margin-bottom: 12px;
}

.master-card h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #92400E;
}

.master-card p {
    font-size: 14px;
    color: #78350F;
    margin: 0;
    line-height: 1.6;
}

/* 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);
}

/* 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-num);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 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-num-dark);
    background: var(--accent-num-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-num-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) {
    .numbers-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .num-card {
        min-height: 110px;
        padding: 12px 8px;
    }

    .num-circle {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .num-card h4 {
        font-size: 11px;
    }

    .num-card p {
        font-size: 10px;
    }

    .master-numbers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .info-wrapper {
        padding: 40px 0;
        margin-top: 40px;
    }

    .numbers-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .num-card {
        min-height: 100px;
        padding: 10px 6px;
    }

    .num-circle {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .num-card h4 {
        font-size: 10px;
    }

    .num-card p {
        font-size: 9px;
    }

    .main-number-circle {
        width: 90px;
        height: 90px;
    }

    .main-number {
        font-size: 36px;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
