/* База личного кабинета «Стриж». Только CSS, без фреймворков и внешних шрифтов.
   Токены – tokens.css. Контрольные ширины: 360, 768, 1024, 1440. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--slate-900); background: var(--slate-25); -webkit-font-smoothing: antialiased; overflow-x: clip;
  min-height: 100vh; display: flex; flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-900); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--slate-900); }
h1 { font-size: clamp(26px, 2.2vw + 18px, 36px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.12; }
h2 { font-size: clamp(21px, 1vw + 16px, 26px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: 10px; }
ul, ol { margin: 0; padding: 0; }
small, .muted { font-size: 14px; color: var(--slate-600); }
.strong { font-weight: 500; }
.mono { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid rgba(47, 115, 194, .45); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip:focus { top: 8px; }

/* ---------- Сетка ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.page { flex: 1; padding: 28px 0 56px; }
@media (min-width: 768px) { .page { padding: 40px 0 72px; } }
.page__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; margin-bottom: var(--gap-head); }
.page__head .lead { margin-top: 8px; color: var(--slate-600); max-width: 64ch; }
.page__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--slate-600); margin-bottom: 12px; }
.crumbs a { color: var(--slate-600); }
.crumbs a:hover { color: var(--blue-900); }
.stack { display: grid; gap: var(--gap-grid); }
.stack > *, .layout > *, .grid > * { min-width: 0; }
.stack--lg { gap: 32px; }
.grid { display: grid; gap: var(--gap-grid); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .layout--wide-side { grid-template-columns: minmax(0, 1fr) 380px; }
}
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.row--between { justify-content: space-between; }
.section + .section { margin-top: 40px; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.section__head .count { color: var(--slate-500); font-weight: 400; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--slate-150); }
.header__inner { display: flex; align-items: center; gap: 16px; height: 68px; }
@media (min-width: 1024px) { .header__inner { height: var(--header-h); gap: 32px; } }
.header__logo { flex: none; display: inline-flex; }
.header__logo img { height: 36px; width: auto; }
@media (min-width: 768px) { .header__logo img { height: 44px; } }
.header__nav { display: none; }
.header__nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; color: var(--slate-700); font-size: 16px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.header__nav a:hover { color: var(--blue-900); text-decoration: none; }
.header__nav a[aria-current="page"] { color: var(--blue-900); border-bottom-color: var(--blue-900); }
.header__user { display: none; margin-left: auto; align-items: center; gap: 14px; }
.header__user .who { text-align: right; line-height: 1.3; }
.header__user .who b { display: block; font-weight: 500; font-size: 15px; color: var(--slate-900); }
.header__user .who span { font-size: 14px; color: var(--slate-600); }
.header__toggle { margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--slate-200); background: #fff; color: var(--blue-900); cursor: pointer; }
.header__toggle .bars { position: relative; width: 20px; height: 2px; background: currentColor; border-radius: 1px; }
.header__toggle .bars::before, .header__toggle .bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s; }
.header__toggle .bars::before { top: -6px; } .header__toggle .bars::after { top: 6px; }
.nav-state { position: absolute; opacity: 0; pointer-events: none; }
.mobile-nav { display: none; border-top: 1px solid var(--slate-150); background: #fff; }
.mobile-nav .container { padding-top: 8px; padding-bottom: 16px; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--slate-75); color: var(--slate-800, var(--slate-700)); font-weight: 500; }
.mobile-nav a:hover { text-decoration: none; color: var(--blue-900); }
.mobile-nav a[aria-current="page"] { color: var(--blue-900); }
.mobile-nav .mobile-nav__user { padding: 14px 4px 6px; font-size: 14px; color: var(--slate-600); }
.mobile-nav .mobile-nav__user b { display: block; font-weight: 500; font-size: 15px; color: var(--slate-900); }
.nav-state:checked ~ .mobile-nav { display: block; }
.nav-state:checked ~ .container .header__toggle .bars { background: transparent; }
.nav-state:checked ~ .container .header__toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-state:checked ~ .container .header__toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-state:focus-visible ~ .container .header__toggle { outline: 3px solid rgba(47, 115, 194, .45); outline-offset: 2px; }
@media (min-width: 1024px) {
  .header__nav { display: flex; gap: 28px; }
  .header__user { display: flex; }
  .header__toggle, .mobile-nav, .nav-state:checked ~ .mobile-nav { display: none; }
}

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--slate-150); background: #fff; padding: 20px 0; font-size: 14px; color: var(--slate-600); }
.footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 24px; font: 500 16px/1.2 var(--font);
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-align: center; white-space: nowrap;
  text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue-900); color: #fff; }
.btn--primary:hover { background: var(--blue-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn--secondary { background: #fff; color: var(--blue-900); border-color: var(--blue-900); }
.btn--secondary:hover { background: var(--blue-50); color: var(--blue-900); }
.btn--ghost { background: transparent; color: var(--blue-900); border-color: var(--blue-200); }
.btn--ghost:hover { background: var(--blue-50); border-color: var(--blue-900); color: var(--blue-900); }
.btn--danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: #FBECED; color: #9E262C; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--blue-600); cursor: pointer; }
.link-btn:hover { color: var(--blue-900); text-decoration: underline; }
@media (max-width: 479px) { .btn--mobile-block { width: 100%; white-space: normal; } }
.btn--wrap { white-space: normal; }

/* ---------- Поля формы ---------- */
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; min-width: 0; }
.field > label, .field__label { font-size: 14px; font-weight: 500; color: var(--slate-700); }
.field .req { color: var(--danger); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 16px/1.4 var(--font); color: var(--slate-900);
  background: #fff; border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; min-width: 0; max-width: 100%; padding-right: 40px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414E60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--slate-400); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(47, 115, 194, .15); }
.field input[readonly], .field textarea[readonly], .field select:disabled, .field input:disabled { background: var(--slate-50); color: var(--slate-700); cursor: default; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(200, 51, 58, .14); }
.field__error { font-size: 14px; color: var(--danger); }
.field__error:empty { display: none; }
.field__hint { font-size: 14px; color: var(--slate-500); }
.field--invalid > label { color: var(--danger); }
.form-grid { display: grid; gap: 18px 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: 1 / -1; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--slate-700); line-height: 1.45; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-900); }
.rules { display: grid; gap: 6px; font-size: 14px; color: var(--slate-600); }
.rules li { list-style: none; display: flex; gap: 8px; align-items: flex-start; }
.rules li::before { content: "–"; flex: none; }
.rules li.ok { color: var(--success); } .rules li.ok::before { content: "✓"; }
.rules li.bad { color: var(--danger); } .rules li.bad::before { content: "✕"; }

