/* MTech Pay — дизайн-система веб-сайта и кабинета. Mobile-first, брейкпоинты 768 / 1024 (проверка 375, 768, 1024, 1440). */

:root {
  --bg: #f5f7fa;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0e1a2b;
  --text-muted: #546174;
  --border: #e0e6ee;
  --border-strong: #c5cfdb;
  --primary: #0a4d8c;
  --primary-hover: #083e71;
  --primary-text: #0a4d8c;
  --primary-soft: #e6f0fa;
  --on-primary: #ffffff;
  --accent: #047857;
  --accent-hover: #036249;
  --on-accent: #ffffff;
  --success-soft: #e3f4ec;
  --success-text: #05603f;
  --warning-soft: #fdf1d6;
  --warning-text: #7a4a00;
  --danger-solid: #b42318;
  --danger-hover: #93201a;
  --on-danger: #ffffff;
  --danger-soft: #fdeceb;
  --danger-text: #a3201a;
  --info-soft: #e6f0fa;
  --info-text: #0a4d8c;
  --neutral-soft: #edf0f4;
  --neutral-text: #44536a;
  --ring: #0a6cd6;
  --brand: #0a4d8c;
  --brand-deep: #083a6b;
  --hero-bg: #eef4fb;
  --shadow: 0 1px 2px rgb(14 26 43 / 0.05);
  --shadow-lg: 0 12px 32px rgb(14 26 43 / 0.12);
  --radius: 10px;
  --radius-sm: 8px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0e1627;
  --surface: #121b2d;
  --surface-2: #17223a;
  --text: #e8eef6;
  --text-muted: #a3b1c2;
  --border: #243249;
  --border-strong: #35476a;
  --primary: #6cb4f5;
  --primary-hover: #8cc5f7;
  --primary-text: #8cc5f7;
  --primary-soft: #15304f;
  --on-primary: #06121f;
  --accent: #34d399;
  --accent-hover: #5ee0ae;
  --on-accent: #04231a;
  --success-soft: #0f2f26;
  --success-text: #6ee7b7;
  --warning-soft: #35270c;
  --warning-text: #f5b544;
  --danger-solid: #ff8a80;
  --danger-hover: #ffa69e;
  --on-danger: #2a0805;
  --danger-soft: #3a1714;
  --danger-text: #ff9d94;
  --info-soft: #13294a;
  --info-text: #8cc5f7;
  --neutral-soft: #1d2a40;
  --neutral-text: #b3c0d0;
  --ring: #8cc5f7;
  --brand: #0c3f74;
  --brand-deep: #082d54;
  --hero-bg: #0e1930;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.55);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-alt: #0e1627;
    --surface: #121b2d;
    --surface-2: #17223a;
    --text: #e8eef6;
    --text-muted: #a3b1c2;
    --border: #243249;
    --border-strong: #35476a;
    --primary: #6cb4f5;
    --primary-hover: #8cc5f7;
    --primary-text: #8cc5f7;
    --primary-soft: #15304f;
    --on-primary: #06121f;
    --accent: #34d399;
    --accent-hover: #5ee0ae;
    --on-accent: #04231a;
    --success-soft: #0f2f26;
    --success-text: #6ee7b7;
    --warning-soft: #35270c;
    --warning-text: #f5b544;
    --danger-solid: #ff8a80;
    --danger-hover: #ffa69e;
    --on-danger: #2a0805;
    --danger-soft: #3a1714;
    --danger-text: #ff9d94;
    --info-soft: #13294a;
    --info-text: #8cc5f7;
    --neutral-soft: #1d2a40;
    --neutral-text: #b3c0d0;
    --ring: #8cc5f7;
    --brand: #0c3f74;
    --brand-deep: #082d54;
    --hero-bg: #0e1930;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.55);
    color-scheme: dark;
  }
}

