/* ==================================================================
   Визуальная тема портала — фирменный стиль агентства «Комета»
   (палитра, типографика и пластика взяты с cometa.agency):
   светлый фон, синий акцент #2468C9, тонкие рамки вместо теней,
   лёгкие заголовки Commissioner 300, кнопки-пилюли.
   ================================================================== */

@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/commissioner-300-cyrillic.02d381b238a6.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/commissioner-300-latin.5639dfe67576.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/commissioner-400-cyrillic.02d381b238a6.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/commissioner-400-latin.5639dfe67576.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/commissioner-500-cyrillic.02d381b238a6.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/commissioner-500-latin.5639dfe67576.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/commissioner-600-cyrillic.02d381b238a6.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/commissioner-600-latin.5639dfe67576.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }

:root {
  /* фирменная палитра */
  --accent: #2468C9;
  --accent-hover: #1D57AB;
  --accent-active: #174A93;
  --accent-bg: #DDEAFB;
  --ink: #1B2430;
  --ink-2: #465060;
  --muted: #6E7A88;
  --box: #F3F6FA;
  --line: #E3E8EE;
  --field-line: #C9D2DC;
  --bg: #FFFFFF;
  --ok: #1E7F4F;
  --ok-bg: #E8F5EE;
  --warn: #B8791B;
  --warn-bg: #FBF0DC;
  --err: #B4362D;
  --err-bg: #FBE9E7;
  /* пластика */
  --r-pill: 999px;
  --r-plate: 14px;
  --r-card: 12px;
  --r-small: 8px;
  --shadow: 0 1px 2px rgba(27, 36, 48, .04);
  --shadow-hover: 0 6px 18px rgba(27, 36, 48, .10);
  --font: 'Commissioner', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 14px/1.5 var(--font);
  color: var(--ink);
  background: var(--box);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
h1, h2, h3 { font-weight: 300; letter-spacing: -.01em; }

/* ------------------------------------------------------- верхняя панель */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 60;
  display: flex; align-items: center; gap: 20px; padding: 0 20px;
  background: var(--bg); border-bottom: 1px solid var(--line); color: var(--ink);
}
.topbar .logo { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.topbar .logo:hover { text-decoration: none; }
.topbar .logo img { height: 26px; width: auto; display: block; }
.topbar .logo .sub {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  border-left: 1px solid var(--line); padding-left: 9px;
}
.topbar nav { display: flex; gap: 2px; flex: 1; }
.topbar nav a {
  color: var(--ink-2); padding: 7px 14px; border-radius: var(--r-pill); font-size: 14px;
}
.topbar nav a:hover { background: var(--box); color: var(--ink); text-decoration: none; }
.topbar nav a.active { background: var(--accent-bg); color: var(--accent-active); font-weight: 500; }
.topbar .right { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.topbar form.search { position: relative; }
.topbar form.search input {
  background: var(--box); border: 1px solid var(--line); border-radius: var(--r-pill);
  height: 34px; padding: 0 14px 0 32px; color: var(--ink); width: 220px; outline: none;
  font: inherit; font-size: 13px;
}
.topbar form.search input::placeholder { color: var(--muted); }
.topbar form.search input:focus { border-color: var(--accent); background: var(--bg); }
.topbar form.search::before {
  content: "⌕"; position: absolute; left: 12px; top: 5px; font-size: 16px; color: var(--muted);
}

/* ---------------------------------------------------------- левое меню */
.sidebar {
  position: fixed; top: 56px; bottom: 0; left: 0; width: 232px; z-index: 50;
  background: var(--bg); border-right: 1px solid var(--line);
  padding: 12px 0 24px; overflow-y: auto; color: var(--ink-2);
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.sidebar a.item {
  display: flex; align-items: center; gap: 11px; padding: 9px 16px; color: var(--ink-2);
  font-size: 14px; border-radius: var(--r-pill); margin: 1px 12px;
}
.sidebar a.item:hover { background: var(--box); color: var(--ink); text-decoration: none; }
.sidebar a.item.active { background: var(--accent-bg); color: var(--accent-active); font-weight: 500; }
.sidebar .ico { width: 20px; text-align: center; opacity: .75; font-size: 15px; }
.sidebar a.item.active .ico { opacity: 1; }
.sidebar .group-title {
  padding: 16px 28px 6px; font-size: 10px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted);
}
.sidebar .counter {
  margin-left: auto; background: var(--err); color: #fff; border-radius: var(--r-pill);
  font-size: 11px; padding: 1px 7px; font-weight: 600;
}
.sidebar .counter.blue { background: var(--accent); }

/* ------------------------------------------------------------ контент */
.content { margin: 56px 0 0 232px; padding: 22px 26px 60px; max-width: 1560px; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { font-size: 30px; font-weight: 300; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.page-head .spacer { flex: 1; }

.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-plate); }
.panel-pad { padding: 20px 22px; }
.panel + .panel { margin-top: 16px; }
.panel-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 12px;
}

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px;
  padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: 500 14px/1 var(--font); cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--box); border-color: var(--field-line); text-decoration: none; color: var(--ink); }