/* ---------- Карточка ---------- */
.card { background: #fff; border: 1px solid var(--slate-150); border-radius: var(--radius); padding: var(--pad-card); box-shadow: var(--shadow-sm); }
.card--tight { padding: 20px; }
.card--accent { background: var(--blue-25); border-color: var(--blue-150); }
.card--dark { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.card--dark h2, .card--dark h3, .card--dark .muted { color: #fff; }
.card--dark .muted { color: var(--blue-150); }
.card--dark a { color: var(--blue-200); }
.card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.card__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.card__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--slate-150); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
a.card { color: inherit; transition: border-color .2s, box-shadow .2s; }
a.card:hover { text-decoration: none; border-color: var(--blue-200); box-shadow: var(--shadow); }

/* ---------- Данные «ключ – значение» ---------- */
.dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.dl > div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--slate-75); }
.dl > div:last-child { border-bottom: 0; }
.dl dt { font-size: 14px; color: var(--slate-600); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 480px) { .dl > div { grid-template-columns: 170px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; } }
.dl--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .dl--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dl--2 > div { border-bottom: 1px solid var(--slate-75); } .dl--2 > div:nth-last-child(-n+2) { border-bottom: 0; } }
.dl--2 > div { grid-template-columns: minmax(0, 1fr); }
.dl--plain > div { border: 0; padding: 4px 0; }

