/* Кабинет клиента в фирменном стиле компании (цвета и бренд из конфига экземпляра).
   Цвета бренда приходят из /theme.css: --primary (основной), --primary-deep, --accent (золото),
   --on-accent (текст на золоте). Здесь только значения по умолчанию. Тема светлая, без тёмного варианта:
   тёмная тема остаётся у панели сопровождения (style.css). Инлайн-стилей нет (CSP style-src 'self'). */

@font-face {
  font-family: "Onest";
  src: url("/static/fonts/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --primary: #1f3a5f;
  --primary-deep: #14263f;
  --accent: #2f6f4f;
  --on-accent: #ffffff;
  --brand: var(--primary);
  --brand-deep: var(--primary-deep);
  --brand-2: color-mix(in srgb, var(--primary) 82%, #ffffff);
  --gold: var(--accent);
  --gold-metal: linear-gradient(118deg, color-mix(in srgb, var(--accent) 30%, #ffffff) 0%, var(--accent) 27%,
    color-mix(in srgb, var(--accent) 78%, #6b3d00) 52%, color-mix(in srgb, var(--accent) 70%, #ffffff) 74%,
    color-mix(in srgb, var(--accent) 75%, #5c3300) 100%);
  --gold-soft: linear-gradient(118deg, color-mix(in srgb, var(--accent) 14%, #ffffff) 0%,
    color-mix(in srgb, var(--accent) 70%, #ffffff) 35%, var(--accent) 62%, color-mix(in srgb, var(--accent) 45%, #ffffff) 100%);
  --ink: #0d0906;
  --muted: #586070;          /* 6,1:1 на белом, 5,6:1 на фоне страницы */
  --line: #d9dee6;
  --line-strong: #b9c2ce;
  --paper: #f3f5f7;
  --mist: #e9edf2;
  --white: #ffffff;
  --ok: #2f6b5d;
  --late: #a3271c;           /* 6,6:1 на белом */
  --late-bg: #fbeceb;
  --wait: #6a4a12;
  --wait-bg: #fbf1dc;
  --on-dark: #ffffff;
  --on-dark-2: #dce4ee;      /* вторичный текст на синем: 10:1 и выше */
  --focus: #1f5fd1;
  --shadow: 0 20px 50px rgba(23, 36, 64, .12);
  --radius: 22px;
  --dock-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body.cl {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Onest", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
img { max-width: 100%; }
.i { width: 22px; height: 22px; flex: 0 0 auto; display: block; }
.muted { color: var(--muted); }
.k { display: block; color: var(--muted); font-size: 14px; font-weight: 650; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Фокус с клавиатуры: заметная рамка, на синем золотая (контраст рамки от 3:1). */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.side :focus-visible, .hero :focus-visible, .dock :focus-visible, .m-head :focus-visible,
.support :focus-visible, .pay-hero :focus-visible, .quick-dark:focus-visible {
  outline-color: var(--accent);
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 18px;
  color: var(--on-accent); background: var(--accent); border-radius: 12px; font-weight: 750; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 20px; border-radius: 13px; font-weight: 750; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line-strong); color: var(--brand); background: var(--white);
}
.btn .i { width: 20px; height: 20px; }
.btn-gold {
  color: var(--on-accent); background: var(--gold-metal); background-size: 170% 170%;
  border-color: color-mix(in srgb, var(--accent) 60%, #7a4a10);
  transition: background-position .45s ease, filter .2s ease;
}
.btn-gold:hover { background-position: 88% 50%; filter: saturate(1.05) brightness(1.02); }
.btn-line:hover { border-color: var(--brand); }
.btn-wide { width: 100%; }
.icon-btn {
  position: relative; width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto;
  color: var(--brand); background: var(--white); border: 1px solid var(--line-strong); border-radius: 14px;
}
.icon-btn .dot {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center; color: var(--on-accent); background: var(--accent);
  border: 2px solid var(--white); border-radius: 11px; font-size: 12px; font-weight: 800; line-height: 1;
}
.icon-btn-dark { color: var(--on-dark); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.icon-btn-dark .dot { border-color: var(--brand-deep); }
.btn-chat { position: relative; }
.btn-chat .dot {
  position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center;
  color: var(--on-accent); background: var(--accent); border: 2px solid var(--white); border-radius: 11px; font-size: 12px; font-weight: 800;
}
.nav-badge {
  margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center;
  color: var(--on-accent); background: var(--accent); border-radius: 12px; font-size: 13px; font-weight: 800;
}

/* ---------- каркас: боковое меню, шапка, две колонки ---------- */
.shell {
  --side-w: 282px; min-height: 100vh; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr);
  background: linear-gradient(90deg, var(--brand-deep) 0 var(--side-w), var(--paper) var(--side-w));
}
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 24px 24px;
  color: var(--on-dark);
  background: radial-gradient(circle at 10% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 28%),
    linear-gradient(180deg, var(--brand), var(--brand-deep));
  overflow-y: auto;
}
.brand {
  display: flex; align-items: center; gap: 15px; min-height: 82px; padding-bottom: 27px;
  border-bottom: 1px solid rgba(255,255,255,.18); text-decoration: none;
}
.brand-mark {
  width: 68px; height: 68px; display: grid; place-items: center; flex: 0 0 auto; background: #f8fafc;
  border: 1px solid rgba(255,255,255,.4); border-radius: 17px;
  box-shadow: 0 12px 28px rgba(5,12,28,.22);
}
.brand-mark img { width: 58px; height: 58px; object-fit: contain; }
.mono { color: var(--brand); font-size: 30px; font-weight: 850; }
.brand-text { display: grid; min-width: 0; }
.brand-name { font-size: 19px; font-weight: 840; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.brand-caption { margin-top: 2px; color: var(--on-dark-2); font-size: 14px; }
.side-nav { display: grid; gap: 8px; margin: 34px 0 24px; }
.nav-item {
  min-height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  color: var(--on-dark-2); border: 1px solid transparent; border-radius: 15px; font-weight: 650; text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: var(--on-dark); }
.nav-item[aria-current="page"] {
  color: var(--on-accent); background: var(--gold-soft); border-color: rgba(255,241,199,.9);
  box-shadow: 0 12px 26px rgba(5,12,28,.18);
}
.side-help {
  margin-top: auto; padding: 19px 18px 18px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.17); border-radius: 17px;
}
.side-help-title { font-size: 17px; font-weight: 750; margin-bottom: 8px; }
.side-phone { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.side-phone .i { width: 20px; height: 20px; }
.side-hours { color: var(--on-dark-2); font-size: 15px; }

.work { min-width: 0; }
.m-head { display: none; }
.topbar {
  min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 46px; background: var(--white); border-bottom: 1px solid var(--line);
}
.topbar-title { min-width: 0; }
.topbar h1 { font-size: clamp(26px, 2vw, 34px); line-height: 1.12; letter-spacing: -.03em; }
.topbar p { margin-top: 5px; color: var(--muted); font-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.content { max-width: 1480px; margin: 0 auto; padding: 34px 46px 60px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 24px; align-items: start; }
.main-col, .side-col { display: grid; gap: 20px; min-width: 0; }

/* ---------- общие блоки ---------- */
.panel { padding: 26px 27px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h2, .panel h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.panel > p + p, .panel > h2 + p, .panel > h3 + p { margin-top: 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.count {
  min-width: 34px; height: 34px; padding: 0 10px; display: inline-grid; place-items: center;
  color: var(--brand); background: var(--mist); border-radius: 17px; font-weight: 800;
}
.more { min-height: 44px; display: inline-flex; align-items: center; color: var(--brand); font-weight: 750; }
.screen-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.screen-intro { max-width: 770px; color: var(--muted); font-size: 17px; }
.section-title { font-size: 24px; letter-spacing: -.02em; margin-top: 6px; }
.back a { min-height: 44px; display: inline-flex; align-items: center; color: var(--brand); font-weight: 700; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 11px;
  color: var(--brand); background: var(--mist); border-radius: 999px; font-size: 14px; font-weight: 700;
}
.tag .i { width: 16px; height: 16px; }
.tag-strong { color: var(--on-dark); background: var(--brand); }
.tag-late { color: var(--late); background: var(--late-bg); }
.tag-wait { color: var(--wait); background: var(--wait-bg); }
.tag-ok { color: var(--ok); background: #e3f1ec; }
.empty h2 { margin-bottom: 8px; }

/* Главное: карточка этапа (Ф1) без процента: юридический срок не линеен. */
.hero {
  position: relative; padding: 32px 36px 30px; color: var(--on-dark); background: var(--brand);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.hero-num {
  position: absolute; right: 30px; top: 14px; color: rgba(255,255,255,.08); font-size: 118px; line-height: 1;
  font-weight: 900; letter-spacing: -.08em; user-select: none;
}
.hero-num::before { content: attr(data-n); }
.hero-case { position: relative; color: var(--on-dark-2); font-size: 15px; font-weight: 650; margin-bottom: 8px; }
.hero h2 {
  position: relative; max-width: 560px; font-size: clamp(30px, 3vw, 46px); line-height: 1.08;
  letter-spacing: -.035em; text-wrap: balance;
}
/* «Ждём вас» (#65): отметка поверх текущего этапа, не отдельный этап. */
.wait-mark {
  position: relative; display: inline-flex; align-items: flex-start; gap: 10px; max-width: 650px; margin-top: 14px;
  padding: 10px 16px; color: var(--on-accent); background: var(--gold-soft); border-radius: 16px; font-size: 16px; line-height: 1.45;
}
.wait-mark .i { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.wait-mark strong { margin-right: 4px; }
.wait-hint { margin-top: 8px; color: var(--wait); font-weight: 650; }
.rm-name .tag-wait { margin-left: 6px; vertical-align: 2px; font-size: 13px; min-height: 24px; }
.hero-text { position: relative; max-width: 650px; margin-top: 16px; color: var(--on-dark-2); font-size: 18px; line-height: 1.55; }
.steps { position: relative; display: flex; gap: 6px; margin: 26px 0 14px; padding: 0; list-style: none; }
.steps li { flex: 1; height: 10px; border-radius: 99px; background: rgba(255,255,255,.18); }
.steps .step-done { background: color-mix(in srgb, var(--accent) 70%, #ffffff); }
.steps .step-current { background: var(--gold-metal); background-size: 220% 100%; }
.hero-meta { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; color: var(--on-dark-2); font-size: 15px; }
.hero-meta strong { color: var(--on-dark); }
.hero-next { position: relative; margin-top: 16px; color: var(--on-dark-2); }
.k-light { display: block; color: var(--accent); font-size: 14px; font-weight: 750; }
.hero-link {
  position: relative; min-height: 44px; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-dark); font-weight: 750; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35);
}
.hero-link .i { width: 18px; height: 18px; }

/* «От Вас нужно» (Ф3): задача со сроком, просрочка текстом и цветом. */
.need { position: relative; overflow: hidden; }
.need::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--gold-metal); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white);
}
.task-late { border-color: color-mix(in srgb, var(--late) 45%, #ffffff); background: #fffafa; }
.task-sent { background: var(--paper); }
.task-text { font-size: 17px; font-weight: 650; }
.task-meta { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; }
.task-due { font-weight: 700; }
.task-form { margin: 0; }
.actions { margin: 12px 0 0; padding-left: 20px; }

/* «Что нового» (Ф2). */
/* «Разъясни» (Ф6): раскрывающееся объяснение этапа или документа */
.explain { margin-top: 8px; }
.explain-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  min-height: 32px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--brand); font-weight: 600; font-size: 14px; background: var(--white); }
.explain-btn::-webkit-details-marker { display: none; }
.explain-btn .i { width: 16px; height: 16px; }
.explain-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.explain[open] .explain-btn { background: var(--mist); }
.explain-text { margin: 8px 0 0; padding: 12px 14px; border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0; background: var(--paper); color: var(--ink); max-width: 68ch; }
/* Файлы в «Документах» (#62): добавить документ, переданное в бюро, документы от юриста */
/* .panel.* сильнее правила .panel из медиазапросов ниже: у этих панелей свои отступы на любом экране. */
.panel.upload { padding: 0; border: 0; background: transparent; margin-bottom: 16px; }
.upload-btn { list-style: none; cursor: pointer; justify-content: center; }
.upload-btn::-webkit-details-marker { display: none; }
.upload-form { margin-top: 12px; padding: 20px; display: grid; gap: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); }
.upload-form .field { display: grid; gap: 6px; }
.upload-form select, .upload-form input[type="file"] { font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: var(--white); color: var(--ink); max-width: 100%; }
.upload-form .btn { justify-self: start; }
.field-hint { font-size: 14px; }
.panel.file-group { padding: 0; overflow: hidden; margin-bottom: 16px; }
.file-group .doc-head { padding: 22px 24px; border-bottom: 1px solid var(--line); margin: 0; }
.file-group .doc-empty { padding: 18px 24px; margin: 0; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px;
  border-top: 1px solid var(--line); }
.file:first-child { border-top: 0; }
.file-main { min-width: 0; }
.file-title { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.file-title a { color: var(--ink); text-underline-offset: 3px; }
.file-meta { margin: 4px 0 0; font-size: 14px; }
.file-reason { margin: 6px 0 0; color: var(--late); font-size: 14px; }
.file-state { flex: none; font-weight: 700; font-size: 14px; color: var(--muted); }
.file-state-accepted { color: var(--ok); }
.file-state-replace { color: var(--late); }
.file-state-review { color: var(--wait); }

/* Резюме разговоров (Ф4) */
.sum-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.sum { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; background: var(--white); }
.sum-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.sum-author { font-weight: 600; color: var(--ink); }
.sum-body { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.ev-what a { color: var(--brand); text-underline-offset: 3px; }
/* Материалы по финансовой грамотности к текущему этапу (Ф8) */
.mat-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.mat { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.mat-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--mist); color: var(--brand); }
.mat-title { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.mat-title a { color: var(--brand); text-underline-offset: 3px; }
.mat-text { margin: 4px 0 0; color: var(--muted); }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; }
.feed-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.feed-list li:first-child { border-top: 0; }
.ev-when { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.ev-what { font-weight: 600; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quick-card {
  position: relative; min-height: 132px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: 19px;
  text-decoration: none; overflow: hidden; transition: transform .24s ease, box-shadow .24s ease;
}
.quick-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-metal); }
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(23,36,64,.08); }
.quick-dark { color: var(--on-dark); background: var(--brand-deep); border-color: var(--brand-deep); }
.quick-title { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.quick-sub { color: var(--muted); }
.quick-dark .quick-sub { color: #c9d3e6; }
.case-mini { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.case-mini a {
  min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
}
.case-mini-title { font-weight: 700; }

/* Правая колонка: кто ведёт дело и связь с бюро. */
.panel.team { padding: 0; overflow: hidden; }
.person { display: flex; gap: 15px; align-items: center; padding: 21px 23px; }
.ava {
  width: 60px; height: 60px; display: grid; place-items: center; flex: 0 0 auto; color: var(--brand-2);
  background: linear-gradient(145deg, #f6f8fb, #e2e7ee); border: 2px solid var(--accent); border-radius: 50%;
}
.ava .i { width: 28px; height: 28px; }
.ava-lg { width: 96px; height: 96px; }
.ava-lg .i { width: 42px; height: 42px; }
.person + .person { border-top: 1px solid var(--line); }
.person-text { min-width: 0; }
.person-name { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.person-role { margin-top: 4px; color: var(--muted); font-size: 15px; }
.team-act {
  min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--brand); border-top: 1px solid var(--line); font-weight: 750; text-decoration: none;
}
.team-act .i { width: 20px; height: 20px; }
.support { color: var(--on-dark); background: linear-gradient(145deg, var(--brand-2), var(--brand-deep)); border-color: var(--brand-2); }
.support h2 { margin-bottom: 9px; }
.support p { color: var(--on-dark-2); }
.support-phone { min-height: 44px; margin-top: 14px; display: inline-flex; align-items: center; font-size: 21px; font-weight: 800; text-decoration: none; }
.support-hours { margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.support-hours .i { width: 18px; height: 18px; }
.support-more { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 4px; }
.support-more a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); font-weight: 650; overflow-wrap: anywhere; }
.support-more .i { width: 18px; height: 18px; }

/* Моё дело: статус, факты, дорожная карта вертикально. */
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 10px; }
.status-card .upd { margin-top: 10px; font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; margin: 0; }
.facts dd { margin: 4px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.roadmap { display: grid; gap: 12px; }
.rm-unknown { padding: 14px 18px; background: var(--white); border: 1px dashed var(--line-strong); border-radius: 16px; }
.rm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rm-list > li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  min-height: 100px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 18px;
}
.rm-dot {
  width: 48px; height: 48px; display: grid; place-items: center; color: var(--brand); background: var(--mist);
  border-radius: 14px; font-size: 17px; font-weight: 850; font-variant-numeric: tabular-nums;
}
.rm-name { font-size: 20px; font-weight: 750; line-height: 1.25; }
.rm-text { margin-top: 5px; color: var(--muted); }
.rm-after { margin-top: 10px; }
.rm-state { color: var(--muted); font-size: 15px; font-weight: 750; white-space: nowrap; }
.rm-done .rm-dot { color: var(--ok); background: #e3f1ec; }
.rm-current { color: var(--on-dark); background: var(--brand) !important; border-color: var(--brand) !important; box-shadow: var(--shadow); }
.rm-current .rm-dot { color: var(--on-accent); background: var(--gold-soft); }
.rm-current .rm-text, .rm-current .rm-after { color: var(--on-dark-2); }
.rm-current .k { color: var(--accent); }
.rm-current .rm-state { color: var(--on-dark); }

/* Список дел. */
.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.case-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 20px 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; text-decoration: none;
}
.case-link:hover { border-color: var(--brand); }
.case-title { font-size: 19px; font-weight: 750; }
.case-step, .case-upd { grid-column: 1 / -1; }
.case-upd { color: var(--muted); font-size: 14px; }

/* Документы. */
.doc-group { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.doc-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.doc-head h3 { font-size: 21px; }
.doc-group .tasks { padding: 14px; }
.doc-empty { padding: 18px 24px; }
.files-empty .btn { margin-top: 14px; }

/* Оплата. */
.pay-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 30px 32px;
  color: var(--on-dark); background: var(--brand); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pay-hero h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.12; margin-bottom: 8px; }
.pay-hero p { color: var(--on-dark-2); }
.pay-mark {
  width: 64px; height: 64px; display: grid; place-items: center; color: var(--on-accent); background: var(--gold-metal);
  border-radius: 18px; font-size: 28px; font-weight: 850;
}
.history p + p { margin-top: 4px; }

/* Ф5: сводка, полоса оплаченного, график, история, строка на «Главном». */
.pay-case { display: grid; gap: 18px; }
.pay-case + .pay-case { margin-top: 26px; }
.pay-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.pay-sum div { padding: 14px 16px; background: var(--paper); border-radius: 16px; }
.pay-sum dt { color: var(--muted); font-size: 14px; font-weight: 650; }
.pay-sum dd { margin: 4px 0 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.pay-bar { height: 10px; margin-top: 16px; background: var(--mist); border-radius: 99px; overflow: hidden; }
.pay-fill { display: block; height: 100%; background: var(--gold-metal); background-size: 220% 100%; border-radius: 99px; }
.pay-fill.w0 { width: 0%; }
.pay-fill.w5 { width: 5%; }
.pay-fill.w10 { width: 10%; }
.pay-fill.w15 { width: 15%; }
.pay-fill.w20 { width: 20%; }
.pay-fill.w25 { width: 25%; }
.pay-fill.w30 { width: 30%; }
.pay-fill.w35 { width: 35%; }
.pay-fill.w40 { width: 40%; }
.pay-fill.w45 { width: 45%; }
.pay-fill.w50 { width: 50%; }
.pay-fill.w55 { width: 55%; }
.pay-fill.w60 { width: 60%; }
.pay-fill.w65 { width: 65%; }
.pay-fill.w70 { width: 70%; }
.pay-fill.w75 { width: 75%; }
.pay-fill.w80 { width: 80%; }
.pay-fill.w85 { width: 85%; }
.pay-fill.w90 { width: 90%; }
.pay-fill.w95 { width: 95%; }
.pay-fill.w100 { width: 100%; }
.pay-list { list-style: none; margin: 0; padding: 8px 24px; display: grid; }
.pay-list li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.pay-list li:first-child { border-top: 0; }
.pay-due { color: var(--muted); font-variant-numeric: tabular-nums; }
.pay-amount { font-weight: 750; font-variant-numeric: tabular-nums; }
.pay-paid .pay-amount, .pay-settled .pay-amount { color: var(--muted); }
.pay-history li { grid-template-columns: 130px auto minmax(0, 1fr); }
.pay-result { font-size: 18px; font-weight: 750; margin-bottom: 14px; }
.pay-next-line { margin-top: 14px; }
.pay-line {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 22px;
  color: inherit; text-decoration: none;
}
.pay-line:hover { border-color: var(--line-strong); }
.pay-line-mark {
  width: 46px; height: 46px; display: grid; place-items: center; color: var(--on-accent); background: var(--gold-metal);
  border-radius: 14px; font-size: 21px; font-weight: 850;
}
.pay-line-body { display: grid; gap: 2px; }
.pay-line-title { font-size: 18px; font-weight: 750; }

/* Профиль и формы. */
.profile-card { display: flex; align-items: center; gap: 20px; }
.form { display: grid; gap: 14px; margin-top: 14px; max-width: 520px; }
.form label { display: grid; gap: 7px; font-weight: 700; }
.form input {
  width: 100%; min-height: 52px; padding: 0 16px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: 13px;
}
.form input:focus-visible { border-color: var(--focus); }
.alert { margin-top: 12px; padding: 12px 16px; color: var(--late); background: var(--late-bg); border-radius: 12px; font-weight: 650; }
.ok { margin-top: 12px; padding: 12px 16px; color: var(--ok); background: #e3f1ec; border-radius: 12px; font-weight: 650; }

/* Вход и пароль: без меню, бренд сверху. */
.auth { min-height: 100vh; display: grid; align-content: start; justify-items: center; gap: 28px; padding: 48px 16px; background:
  radial-gradient(circle at 15% 5%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
  linear-gradient(180deg, var(--brand), var(--brand-deep)); }
.auth-brand { display: flex; align-items: center; gap: 15px; color: var(--on-dark); }
.auth-main { width: 100%; max-width: 460px; }
.auth-card { padding: 30px 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 8px; }
.forgot { margin-top: 18px; }
.forgot summary { min-height: 44px; display: flex; align-items: center; color: var(--brand); font-weight: 700; cursor: pointer; }
.forgot p { margin: 4px 0 10px; }
.contacts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.contacts .btn { width: 100%; justify-content: flex-start; overflow-wrap: anywhere; }

.dock { display: none; }

/* ---------- планшет ---------- */
@media (max-width: 1180px) {
  .shell { --side-w: 236px; }
  .side { padding-inline: 18px; }
  .brand-caption { display: none; }
  .topbar { padding-inline: 30px; }
  .content { padding-inline: 30px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .side-col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ---------- телефон: шапка и нижняя навигация ---------- */
@media (max-width: 920px) {
  .shell { display: block; background: var(--paper); }
  .side { display: none; }
  .m-head {
    position: sticky; top: 0; z-index: 20; min-height: 72px; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
    color: var(--on-dark); background: var(--brand-deep); border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .m-brand { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
  .m-mark { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; background: #f8fafc; border-radius: 13px; }
  .m-mark img { width: 40px; height: 40px; object-fit: contain; }
  .m-mark .mono { font-size: 22px; }
  .m-text { display: grid; min-width: 0; }
  .m-name { font-size: 16px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-caption { color: var(--on-dark-2); font-size: 13px; }
  .m-actions { display: flex; gap: 8px; flex: 0 0 auto; }
  .m-actions .icon-btn { width: 44px; height: 44px; }
  .topbar { min-height: 0; padding: 18px 16px 4px; background: transparent; border: 0; }
  .topbar h1 { font-size: 26px; }
  .topbar p { font-size: 15px; }
  .top-actions { display: none; }
  .content { padding: 14px 16px calc(var(--dock-h) + 30px + env(safe-area-inset-bottom)); }
  .main-col, .side-col { gap: 14px; }
  .grid { gap: 14px; }
  .side-col { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 22px 20px; border-radius: 19px; }
  .hero { padding: 26px 22px 24px; }
  .hero-num { right: 16px; top: 16px; font-size: 80px; }
  .hero h2 { max-width: 85%; font-size: 31px; }
  .hero-text { font-size: 16px; }
  .task { grid-template-columns: minmax(0, 1fr); }
  .task-form .btn { width: 100%; }
  .feed-list li { grid-template-columns: minmax(0, 1fr); }
  .quick { gap: 12px; }
  .quick-card { min-height: 116px; padding: 20px 18px 18px; }
  .quick-title { font-size: 19px; }
  .rm-list > li { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .rm-dot { width: 44px; height: 44px; }
  .rm-state { grid-column: 2; }
  .rm-name { font-size: 18px; }
  .doc-head { padding: 0 18px; }
  .doc-group .tasks { padding: 10px; }
  .pay-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .pay-sum { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pay-sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .pay-sum dd { margin: 0; font-size: 20px; }
  .pay-list { padding: 4px 18px; }
  .pay-list li, .pay-history li { grid-template-columns: minmax(0, 1fr) auto; }
  .pay-list li .tag, .pay-history li .muted { grid-column: 1 / -1; justify-self: start; }
  .pay-line { padding: 16px 18px; gap: 12px; }
  .profile-card { align-items: flex-start; }
  .ava-lg { width: 72px; height: 72px; }
  .dock {
    position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom));
    height: var(--dock-h); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 6px;
    color: var(--on-dark); background: linear-gradient(180deg, var(--brand), var(--brand-deep));
    border: 1px solid rgba(255,255,255,.12); border-radius: 22px; box-shadow: 0 20px 42px rgba(15,38,59,.3);
  }
  .dock-item {
    position: relative; min-width: 44px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--on-dark-2); border-radius: 16px; font-size: 12px; font-weight: 700; text-decoration: none;
  }
  .dock-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dock-item .i { width: 22px; height: 22px; }
  .dock-badge {
    position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 9px;
    font-size: 11px; font-weight: 800; line-height: 1; color: var(--on-accent); background: var(--gold-metal);
  }
  .dock-item[aria-current="page"] .dock-badge { color: var(--on-dark); background: var(--brand-deep); }
  .dock-item[aria-current="page"] { color: var(--on-accent); background: var(--gold-metal); background-size: 180% 180%; }
}
@media (max-width: 380px) {
  .content { padding-inline: 12px; }
  .m-head { padding-inline: 12px; }
  .m-caption { display: none; }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .dock { left: 6px; right: 6px; padding: 5px 4px; }
  .dock-item { font-size: 11px; }
  .hero h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.topbar p:empty { display: none; }
.panel h3.k { font-size: 14px; letter-spacing: 0; }
.feed > h2 { margin-bottom: 10px; }
@media (max-width: 360px) {
  .dock-item { font-size: 10.5px; letter-spacing: -.01em; }
  .dock-item .i { width: 20px; height: 20px; }
}

/* Ф7: переписка с юристом. Свои сообщения справа на светлом золоте, ответы юриста слева на синем. */
.chat { display: grid; gap: 18px; }
.chat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.msg { max-width: 78%; padding: 12px 16px 14px; border-radius: 18px; }
.msg-mine { justify-self: end; background: var(--wait-bg); border-bottom-right-radius: 6px; }
.msg-lawyer { justify-self: start; color: var(--on-dark); background: var(--brand); border-bottom-left-radius: 6px; }
.msg-who { display: flex; gap: 10px; align-items: baseline; font-size: 14px; font-weight: 750; }
.msg-when { font-weight: 500; opacity: .8; font-variant-numeric: tabular-nums; }
.msg-lawyer .msg-when { color: var(--on-dark-2); opacity: 1; }
.msg-auto { padding: 1px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 650; }
.msg-body { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.chat-form textarea {
  width: 100%; min-height: 110px; padding: 12px 14px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: 14px; resize: vertical;
}
.chat-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.chat-form .btn { justify-self: end; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.chat-attach { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.chat-attach .btn { justify-self: end; }
.attach-hint { margin: 0; }
.form-error { color: var(--late); font-weight: 650; }
@media (max-width: 640px) {
  .msg { max-width: 92%; }
  .chat-form .btn { justify-self: stretch; }
}

/* Ф9: центр уведомлений под колокольчиком и подсказка установки. */
.notes { list-style: none; margin: 0; padding: 6px 22px; display: grid; }
.note { border-top: 1px solid var(--line); }
.note:first-child { border-top: 0; }
.note a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 64px;
  padding: 12px 0; color: inherit; text-decoration: none; }
.note-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--brand); background: var(--mist); border-radius: 13px; }
.note-urgent .note-icon { color: var(--on-accent); background: var(--gold-metal); }
.note-body { display: grid; gap: 2px; }
.note-title { font-weight: 700; }
.note-text { color: var(--muted); font-size: 15px; }
.install { margin-top: 18px; }
.install h2 { margin-bottom: 6px; }
.install-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 0; }
.install-steps div { padding: 14px 16px; background: var(--paper); border-radius: 16px; }
.install-steps dt { font-weight: 750; }
.install-steps dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 640px) {
  .notes { padding: 4px 16px; }
  .install-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .file { flex-wrap: wrap; padding: 14px 18px; }
  .file-group .doc-head { padding: 18px; }
  .upload-form .btn { justify-self: stretch; justify-content: center; }
}

/* Оформление classic-roadmap (#177): включается branding.design: classic-roadmap, без него эти блоки не выводятся. */
.hero-percent { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px;
  margin: 0 0 12px; color: var(--on-dark); font-weight: 750; }
.hero-percent progress { width: 100%; min-width: 0; height: 10px; border: 0; border-radius: 99px; overflow: hidden;
  background: rgba(255,255,255,.18); appearance: none; -webkit-appearance: none; }
.hero-percent progress::-webkit-progress-bar { background: rgba(255,255,255,.18); }
.hero-percent progress::-webkit-progress-value { background: var(--gold-metal); border-radius: 99px; }
.hero-percent progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.rm-mini { position: relative; display: flex; gap: 6px; margin: 34px 0 14px; padding: 0; list-style: none; }
.rm-mini li { position: relative; flex: 1; padding-top: 4px; }
.rm-mini-bar { display: block; height: 10px; border-radius: 99px; background: rgba(255,255,255,.18); }
.rm-mini-done .rm-mini-bar { background: color-mix(in srgb, var(--accent) 70%, #ffffff); }
.rm-mini-current .rm-mini-bar { background: var(--gold-metal); }
.rm-mini-fig { position: absolute; left: 0; top: -30px; }
.rm-mini-here { position: absolute; left: 28px; top: -26px; font-size: 14px; font-weight: 750; color: var(--on-dark); }
.figure { width: 22px; height: 30px; display: block; color: var(--accent); }
.panel.now { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-left: 5px solid var(--accent); }
.panel.now h2 { font-size: 22px; letter-spacing: -.02em; }
.panel.now .task-meta { margin-top: 8px; }
.panel.now-late { border-left-color: var(--late); background: #fffafa; }
.now-body { min-width: 0; flex: 1 1 320px; }
.todo .task { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; }
.todo .task-main { flex: 1 1 260px; min-width: 0; }
.task-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; max-width: 100%; }
.task-upload input[type="file"] { max-width: 100%; font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); }
.team-acts { display: grid; grid-template-columns: 1fr 1fr; }
.team-acts .team-act + .team-act { border-left: 1px solid var(--line); }
.facts-wide { grid-column: 1 / -1; }
.rm-road { position: relative; }
.rm-road > li { position: relative; }
.rm-road > li:not(:last-child)::after { content: ""; position: absolute; left: 47px; top: 100%; width: 2px; height: 12px; background: var(--line-strong); }
.rm-road > li.rm-current { margin-top: 18px; }
.rm-you { position: absolute; left: 20px; top: -22px; display: flex; align-items: flex-end; gap: 8px; color: var(--accent); }
.rm-you .figure { width: 26px; height: 34px; filter: drop-shadow(0 2px 3px rgba(23,36,64,.35)); }
.rm-you-text { padding: 2px 10px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 800; }
@media (max-width: 520px) {
  .team-acts { grid-template-columns: 1fr; }
  .team-acts .team-act + .team-act { border-left: 0; }
  .rm-road > li:not(:last-child)::after { left: 41px; }
}
@media (max-width: 560px) {
  /* Узкий экран: подпись «Вы здесь» под полосой, у последнего шага по правому краю, наружу не выходит. */
  .rm-mini { margin-bottom: 46px; }
  .rm-mini-here { left: 0; top: 24px; white-space: nowrap; }
  .rm-mini li:last-child .rm-mini-here { left: auto; right: 0; text-align: right; }
  .hero-percent { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
.task-nofile .btn { min-height: 44px; }

/* Кабинет: «Оплатить услуги» в шапке, красные задачи юриста, баннеры, отзыв (#187). */
.btn-pay { white-space: nowrap; }
.due-mark {
  margin-left: 4px; padding: 2px 9px; color: var(--late); background: var(--late-bg); border-radius: 999px;
  font-size: 13px; font-weight: 800;
}
/* Невыполненная задача: красная рамка и фон (--late 6,6:1 на белом, AA) и текстовая метка «Не выполнено». */
.task-red { border-color: var(--late); background: var(--late-bg); border-left-width: 6px; }
.task-red .task-text { color: var(--late); }
.count-red { color: var(--white); background: var(--late); }
.banners { display: grid; gap: 14px; }
.banner { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.banner-title { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.banner-text { margin-top: 8px; color: var(--muted); font-size: 16px; }
.banner-img { float: right; margin: 0 0 8px 12px; border-radius: 12px; object-fit: cover; }
.banner-link { margin-top: 6px; gap: 6px; }
.review-form { display: grid; gap: 12px; margin-top: 14px; }
.review-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
}
.review-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.review-form .btn { justify-self: start; }
.review-rating { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.review-rating legend { padding: 0 0 6px; color: var(--muted); font-size: 15px; }
.review-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.review-rating label {
  min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line);
  border-radius: 12px; font-weight: 800; cursor: pointer;
}
.review-rating input:checked + label { color: var(--on-dark); background: var(--brand); border-color: var(--brand); }
.review-rating input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Особенности дела (#206): метки-раскрывашки, на 360 px переносятся и не расширяют страницу. */
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.feature-list li { min-width: 0; max-width: 100%; }
.feature-list details[open] { flex-basis: 100%; }
.feature-list summary { cursor: pointer; list-style: none; }
.feature-list summary::-webkit-details-marker { display: none; }
.feature-tag { display: inline-block; max-width: 100%; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; overflow-wrap: anywhere; }
.feature-tag::after { content: " ▾"; }
details[open] > summary .feature-tag::after { content: " ▴"; }
.feature-list summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 999px; }
.feature-explain { margin: 10px 0 0; line-height: 1.5; overflow-wrap: anywhere; }

/* Визитка сотрудника в правой колонке (#192): необязательные поля не ломают вёрстку */
.person-card { margin-top: .4rem; font-size: .92rem; overflow-wrap: anywhere; }
.person-card p { margin: .2rem 0; }
.person-phone { display: flex; align-items: center; gap: .4rem; }
.person-facts { margin: .4rem 0 0; display: grid; gap: .2rem; }
.person-facts div { display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.person-facts dt { color: var(--muted); }
.person-facts dt::after { content: ":"; }
.person-facts dd { margin: 0; }
