/* calc/assets/css/calculators/heater.css */

:root {
    --accent-orange: #EA580C; /* Orange 600 */
    --accent-orange-light: #FFF7ED; /* Orange 50 */
    --gradient-orange-card: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    --text-on-orange: #ffffff;
}

.calc-header { margin-bottom: 24px; } /* Было 32px */
.subtitle { color: var(--text-secondary); margin-top: 8px; font-size: 16px; }

/* Grid */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; } /* Gap 24 -> 20 */
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* Inputs */
.input-block-title {
    font-size: 13px; /* Чуть меньше */
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-secondary); 
    margin-bottom: 12px; /* Было 16px */
    font-weight: 700;
}

.input-group { margin-bottom: 16px; } /* Было 24px - Убрали лишний воздух */
.input-group label { display: block; font-size: 14px; 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: 40px; /* Чуть компактнее */
    font-size: 16px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 10px; /* Радиус чуть меньше */
    outline: none; transition: all 0.2s;
    font-family: var(--font-main);
    background: #fff;
}
.input-wrapper input:focus { 
    border-color: var(--accent-orange); 
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1); 
}
.suffix { position: absolute; right: 14px; color: var(--text-secondary); pointer-events: none; font-size: 14px; }
.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.3; }
.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Divider - главный виновник "воздуха" */
.soft-divider-small { 
    border: none; height: 1px; background: #F3F4F6; 
    margin: 16px 0; /* Было 24px 0 */
}

/* --- CUSTOM SELECT v3.3 --- */
.select-wrapper { position: relative; background: #fff; }
.select-wrapper select {
    width: 100%; padding: 12px 14px; padding-right: 40px;
    font-size: 16px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 10px;
    outline: none; transition: all 0.2s;
    font-family: var(--font-main);
    background: transparent;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    cursor: pointer; color: var(--text-primary);
}
.select-wrapper select:focus { border-color: var(--accent-orange); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1); }
.select-arrow {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: var(--text-secondary); display: flex;
}
.select-wrapper:hover .select-arrow { color: var(--accent-orange); }

/* Result Card */
.card--orange { background: var(--gradient-orange-card); color: var(--text-on-orange); border: none; }
.card--orange h2 { color: rgba(255,255,255,0.8); font-size: 14px; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.05em; }

.result-main { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; }
.result-value { font-size: 48px; font-weight: 800; line-height: 1; }
.result-unit { font-size: 20px; font-weight: 600; opacity: 0.8; }
.result-sub { font-size: 14px; opacity: 0.9; font-weight: 500; background: rgba(0,0,0,0.15); padding: 6px 10px; border-radius: 6px; display: inline-block; }

.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 20px 0; }

/* Heat Meter */
.heat-meter-wrapper h4 { font-size: 13px; margin-bottom: 12px; font-weight: 600; opacity: 0.9; }
.heat-track { position: relative; height: 12px; width: 100%; border-radius: 6px; background: rgba(0,0,0,0.2); margin-bottom: 8px; overflow: hidden; }
.heat-bar { height: 100%; border-radius: 6px; background: #fff; transition: width 0.5s ease, background 0.3s; }

.socket-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.5); z-index: 2; }
.socket-mark span {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    font-size: 9px; color: rgba(255,255,255,0.8); white-space: nowrap; font-weight: 600;
}

.heat-status { font-size: 12px; opacity: 0.95; text-align: right; font-weight: 600; margin-top: 4px; }

/* Tips */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.tip-item { background: rgba(255,255,255,0.1); padding: 10px; border-radius: 10px; font-size: 13px; text-align: center; }
.tip-item strong { display: block; font-size: 10px; opacity: 0.8; text-transform: uppercase; margin-bottom: 2px; }
.tip-item span { font-size: 15px; font-weight: 700; }

/* Content */
.info-wrapper { padding: 40px 0; margin-top: 40px; 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: 12px; margin-bottom: 20px; font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1.3; }
.small-heading { margin-top: 32px; margin-bottom: 12px; font-size: 18px; }
.header-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.04); flex-shrink: 0; margin-top: -2px; }
.header-icon svg { width: 20px; height: 20px; stroke-width: 2px; }
.small-heading .header-icon { width: 36px; height: 36px; }
.small-heading .header-icon svg { width: 18px; height: 18px; }

.orange-icon svg { color: var(--accent-orange); }
.red-icon svg { color: #DC2626; }

.intro-text { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }

/* Formulas */
.formulas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.formula-card { background: #fff; border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; }
.formula-header { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.formula-card h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.formula-card p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; font-weight: 500; }
.badge-orange { background: #FFEDD5; color: #EA580C; padding: 4px 10px; border-radius: 99px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; }
.badge-dark { background: #1F2937; color: #fff; padding: 4px 10px; border-radius: 99px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; }
.math-expression { background: #FFF7ED; border: 1px solid #FFEDD5; padding: 10px 12px; border-radius: 10px; font-weight: 700; color: #EA580C; text-align: center; margin-bottom: 12px; font-size: 14px; }

.soft-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, #E5E7EB, transparent); margin: 40px 0; }
.calc-description p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 20px; }
.calc-description strong { color: var(--text-primary); }

/* FAQ */
.faq-orange-style .faq-item { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; margin-bottom: 10px; overflow: hidden; transition: all 0.2s ease; }
.faq-orange-style .faq-item[open] { border-color: var(--accent-orange); box-shadow: 0 4px 16px rgba(234, 88, 12, 0.1); }
.faq-orange-style summary.faq-question { padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--text-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-orange-style summary.faq-question:hover { background-color: #F9FAFB; }
.faq-orange-style .faq-item[open] summary.faq-question { color: #EA580C; background: #FFF7ED; }
.faq-question::after { content: '+'; font-size: 18px; color: var(--text-secondary); }
.faq-orange-style .faq-item[open] summary.faq-question::after { content: '−'; color: #EA580C; }
.faq-answer { padding: 18px; color: var(--text-secondary); line-height: 1.6; font-size: 14px; }

@media (max-width: 900px) {
    .formulas-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
    /* Центрирование на мобильных, как в business_days */
    .icon-heading { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .header-icon { margin-top: 0; }
    .formula-card { text-align: center; align-items: center; }
    .formula-header { align-items: center; }
    .math-expression { width: 100%; max-width: 280px; }
    .info-wrapper { margin-top: 30px; padding-top: 30px; }
}