/* ---------- Бейдж статуса ---------- */
/* Цвета текста темнее базовых --success/--warning: на светлой подложке базовые не проходят контраст 4.5:1 при 14 px */
.badge { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 3px 12px 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.3; white-space: nowrap; background: var(--blue-75); color: var(--blue-800); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.badge--info { background: var(--blue-75); color: var(--blue-800); }
.badge--success { background: #E3F5EC; color: #146A46; }
.badge--success::before { background: var(--success); }
.badge--warning { background: #FBF1DC; color: #7A4F0E; }
.badge--warning::before { background: var(--warning); }
.badge--danger { background: #FBECED; color: #9E262C; }
.badge--danger::before { background: var(--danger); }
.badge--neutral { background: var(--slate-75); color: var(--slate-700); }
.badge--neutral::before { background: var(--slate-400); }
.badge--plain::before { display: none; }
.badge--wrap { white-space: normal; text-align: left; }

/* ---------- Таблица ---------- */
.table-wrap { background: #fff; border: 1px solid var(--slate-150); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--slate-75); }
.table th { font-size: 14px; font-weight: 500; color: var(--slate-600); background: var(--slate-25); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--blue-25); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a.deal-no { font-weight: 500; white-space: nowrap; }
.table .sub { display: block; font-size: 14px; color: var(--slate-600); }
.table .cell { display: block; min-width: 0; }
@media (max-width: 767px) {
  .table--stack thead { display: none; }
  .table--stack tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px; border-bottom: 1px solid var(--slate-150); }
  .table--stack tr:last-child { border-bottom: 0; }
  .table--stack td { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; padding: 0; border: 0; font-size: 15px; }
  .table--stack td::before { content: attr(data-label); font-size: 14px; color: var(--slate-600); }
  .table--stack td.num { text-align: left; }
  .table--stack td.row-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 4px; }
  .table--stack td.row-head::before { display: none; }
  .table--stack tbody tr:hover td { background: transparent; }
  .table--stack td .badge { justify-self: start; }
  .table--stack td .sub { display: inline; }
  .table--stack td .sub::before { content: " · "; }
  .table--stack td.row-head .sub { display: block; }
  .table--stack td.row-head .sub::before { content: none; }
}

/* ---------- Пустое состояние ---------- */
.empty { padding: 36px var(--pad-card); text-align: center; background: #fff; border: 1.5px dashed var(--slate-200); border-radius: var(--radius); color: var(--slate-600); }
.empty h3 { color: var(--slate-900); margin-bottom: 6px; }
.empty .btn, .empty .link { margin-top: 16px; }
.empty__icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: var(--blue-75); display: grid; place-items: center; color: var(--blue-700); font-size: 22px; }

/* ---------- Баннеры ---------- */
.banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid; font-size: 15px; line-height: 1.45; }
.banner__icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; margin-top: 1px; }
.banner b { font-weight: 500; }
.banner p + p { margin-top: 4px; }
.banner--error { background: #FBECED; border-color: #F1C6C8; color: #7A1E23; }
.banner--error .banner__icon { background: var(--danger); }
.banner--warning { background: #FBF1DC; border-color: #EBD6AA; color: #5E3D0A; }
.banner--warning .banner__icon { background: var(--warning); }
.banner--success { background: #E3F5EC; border-color: #BFE5D1; color: #0F5236; }
.banner--success .banner__icon { background: var(--success); }
.banner--info { background: var(--blue-50); border-color: var(--blue-150); color: var(--blue-950); }
.banner--info .banner__icon { background: var(--blue-700); }
.banner .banner__actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- «Что от вас требуется» ---------- */
.todo { display: grid; gap: 10px; }
.todo li { list-style: none; }
.todo a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--slate-150); border-radius: var(--radius-sm); color: var(--slate-900); transition: border-color .2s, box-shadow .2s; }
.todo a:hover { text-decoration: none; border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.todo .todo__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warning); }
.todo .todo__dot--danger { background: var(--danger); }
.todo .todo__text b { display: block; font-weight: 500; }
.todo .todo__text span { font-size: 14px; color: var(--slate-600); }
.todo .todo__arrow { color: var(--blue-700); font-size: 20px; line-height: 1; }

/* ---------- Лента статусов ---------- */
.timeline { display: grid; gap: 0; position: relative; margin: 0; padding: 0; }
.timeline li { list-style: none; position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: -2px; width: 2px; background: var(--slate-150); }
.timeline li:last-child::before { display: none; }
.timeline .tl__dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--blue-600); background: #fff; display: grid; place-items: center; color: var(--blue-600); font-size: 12px; margin-top: 1px; }
.timeline li.done .tl__dot { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.timeline li.current .tl__dot { border-color: var(--blue-900); background: var(--blue-900); color: #fff; box-shadow: 0 0 0 4px var(--blue-100); }
.timeline li.success .tl__dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline li.warning .tl__dot { background: var(--warning); border-color: var(--warning); color: #fff; }
.timeline li.neutral .tl__dot { background: var(--slate-400); border-color: var(--slate-400); color: #fff; }
.timeline li.todo .tl__dot { border-color: var(--slate-200); color: transparent; }
.timeline li.todo .tl__title { color: var(--slate-500); }
.timeline .tl__title { font-weight: 500; }
.timeline .tl__date { font-size: 14px; color: var(--slate-600); font-variant-numeric: tabular-nums; }
.timeline .tl__note { margin-top: 6px; font-size: 14px; color: var(--slate-700); padding: 10px 12px; background: var(--slate-50); border-radius: 10px; }

/* ---------- Документы и загрузка ---------- */
.docs { display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--slate-150); border-radius: var(--radius-sm); }
.doc--rejected { border-color: #F1C6C8; background: #FFF9F9; align-items: start; }
.doc__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-75); color: var(--blue-800); display: grid; place-items: center; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.doc--rejected .doc__icon { background: #FBECED; color: #9E262C; }
.doc__body { min-width: 0; display: grid; gap: 4px; }
.doc__name { font-weight: 500; overflow-wrap: anywhere; }
.doc__meta { font-size: 14px; color: var(--slate-600); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.doc__comment { margin-top: 6px; font-size: 14px; color: #7A1E23; background: #FBECED; border-radius: 10px; padding: 10px 12px; }
.doc__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
@media (min-width: 640px) { .doc { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; } .doc__actions { grid-column: auto; } .doc--rejected .doc__actions { align-self: start; } }
.doc-group + .doc-group { margin-top: 24px; }
.doc-group h3 { margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.doc-group h3 .count { font-size: 14px; color: var(--slate-500); font-weight: 400; }
.upload { padding: 22px; border: 1.5px dashed var(--blue-200); background: var(--blue-25); border-radius: var(--radius-sm); display: grid; gap: 14px; }
.upload__hint { font-size: 14px; color: var(--slate-600); }
.upload .row { align-items: flex-end; }
.file-input { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-input .file-name { font-size: 14px; color: var(--slate-600); overflow-wrap: anywhere; }

/* ---------- Карточка сделки в списке ---------- */
.deal-list { display: grid; gap: var(--gap-grid); }
.deal-card { display: grid; gap: 10px; }
.deal-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.deal-card__no { font-weight: 500; font-size: 17px; }
.deal-card__title { color: var(--slate-900); }
.deal-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--slate-600); }
.deal-card__amount { font-variant-numeric: tabular-nums; font-weight: 500; }

/* ---------- Менеджер ---------- */
.manager { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.manager__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-100); color: var(--blue-900); display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.manager__name { font-weight: 500; }
.manager__contacts { display: grid; gap: 6px; margin-top: 14px; font-size: 15px; }
.manager__contacts a { overflow-wrap: anywhere; }

/* ---------- Состояние объекта (анкета, договор) ---------- */
.state { display: grid; gap: 14px; }
.state__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.steps { display: grid; gap: 8px; counter-reset: s; }
.steps li { list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--slate-150); font-size: 15px; }
.steps li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--blue-75); color: var(--blue-800); display: grid; place-items: center; font-size: 14px; font-weight: 500; }
.steps li.ok::before { background: #E3F5EC; color: #146A46; content: "✓"; }
.steps li.bad::before { background: #FBECED; color: #9E262C; content: "!"; }
.steps li a { font-size: 14px; }
@media (max-width: 639px) { .steps li { grid-template-columns: 28px minmax(0, 1fr); } .steps li a, .steps .steps__state { grid-column: 2; white-space: normal; } }
.steps .steps__state { font-size: 14px; color: var(--slate-600); white-space: nowrap; }
.steps .steps__state.bad { color: var(--danger); }

/* ---------- Экран входа ---------- */
.auth { flex: 1; display: grid; place-items: center; padding: 32px var(--gutter) 48px; background: var(--slate-25); }
.auth__box { width: 100%; max-width: 440px; }
.auth__logo { display: flex; justify-content: center; margin-bottom: 28px; }
.auth__logo img { height: 112px; width: auto; }
.auth .card { padding: var(--pad-card); }
.auth h1 { font-size: 26px; margin-bottom: 6px; }
.auth .lead { color: var(--slate-600); margin-bottom: 22px; font-size: 15px; }
.auth .form-grid { grid-template-columns: minmax(0, 1fr); }
.auth__links { margin-top: 18px; text-align: center; font-size: 15px; }
.auth__foot { margin-top: 24px; text-align: center; font-size: 14px; color: var(--slate-600); }

/* ---------- Прочее ---------- */
.kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-grid); }
@media (min-width: 768px) { .kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi .card { padding: 18px 20px; }
.kpi .kpi__n { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--blue-900); }
.kpi .kpi__l { font-size: 14px; color: var(--slate-600); margin-top: 4px; }
.divider { height: 1px; background: var(--slate-150); margin: 24px 0; }
.note { font-size: 14px; color: var(--slate-600); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--slate-75); color: var(--slate-700); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
