/* --- Стили для FIRE Calculator (Amber Theme) --- */
:root {
    --accent-amber: #F59E0B;
    --accent-amber-dark: #B45309;
    --accent-amber-light: #FFFBEB;
    --gradient-amber-card: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    
    /* Темный цвет текста */
    --text-on-amber: #451a03; 
}

.calc-header { margin-bottom: 24px; }
.subtitle { color: var(--text-secondary); margin-top: 6px; }

/* Сетка - Компактная для калькулятора */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* Inputs - Compact */
.calc-inputs { gap: 16px; }
.input-group { margin-bottom: 16px; }

.input-group label { 
    display: block; font-size: 13px; font-weight: 600; 
    margin-bottom: 6px; color: var(--text-primary); 
}

.input-wrapper { position: relative; display: flex; align-items: center; }

.input-wrapper input {
    width: 100%; 
    padding: 12px 14px; 
    padding-right: 36px;
    font-size: 16px; 
    font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 10px;
    outline: none; transition: border 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
}
.input-wrapper input:focus { border-color: var(--accent-amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1); }
.currency { position: absolute; right: 14px; color: var(--text-secondary); pointer-events: none; font-size: 14px; }
.input-hint { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.3; }

.divider { border: 0; border-top: 1px solid #E5E7EB; margin: 20px 0; }

/* Range Slider */
.label-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.range-val { font-weight: 700; color: var(--accent-amber); font-size: 16px; }
.range-wrapper { padding: 0 2px; }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%;
    background: var(--accent-amber); cursor: pointer; margin-top: -8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); border: 2px solid #fff;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px; cursor: pointer; background: #E5E7EB; border-radius: 2px;
}
.range-steps { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: var(--text-secondary); }

/* --- КАРТОЧКА РЕЗУЛЬТАТА --- */
.card--amber { 
    background: var(--gradient-amber-card); 
    color: var(--text-on-amber); 
    border: 1px solid rgba(245, 158, 11, 0.2);
    overflow: visible;
}

.card--amber h2 { color: var(--text-on-amber) !important; margin-bottom: 0; opacity: 1; font-size: 20px; }

.result-header-row { 
    display: flex; justify-content: space-between; align-items: flex-start; 
    margin-bottom: 16px;
}

@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.fire-time-big {
    font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 4px;
    display: flex; align-items: baseline; gap: 6px; 
    color: var(--text-on-amber) !important;
}
.fire-time-big small { font-size: 20px; opacity: 0.9; font-weight: 700; }
.fire-subtext { font-size: 14px; opacity: 0.8; margin-bottom: 16px; font-weight: 600; }

.result-stats-row { margin-bottom: 16px; }
.stat-item {
    background: rgba(255,255,255,0.7); border-radius: 10px; padding: 10px 12px;
    display: flex; flex-direction: column; align-items: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.stat-label { 
    font-size: 11px; text-transform: uppercase; font-weight: 800; 
    opacity: 0.7; margin-bottom: 2px; 
    color: var(--text-on-amber) !important; 
}
.stat-item strong { 
    font-size: 18px; font-weight: 800; 
    color: var(--text-on-amber); 
}

/* --- LIFE TIMELINE --- */
.timeline-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.timeline-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px;
    flex-wrap: wrap; 
    gap: 8px;
}
.timeline-label { 
    font-size: 11px; font-weight: 700; color: var(--text-secondary); 
    text-transform: uppercase; 
    white-space: nowrap;
}

