/* Экран «Налоги и сборы» (/nalogi) — макет web/mockup/Nalogi*.dc.html
   (генератор — build_modes.py, tax_blocks). Отдельный файл, чтобы не
   трогать общий site.css: подключается только на nalogi.html. */

.tax { padding: 36px 40px 40px; gap: 24px; }
.tax__lead { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.tax__lead p { margin: 0; color: var(--ink-2); }
.tax__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.15; }

.tax-card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.tax-card--strong { border-color: var(--ink); padding: 18px 20px; }
.tax-muted { color: var(--muted); }
.tax-soft { margin: 0; font-size: 14px; color: var(--ink-2); }
.tax-serif { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.6; }

.tax-news { gap: 10px; }
.tax-news__kicker, .tax-kicker {
  margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.tax-news__kicker { color: #A3291F; }
.tax-kicker { color: var(--muted); }
.tax-news__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.tax-news__list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.tax-news__note { margin: 0; font-size: 13.5px; color: var(--ink-2); }
/* «Что изменится для меня» — свой список под кнопкой (бой 20.11, № 15) */
.tax-news__mine, .tax-news__paid { display: flex; flex-direction: column; gap: 10px; }
.tax-news__mine:focus { outline: none; }

.tax-section { display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 80px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tax-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.tax-field--region { max-width: 360px; }
.tax-hint { font-size: 12.5px; color: var(--muted); }
.tax-field input, .tax-field select {
  min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card);
  padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); width: 100%;
}
.tax-field input:focus-visible, .tax-field select:focus-visible { outline-offset: 0; border-color: var(--accent); }
.tax-field input[aria-invalid="true"] { border-color: var(--accent); }

.tax-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tax-action {
  text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: left; font: inherit; cursor: pointer;
}
.tax-action:hover { color: var(--ink); border-color: var(--ink); }
.tax-action__title { font-weight: 600; font-size: 16px; }
.tax-action__text { font-size: 14px; color: var(--ink-2); }
.tax-badge {
  align-self: flex-start; background: var(--sand); color: var(--ink-2); border-radius: 999px; padding: 2px 10px;
  font-size: 12.5px; font-weight: 500;
}
.tax-badge--strong { background: var(--accent); color: #FFFFFF; }

.tax-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 28px; align-items: start; }
.tax-grid--aside { grid-template-columns: minmax(0, 1fr) 400px; }
.tax-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
aside.tax-col { gap: 20px; }

.tax-result__head { font-weight: 600; font-size: 16px; margin: 0; }
.tax-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; font-size: 14.5px; }
.tax-rows li {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line);
}
.tax-rows span { color: var(--ink-2); }
.tax-rows b { font-weight: 500; }
.tax-result__sum { font-family: var(--serif); font-size: 34px; line-height: 1.1; margin-top: 6px; }
.tax-result__text { margin: 0; font-size: 14px; color: var(--ink-2); }
.tax-result__next { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.tax-result__note { margin: 0; font-size: 13px; }
/* Рамка итога получает фокус после расчёта (tabindex="-1") — обводка не нужна,
   итог и так перед глазами */
[data-refund-result]:focus, [data-regime-result]:focus { outline: none; }
.tax-sub { margin: 6px 0 0; font-weight: 600; font-size: 16px; }

.tax-warn { margin: 0; padding: 0 0 0 18px; font-size: 13.5px; color: #A3291F; display: flex; flex-direction: column; gap: 4px; }

.tax-norms { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.tax-pill { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 1px 10px; color: var(--ink-2); }

.tax-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; min-width: 0; }
.tax-steps li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line);
}
.tax-steps li:last-child { border-bottom: 1px solid var(--line); }
.tax-steps__n {
  grid-row: span 3; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); color: #A3291F;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}
.tax-steps b { font-weight: 600; }
.tax-steps p { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.6; }

.tax-form { gap: 14px; }
.tax-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; }
.tax-form__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.tax-fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tax-fieldset legend, .tax-fieldset summary { font-weight: 600; font-size: 14.5px; padding: 0 4px; cursor: default; }
.tax-fieldset summary { cursor: pointer; min-height: 32px; display: list-item; }
/* Номер шага в заголовке блока формы «Вернуть налог» — кружок, как у .tax-steps__n */
.tax-step {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 6px;
  border-radius: 50%; border: 1px solid var(--accent); color: #A3291F; font-size: 13px; font-weight: 600;
}
.tax-fieldset p { margin: 0; font-size: 13px; }
.tax-check { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; }
.tax-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.tax-draft { gap: 12px; }
.tax-docs { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }

.tax-table { overflow-x: auto; }
.tax-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tax-table thead th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding-bottom: 6px; }
.tax-table thead th:last-child, .tax-table td:last-child { text-align: right; }
.tax-table tbody tr { border-top: 1px solid var(--line); }
.tax-table tbody th { text-align: left; padding: 10px 12px 10px 0; font-weight: 600; vertical-align: top; }
.tax-table tbody th span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.tax-table td { padding: 10px 12px 10px 0; font-size: 14px; color: var(--ink-2); vertical-align: top; }
.tax-table td:last-child { padding-right: 0; font-family: var(--serif); font-size: 18px; white-space: nowrap; color: var(--ink); }
.tax-table tr.is-best td:last-child { color: #A3291F; }
.tax-table tr.is-off th, .tax-table tr.is-off td { color: var(--muted); }

.tax-how { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--ink-2); }

@media (max-width: 1180px) {
  .tax-grid, .tax-grid--aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .tax { padding: 32px 32px 40px; }
}
@media (max-width: 560px) {
  .tax { padding: 18px var(--gutter) 32px; gap: 22px; }
  .tax__title { font-size: 30px; }
  .tax-news__title { font-size: 22px; }
  .tax-actions { grid-template-columns: minmax(0, 1fr); }
  .tax-steps li { grid-template-columns: 28px minmax(0, 1fr); }
  .tax-table thead { display: none; }
  .tax-table tbody tr { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
  .tax-table tbody th, .tax-table td { padding: 0; }
  .tax-table td:last-child { text-align: left; }
}