/* ---------- База ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary-text);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

code,
pre,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.text-muted {
  color: var(--text-muted);
}

.fw-600 {
  font-weight: 600;
}

.break-all {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }

.container {
  --maxw: 1160px;
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--app {
  --maxw: 1200px;
}

.container--narrow {
  --maxw: 780px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }
}

/* ---------- Логотип, иконки-кнопки ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.logo__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.logo__text {
  color: var(--text);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.theme-icon {
  display: none;
}

.theme-icon--light {
  display: inline-flex;
}

:root[data-theme="dark"] .theme-icon--light {
  display: none;
}

:root[data-theme="dark"] .theme-icon--dark {
  display: inline-flex;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon--light {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-icon--dark {
    display: inline-flex;
  }
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: 500 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
}

.btn--quiet {
  background: transparent;
  color: var(--text-muted);
}

.btn--quiet:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn--danger {
  background: var(--danger-solid);
  color: var(--on-danger);
}

.btn--danger:hover {
  background: var(--danger-hover);
}

.btn--light {
  background: #ffffff;
  color: #0a4d8c;
}

.btn--light:hover {
  background: #e6f0fa;
}

.btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
}

.btn--lg {
  height: 44px;
  padding: 0 22px;
}

.btn--block {
  width: 100%;
}

.btn--icon {
  padding: 0;
  width: 32px;
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.is-copied {
  color: var(--success-text);
}

@media (pointer: coarse) {
  .btn {
    height: 44px;
  }
  .btn--sm {
    height: 40px;
  }
  .btn--lg {
    height: 48px;
  }
  .btn--icon {
    width: 40px;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
  }
  .input,
  .select {
    font-size: 16px;
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ---------- Карточки ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card--toolbar {
  padding: 14px 16px;
}

.card--danger {
  border-color: var(--danger-text);
}

.card--warning {
  border-color: var(--warning-text);
  background: var(--warning-soft);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  border-bottom: 1px solid var(--border);
}

.card__heading,
.card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.card__head .card__heading {
  margin: 0;
}

.card__text {
  color: var(--text-muted);
}

.card__empty {
  margin: 0;
  padding: 20px;
  color: var(--text-muted);
}

.section-row .card:last-child,
.detail-side .card:last-child {
  margin-bottom: 0;
}

/* ---------- Заголовок страницы ---------- */

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.page-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 650;
}

.page-subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 26px;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Формы ---------- */

.form {
  max-width: 460px;
}

.field {
  margin-bottom: 16px;
}

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
}

.input,
.select {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: 400 15px/1.2 var(--font);
}

.input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.input:hover,
.select:hover {
  border-color: var(--text-muted);
}

.input:focus-visible,
.select:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 0;
  border-color: var(--ring);
}

.input[readonly] {
  background: var(--surface-2);
  color: var(--text-muted);
}

.input[aria-invalid="true"] {
  border-color: var(--danger-text);
}

.input--amount {
  font-variant-numeric: tabular-nums;
}

@media (pointer: coarse) {
  .input,
  .select {
    height: 44px;
  }
}

.input-group {
  display: flex;
  gap: 8px;
}

.input-group .input {
  flex: 1;
  min-width: 0;
}

.hint {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.field-error {
  margin: 6px 0 0;
  color: var(--danger-text);
  font-size: 13px;
  font-weight: 500;
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--danger-text);
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger-text);
  font-weight: 500;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
  flex: none;
}

/* ---------- Бейджи, уведомления ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.badge .icon {
  width: 13px;
  height: 13px;
}

.badge--success { background: var(--success-soft); color: var(--success-text); }
.badge--warning { background: var(--warning-soft); color: var(--warning-text); }
.badge--danger { background: var(--danger-soft); color: var(--danger-text); }
.badge--info { background: var(--info-soft); color: var(--info-text); }
.badge--neutral { background: var(--neutral-soft); color: var(--neutral-text); }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.notice p {
  margin: 0;
}

.notice .icon {
  margin-top: 2px;
}

.notice--warning {
  background: var(--warning-soft);
  border-color: var(--warning-text);
  color: var(--warning-text);
}

.notice--info {
  background: var(--info-soft);
  border-color: var(--info-text);
  color: var(--info-text);
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px 10px 14px;
  border: 1px solid;
  border-radius: var(--radius);
}

.flash__text {
  flex: 1;
  margin: 0;
  padding-top: 1px;
  font-weight: 500;
}

.flash .icon {
  margin-top: 3px;
}

.flash__close {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex: none;
}

.flash__close:hover {
  background: rgb(128 128 128 / 0.18);
}

.flash--ok { background: var(--success-soft); border-color: var(--success-text); color: var(--success-text); }
.flash--error { background: var(--danger-soft); border-color: var(--danger-text); color: var(--danger-text); }
.flash--info { background: var(--info-soft); border-color: var(--info-text); color: var(--info-text); }

.empty {
  padding: 40px 20px;
  text-align: center;
}

.empty__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.empty__icon .icon {
  width: 22px;
  height: 22px;
}

.empty__title {
  margin: 0 0 6px;
  font-size: 17px;
}

.empty__text {
  max-width: 420px;
  margin: 0 auto 16px;
  color: var(--text-muted);
}

/* ---------- Таблицы ---------- */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: var(--surface-2);
}

.table .num,
.table .td-amount {
  text-align: right;
}