.btn-primary, .btn-blue { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover, .btn-blue:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-light { background: var(--bg); border-color: var(--line); color: var(--ink-2); }
.btn-light:hover { background: var(--box); color: var(--ink); }
.btn-sm { height: 30px; font-size: 13px; padding: 0 13px; }

/* вкладки-фильтры */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a {
  padding: 6px 15px; border-radius: var(--r-pill); font-size: 14px; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line);
}
.tabs a:hover { background: var(--box); text-decoration: none; color: var(--ink); }
.tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }

.subtabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.subtabs a { padding: 11px 2px; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; }
.subtabs a.active { color: var(--accent); border-color: var(--accent); font-weight: 500; }
.subtabs a:hover { text-decoration: none; color: var(--ink); }

/* таблицы-гриды */
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .05em;
}
table.grid td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid tr:hover td { background: var(--box); }
table.grid td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* карточки-канбан */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 20px; align-items: flex-start; }
.kanban-col { min-width: 262px; width: 262px; flex: none; }
.kanban-col .col-head {
  border-radius: var(--r-small) var(--r-small) 0 0; padding: 8px 12px; color: #fff; font-size: 12px;
  display: flex; justify-content: space-between; font-weight: 500; letter-spacing: .01em;
}
.kanban-col .col-sum {
  background: var(--box); border: 1px solid var(--line); border-top: 0; padding: 7px 12px;
  font-size: 13px; font-weight: 600; text-align: center; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kanban-col .col-body { padding: 10px 0; display: flex; flex-direction: column; gap: 9px; }
.k-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 12px 14px; font-size: 13px; display: block; color: var(--ink);
  transition: box-shadow .15s, border-color .15s;
}
.k-card:hover { text-decoration: none; border-color: var(--field-line); box-shadow: var(--shadow-hover); }
.k-card .t { font-weight: 500; margin-bottom: 5px; color: var(--ink); }
.k-card .sum { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.k-card .meta { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* бейджи и метки */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px;
  font-weight: 500; color: #fff; background: var(--accent);
}
.badge.green { background: var(--ok-bg); color: var(--ok); }
.badge.orange { background: var(--warn-bg); color: var(--warn); }
.badge.red { background: var(--err-bg); color: var(--err); }
.badge.violet { background: var(--accent-bg); color: var(--accent-active); }
.badge.grey { background: var(--box); color: var(--muted); }
.badge.light { background: var(--box); color: var(--ink-2); }

/* полоса стадий */
.stage-line { display: flex; gap: 3px; margin-bottom: 18px; flex-wrap: wrap; }
.stage-line button {
  flex: 1; min-width: 98px; border: 0; height: 32px; font: 500 12px/1 var(--font); color: #fff;
  background: var(--field-line); cursor: pointer; border-radius: var(--r-small);
  transition: filter .15s;
}
.stage-line button:hover { filter: brightness(.94); }
.stage-line button.done { background: #8FB3E4; }
.stage-line button.current { background: var(--accent); }
.stage-line button.success { background: var(--ok); }
.stage-line button.fail { background: var(--err); }

/* аватары */
.ava {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
  font-weight: 600; flex: none; overflow: hidden;
}
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava.lg { width: 78px; height: 78px; font-size: 26px; font-weight: 400; }
.ava.sm { width: 26px; height: 26px; font-size: 10px; }

/* поля форм */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field-input, input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]),
select, textarea {
  width: 100%; border: 1px solid var(--field-line); border-radius: var(--r-small);
  padding: 9px 12px; font: inherit; background: var(--bg); color: var(--ink); outline: none;
}
.field-input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.help { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* карточка сущности */
.entity { display: grid; grid-template-columns: 390px 1fr; gap: 26px; align-items: start; }
.entity .prop { padding: 9px 0; border-bottom: 1px solid var(--line); }
.entity .prop:last-child { border-bottom: 0; }
.entity .prop .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.entity .prop .v { font-size: 14px; margin-top: 3px; word-break: break-word; }

/* таймлайн */
.timeline { display: flex; flex-direction: column; gap: 12px; }
.tl-item { display: flex; gap: 12px; }
.tl-item .dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--box); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  border: 1px solid var(--line);
}
.tl-item .body { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 11px 15px; }
.tl-item.comment .body { background: var(--accent-bg); border-color: #C6DBF7; }
.tl-item.robot .body { background: var(--warn-bg); border-color: #F0DEBC; }
.tl-item.convert .body { background: var(--ok-bg); border-color: #CCE7D8; }
.tl-item .when { color: var(--muted); font-size: 12px; }

/* мессенджер */
.im { display: grid; grid-template-columns: 330px 1fr; height: calc(100vh - 150px); }
.im .list { border-right: 1px solid var(--line); overflow-y: auto; }
.im .list a.row {
  display: flex; gap: 11px; padding: 12px 16px; color: var(--ink); border-bottom: 1px solid var(--line);
}
.im .list a.row:hover { background: var(--box); text-decoration: none; }
.im .list a.row.active { background: var(--accent-bg); }
.im .list .t { font-weight: 500; font-size: 14px; }
.im .list .p { color: var(--muted); font-size: 12px; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.im .talk { display: flex; flex-direction: column; }
.im .talk .head { padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 500; }
.im .talk .msgs { flex: 1; overflow-y: auto; padding: 20px; background: var(--box); display: flex;
  flex-direction: column; gap: 10px; }
.im .msg { max-width: 62%; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 9px 15px; font-size: 14px; }
.im .msg.own { align-self: flex-end; background: var(--accent-bg); border-color: #C6DBF7; }
.im .msg .who { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.im .msg .when { font-size: 11px; color: var(--muted); text-align: right; margin-top: 4px; }
.im .composer { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; gap: 10px; background: var(--bg); }

/* плитки статистики */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-plate); padding: 18px 20px; }
.tile .v { font-size: 32px; font-weight: 300; line-height: 1.1; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tile .k { color: var(--muted); font-size: 12px; margin-top: 8px; }
.tile.accent .v { color: var(--accent); }
.tile.green .v { color: var(--ok); }
.tile.red .v { color: var(--err); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-plate);
  padding: 18px; color: var(--ink); display: block; transition: box-shadow .15s, border-color .15s;
}
.card:hover { text-decoration: none; border-color: var(--field-line); box-shadow: var(--shadow-hover); }

.flex { display: flex; align-items: center; gap: 10px; }
.mt { margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.messages { margin-bottom: 14px; }
.msg-flash {
  background: var(--ok-bg); border: 1px solid #CCE7D8; color: var(--ok); padding: 11px 16px;
  border-radius: var(--r-small); margin-bottom: 8px; font-size: 14px;
}
.chart-wrap { position: relative; height: 280px; }
code { background: var(--box); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* ================================================================== */
/*  Мобильная версия: не сжатый десктоп, а своя раскладка —           */
/*  верх контекст, низ навигация под палец, таблицы карточками.       */
/* ================================================================== */

.mobile-only { display: none; }
.backdrop { display: none; position: fixed; inset: 0; background: rgba(27, 36, 48, .38); z-index: 55; }
.backdrop.show { display: block; }

@media (max-width: 900px) {
  .mobile-only { display: block; }
  .desktop-only { display: none !important; }

  .topbar { height: 56px; gap: 10px; padding: 0 12px; }
  .topbar nav, .topbar .right .hide-mobile { display: none; }
  .topbar .logo img { height: 22px; }
  .topbar .logo .sub { display: none; }
  .topbar form.search input { width: 40px; padding-left: 30px; transition: width .2s; }
  .topbar form.search input:focus { width: 150px; }

  .burger {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border: 0; background: transparent; color: var(--ink); font-size: 20px; cursor: pointer;
    margin-left: -6px;
  }

  .sidebar {
    width: 278px; transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: 0 0 40px rgba(27, 36, 48, .18);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar a.item { padding: 13px 18px; font-size: 15px; }

  .content { margin: 56px 0 76px; padding: 14px 12px 24px; }
  .page-title { font-size: 23px; }
  .page-head { gap: 10px; margin-bottom: 14px; }

  .panel-pad { padding: 15px; }

  .tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 0 12px 4px; margin: 0 -12px 14px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; }
  .subtabs { overflow-x: auto; gap: 18px; }
  .subtabs::-webkit-scrollbar { display: none; }
  .subtabs a { white-space: nowrap; padding: 12px 2px; }

  /* таблицы → карточки с подписями полей */
  table.grid, table.grid tbody, table.grid tr, table.grid td { display: block; width: 100%; }
  table.grid thead { display: none; }
  table.grid tr {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 14px 16px; margin-bottom: 10px;
  }
  table.grid td { border: 0; padding: 3px 0; }
  table.grid td.num { text-align: left; }
  table.grid td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
  table.grid td.main[data-label]::before { content: none; }
  table.grid td.main { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
  table.grid tr:hover td { background: transparent; }

  .kanban { gap: 10px; margin: 0 -12px; padding: 0 12px 16px; scroll-snap-type: x mandatory; }
  .kanban-col { min-width: 83vw; width: 83vw; scroll-snap-align: start; }

  .entity { grid-template-columns: 1fr; gap: 18px; }
  .form-row { grid-template-columns: 1fr; }

  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 14px 16px; }
  .tile .v { font-size: 24px; }
  .cards { grid-template-columns: 1fr; }

  .im { grid-template-columns: 1fr; height: calc(100dvh - 210px); min-height: 340px; }
  .im.has-current { height: calc(100dvh - 148px); }
  .im .list { border-right: 0; }
  .im.has-current .list { display: none; }
  .im .msg { max-width: 86%; }
  .im .composer { position: sticky; bottom: 0; }

  .stage-line button { min-width: 46%; }
  .btn { height: 42px; padding: 0 18px; }
  .btn-sm { height: 32px; }
  input, select, textarea { font-size: 16px; }  /* iOS не зумит поле при фокусе */

  .chart-wrap { height: 230px; }
}

/* нижняя навигация — основной способ перемещения на телефоне */
.bottombar { display: none; }
@media (max-width: 900px) {
  .bottombar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 64px;
    background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottombar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; color: var(--muted); font-size: 10px; text-decoration: none; position: relative;
  }
  .bottombar a .ico { font-size: 19px; line-height: 1; }
  .bottombar a.active { color: var(--accent); }
  .bottombar a .dot {
    position: absolute; top: 9px; right: 50%; margin-right: -16px; background: var(--err);
    color: #fff; border-radius: var(--r-pill); font-size: 9px; padding: 1px 5px; font-weight: 600;
  }
  .fab {
    position: fixed; right: 16px; bottom: 80px; width: 54px; height: 54px; border-radius: 50%;
    background: var(--accent); color: #fff; display: flex; align-items: center;
    justify-content: center; font-size: 26px; box-shadow: 0 8px 20px rgba(36, 104, 201, .35);
    z-index: 59; text-decoration: none;
  }
  .fab:hover { color: #fff; text-decoration: none; }
}

@media (max-width: 420px) {
  .kanban-col { min-width: 89vw; width: 89vw; }
}

/* герой главной — фирменная плашка с «хвостом кометы» */
.hero {
  background:
    radial-gradient(120% 160% at 88% -30%, rgba(196, 231, 251, .55) 0%, rgba(196, 231, 251, 0) 55%),
    linear-gradient(180deg, #FAFCFF 0%, #FFFFFF 100%);
  border-color: #DDE7F4;
}
@media (max-width: 900px) { .hero .ava.lg { width: 60px; height: 60px; font-size: 20px; } }

/* ------------------------------------------------------- экран входа */
.auth { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; background: var(--bg); }
.auth-promo {
  padding: 56px 60px; color: var(--ink);
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(196, 231, 251, .55) 0%, rgba(196, 231, 251, 0) 60%),
    linear-gradient(180deg, #F7FAFE 0%, #EEF4FC 100%);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.auth-logo { height: 34px; width: auto; align-self: flex-start; }
.auth-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.auth-h1 { font-size: 42px; font-weight: 300; margin: 0; letter-spacing: -.02em; line-height: 1.15; }
.auth-lead { font-size: 16px; color: var(--ink-2); margin: 0; max-width: 440px; }
.auth-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 440px; }
.auth-list li { position: relative; padding-left: 26px; color: var(--ink-2); }
.auth-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg);
}
.auth-since { margin-top: 20px; font-size: 13px; color: var(--muted); }

.auth-form { display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px; gap: 18px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-logo-sm { height: 28px; display: none; margin-bottom: 18px; }
.auth-title { font-size: 26px; font-weight: 300; margin: 0 0 4px; letter-spacing: -.02em; }
.auth-foot { text-align: center; }

.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--muted); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn-max { width: 100%; background: #1B2430; border-color: #1B2430; color: #fff; }
.btn-max:hover { background: #0F1723; border-color: #0F1723; color: #fff; }
.max-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 6px; background: #fff; color: #1B2430; font-weight: 700; font-size: 12px;
}
.max-code {
  font-size: 40px; font-weight: 300; letter-spacing: .22em; color: var(--accent);
  background: var(--accent-bg); border-radius: var(--r-plate); padding: 18px 10px;
  margin: 14px 0 6px; font-variant-numeric: tabular-nums;
}
.auth-wait { margin: 16px 0 4px; color: var(--muted); font-size: 13px; }
.auth-wait.bad { color: var(--err); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 100dvh; }
  .auth-promo { display: none; }
  .auth-logo-sm { display: block; }
  .auth-form { justify-content: flex-start; padding: 42px 20px 24px; }
  .auth-title { font-size: 23px; }
}
