/* --- Стили для Зарплаты (Slate Theme) --- */
:root {
    --accent-slate: #64748B;
    --accent-slate-dark: #334155;
    --gradient-slate-card: linear-gradient(135deg, #475569 0%, #1E293B 100%);
    /* Цвета для графика */
    --color-net: #10B981; /* Зеленый (Деньги работника) */
    --color-tax: #EF4444; /* Красный (Налоги) */
}

.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.2fr 0.8fr; } }

/* Inputs */
.calc-inputs { gap: 16px; }
.input-group { margin-bottom: 16px; }
.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: 14px 16px; padding-right: 40px;
    font-size: 18px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 12px;
    outline: none; transition: border 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
}
.input-wrapper input:focus { border-color: var(--accent-slate); box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15); }
.suffix, .currency { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; }
.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* Mode Switcher */
.mode-switcher {
    display: flex; background: #F3F4F6; padding: 4px;
    border-radius: 12px; margin-bottom: 24px; gap: 4px;
}
.mode-btn {
    flex: 1; padding: 10px 4px; border: none; background: transparent;
    color: var(--text-secondary); font-size: 13px; font-weight: 600;
    border-radius: 8px; cursor: pointer; transition: all 0.2s; text-align: center;
}
.mode-btn.active { background: #fff; color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* Радио-кнопки (Дети) */
.radio-segment {
    display: flex; background: #F3F4F6; border-radius: 12px; padding: 4px; gap: 4px; height: 50px; box-sizing: border-box;
}
.radio-segment label { flex: 1; position: relative; cursor: pointer; display: flex; }
.radio-segment input { display: none; }
.radio-segment span {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: all 0.2s;
}
.radio-segment input:checked + span { background: #fff; color: var(--accent-slate-dark); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* Результаты (Slate Card) */
.card--slate { background: var(--gradient-slate-card); color: #fff; border: none; }
.card--slate h2 { color: rgba(255,255,255,0.8); margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.big-result {
    font-size: 56px; font-weight: 800; line-height: 1; margin-bottom: 32px;
    display: flex; align-items: baseline; gap: 12px; white-space: nowrap;
}
.big-result small { font-size: 24px; font-weight: 600; opacity: 0.8; }

.details-list { display: flex; flex-direction: column; gap: 10px; }
.detail-row {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2); 
    padding-bottom: 10px; font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row strong { font-size: 16px; font-weight: 700; white-space: nowrap; }

.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 24px 0; }

/* Блок "Расходы работодателя" */
.employer-cost-box {
    background: rgba(0,0,0,0.2); padding: 16px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.cost-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cost-header span { font-size: 12px; opacity: 0.8; }
.info-tooltip {
    width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center; font-size: 10px; cursor: help; opacity: 0.7;
}
.employer-cost-box strong { font-size: 20px; display: block; margin-bottom: 12px; }

/* Прогресс бар (Визуализация налогов) */
.cost-bar {
    display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 8px; background: rgba(255,255,255,0.1);
}
.bar-net { background: var(--color-net); transition: width 0.5s; }
.bar-tax { background: var(--color-tax); transition: width 0.5s; }

.cost-desc { font-size: 11px; opacity: 0.7; margin: 0; }
.cost-desc span { color: #fff; font-weight: 600; }