.td-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.td-date {
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.td-main {
  min-width: 160px;
}

.table-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.table-link:hover {
  color: var(--primary-text);
  text-decoration: underline;
}

.td-url {
  min-width: 220px;
  max-width: 340px;
}

.td-actions {
  text-align: right;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.actions form {
  margin: 0;
}

@media (max-width: 767px) {
  .table--cards thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table--cards,
  .table--cards tbody,
  .table--cards tr,
  .table--cards td {
    display: block;
    width: 100%;
  }
  .table--cards tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  .table--cards tbody tr:last-child {
    border-bottom: 0;
  }
  .table--cards td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    max-width: none;
    padding: 4px 0;
    border: 0;
    text-align: right;
  }
  .table--cards td[data-label]::before {
    content: attr(data-label);
    flex: none;
    color: var(--text-muted);
    font-size: 13px;
    text-align: left;
  }
  .table--cards td.td-actions {
    justify-content: flex-start;
    padding-top: 8px;
  }
  .table--cards .actions {
    justify-content: flex-start;
  }
  .table--cards td.td-url .copybox {
    min-width: 0;
    flex: 1;
  }
  .table--cards td.td-main {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin: 16px 0;
}

.pagination__info {
  color: var(--text-muted);
  font-size: 14px;
}

.pagination__btns {
  display: flex;
  gap: 8px;
}

@media (max-width: 479px) {
  .pagination {
    justify-content: space-between;
  }
}

/* ---------- Фильтры ---------- */

.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.filters .field {
  margin: 0;
}

.filters__q,
.filters__actions {
  grid-column: 1 / -1;
}

.filters__actions {
  display: flex;
  gap: 8px;
}

@media (min-width: 1024px) {
  .filters {
    grid-template-columns: minmax(200px, 1fr) 150px 160px 160px auto;
  }
  .filters__q,
  .filters__actions {
    grid-column: auto;
  }
}

/* ---------- Копируемые поля, код ---------- */

.copybox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.copybox code {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.copybox--inline code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copybox--secret code {
  overflow-wrap: anywhere;
  user-select: all;
}

.code-block {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: #0b1424;
  color: #e6edf6;
  font-size: 13px;
  line-height: 1.65;
}

.code-block code {
  font-size: inherit;
}

/* ---------- KPI, детали ---------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 1024px) {
  .kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.kpi {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kpi__label {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.kpi__value {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.kpi__sub {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

@media (min-width: 768px) {
  .kpi {
    padding: 18px 20px;
  }
  .kpi__value {
    font-size: 26px;
  }
}

.detail-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.detail-side {
  display: grid;
  gap: 16px;
  order: -1;
}

.detail-grid > .card,
.detail-side > .card {
  margin: 0;
}

@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .detail-side {
    order: 0;
  }
}

.summary__amount {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.dl {
  margin: 0;
}

.dl__item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.dl__item:last-child {
  border-bottom: 0;
}

.dl dt {
  color: var(--text-muted);
}

.dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 599px) {
  .dl__item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.stat-label {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Настройки: «описание слева + поля справа» ---------- */

.settings {
  display: flex;
  flex-direction: column;
}

.section-row {
  display: grid;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.section-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-row:last-child {
  padding-bottom: 0;
}

.section-row__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.section-row__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.section-row__body {
  min-width: 0;
}

@media (min-width: 1024px) {
  .section-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 40px;
    padding: 28px 0;
  }
  .section-row__info {
    padding-right: 8px;
  }
}

/* ---------- Кабинет: оболочка ---------- */

.app-shell {
  min-height: 100vh;
}

.sidebar {
  display: none;
}

.app-col {
  min-width: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding-inline: var(--gutter);
}

.app-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.app-menu,
.site-menu {
  position: static;
}

.app-menu summary,
.site-menu summary {
  cursor: pointer;
}

.menu-ico {
  display: inline-flex;
}

.menu-ico--open {
  display: none;
}

details[open] > summary .menu-ico--closed {
  display: none;
}

details[open] > summary .menu-ico--open {
  display: inline-flex;
}

.app-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 8px var(--gutter) 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.app-menu__nav {
  display: grid;
  gap: 2px;
}

.app-menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.app-menu__logout,
.sidebar__logout {
  margin: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.nav-item[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-text);
}

.org {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.org__avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 700;
}

.org__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.topbar {
  display: none;
}

.app-main {
  padding: 20px 0 48px;
}

.app-main:focus {
  outline: none;
}

@media (min-width: 1024px) {
  .app-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 16px 12px;
    background: var(--surface);
    border-right: 1px solid var(--border);
  }
  .sidebar__top {
    padding: 4px 8px 20px;
  }
  .sidebar__nav {
    display: grid;
    gap: 2px;
    align-content: start;
    flex: 1;
  }
  .sidebar__foot {
    display: grid;
    gap: 8px;
    padding: 12px 8px 0;
    border-top: 1px solid var(--border);
  }
  .sidebar__logout .btn {
    width: 100%;
    justify-content: flex-start;
  }
  .app-header {
    display: none;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: block;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
  }
  .topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding-inline: var(--gutter);
  }
  .app-main {
    padding: 28px 0 64px;
  }
  .back-link {
    display: none;
  }
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
}

.crumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

.crumbs li[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Сайт: шапка, подвал ---------- */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

.site-main:focus {
  outline: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.site-nav {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__buttons {
  display: none;
  gap: 8px;
}

.site-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px var(--gutter) 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.site-menu__nav {
  display: grid;
}

.site-menu__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.site-menu__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    gap: 4px;
    margin-left: 24px;
    margin-right: auto;
  }
  .site-nav a {
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
  }
  .site-nav a:hover {
    background: var(--surface-2);
    color: var(--text);
  }
  .site-header__buttons {
    display: flex;
  }
  .site-menu {
    display: none;
  }
}

.site-footer {
  margin-top: 0;
  padding: 40px 0 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.site-footer__brand {
  grid-column: 1 / -1;
}

.site-footer__brand p {
  max-width: 300px;
  margin: 12px 0 0;
  color: var(--text-muted);
}

.site-footer__h {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary-text);
  text-decoration: underline;
}

.site-footer__note {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: auto;
  }
}

.site-footer--compact {
  padding: 20px 0;
  background: transparent;
  border-top: 0;
}

.site-footer--compact .site-footer__note {
  margin-top: 10px;
}

/* ---------- Лендинг ---------- */

.hero {
  padding: 44px 0 48px;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 600;
}

.hero__title {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 520px;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__visual {
  display: none;
}

@media (min-width: 768px) {
  .hero {
    padding: 64px 0 72px;
  }
  .hero__title {
    font-size: 42px;
  }
  .hero__visual {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 88px 0 96px;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
  }
  .hero__title {
    font-size: 48px;
  }
}

.mock {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.mock__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock__title {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.mock__body {
  padding: 16px;
}

.mock__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.mock__kpi {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.mock__kpi span {
  color: var(--text-muted);
  font-size: 12px;
}

.mock__kpi strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mock__list {
  border: 1px solid var(--border);
  border-radius: 8px;
}

.mock__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 84px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}

.mock__row:last-child {
  border-bottom: 0;
}

.mock__main {
  display: grid;
  min-width: 0;
}

.mock__main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.mock__main span {
  color: var(--text-muted);
  font-size: 12px;
}

.mock__sum {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 1239px) {
  .mock .badge .icon {
    display: none;
  }
}

.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section--tight {
  padding: 40px 0 64px;
}

.section__head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section__title {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

@media (min-width: 1024px) {
  .section {
    padding: 80px 0;
  }
  .section__title {
    font-size: 32px;
  }
}

.features {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.feature {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-text);
}

.feature__icon .icon {
  width: 20px;
  height: 20px;
}

.feature__title {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature__text {
  margin: 0;
  color: var(--text-muted);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

.step__title {
  margin: 0 0 6px;
  font-size: 16px;
}

.step__text {
  margin: 0;
  color: var(--text-muted);
}

.dev {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .dev {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px;
  }
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checklist .icon {
  margin-top: 3px;
  color: var(--accent);
}

.code-card {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #0b1424;
  box-shadow: var(--shadow-lg);
}

.code-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #22314a;
  color: #a9b8cb;
  font-size: 13px;
}

.code-card .code-block {
  border-radius: 0;
  white-space: pre;
}

.code-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.important {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--info-text);
  border-radius: var(--radius);
  background: var(--info-soft);
  color: var(--text);
}

.important .icon {
  margin-top: 3px;
  color: var(--info-text);
}

.important h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.important p {
  margin: 0;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq__item summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  font-weight: 600;
  cursor: pointer;
}

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.faq__item[open] summary::after {
  margin-top: -2px;
  transform: rotate(225deg);
}

.faq__item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-muted);
}

.cta-band {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 32px 24px;
  border-radius: 12px;
  background: var(--brand);
  color: #ffffff;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #ffffff;
}

.cta-band p {
  margin: 0;
  color: #dbe8f6;
}

.cta-band .btn {
  justify-self: start;
}

@media (min-width: 768px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    padding: 40px 48px;
  }
}

/* ---------- Документы, ошибки ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
}

.doc h1 {
  font-size: 30px;
}

.doc h2 {
  margin-top: 1.8em;
  font-size: 19px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc__meta {
  color: var(--text-muted);
}

.doc__note {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--info-text);
  border-radius: var(--radius);
  background: var(--info-soft);
}

.error-page {
  padding: 80px 0 96px;
  text-align: center;
}

.error-page__code {
  margin: 0 0 8px;
  color: var(--primary-text);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ---------- Вход / регистрация ---------- */

.auth-layout {
  min-height: 100vh;
}

.auth-aside {
  display: none;
}

.auth-col {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
}

.auth-main {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  padding: 24px var(--gutter) 32px;
}

.auth-main:focus {
  outline: none;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.auth-card .lead {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.auth-card .form {
  max-width: none;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 20px;
  font-size: 14px;
}

form.auth-links {
  margin: 12px 0 0;
}

@media (min-width: 1024px) {
  .auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .auth-aside {
    display: block;
    background: var(--brand);
    color: #ffffff;
  }
  .auth-aside__inner {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 40px 56px;
    background-image: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  }
  .auth-aside .logo {
    color: #ffffff;
    --on-primary: #0a4d8c;
  }
  .auth-aside .logo__text {
    color: #ffffff;
  }
  .auth-aside__title {
    max-width: 440px;
    margin: 0 0 28px;
    font-size: 30px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  .auth-aside__list {
    display: grid;
    gap: 16px;
    max-width: 440px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .auth-aside__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e3edf8;
    font-size: 15px;
  }
  .auth-aside__list .icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: #ffffff;
  }
  .auth-aside__foot {
    margin: 0;
    color: #b9cde4;
    font-size: 13px;
  }
  .auth-top {
    justify-content: flex-end;
    padding: 16px 24px;
  }
  .auth-top .logo {
    display: none;
  }
  .auth-main {
    align-items: center;
    padding-block: 16px 48px;
  }
}

/* ---------- Страница оплаты ---------- */

.pay-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
}

.pay-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.pay-card__main {
  padding: 24px 20px;
}

.pay-card__side {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.pay-card__org {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.pay-card__title {
  margin: 0 0 20px;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.pay-card__label {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.pay-card__amount {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.pay-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.pay-card__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.pay-qr {
  width: 100%;
  max-width: 220px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  line-height: 0;
}

.pay-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.pay-status {
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .pay-wrap {
    padding-top: 48px;
  }
  .pay-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .pay-card__main {
    padding: 36px 36px 32px;
  }
  .pay-card__side {
    align-content: center;
    border-top: 0;
    border-left: 1px solid var(--border);
    padding: 36px 24px;
  }
}

/* ---------- Печать ---------- */

@media print {
  .sidebar,
  .app-header,
  .topbar,
  .site-header,
  .site-footer,
  .skip-link {
    display: none !important;
  }
  .app-shell {
    display: block;
  }
}

.dev > *,
.hero__inner > *,
.detail-grid > *,
.section-row > * {
  min-width: 0;
}

@media (max-width: 767px) {
  .table--cards tr {
    display: flex;
    flex-direction: column;
  }
  .table--cards td.td-main {
    order: -1;
    justify-content: flex-start;
    padding-bottom: 6px;
    text-align: left;
    font-size: 15px;
  }
  .table--cards td.td-main::before {
    display: none;
  }
}

/* ---------- Кассы Kaspi и приём оплат ---------- */

.cashier-error {
  margin: 4px 0 0;
  color: var(--danger-text);
  font-size: 13px;
  font-weight: 400;
}

.howto__list {
  margin: 0 0 16px;
  padding-left: 20px;
}

.howto__list li {
  margin-bottom: 10px;
}

.howto__note {
  margin: 0;
}

.input--code {
  max-width: 200px;
  font-size: 22px;
  letter-spacing: 0.3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.divider {
  height: 1px;
  margin: 20px 0;
  border: 0;
  background: var(--border);
}

.choices {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.choices .label {
  padding: 0;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.choice:hover {
  border-color: var(--text-muted);
}

.choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.choice input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.choice__body {
  display: grid;
  gap: 2px;
}

.choice__title {
  font-weight: 600;
}

.choice__text {
  color: var(--text-muted);
  font-size: 13px;
}

.pay-now {
  margin-bottom: 16px;
}

.pay-now__grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.pay-now .pay-qr {
  max-width: 240px;
}

@media (min-width: 640px) {
  .pay-now__grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }
}

.refund-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.refund-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.pay-card--single {
  display: block;
  max-width: 480px;
  margin: 0 auto;
}

.pay-card--single .pay-card__main {
  padding: 28px 24px;
}

.pay-card__timer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.pay-result {
  text-align: center;
}

.pay-result__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success-text);
}

.pay-result__icon .icon {
  width: 28px;
  height: 28px;
}

.pay-result__icon--bad {
  background: var(--neutral-soft);
  color: var(--neutral-text);
}

/* ---------- Раздел разработчика и документация API ---------- */

.reveal__fields {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.reveal .code-block code {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.idcell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.idcell__code {
  overflow-wrap: anywhere;
}

.container--docs {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.docs {
  display: grid;
  gap: 24px;
}

.docs__toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs__toc a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.docs__toc a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.docs__body {
  min-width: 0;
}

.doc-section {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  scroll-margin-top: 80px;
}

.doc-section__title {
  margin: 0 0 12px;
  font-size: 20px;
}

.doc-h3 {
  margin: 20px 0 8px;
  font-size: 16px;
}

.doc-steps {
  padding-left: 20px;
}

.doc-code {
  margin: 12px 0;
}

.doc-code__cap {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.doc-section code {
  overflow-wrap: anywhere;
}

.doc-section .code-block code {
  overflow-wrap: normal;
}

.endpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 6px;
}

.endpoint__path {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.method {
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.method--get {
  background: var(--info-soft);
  color: var(--info-text);
}

.method--post {
  background: var(--success-soft);
  color: var(--success-text);
}

@media (min-width: 1024px) {
  .docs {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }
  .docs__toc {
    position: sticky;
    top: 88px;
  }
  .docs__toc ol {
    flex-direction: column;
    gap: 2px;
  }
  .docs__toc a {
    display: block;
    border: 0;
    border-radius: 8px;
    background: transparent;
  }
  .docs__toc a:hover {
    background: var(--surface-2);
  }
}

.keystatus {
  margin-top: 6px;
}

.keyact {
  display: block;
  font-size: 14px;
}

.table--keys .actions {
  flex-direction: column;
  align-items: stretch;
}

/* === Компоненты: вкладки, модальные окна, меню действий, раздел разработчика === */

.tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}
.tabs__item:hover { color: var(--text); }
.tabs__item[aria-current="page"] {
  color: var(--primary-text);
  border-bottom-color: var(--primary);
}
.tabs__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--neutral-soft);
  color: var(--neutral-text);
  font-size: 12px;
  font-weight: 600;
}
.tabs__item[aria-current="page"] .tabs__count { background: var(--primary-soft); color: var(--primary-text); }

/* Модальные окна */
.modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.modal--sm { width: min(420px, calc(100vw - 32px)); }
.modal--lg { width: min(680px, calc(100vw - 32px)); }
.modal::backdrop { background: rgb(8 14 26 / 0.55); }
.modal[open] { animation: modal-in 160ms ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px 24px;
  border-bottom: 1px solid var(--border);
}
.modal__title { margin: 0; font-size: 18px; font-weight: 600; }
.modal__body { padding: 20px 24px; display: grid; gap: 16px; }
.modal__body > * { margin: 0; }
.modal__body .notice { margin: 0; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.confirm__text { margin: 0; line-height: 1.55; }
@media (max-width: 480px) {
  .modal__foot { flex-direction: column-reverse; }
  .modal__foot .btn { width: 100%; }
}

/* Меню действий «⋯» */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.menu__list form { margin: 0; }
.menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.menu__item .icon { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.menu__item:hover, .menu__item:focus-visible { background: var(--surface-2); }
.menu__item--danger, .menu__item--danger .icon { color: var(--danger-text); }
.menu__item--danger:hover { background: var(--danger-soft); }

/* Раскрывающийся блок */
.disclosure { margin-top: 16px; }
.disclosure__summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.disclosure__summary::-webkit-details-marker { display: none; }
.disclosure__summary .icon { width: 18px; height: 18px; transition: transform 150ms ease; }
.disclosure[open] .disclosure__summary .icon { transform: rotate(90deg); }
.disclosure > .card { margin-top: 8px; }

/* Поле с копированием */
.copyfield {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.copyfield__value {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  overflow-wrap: anywhere;
  background: none;
  padding: 6px 0;
}
.copyfield--secret { border-color: var(--warning-text); background: var(--warning-soft); }
.copyfield--secret .copyfield__value { color: var(--text); }
.copyfield__btn.is-copied { color: var(--success-text); }

.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-success { color: var(--success-text); }
.text-warning { color: var(--warning-text); }

/* Раздел разработчика: основная колонка + боковая */
.dev-grid { display: grid; gap: 24px; }
.dev-grid__main, .dev-grid__aside { display: grid; gap: 16px; align-content: start; min-width: 0; }
.dev-grid__aside .card { margin: 0; }
@media (min-width: 1200px) {
  .dev-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .dev-grid__aside { position: sticky; top: 84px; }
}
.dev-grid .card { margin-bottom: 0; }

.checklist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.checklist .icon { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.checklist li.is-done { color: var(--text-muted); text-decoration: line-through; }
.checklist li.is-done .icon { color: var(--success-text); }

.endpoint-card { display: grid; gap: 16px; }
.endpoint-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.endpoint-card__title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 320px; }
.endpoint-card__text { min-width: 0; }
.endpoint-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
}
.endpoint-card__icon--success { background: var(--success-soft); color: var(--success-text); }
.endpoint-card__icon--warning { background: var(--warning-soft); color: var(--warning-text); }
.endpoint-card__url { display: block; font-family: var(--mono); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; background: none; padding: 0; }
.endpoint-card__actions { display: flex; align-items: center; gap: 8px; }
.endpoint-card__actions form { margin: 0; }
.endpoint-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.endpoint-card__stats > div { padding: 12px 16px; display: grid; gap: 2px; }
.endpoint-card__stats > div + div { border-left: 1px solid var(--border); }
.endpoint-card__num { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.endpoint-card .notice { margin: 0; align-items: center; }
.endpoint-card .notice p { flex: 1; }
@media (max-width: 560px) {
  .endpoint-card__stats { grid-template-columns: 1fr; }
  .endpoint-card__stats > div + div { border-left: 0; border-top: 1px solid var(--border); }
}

.td-actions .menu { vertical-align: middle; }
.table .badge { margin-left: 6px; vertical-align: 1px; }

/* Реквизиты в юридических документах */
.doc-req { display: grid; gap: 0; margin: 12px 0 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.doc-req > div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 10px 14px; }
.doc-req > div + div { border-top: 1px solid var(--border); }
.doc-req dt { color: var(--text-muted); }
.doc-req dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .doc-req > div { grid-template-columns: 1fr; gap: 2px; } }

/* === Кабинет: платежи, ссылки, кассы, настройки (вкладки, панели, хронология) === */

a.menu__item { text-decoration: none; }
.menu__item .icon { flex: none; }
.td-actions .actions { justify-content: flex-end; align-items: center; flex-wrap: nowrap; }
.td-actions .actions form { margin: 0; }

/* Поиск и фильтры над таблицей */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.toolbar__search { position: relative; flex: 1 1 260px; min-width: 0; }
.toolbar__search .icon { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.toolbar__search .input { width: 100%; padding-left: 38px; }
.toolbar__filters > summary { display: inline-flex; }
.toolbar__submit { flex: none; }
.filter-panel { width: 320px; max-width: calc(100vw - 16px); padding: 16px; display: grid; gap: 12px; }
.filter-panel__title { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.filter-panel__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-panel__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-panel__dates .field { margin: 0; min-width: 0; }
.filter-panel__foot { display: flex; justify-content: flex-end; gap: 8px; }

.cell-sub { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.tabs + .toolbar { margin-top: -8px; }

/* Страница платежа */
.pay-head__id { margin: 0 0 4px; color: var(--text-muted); font-size: 13px; }
.pay-head__amount { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.pay-head__amount .badge { font-size: 13px; }
.pay-head .page-actions { align-items: center; }
.pay-head .page-actions form { margin: 0; }
.pay-side { display: grid; gap: 14px; justify-items: stretch; }
.pay-side .card__heading { margin: 0; }
.pay-side .pay-qr { justify-self: center; max-width: 240px; }
.pay-side p { margin: 0; }
.dev-grid .card .dl { margin: 0; }
.dev-grid .card > .card__heading { margin-bottom: 12px; }
.dev-grid .pay-side > .card__heading { margin-bottom: 0; }
@media (max-width: 1199px) {
  .dev-grid--aside-first .dev-grid__aside { order: -1; }
}

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 4px solid var(--neutral-soft); background: var(--text-muted); box-sizing: border-box; }
.timeline__item--ok .timeline__dot { background: var(--success-text); border-color: var(--success-soft); }
.timeline__item--warn .timeline__dot { background: var(--warning-text); border-color: var(--warning-soft); }
.timeline__item--bad .timeline__dot { background: var(--danger-text); border-color: var(--danger-soft); }
.timeline__item--wait .timeline__dot { background: transparent; border: 2px dashed var(--warning-text); }
.timeline__item--info .timeline__dot { background: var(--primary); border-color: var(--primary-soft); }
.timeline__title { margin: 0; font-weight: 600; }
.timeline__text { margin: 2px 0 0; color: var(--text-muted); font-size: 14px; }
.timeline__time { margin: 2px 0 0; color: var(--text-muted); font-size: 13px; }

/* Главная: касса, быстрые действия */
.status-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.status-line__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: none; }
.status-line--ok .status-line__icon { background: var(--success-soft); color: var(--success-text); }
.status-line--warn .status-line__icon { background: var(--warning-soft); color: var(--warning-text); }
.status-line__title { margin: 0; font-weight: 600; }
.status-line__text { margin: 2px 0 0; color: var(--text-muted); font-size: 14px; }
.dl--compact .dl__item { grid-template-columns: 120px minmax(0, 1fr); padding: 8px 0; font-size: 14px; }
.dl--compact { margin-bottom: 14px; }
.dev-grid__aside .card > .card__heading { margin-bottom: 12px; }
.dev-grid__aside .card > .between { margin-bottom: 12px; }
.dev-grid__aside .card > .between .card__heading { margin: 0; }
.dev-grid__aside .checklist a { text-decoration: underline; text-underline-offset: 2px; }

.quick-list { display: grid; gap: 2px; margin: 0 -8px; }
.quick-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.quick-list__item > span { flex: 1; font-weight: 500; }
.quick-list__item .icon { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.quick-list__item:hover { background: var(--surface-2); }

/* Кассы: окна */
.howto__title { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.modal__body .howto { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.modal__aside {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px 14px;
  border-top: 1px solid var(--border);
}
.modal__aside .btn { flex: none; }

/* Настройки */
.settings .card--flush { overflow: hidden; }
.settings .section-row__body > .card--flush + .hint { margin-top: 10px; }
.card__head .actions { margin-left: auto; }
.card__head .text-sm { margin: 2px 0 0; }

@media (max-width: 640px) {
  .toolbar__submit { display: none; }
  .filter-panel__dates { grid-template-columns: 1fr; }
  .card__head { flex-wrap: wrap; }
  .card__head .actions { margin-left: 0; width: 100%; justify-content: flex-start; }
  .td-actions .actions { justify-content: flex-start; }
}
.modal__foot { position: sticky; bottom: 0; z-index: 1; }
.modal__head { position: sticky; top: 0; z-index: 2; background: var(--surface); }
@media (max-width: 767px) {
  .table--cards tr { position: relative; }
  .table--cards td.td-main { display: block; text-align: left; padding-right: 52px; }
  .table--cards td.td-actions { position: absolute; top: 8px; right: 10px; width: auto; padding: 0; }
  .table--cards td.td-actions .actions { justify-content: flex-end; }
  .table--cards td.td-main .cell-sub { display: inline-block; margin-left: 6px; }
}

/* Уведомления (вебхуки) в карточке платежа */
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.notif-list__item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.notif-list__item:last-child { padding-bottom: 0; border-bottom: 0; }

/* Документация: обязательные предупреждения и чек-лист */
.doc-callout {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  line-height: 1.55;
}
.doc-callout--danger { border-color: var(--danger-text); background: var(--danger-soft); color: var(--text); }
.doc-callout--danger strong { color: var(--danger-text); }
.doc-checklist { padding-left: 0; list-style: none; counter-reset: chk; display: grid; gap: 8px; }
.doc-checklist li { counter-increment: chk; position: relative; padding: 10px 12px 10px 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.doc-checklist li::before {
  content: counter(chk);
  position: absolute; left: 12px; top: 9px;
  display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--primary-soft); color: var(--primary-text);
  font-size: 12px; font-weight: 700;
}

/* === Песочница (тестовый режим) === */

.notice--success {
  background: var(--success-soft);
  border-color: var(--success-text);
  color: var(--success-text);
}

.sandbox-intro { margin-bottom: 16px; }

/* Переключатель «Боевые / Тестовые» */
.mode-switch {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.mode-switch__item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.mode-switch__item:hover { color: var(--text); }
.mode-switch__item[aria-current="page"] {
  background: var(--surface);
  color: var(--primary-text);
  box-shadow: 0 1px 2px rgb(0 0 0 / .08);
}
.mode-switch + .notice { margin-bottom: 16px; }

/* Чек-лист «Готовность к запуску» */
.ready { margin-bottom: 16px; }
.ready__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.ready__item { display: flex; align-items: flex-start; gap: 12px; }
.ready__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.ready__mark .icon { width: 16px; height: 16px; }
.ready__item--ok .ready__mark { background: var(--success-soft); color: var(--success-text); }
.ready__item--todo .ready__mark { background: var(--danger-soft); color: var(--danger-text); }
.ready__title { margin: 0; font-weight: 600; }
.ready__sub { margin: 2px 0 0; color: var(--text-muted); font-size: 14px; }
.ready__done { margin: 12px 0 0; }
.ready__steps { margin: 8px 0; padding-left: 20px; }
.ready__steps li { margin: 4px 0; }
.ready__done .hint { color: inherit; margin: 8px 0 0; }

/* Тестовая оплата: плашка и кнопки симуляции */
.pay-test { margin-bottom: 16px; }
.pay-sim { display: grid; gap: 8px; margin: 16px 0; }
.pay-sim form { margin: 0; }

.plain-list { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 6px; }
.card__foot-note { margin: 0; padding: 12px 16px; border-top: 1px solid var(--border); }
.modal .code-block { white-space: pre-wrap; overflow-wrap: anywhere; }
.dev-grid > * { min-width: 0; }
.dev-grid__aside .code-block { white-space: pre-wrap; overflow-wrap: anywhere; }
