/* ============================================================
   Altyn Business — УЧЕБНЫЙ МАКЕТ (демонстрационный материал)
   Чистый CSS, адаптив desktop + mobile.
   Бренд и данные вымышленные. Не является банковским сервисом.
   ============================================================ */

:root {
  --green: #15a35a;
  --green-dark: #0f8a4b;
  --green-soft: #e4f5ec;
  --green-pill: #d9f1e3;
  --gold: #c9972b;
  --ink: #1b2430;
  --ink-2: #4a5663;
  --muted: #8a97a5;
  --line: #e7ebf0;
  --bg: #f1f3f6;
  --card: #ffffff;
  --blue: #1f6fe0;
  --red: #e23b4a;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 3px rgba(20, 30, 45, .06), 0 6px 20px rgba(20, 30, 45, .05);
  --sidebar-w: 248px;
  --topbar-h: 72px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
.chev { width: 18px; height: 18px; flex-shrink: 0; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- ДЕМО-РИБОН / ВОДЯНОЙ ЗНАК ---------- */
.demo-ribbon {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: 26px;
  background: repeating-linear-gradient(135deg, #2b2f36 0 18px, #3a3f47 18px 36px);
  color: #ffe08a;
  font-size: 11.5px;
  letter-spacing: .14em;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.demo-ribbon span { opacity: .85; }
body { padding-top: 26px; }

.demo-watermark {
  position: fixed;
  inset: 26px 0 0 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -30deg,
    rgba(21, 163, 90, .035) 0 2px,
    transparent 2px 190px
  );
}
.demo-watermark::before {
  content: attr(data-wm); /* текст задаётся из JS-конфига BRAND.watermark (app.js) */
  position: absolute;
  inset: 0;
  color: rgba(27, 36, 48, .028);
  font-weight: 800;
  font-size: 34px;
  line-height: 150px;
  letter-spacing: .1em;
  white-space: pre-wrap;
  word-spacing: 40px;
  transform: rotate(-24deg) scale(1.4);
  transform-origin: center;
}

/* ---------- ОБОЛОЧКА ПРИЛОЖЕНИЯ ---------- */
.app { display: flex; min-height: calc(100vh - 26px); position: relative; z-index: 2; }

/* ---------- SIDEBAR ---------- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 26px;
  height: calc(100vh - 26px);
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
  position: relative;
}
.brand-mark::after {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50% 50% 50% 0;
  background: var(--gold);
  transform: rotate(45deg);
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.brand-name b { font-weight: 800; }
.brand-name span { color: var(--muted); font-weight: 500; }

.nav { padding: 6px 12px; overflow-y: auto; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background .15s;
  white-space: nowrap;
}
.nav-item:hover { background: #f5f7f9; }
.nav-item.active { background: var(--green-pill); color: var(--green-dark); font-weight: 600; }
.nav-item .ico { width: 20px; height: 20px; flex-shrink: 0; color: currentColor; opacity: .9; }
.nav-item .chev { margin-left: auto; opacity: .5; width: 16px; height: 16px; }

/* раскрывающиеся подменю */
.nav-parent { width: 100%; border: 0; background: none; cursor: pointer; }
.nav-group .chev { transition: transform .2s; }
.nav-group.open > .nav-parent .chev { transform: rotate(180deg); opacity: .8; }
.nav-children { display: none; padding: 2px 0 4px 44px; }
.nav-group.open .nav-children { display: block; }
.nav-sub { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; margin-bottom: 1px; }
.nav-sub:hover { background: #f5f7f9; }
.nav-sub.active { color: var(--green-dark); font-weight: 600; background: var(--green-pill); }

.sidebar-foot {
  border-top: 1px solid var(--line);
  padding: 14px 18px 18px;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-foot .tariff { font-size: 13px; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.sidebar-foot .bar { height: 4px; background: var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.sidebar-foot .bar i { display: block; height: 100%; width: 100%; background: var(--green); }

/* ---------- MAIN ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 26px;
  position: sticky;
  top: 26px;
  z-index: 20;
}
.topbar .burger { display: none; background: none; border: 0; padding: 6px; }
.topbar-stat { display: flex; flex-direction: column; }
.topbar-stat small { color: var(--muted); font-size: 12px; }
.topbar-stat b { font-size: 15px; font-weight: 700; }
.topbar-spacer { flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user .who { text-align: right; line-height: 1.25; }
.topbar-user .who b { font-size: 14px; }
.topbar-user .who small { display: block; color: var(--muted); font-size: 12px; }
.topbar-user .ava { width: 36px; height: 36px; border-radius: 50%; background: #dfe6ee; display: grid; place-items: center; color: var(--muted); }
.bell { position: relative; color: var(--ink-2); background: none; border: 0; padding: 6px; display: inline-flex; align-items: center; }
.bell:hover { color: var(--green-dark); }
.bell .ico { width: 22px; height: 22px; }
.bell .dot { position: absolute; top: -2px; right: -2px; background: var(--red); color: #fff; font-size: 9px; border-radius: 10px; padding: 1px 4px; font-weight: 700; }

/* ---------- ШТОРКА УВЕДОМЛЕНИЙ ---------- */
.notif-scrim { position: fixed; inset: 26px 0 0 0; background: rgba(10,15,20,.4); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.notif-scrim.open { opacity: 1; pointer-events: auto; }
.notif-drawer {
  position: fixed; top: 26px; right: 0; width: 380px; max-width: 92vw; height: calc(100vh - 26px);
  background: #fff; z-index: 81; box-shadow: -8px 0 30px rgba(10,15,20,.18);
  transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column;
}
.notif-drawer.open { transform: translateX(0); }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.notif-head b { font-size: 17px; }
.notif-readall { border: 0; background: var(--green-soft); color: var(--green-dark); padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.notif-list { overflow-y: auto; flex: 1; }
.notif-item { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.notif-item.unread { background: #f3faf6; }
.notif-item .notif-ico { width: 38px; height: 38px; border-radius: 10px; background: #eef1f4; color: var(--ink-2); display: grid; place-items: center; flex-shrink: 0; }
.notif-item .notif-ico.deposit { background: var(--green-soft); color: var(--green-dark); }
.notif-item .notif-ico.system { background: #e9f1ff; color: var(--blue); }
.notif-item .notif-ico .ico { width: 20px; height: 20px; }
.notif-item b { font-size: 14px; }
.notif-item p { margin: 3px 0; font-size: 13px; color: var(--ink-2); }
.notif-item small { color: var(--muted); font-size: 11.5px; }

.content { padding: 26px; max-width: 1180px; width: 100%; }
.page-title { font-size: 27px; font-weight: 800; margin: 4px 0 22px; letter-spacing: -.02em; }

/* ---------- КАРТОЧКИ / ОБЩЕЕ ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 22px 24px; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 16px; }
.grid { display: grid; gap: 16px; }

/* промо-баннеры на главной */
.promos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.promo {
  position: relative;
  border-radius: var(--radius-sm);
  padding: 18px;
  min-height: 150px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  display: flex; align-items: flex-start;
  box-shadow: var(--shadow);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.promo span { position: relative; z-index: 2; max-width: 58%; }
.promo.p1 { background-image: url("../img/banner1.svg"); color: #fff; }
.promo.p2 { background-image: url("../img/banner2.svg"); color: var(--ink); }
.promo.p3 { background-image: url("../img/banner3.svg"); color: var(--ink); }
.promo.p4 { background-image: url("../img/banner4.svg"); color: var(--green-dark); }

/* быстрые действия */
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 16px; align-items: center;
}
.qbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 16px; border-radius: 12px; border: 0;
  background: #f5f7f9; color: var(--ink-2); font-weight: 600; font-size: 14.5px;
  white-space: nowrap;
}
.qbtn.primary { background: var(--green); color: #fff; }
.qbtn.primary:hover { background: var(--green-dark); }
.qbtn:not(.primary) .ico { color: var(--green-dark); }
.qbtn .ico { width: 20px; height: 20px; }

/* блок "Счета и карты" */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; font-weight: 800; margin: 0; }
.btn-ghost { background: var(--green-soft); color: var(--green-dark); border: 0; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }

.accounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.acc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; position: relative; min-height: 118px;
}
.acc.clickable { cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.acc.clickable:hover { border-color: var(--green); box-shadow: 0 4px 14px rgba(21,163,90,.1); }
.acc .acc-go { position: absolute; right: 14px; bottom: 14px; color: var(--muted); width: 18px; height: 18px; }
.acc .flag { width: 22px; height: 16px; border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.acc .type { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.acc .star { position: absolute; top: 16px; right: 16px; color: var(--gold); }
.acc .bal { font-size: 22px; font-weight: 800; margin: 12px 0 2px; }
.acc .num { color: var(--muted); font-size: 13px; }

/* документы на подпись */
.sign-box { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.sign-box .ico-big { width: 40px; height: 40px; color: var(--ink-2); }
.sign-box .t b { font-size: 16px; }
.sign-box .t small { display: block; color: var(--muted); }
.sign-box .btn-ghost { margin-left: auto; }

/* ---------- ВКЛАДКИ ---------- */
.tabs { display: inline-flex; background: #eef1f4; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 20px; }
.tab { border: 0; background: none; padding: 9px 18px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.tab.active { background: #2b333d; color: #fff; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 0; background: #eef1f4; color: var(--ink-2); padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 13.5px; }
.chip.active { background: var(--ink); color: #fff; }

/* список-меню (По реквизитам, По номеру телефона...) */
.list-menu { }
.list-menu .lm-item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.list-menu .lm-item:last-child { border-bottom: 0; }
.list-menu .lm-item:hover { background: #fafbfc; }
.list-menu .lm-item .ico { width: 24px; height: 24px; color: var(--ink-2); }
.list-menu .lm-item .chev { margin-left: auto; color: var(--muted); }
.list-menu .lm-item .badge { background: var(--green-soft); color: var(--green-dark); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-left: auto; }
.list-menu .lm-item .badge + .chev { margin-left: 10px; }
.lm-sub { color: var(--muted); font-size: 12.5px; }

/* ---------- ФОРМЫ ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin: 10px 0 18px; }
.check input { margin-top: 2px; }
.dropzone {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center;
  color: var(--muted); font-size: 13.5px; background: #fafbfc;
}
.btn {
  background: var(--green); color: #fff; border: 0; padding: 13px 26px; border-radius: 11px;
  font-weight: 700; font-size: 15px;
}
.btn:hover { background: var(--green-dark); }
.btn.sec { background: #eef1f4; color: var(--ink); }
.btn-row { display: flex; gap: 12px; margin-top: 10px; }

/* пустое состояние */
.empty { text-align: center; padding: 60px 20px; }
.empty .box-ico { width: 120px; margin: 0 auto 18px; }
.empty h3 { font-size: 19px; margin: 0 0 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

/* таблица выписки / заявок */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.table td { padding: 14px; border-bottom: 1px solid var(--line); }
.table tr:hover td { background: #fafbfc; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.pill.ok { background: var(--green-soft); color: var(--green-dark); }
.pill.wait { background: #fff4e0; color: #b4791a; }

/* плитки заявлений */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { display: flex; align-items: center; gap: 16px; padding: 24px; }
.tile .ico { width: 34px; height: 34px; color: var(--green-dark); }
.tile b { font-size: 16px; }

/* аналитика-ссылки (выписка) */
.side-help { display: grid; gap: 12px; align-content: start; }
.help-link { background: var(--card); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.help-link.lead { color: var(--green-dark); }

/* ============================================================
   АДАПТИВ — МОБИЛЬНАЯ ВЕРСИЯ (как на мобильных скринах)
   ============================================================ */
.mobile-tabbar { display: none; }
.scrim { display: none; }

@media (max-width: 960px) {
  :root { --topbar-h: 60px; }
  .sidebar {
    position: fixed; left: 0; top: 26px; z-index: 60;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .scrim { display: block; position: fixed; inset: 26px 0 0 0; background: rgba(10,15,20,.4); z-index: 55; }
  .topbar .burger { display: inline-flex; }
  .topbar { gap: 14px; padding: 0 16px; }
  .topbar-stat small { font-size: 11px; }
  .content { padding: 16px; }
  .page-title { font-size: 22px; margin-bottom: 16px; }
  .promos { grid-template-columns: 1fr 1fr; }
  .accounts { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .statement-layout { grid-template-columns: 1fr !important; }
  .topbar-user .who { display: none; }

  /* нижняя таб-панель как в мобильном приложении */
  .mobile-tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line);
    padding: 11px 4px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(20,30,45,.05);
  }
  .mobile-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
    font-size: 11.5px; color: var(--muted); font-weight: 600; min-height: 48px; justify-content: center;
  }
  .mobile-tabbar a.active { color: var(--green); }
  .mobile-tabbar a .ico { width: 26px; height: 26px; }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .promos { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; }
  .demo-ribbon { font-size: 10px; letter-spacing: .08em; }
}

/* ============================================================
   МОБИЛЬНАЯ ГЛАВНАЯ (как экран «Business» в приложении)
   ============================================================ */
.m-home { display: none; }
@media (max-width: 960px) {
  .d-home { display: none; }
  .m-home { display: block; }
  /* на главной прячем веб-шапку: вместо неё — шапка приложения */
  body.is-home .topbar { display: none; }
  body.is-home .content { padding: 14px 14px 0; }
}
.mh-top { display: flex; align-items: flex-start; justify-content: space-between; margin: 2px 0 16px; }
.mh-org b { font-size: 22px; font-weight: 800; display: block; }
.mh-org small { color: var(--muted); font-size: 13px; }
.mh-caret { color: var(--muted); font-size: 16px; }
.mh-bonus { background: #e7eefc; color: #2b4a8b; font-weight: 700; font-size: 14px; border-radius: 20px; padding: 7px 14px; white-space: nowrap; }

.mh-pills { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.mh-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 0; border-radius: 16px; padding: 14px 18px; font-weight: 700; font-size: 15px; color: var(--ink); box-shadow: var(--shadow); }
.mh-pill .ico { width: 20px; height: 20px; color: var(--ink); }

.mh-title { font-size: 21px; font-weight: 800; margin: 18px 2px 12px; }
.mh-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.mh-tab { flex: 0 0 auto; border: 0; background: #eceef1; color: var(--ink-2); font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 18px; }
.mh-tab.active { background: #2b333d; color: #fff; }

.mh-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 8px; }
.mp-acc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--ink); }
.mp-acc + .mp-acc { border-top: 1px solid var(--line); }
.mp-flag { width: 38px; height: 38px; border-radius: 50%; background: #eef1f4; display: grid; place-items: center; flex-shrink: 0; }
.mp-flag .flag { width: 24px; height: 17px; border-radius: 3px; }
.mp-info { display: flex; flex-direction: column; }
.mp-info b { font-size: 16px; font-weight: 800; }
.mp-info small { color: var(--muted); font-size: 13px; }
.mh-showall { display: block; text-align: center; color: var(--blue); font-weight: 700; font-size: 15px; padding: 14px; border-top: 1px solid var(--line); }
.mh-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.mh-ic svg { width: 22px; height: 22px; }
.mh-ic.ic-green { background: var(--green-soft); color: var(--green-dark); }
.mh-ic.ic-gold { background: #fff2e0; color: var(--gold); }
.mh-ic.ic-blue { background: #e7eefc; color: #2b4a8b; }
.mh-img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; flex-shrink: 0; background: #f7f9fb; }

/* баннеры-карусель и строка «Документы на подпись» на моб. главной */
.mh-banners { display: flex; gap: 10px; overflow-x: auto; margin: 0 -14px 14px; padding: 0 14px 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.mh-banners::-webkit-scrollbar { display: none; }
.mh-banner { flex: 0 0 86%; scroll-snap-align: start; border-radius: 16px; padding: 16px; min-height: 104px; font-weight: 800; font-size: 15.5px; line-height: 1.22; display: flex; align-items: center; box-shadow: var(--shadow); overflow: hidden; position: relative; background: #fff; }
.mh-banner span { max-width: 60%; position: relative; z-index: 2; color: #15325a; }
.mh-banner img { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); height: 118%; width: auto; z-index: 1; object-fit: contain; }
.mh-banner.b1 { background: #e4f5ec; } .mh-banner.b1 span { color: var(--green-dark); }
.mh-banner.b2 { background: #dcebf9; }
.mh-banner.b3 { background: #e7f0fb; }
.mh-docs { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; font-weight: 700; font-size: 16px; color: var(--ink); width: 100%; border: 0; text-align: left; }
.mh-docs .ico { width: 24px; height: 24px; color: var(--ink-2); }
.mh-docs .chev { margin-left: auto; color: var(--muted); }

/* ============================================================
   ОБЩИЕ ЭЛЕМЕНТЫ МОБИЛЬНЫХ ЭКРАНОВ ПРИЛОЖЕНИЯ (Операции, Сервисы, Ещё)
   ============================================================ */
.m-only { display: none; }
@media (max-width: 960px) {
  .d-only { display: none; }
  .m-only { display: block; }
  body.is-app .topbar { display: none; }
  body.is-app .content { padding: 14px 14px 0; }
}
.app-h1 { font-size: 26px; font-weight: 800; margin: 4px 2px 16px; letter-spacing: -.02em; }
.app-center-title { text-align: center; font-size: 17px; font-weight: 800; margin: 2px 0 16px; }
.app-seg { display: flex; background: #eceef1; border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.app-seg button { flex: 1; border: 0; background: none; padding: 11px; border-radius: 11px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.app-seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20,30,45,.14); }
.app-sec { color: var(--muted); font-size: 14px; font-weight: 600; margin: 20px 4px 10px; }
.app-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 12px; }
.app-row { display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--ink); width: 100%; border: 0; background: none; text-align: left; font: inherit; }
.app-row + .app-row { border-top: 1px solid var(--line); }
.app-row .ic { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; color: var(--ink-2); }
.app-row .ic svg { width: 26px; height: 26px; }
.app-row .tt { display: flex; flex-direction: column; min-width: 0; }
.app-row .tt b { font-size: 16px; font-weight: 700; }
.app-row .tt small { color: var(--muted); font-size: 13px; }
.app-row .chev { margin-left: auto; color: var(--muted); flex-shrink: 0; }
.app-row.big { padding: 18px 16px; }
.app-row.big .tt b { font-size: 17px; }
.app-toggle { width: 46px; height: 27px; border-radius: 20px; background: var(--green); position: relative; flex-shrink: 0; margin-left: auto; }
.app-toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.app-toggle.off { background: #cfd6dd; }
.app-toggle.off::after { right: auto; left: 3px; }
.app-pills-row { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 14px; }
.app-pills-row::-webkit-scrollbar { display: none; }
.app-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 0; border-radius: 14px; padding: 11px 16px; font-weight: 700; font-size: 14px; color: var(--ink); box-shadow: var(--shadow); }
.app-search { width: 100%; padding: 13px 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 15px; font-family: inherit; margin-bottom: 14px; }
.app-empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.app-empty .zero { font-size: 120px; font-weight: 800; color: #e3e7ec; line-height: 1; margin-bottom: 6px; }
.app-empty p { font-size: 17px; font-weight: 600; color: var(--ink-2); }

/* сервисная сетка (моб. «Сервисы») */
.sv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 560px) { .sv-grid { grid-template-columns: repeat(4, 1fr); } }
.sv-tile { background: none; border: 0; padding: 10px 4px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.sv-ill { width: 60px; height: 60px; margin: 0 auto 8px; border-radius: 16px; display: grid; place-items: center; }
.sv-ill svg { width: 34px; height: 34px; }

/* сообщения (моб.) */
.ms-filter { margin-bottom: 8px; }
.ms-date { color: var(--muted); font-size: 13px; text-align: center; margin: 20px 0 14px; }
.ms-item { position: relative; background: #f1f3f6; border-radius: 16px; padding: 16px 18px; }
.ms-item.unread::before { content: ""; position: absolute; left: -12px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.ms-item b { font-size: 14px; font-weight: 700; }
.ms-item p { margin: 6px 0 0; font-size: 14px; color: var(--ink); line-height: 1.4; }
.ms-item .lnk { color: var(--blue); }
.ms-time { color: var(--muted); font-size: 12px; margin: 6px 4px 0; }

/* Ещё — профиль/настройки (моб.) */
.more-head b { font-size: 22px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.more-head small { color: var(--muted); display: block; font-size: 13px; margin-top: 2px; }
.tariff-card { background: #f2f4f6; border-radius: 16px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; margin: 16px 0 6px; }
.tariff-card small { color: var(--muted); font-size: 13px; }
.tariff-card b { font-size: 20px; font-weight: 800; }
.tariff-card .chev { color: var(--muted); }
.btn-logout { width: 100%; background: #fde8ea; color: var(--red); border: 0; padding: 16px; border-radius: 16px; font-weight: 700; font-size: 16px; margin: 20px 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-logout .ico { width: 22px; height: 22px; }

/* плашка включения push-уведомлений */
.push-banner { position: fixed; left: 12px; right: 12px; bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 70; background: #11331f; color: #fff; border-radius: 16px; padding: 14px 14px 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(10,30,20,.3); }
.push-banner .pb-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.push-banner .pb-txt b { font-size: 14px; }
.push-banner .pb-txt span { font-size: 12px; opacity: .85; }
.push-banner .pb-btn { flex-shrink: 0; background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 14px; }
.push-banner .pb-x { flex-shrink: 0; background: none; border: 0; color: rgba(255,255,255,.7); font-size: 15px; padding: 4px 6px; }
@media (min-width: 961px) { .push-banner { bottom: 18px; left: auto; right: 18px; width: 360px; } }

/* ---------- СТРАНИЦА ВХОДА ---------- */
.login-wrap {
  min-height: calc(100vh - 26px);
  display: grid; grid-template-columns: 1.1fr 1fr;
  position: relative; z-index: 2;
}
.login-aside {
  background: linear-gradient(145deg, #0f8a4b 0%, #0b6e3b 60%, #094d2c 100%);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.login-aside .brand-name, .login-aside .brand-name span { color: #fff; }
.login-aside h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; }
.login-aside p { opacity: .85; font-size: 15px; max-width: 420px; }
.login-aside .note { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 14px 16px; font-size: 13px; }
.login-main { display: grid; place-items: center; padding: 40px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.login-card .sub { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.login-card .btn { width: 100%; margin-top: 6px; }
.login-demo { margin-top: 18px; background: var(--green-soft); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--green-dark); }
.login-demo b { display: block; margin-bottom: 2px; }
.login-err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 16px; }

@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-aside { display: none; }
}
