/* Пенсионный калькулятор — то, чего нет в общем fincalc.css. */
.fc-summary { background: var(--fc-surface); border: 1px solid var(--fc-border); border-left: 4px solid var(--fc-accent); border-radius: var(--fc-radius); padding: 14px 16px; }
.fc-summary p { margin: 2px 0; color: var(--fc-text-2); }
.fc-summary .fc-summary-main { font-size: 1.15rem; font-weight: 600; color: var(--fc-text); }

.fc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--fc-border-strong); background: #fff; font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.fc-tab:hover:not(:disabled) { border-color: var(--fc-accent); }
.fc-tab.is-active { background: var(--fc-accent); border-color: var(--fc-accent); color: #fff; }
.fc-tab:disabled { opacity: 0.45; cursor: not-allowed; }

.fc-layers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.fc-layer { border: 1px solid var(--fc-border); border-top: 4px solid #94a3b8; border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.fc-layer strong { font-size: 1.15rem; }
.fc-layer small { color: var(--fc-muted); font-size: 0.78rem; }
.fc-layer-name { font-size: 0.85rem; color: var(--fc-text-2); }
.fc-layer--base { border-top-color: #4C78A8; }
.fc-layer--solidary { border-top-color: #9D755D; }
.fc-layer--opvr { border-top-color: #B279A2; }
.fc-layer--enpf { border-top-color: #F58518; }
.fc-layer--annuity { border-top-color: #54A24B; }
.fc-layer--personal { border-top-color: #E45756; }
.fc-badge { font-style: normal; font-size: 0.7rem; background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.fc-total { margin: 12px 0 4px; }
.fc-coverage { font-weight: 600; margin-left: 6px; }
.fc-coverage.is-ok { color: var(--fc-ok); }
.fc-coverage.is-low { color: var(--fc-low); }

.fc-assumptions { background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius); padding: 12px 16px; font-size: 0.85rem; }
.fc-assumptions summary { cursor: pointer; font-weight: 600; }
.fc-assumptions h4 { font-weight: 600; margin: 12px 0 4px; }
.fc-assumptions ul { padding-left: 18px; list-style: disc; display: grid; gap: 4px; }
.fc-assumptions code { font-size: 0.78rem; background: #f1f5f9; padding: 0 4px; border-radius: 4px; overflow-wrap: anywhere; }
.fc-assumptions a { text-decoration: underline; }

/* Панель итога внизу экрана — только на телефоне */
.fc-sticky { display: none; }
@media (max-width: 860px) {
    .fc-body--sticky { padding-bottom: 72px; }
    .fc-sticky:not(:empty) {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
        gap: 12px; align-items: center; justify-content: space-between;
        padding: 10px 16px; background: var(--fc-surface); border-top: 1px solid var(--fc-border);
        box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08); transition: transform 0.2s;
    }
    .fc-sticky.is-hidden { transform: translateY(110%); }
    .fc-sticky-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; color: inherit !important; text-decoration: none; }
    .fc-sticky-main span { color: var(--fc-muted); font-size: 0.8rem; width: 100%; }
    .fc-sticky-main strong { font-size: 1.1rem; }
    .fc-sticky-main em { font-style: normal; font-weight: 600; font-size: 0.85rem; }
    .fc-sticky-link { flex: none; background: var(--fc-accent); color: #fff !important; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; text-decoration: none; }
}
