/* Экран «Калькуляторы» (/kalkulyatory) — макеты web/mockup/Calcs*.dc.html,
   BankruptCheck.dc.html. Поверх payroll.css (карточки, поля, итог, нормы)
   и site.css (карточки .tool) — здесь только своё. */

.calcs-view { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.calcs-view h1:focus { outline: none; }
.calcs-view h1:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* Список: те же карточки, что «Инструменты» на главной */
.calcs-grid {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px;
}
.calcs-grid > li { display: flex; min-width: 0; }
.calcs-grid .tool { flex: 1 1 auto; min-width: 0; }
.calcs-grid .tool__text { flex-grow: 1; }
.calcs-grid__wide { grid-column: 1 / -1; }

/* Форма расчёта */
.calcs-checks { display: flex; flex-direction: column; gap: 2px; }
.calcs-group { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.calcs-group legend { font-weight: 600; font-size: 14.5px; padding: 0 4px; }

/* Итог */
.calcs-sub { font-size: 15px; }
.calcs-doc { display: flex; flex-direction: column; gap: 6px; }
.calcs-doc__buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* Банкротство: два пути */
.calcs-paths { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.calcs-no { border-color: #A3291F; }
.calcs-no .pay-result__sum { color: #A3291F; }
.calcs-court__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.calcs-dt-note { text-align: left; }
.calcs-h2 { margin: 0; font-size: 16px; font-weight: 600; }
.calcs-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }

@media (max-width: 820px) {
  .calcs-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .calcs-view { gap: 18px; }
}