.legend { display: flex; gap: 8px; font-size: 10px; font-weight: 600; color: var(--text-secondary); }
.dot-legend { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.dot-legend.work { background: #E5E7EB; }
.dot-legend.free { background: var(--accent-amber); box-shadow: 0 0 4px rgba(245, 158, 11, 0.4); }

.life-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}
.life-dot {
    width: 8px; height: 8px;
    background: #E5E7EB;
    border-radius: 50%;
    transition: all 0.4s ease;
    position: relative;
    cursor: default;
}
.life-dot.active {
    background: var(--accent-amber);
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
    transform: scale(1.1);
}
@keyframes popIn { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.life-dot.animate { animation: popIn 0.3s forwards; }

.timeline-footer { font-size: 10px; color: var(--text-secondary); opacity: 0.8; text-align: center; }

.summary-divider { height: 1px; background: rgba(180, 83, 9, 0.15); margin: 16px 0; }

.tip-box { 
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 13px; opacity: 1; line-height: 1.4; 
    font-weight: 600;
}
#tip-text { color: var(--text-on-amber) !important; }
.tip-icon { flex-shrink: 0; margin-top: 2px; color: var(--text-on-amber); }

/* --- НИЖНИЙ КОНТЕНТ (ИНФО) - Возвращаем "богатые" стили из Kitchen/Fuel --- */

.info-wrapper {
    padding: 60px 0 60px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.info-wrapper .container {
    max-width: 800px;
    margin: 0 auto;
}

/* Заголовки с иконками */
.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.04);
    flex-shrink: 0;
    margin-top: -4px;
}

.header-icon svg { width: 24px; height: 24px; stroke-width: 2px; }

/* Цвета иконок */
.blue-icon svg { color: #2563EB; }
.orange-icon svg { color: #F59E0B; }
.green-icon svg { color: #10B981; }

.small-heading { margin-top: 40px; margin-bottom: 16px; font-size: 20px; }
.small-heading .header-icon { width: 40px; height: 40px; }
.small-heading .header-icon svg { width: 20px; height: 20px; }

.intro-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* --- Секция Формул (Стиль Kitchen) --- */
.formulas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.formula-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Большая мягкая тень */
    border-radius: 24px; /* Большое скругление */
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}
.formula-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

.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);
    line-height: 1.3;
}

.badge-amber { background: #F59E0B; color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-blue { background: #2563EB; color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }

.formula-card p {
    font-size: 14px; color: var(--text-secondary);
    margin: 0; line-height: 1.5; font-weight: 500;
}

.math-expression {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--accent-amber-dark);
    text-align: center;
    margin-bottom: 16px;
    font-size: 15px;
}

/* Разделитель */
.soft-divider {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 48px 0;
}

/* Описание */
.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 Amber Style (Стиль Kitchen) */
.faq-amber-style .faq-item {
    background: #fff; border: 1px solid #E5E7EB;
    border-radius: 12px; margin-bottom: 12px;
    overflow: hidden; transition: all 0.2s ease;
}

.faq-amber-style .faq-item[open] {
    border-color: var(--accent-amber); 
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15); /* Accent Shadow */
}

.faq-amber-style summary.faq-question {
    padding: 16px 20px; cursor: pointer;
    font-weight: 600; color: var(--text-primary);
    list-style: none; position: relative;
    display: flex; justify-content: space-between;
    align-items: center; transition: background 0.2s;
}

.faq-amber-style summary.faq-question:hover { background-color: #F9FAFB; }

.faq-amber-style .faq-item[open] summary.faq-question {
    color: var(--accent-amber-dark);
    background: var(--accent-amber-light);
}

.faq-question::after {
    content: '+'; font-size: 20px;
    color: var(--text-secondary); font-weight: 400; line-height: 1;
}
.faq-question .icon-plus { display: none; }

.faq-amber-style .faq-item[open] summary.faq-question::after {
    content: '−'; color: var(--accent-amber);
}

.faq-answer {
    padding: 20px; color: var(--text-secondary);
    line-height: 1.6; font-size: 15px;
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ (Kitchen style) --- */
@media (max-width: 900px) {
    .formulas-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
    .icon-heading { font-size: 20px; gap: 12px; margin-bottom: 20px; }
    .header-icon { width: 40px; height: 40px; border-radius: 12px; }
    .header-icon svg { width: 20px; height: 20px; }
    
    .formula-card { padding: 24px; text-align: center; align-items: center; }
    .formula-header { align-items: center; width: 100%; }
    .math-expression { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
    
    .info-wrapper { margin-top: 40px; padding-top: 40px; }

    .life-grid { gap: 5px; justify-content: center; }
    .life-dot { width: 8px; height: 8px; }
}