/* Цифровая горячая линия комплаенса — Corporate Professional palette */

:root {
  --navy:        #003366;
  --navy-deep:   #001F3F;
  --steel:       #0078D4;
  --steel-light: #E5F1FB;
  --warm-gray:   #F3F2F1;
  --line:        #D9DBDE;
  --text:        #1F1F1F;
  --text-muted:  #5A5A5A;
  --text-light:  #8A8A8A;
  --white:       #FFFFFF;
  --success:     #1F7A1F;
  --warning:     #B45309;
  --danger:      #B71C1C;

  --radius:    8px;
  --radius-sm: 4px;
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Calibri", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--warm-gray);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ───── Layout ───── */

.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 0;
  border-bottom: 3px solid var(--steel);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px;
  background: var(--steel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
}
.site-nav { display: flex; gap: 20px; font-size: 14px; }
.site-nav a {
  color: var(--white);
  opacity: .85;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: opacity .15s, border-color .15s;
}
.site-nav a:hover { opacity: 1; text-decoration: none; border-bottom-color: var(--steel); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

main { padding: 48px 0 80px; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 24px 0;
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ───── Typography ───── */

h1, h2, h3 { color: var(--navy); margin: 0 0 16px; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 36px; line-height: 1.15; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  font-weight: 700;
  color: var(--steel);
  margin: 0 0 10px;
}
.muted { color: var(--text-muted); }
.lead  { font-size: 18px; color: var(--text-muted); margin: 0 0 28px; }

/* ───── Cards ───── */

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}
.card.tight  { padding: 20px; }
.card.dark   { background: var(--navy); color: var(--white); }
.card.dark h1, .card.dark h2, .card.dark h3 { color: var(--white); }

/* ───── Buttons ───── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--steel); text-decoration: none; }
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--navy); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover { background: var(--steel-light); text-decoration: none; }
.btn-block { width: 100%; }

/* ───── Forms ───── */

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.field .hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px var(--steel-light);
}
.textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.token-input {
  letter-spacing: .15em;
  text-transform: uppercase;
  font-family: "SF Mono", Consolas, Menlo, monospace;
  font-size: 18px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--warm-gray);
  border-radius: var(--radius-sm);
}
.checkbox-row input { margin-top: 2px; }
.checkbox-row label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }

/* ───── Status + priority pills ───── */

.pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: .02em;
}
.pill-status-new           { background: #E3F2FD; color: #0277BD; }
.pill-status-in_review     { background: #FFF8E1; color: #B45309; }
.pill-status-investigation { background: #FFEBE6; color: #B71C1C; }
.pill-status-closed        { background: #E8F5E9; color: #1F7A1F; }
.pill-status-rejected      { background: #ECEFF1; color: #555; }
.pill-priority-low      { background: #ECEFF1; color: #555; }
.pill-priority-normal   { background: #E5F1FB; color: var(--steel); }
.pill-priority-high     { background: #FFE0B2; color: #B45309; }
.pill-priority-critical { background: #FFCDD2; color: var(--danger); }

/* ───── Token display ───── */

.token-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--warm-gray);
  border: 2px dashed var(--steel);
  border-radius: var(--radius);
  margin: 20px 0 28px;
}
.token-block .token {
  font-family: "SF Mono", Consolas, Menlo, monospace;
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .12em;
}

/* ───── Tables ───── */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
}
tbody tr:hover { background: var(--steel-light); }
tbody tr:last-child td { border-bottom: 0; }
td.token-cell {
  font-family: "SF Mono", Consolas, Menlo, monospace;
  font-weight: 600;
  color: var(--navy);
}

/* ───── Grids ───── */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 800px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ───── Stats ───── */

.stat-card {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  border-left: 4px solid var(--steel);
}
.stat-card .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-card .lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ───── Chat ───── */

.chat {
  background: var(--warm-gray);
  border-radius: var(--radius);
  padding: 20px;
  max-height: 420px;
  overflow-y: auto;
}
.chat-empty { text-align: center; color: var(--text-muted); padding: 24px; font-size: 14px; }
.bubble {
  max-width: 78%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  background: var(--white);
  box-shadow: var(--shadow);
}
.bubble.user {
  margin-right: auto;
  border-bottom-left-radius: 2px;
}
.bubble.officer {
  margin-left: auto;
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 2px;
}
.bubble .meta {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: .6;
}

/* ───── Hero ───── */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 64px 0;
  border-bottom: 4px solid var(--steel);
}
.hero h1 { color: var(--white); font-size: 48px; line-height: 1.1; max-width: 760px; }
.hero p { font-size: 18px; max-width: 660px; opacity: .85; margin: 18px 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.hero .btn-secondary:hover { border-color: var(--white); }

.feature-block {
  padding: 20px;
  border-left: 3px solid var(--steel);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.feature-block h3 { font-size: 16px; margin-bottom: 8px; }
.feature-block p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ───── Alerts ───── */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
  border-left: 4px solid;
}
.alert-error   { background: #FFEBE6; border-color: var(--danger); color: var(--danger); }
.alert-success { background: #E8F5E9; border-color: var(--success); color: var(--success); }
.alert-info    { background: var(--steel-light); border-color: var(--steel); color: var(--navy); }

/* ───── Detail meta ───── */

.meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
}
.meta-row strong { color: var(--text); font-weight: 600; }
.meta-row > div { display: flex; flex-direction: column; gap: 2px; }
.meta-row span.label {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
}

/* ───── Misc ───── */

.split-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.text-right  { text-align: right; }
.spacer-sm   { height: 12px; }
.spacer-md   { height: 24px; }
.divider     { height: 1px; background: var(--line); margin: 20px 0; }
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state h3 { color: var(--navy); }
