/* Главная страница: предложение, примеры «Было и стало», шаги, разбор процесса, вопросы, заявка */
:root {
  --ink: #17130f;
  --muted: #6b645a;
  --soft: #9a9286;
  --line: #e7e2d9;
  --paper: #fbfaf7;
  --card: #ffffff;
  --teal: #0f7a72;
  --teal-2: #3aa597;
  --teal-soft: #e6f3f1;
  --amber: #b86a2a;
  --amber-soft: #fbefdf;
  --red: #c2452f;
  --red-soft: #fbe7e2;
  --blue: #2f64b8;
  --blue-soft: #e6eefb;
  --violet: #6a55b8;
  --violet-soft: #eeeafb;
  --green: #2f8a57;
  --green-soft: #e3f3e9;
  --display: "Manrope", system-ui, sans-serif;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="kk"] { --display: "Onest", system-ui, sans-serif; --font: "Onest", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; }

.wrap { width: min(100% - 32px, 1180px); margin: 0 auto; }

/* Шапка */
.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.hd.is-scrolled { border-bottom-color: var(--line); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.hd-logo img { height: 24px; width: auto; }
.hd-nav { display: flex; gap: 1.6rem; font-weight: 600; font-size: 0.94rem; color: #3d3730; }
.hd-nav a:hover { color: var(--ink); }
.hd-right { display: flex; align-items: center; gap: 1rem; font-weight: 600; font-size: 0.92rem; }
.hd-lang { text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-main {
  color: #fff;
  background: linear-gradient(180deg, var(--teal-2), var(--teal));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 24px -12px rgba(15, 122, 114, 0.8);
}
.btn-main:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 14px 30px -12px rgba(15, 122, 114, 0.9); }
.btn-soft { background: #fff; border-color: var(--line); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; border-radius: 12px; font-size: 0.9rem; }
.btn .arr { font-weight: 800; }

/* Первый экран */
.hero { padding: 3.6rem 0 1.4rem; text-align: center; }
.hero h1 { margin: 0 auto; max-width: 14ch; font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1.02; }
.hero-lead { max-width: 640px; margin: 1.2rem auto 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-cta { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.hero-cta .btn { min-width: 260px; font-size: 1.02rem; }
.hero-note { font-size: 0.9rem; color: var(--muted); }

/* Было и стало */
.ba { padding: 1.4rem 0 4rem; }
.ba-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ba-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ba-head p { margin: 0.3rem 0 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.chip {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: #cfc8bc; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ba-toggle { display: none; }
.ba-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 1.2rem; align-items: start; }
.ba-col h3 { font-size: 1.15rem; }
.ba-col > p { margin: 0.25rem 0 0.8rem; color: var(--muted); font-size: 0.94rem; min-height: 2.9em; }
.ba-cap { margin-top: 0.9rem; font-size: 0.84rem; color: var(--soft); }

/* Таблица в колонке «Сейчас» */
.xls {
  border: 1px solid #8fa79a;
  background: #fff;
  font-family: Calibri, Arial, sans-serif;
  font-size: 11px;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.5);
}
.xls-title { padding: 3px 6px; background: #1f7244; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xls table { width: 100%; border-collapse: collapse; }
.xls th, .xls td { padding: 1px 4px; border: 1px solid #d5d9d6; white-space: nowrap; overflow: hidden; max-width: 90px; text-overflow: ellipsis; text-align: left; }
.xls th { background: #eef1ef; color: #59605c; font-weight: 400; text-align: center; }
.xls td.y { background: #fff3b0; }
.xls td.p { background: #f8d2cc; }
.xls td.g { background: #d4ecd9; }
.xls td.err { color: #c00; font-weight: 700; }

/* Экран под бизнес */
.app {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 400px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  font-size: 12.5px;
  box-shadow: 0 30px 60px -36px rgba(23, 19, 15, 0.45);
}
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: #f7f5f1; border-right: 1px solid var(--line); }
.app-co { display: flex; align-items: center; gap: 7px; padding: 2px 6px 12px; font-weight: 700; font-size: 12px; line-height: 1.2; }
.app-co i { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: #fff; font-style: normal; font-size: 11px; }
.app-nav { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 8px; color: #4a443c; }
.app-nav.is-on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.app-nav b { font-weight: 600; font-size: 11px; color: var(--soft); }
.app-user { margin-top: auto; display: flex; align-items: center; gap: 7px; padding: 8px 6px 2px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.2; }
.app-user i { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-style: normal; font-weight: 700; font-size: 10px; }
.app-user small { display: block; color: var(--soft); }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.app-top h4 { margin: 0; font-family: var(--display); font-size: 15px; letter-spacing: -0.01em; }
.app-top p { margin: 1px 0 0; color: var(--muted); font-size: 11.5px; }
.app-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.app-alert { padding: 3px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 11px; white-space: nowrap; }
.app-seg { display: flex; padding: 2px; border-radius: 8px; background: #f1eee8; font-size: 11px; }
.app-seg span { padding: 2px 8px; border-radius: 6px; color: var(--muted); }
.app-seg span:first-child { background: #fff; color: var(--ink); font-weight: 700; }
.app-btn { padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: 11px; white-space: nowrap; }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 200px; flex: 1; min-height: 0; }
.app-body.no-side { grid-template-columns: minmax(0, 1fr); }
.app-view { padding: 10px 12px; min-width: 0; overflow-x: auto; }
.app-card { padding: 12px; border-left: 1px solid var(--line); background: #fcfbf9; }
.app-card h5 { margin: 0; font-size: 13px; font-family: var(--display); }
.app-card > p { margin: 2px 0 8px; color: var(--muted); font-size: 11px; }
.kv { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 11.5px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; font-weight: 600; }
.card-note { margin-top: 8px; padding: 7px 8px; border-radius: 8px; background: var(--amber-soft); color: #6d4317; font-size: 11px; }
.card-chat { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.card-chat p { margin: 0; padding: 5px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 11px; max-width: 92%; }
.card-chat p.me { align-self: flex-end; background: #dcf5e5; border-color: #c6e8d2; }
.card-act { margin-top: 10px; padding: 6px 10px; border-radius: 8px; background: linear-gradient(180deg, var(--teal-2), var(--teal)); color: #fff; font-weight: 700; text-align: center; font-size: 11.5px; }
.plate { margin: 6px 0 4px; padding: 10px; border-radius: 8px; background: #23262b; text-align: center; }
.plate span { display: inline-block; padding: 3px 10px; border: 2px solid #111; border-radius: 4px; background: #fff; font: 700 15px/1 Arial, sans-serif; letter-spacing: 1px; }
.plate small { display: block; margin-top: 5px; color: #8de0b4; font-size: 10px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.kpis div { padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; }
.kpis span { display: block; color: var(--muted); font-size: 10.5px; }
.kpis b { font-family: var(--display); font-size: 14px; }

/* Шкала по времени */
.tl { min-width: 470px; }
.tl-head, .tl-row { display: grid; grid-template-columns: 108px repeat(var(--cols), minmax(0, 1fr)); }
.tl-head span { padding: 0 2px 5px; color: var(--soft); font-size: 10.5px; border-bottom: 1px solid var(--line); }
.tl-row { position: relative; min-height: 46px; border-bottom: 1px solid #f1eee8; }
.tl-name { grid-column: 1; padding: 6px 6px 6px 0; font-weight: 600; font-size: 11.5px; line-height: 1.2; }
.tl-name small { display: block; color: var(--soft); font-weight: 400; font-size: 10px; }
.tl-item { margin: 4px 2px; padding: 3px 6px; border-radius: 6px; border-left: 3px solid; font-size: 10.5px; line-height: 1.25; overflow: hidden; grid-row: 1; }
.tl-item b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-item span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Доска по этапам */
.bd { display: grid; grid-template-columns: repeat(var(--cols), minmax(118px, 1fr)); gap: 7px; min-width: 470px; }
.bd-col { padding: 6px; border-radius: 10px; background: #f6f4f0; }
.bd-col > b { display: flex; justify-content: space-between; padding: 0 2px 6px; font-size: 11px; }
.bd-col > b em { font-style: normal; color: var(--soft); font-weight: 600; }
.bd-card { margin-bottom: 6px; padding: 6px 7px; border-radius: 8px; background: #fff; border: 1px solid var(--line); line-height: 1.3; }
.bd-card b { display: block; font-size: 11px; }
.bd-card span { display: block; color: var(--muted); font-size: 10.5px; }
.bd-card em { display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: 10px; font-weight: 700; }

/* Таблица */
.tb { width: 100%; min-width: 470px; border-collapse: collapse; font-size: 11.5px; }
.tb th { padding: 0 6px 6px; text-align: left; color: var(--soft); font-weight: 600; font-size: 10.5px; border-bottom: 1px solid var(--line); }
.tb td { padding: 7px 6px; border-bottom: 1px solid #f1eee8; vertical-align: top; }
.tb td small { display: block; color: var(--soft); font-size: 10.5px; }
.tb td:first-child { font-weight: 600; }
.pill { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }

/* Расчёт */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; min-width: 470px; }
.calc-group { margin-bottom: 8px; }
.calc-group > span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10.5px; }
.calc-group div { display: flex; gap: 4px; flex-wrap: wrap; }
.calc-group i { padding: 3px 8px; border: 1px solid var(--line); border-radius: 7px; font-style: normal; font-size: 11px; }
.calc-group i.is-on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.calc-fig { display: flex; align-items: flex-end; gap: 2px; height: 92px; margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: repeating-linear-gradient(0deg, #fff, #fff 9px, #f6f4f0 10px); }
.calc-fig div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.calc-fig div i { flex: 0 0 30%; margin-bottom: 4px; border: 1px solid #b9b1a3; background: #f1ede6; }
.calc-fig div em { flex: 0 0 48%; border: 1px solid #b9b1a3; background: #e9e3d8; }
.calc-fig small { display: block; text-align: center; color: var(--muted); font-size: 9.5px; margin-top: 2px; }
.calc-sum { padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.calc-sum b.total { display: block; margin-top: 6px; font-family: var(--display); font-size: 17px; }

/* Цвета состояний */
.t-ok { background: var(--green-soft); border-color: var(--green) !important; color: var(--green); }
.t-work { background: var(--blue-soft); border-color: var(--blue) !important; color: var(--blue); }
.t-wait { background: var(--amber-soft); border-color: var(--amber) !important; color: var(--amber); }
.t-late { background: var(--red-soft); border-color: var(--red) !important; color: var(--red); }
.t-done { background: #f1efeb; border-color: #b7b0a5 !important; color: #7a7368; }
.t-svc { background: var(--violet-soft); border-color: var(--violet) !important; color: var(--violet); }
.tl-item.t-ok b, .tl-item.t-work b, .tl-item.t-wait b, .tl-item.t-late b, .tl-item.t-done b, .tl-item.t-svc b { color: var(--ink); }

/* Секции */
.sec { padding: 4.5rem 0; }
.sec-head { max-width: 720px; margin-bottom: 2rem; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.08; }
.sec-head p { margin: 0.8rem 0 0; color: var(--muted); font-size: 1.04rem; }
.eyebrow { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step { padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(180deg, var(--teal-2), var(--teal)); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.step h3 { margin-top: 1rem; font-size: 1.2rem; }
.step p { margin: 0.5rem 0 0; color: var(--muted); }
.step-big { margin-top: 0.8rem; font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; }
.step-big small { display: block; font-family: var(--font); font-size: 0.88rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Разбор процесса */
.flow { border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.flow-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #f1eee8; }
.seg button { padding: 0.45rem 0.9rem; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.flow-stats { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.92rem; color: var(--muted); }
.flow-stats b { color: var(--ink); }
.flow-stats .bad { color: var(--red); }
.flow-stats .good { color: var(--green); }
.flow-body { padding: 1.2rem; }
.flow-pane[hidden] { display: none; }
.flow-places { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.flow-places span { padding: 0.3rem 0.6rem; border: 1px dashed #cfc8bc; border-radius: 8px; font-size: 0.84rem; color: var(--muted); }
.flow-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; counter-reset: fs; }
.flow-steps li { position: relative; padding: 0.65rem 0.75rem 0.65rem 2.3rem; border: 1px solid var(--line); border-radius: 12px; font-size: 0.9rem; line-height: 1.3; counter-increment: fs; }
.flow-steps li::before { content: counter(fs); position: absolute; left: 0.7rem; top: 0.62rem; width: 1.2rem; text-align: center; font-weight: 700; color: var(--soft); font-size: 0.82rem; }
.flow-steps li small { display: block; margin-top: 0.2rem; color: var(--soft); font-size: 0.78rem; }
.flow-steps li.twice { border-color: #efb3a6; background: var(--red-soft); }
.flow-steps li.twice small { color: var(--red); font-weight: 600; }
.flow-steps li.wait { border-style: dashed; }
.flow-steps.is-new li { border-color: #bfe0d8; background: #f5fbfa; }
.flow-steps.is-new li::before { color: var(--teal); }
.flow-cap { margin: 1rem 0 0; font-size: 0.84rem; color: var(--soft); }

/* Своя команда */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.team-list { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.team-list li { padding-left: 1.6rem; position: relative; color: #3d3730; }
.team-list li::before { content: ""; position: absolute; left: 0; top: 0.45rem; width: 0.7rem; height: 0.7rem; border-radius: 4px; background: var(--teal-2); }
.dlg { padding: 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -40px rgba(23, 19, 15, 0.5); }
.dlg-msg { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.8rem; }
.dlg-msg i { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-style: normal; font-weight: 700; font-size: 0.85rem; }
.dlg-msg p { margin: 0; padding: 0.6rem 0.8rem; border-radius: 14px; background: #f4f2ee; }
.dlg-msg.us i { background: var(--ink); color: #fff; }
.dlg-msg.us p { background: var(--teal-soft); }
.dlg-card { margin-left: 2.6rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: 14px; }
.dlg-card .kv { font-size: 0.88rem; }
.dlg-card .card-act { display: inline-block; margin-top: 0.7rem; padding: 0.45rem 0.9rem; font-size: 0.86rem; }

/* Вопросы */
.faq { display: grid; gap: 0.6rem; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--soft); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--muted); }

/* Заявка */
.cta { padding: 4.5rem 0 5rem; }
.cta-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding: 2rem; border-radius: 24px; background: #1d2725; color: #f4efe6; }
.cta-box h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; }
.cta-box > div > p { margin: 0.9rem 0 0; color: #c9c3b7; }
.cta-points { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.cta-points li { padding-left: 1.5rem; position: relative; }
.cta-points li::before { content: "✓"; position: absolute; left: 0; color: #7fd3c6; font-weight: 800; }
.lead-form { display: grid; gap: 0.8rem; padding: 1.2rem; border-radius: 18px; background: #fff; color: var(--ink); }
.lead-form label { display: grid; gap: 0.3rem; font-size: 0.86rem; font-weight: 600; }
.lead-form input, .lead-form textarea { width: 100%; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 16px; }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--teal-2); outline-offset: 1px; border-color: transparent; }
.lead-form .btn { width: 100%; }
.form-status { margin: 0; min-height: 1.2em; font-size: 0.9rem; }
.form-status.is-ok { color: var(--teal); }
.form-status.is-err { color: var(--red); }
.form-note { margin: 0; font-size: 0.78rem; color: var(--muted); }
.form-note a { text-decoration: underline; }

.ft { padding: 2rem 0 5rem; border-top: 1px solid var(--line); }
.ft-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.ft-in img { height: 20px; }
.ft-in a { text-decoration: underline; }

/* Чат в углу */
.chat-jump {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 16px 34px -12px rgba(23, 19, 15, 0.6);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}
.chat-jump.is-on { opacity: 1; pointer-events: auto; transform: none; }
.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 96px));
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 70px -20px rgba(23, 19, 15, 0.45);
}
.chat-panel[hidden] { display: none; }
.chat-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; font-weight: 700; }
.chat-panel-head span { display: flex; align-items: center; gap: 0.5rem; }
.chat-panel-head i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--teal); color: #fff; font-style: normal; font-size: 0.8rem; }
.chat-panel-head button { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.ai-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.6rem; overflow-y: auto; margin-bottom: 0.7rem; }
.ai-q, .ai-a { flex: 0 0 auto; max-width: 90%; margin: 0; padding: 0.6rem 0.8rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; }
.ai-q { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.ai-a { align-self: flex-start; background: #f4f2ee; border-bottom-left-radius: 4px; }
.ai-a.is-wait { color: var(--muted); }
.ai-a.is-team { background: var(--teal-soft); }
.ai-a.is-team span { display: block; margin-bottom: 0.15rem; color: var(--teal); font-size: 0.74rem; font-weight: 700; }
.ai-chips { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ai-chips button { padding: 0.4rem 0.7rem; border: 1px solid #cfe5e1; border-radius: 999px; background: #fff; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.ai-contact { flex: 0 0 auto; display: grid; gap: 0.4rem; padding: 0.6rem; border: 1px solid #cfe5e1; border-radius: 14px; background: #f5fbfa; }
.ai-contact input { width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; }
.ai-contact button { padding: 0.55rem; border: 0; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 700; cursor: pointer; }
.ai-input { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.4rem 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 14px; }
.ai-input:focus-within { border-color: var(--teal-2); }
.ai-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.ai-input button { flex: 0 0 34px; height: 34px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hd-nav { display: none; }
  .ba-grid { grid-template-columns: minmax(0, 1fr); }
  .ba-toggle { display: inline-flex; margin-bottom: 0.8rem; }
  .ba-grid[data-view="after"] .ba-old { display: none; }
  .ba-grid[data-view="before"] .ba-new { display: none; }
  .ba-col > p { min-height: 0; }
  .team, .cta-box { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .hd-in { height: 58px; }
  .hd-right .btn { display: none; }
  .hero { padding-top: 2.2rem; }
  .hero-cta .btn { width: 100%; min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 0.8rem; padding: 0 16px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-side { display: none; }
  .app-top { flex-direction: column; }
  .app-acts { justify-content: flex-start; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-card { border-left: 0; border-top: 1px solid var(--line); }
  .sec { padding: 3.2rem 0; }
  .flow-top { padding: 0.8rem; }
  .flow-body { padding: 0.8rem; }
  .flow-steps { grid-template-columns: minmax(0, 1fr); }
  .cta-box { padding: 1.2rem; border-radius: 18px; }
  .chat-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100dvh - 80px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Добавки к секциям */
.sec-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.08; }
.team-lead { margin: 0.8rem 0 0; color: var(--muted); font-size: 1.04rem; }
.flow-pane .flow-stats { margin-bottom: 0.9rem; }
.dlg .ba-cap { margin: 0.8rem 0 0; }

/* Первый экран плотнее, чтобы примеры были видны сразу */
.hero { padding-top: 2.6rem; }
.hero h1 { max-width: 17ch; font-size: clamp(2.2rem, 5.2vw, 4rem); }
.seg.ba-toggle { display: none; }
.ba-grid { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.4fr); }
.app { grid-template-columns: 132px minmax(0, 1fr); }
.app-body { grid-template-columns: minmax(0, 1fr) 184px; }

@media (max-width: 980px) {
  .seg.ba-toggle { display: inline-flex; margin-bottom: 0.8rem; }
  .ba-grid { grid-template-columns: minmax(0, 1fr); }
  .ba-col h3 { display: none; }
}
@media (max-width: 640px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-body { grid-template-columns: minmax(0, 1fr); }
}

/* Вопрос помощнику внизу экрана примера */
.app-ai { display: grid; gap: 6px; padding: 10px 14px 12px; border-top: 1px solid var(--line); background: #f7fbfa; }
.app-ai-q { justify-self: end; max-width: 80%; margin: 0; padding: 6px 10px; border-radius: 12px 12px 4px 12px; background: var(--ink); color: #fff; font-size: 12px; }
.app-ai-a { display: flex; gap: 8px; align-items: flex-start; max-width: 92%; }
.app-ai-a i { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: var(--teal); color: #fff; font-style: normal; font-weight: 700; font-size: 11px; }
.app-ai-a p { margin: 0; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: #fff; border: 1px solid #d6ebe7; font-size: 12px; line-height: 1.4; }
.app-ai-a b { display: block; color: var(--teal); font-size: 10.5px; }
@media (max-width: 640px) {
  .app-ai-q, .app-ai-a { max-width: 100%; }
}

/* ===== Экраны примеров: у каждого бизнеса свой цвет и своя раскладка ===== */
.ba.wrap { width: min(100% - 32px, 1360px); }
.ba-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr); }

.app { position: relative; --ac: var(--teal); --ac-ink: #fff; --ac-soft: color-mix(in srgb, var(--ac) 12%, #fff); }
:where(.app) button { font: inherit; color: inherit; cursor: pointer; }
.app-body { grid-template-columns: minmax(0, 1fr) 204px; }
.app-co i { background: var(--ac); color: var(--ac-ink); }
.app-nav span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.app-nav svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; opacity: 0.6; }
.app-nav.is-on svg { stroke: var(--ac); opacity: 1; }
.app-user i { background: var(--ac-soft); color: var(--ac); }
.app-btn { border: 0; background: var(--ac); color: var(--ac-ink); }
.app-btn.is-ok { background: var(--green); color: #fff; }
.app-alert { border: 0; }
.app-alert.is-ok { background: var(--green-soft); color: var(--green); cursor: default; }
.app-count { padding: 3px 8px; border-radius: 999px; background: var(--ac-soft); color: var(--ac); font-size: 11px; font-weight: 700; white-space: nowrap; }
.card-act { display: block; width: 100%; border: 0; background: var(--ac); color: var(--ac-ink); }
.card-done { margin-top: 10px; padding: 7px 9px; border-radius: 8px; background: var(--green-soft); color: #1f6a41; font-size: 11px; font-weight: 600; line-height: 1.35; }
.app h6 { margin: 12px 0 5px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); }
.app .is-sel { outline: 2px solid var(--ac); outline-offset: 1px; }
.is-flash { animation: mock-flash 0.9s ease; }
@keyframes mock-flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ac) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.is-new { animation: mock-pop 0.45s var(--ease); }
@keyframes mock-pop { from { opacity: 0; transform: scale(0.85); } }

/* Курсор, который показывает действие */
.cur { position: absolute; left: 0; top: 0; z-index: 9; width: 18px; height: 18px; margin: -2px 0 0 -3px; pointer-events: none; opacity: 0; transition: transform 0.8s cubic-bezier(0.45, 0.05, 0.2, 1), opacity 0.3s; }
.cur.is-on { opacity: 1; }
.cur svg { width: 100%; height: 100%; fill: #111; stroke: #fff; stroke-width: 1.2; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); transition: transform 0.12s; }
.cur.is-down svg { transform: scale(0.78); }

/* Шкала */
.tl-item { border: 0; border-left: 3px solid; text-align: left; font-size: 10.5px; align-self: start; }
.tl--tall .tl-row { min-height: 58px; }
.tl-item.is-clash { margin-top: 24px; z-index: 2; box-shadow: 0 6px 12px -6px rgba(194, 69, 47, 0.7); }
.tl-cell { grid-row: 1; min-height: 38px; margin: 4px 2px; border: 1px dashed transparent; border-radius: 7px; background: transparent; }
.tl-cell:hover { border-color: var(--ac); background: var(--ac-soft); }
.tl--solid .tl-row { min-height: 48px; }
.tl--solid .tl-item { align-self: stretch; padding: 9px 8px; border-left: 0; border-radius: 7px; background: var(--ac); }
.tl--solid .tl-item b { color: #fff; }
.tl--solid .tl-item.t-ok { background: var(--green); }
.tl--solid .tl-item.t-wait { background: color-mix(in srgb, var(--ac) 22%, #fff); }
.tl--solid .tl-item.t-wait b { color: #7a3410; }
.tl--solid .tl-item.t-svc { background: repeating-linear-gradient(135deg, #eceae5 0 6px, #f7f5f1 6px 12px); }
.tl--solid .tl-item.t-svc b { color: var(--muted); }
.tl--solid .tl-item.is-draft { outline: 1.5px dashed var(--ac); outline-offset: -1px; }

/* Автосервис: заявка из мессенджера */
.toast { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 7px 9px; border: 1px solid #cfe9d6; border-radius: 10px; background: #f1faf3; font-size: 11px; line-height: 1.3; }
.toast i { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #25a455; color: #fff; font-style: normal; font-weight: 800; }
.toast div { flex: 1; min-width: 0; }
.toast b { display: block; }
.toast span { color: var(--muted); }
.toast-btn { flex: 0 0 auto; padding: 5px 9px; border: 0; border-radius: 7px; background: var(--ink); color: #fff; font-weight: 700; font-size: 11px; white-space: nowrap; }

/* Цех: заказы с дорожкой этапов */
.ord { display: grid; gap: 6px; }
.ord-row { display: grid; grid-template-columns: minmax(96px, 1fr) minmax(170px, 1.6fr) 78px 26px; gap: 10px; align-items: center; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.ord-name b { display: block; font-size: 11.5px; }
.ord-name span { display: block; color: var(--muted); font-size: 10.5px; }
.trk { display: flex; }
.trk i { flex: 1; position: relative; height: 26px; font-style: normal; }
.trk i:last-child { flex: 0 0 10px; }
.trk i::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--line); }
.trk i:last-child::before { display: none; }
.trk i::after { content: ""; position: absolute; left: 0; top: 1px; width: 10px; height: 10px; box-sizing: border-box; border: 2px solid #cfc8bc; border-radius: 50%; background: #fff; }
.trk span { display: none; position: absolute; left: 0; top: 14px; font-size: 9.5px; font-weight: 700; color: var(--ac); white-space: nowrap; }
.trk i:last-child span { left: auto; right: 0; }
.trk i.is-now span { display: block; }
.trk i.is-past::before { background: var(--ac); }
.trk i.is-past::after { background: var(--ac); border-color: var(--ac); }
.trk i.is-now::after { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.ord-end { display: grid; gap: 4px; justify-items: end; }
.ord-pay { width: 100%; height: 4px; border-radius: 2px; background: #eee9df; }
.ord-pay i { display: block; height: 100%; border-radius: 2px; background: var(--green); }
.ord-next { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 800; }
.ord-next:hover { border-color: var(--ac); color: var(--ac); }

/* Перевозки: рейсы и карта */
.fr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; }
.fr-list { display: grid; gap: 6px; align-content: start; }
.fr-load { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 8px 10px; border: 1px solid #2a2d35; border-radius: 10px; background: #1b1e25; text-align: left; font-size: 11px; }
.fr-load b { font-size: 12px; color: #fff; }
.fr-load strong { color: var(--ac); font-size: 12px; }
.fr-load span { color: #9a978f; }
.fr-load em { justify-self: end; background: none; font-style: normal; font-weight: 700; font-size: 10.5px; }
.app .fr-load.is-sel { outline: 0; border-color: var(--ac); background: #23262e; }
.fr-load em.t-work { color: #7fb0ff; }
.fr-load em.t-late { color: #ff8a75; }
.fr-load em.t-done { color: #9a978f; }
.fr-load em.t-wait { color: #f0b56a; }
.fr-map { display: block; width: 100%; border: 1px solid #2a2d35; border-radius: 12px; background: #111318; }
.fr-line { stroke: #3a3e48; stroke-width: 1.2; stroke-dasharray: 3 3; }
.fr-line.is-on { stroke: var(--ac); stroke-width: 2.2; stroke-dasharray: none; }
.fr-city { fill: #15171c; stroke: #8d8a82; stroke-width: 1.3; }
.fr-map text { fill: #a9a79f; font-size: 8px; font-family: var(--font); }
.fr-truck { fill: var(--ac); stroke: #15171c; stroke-width: 2; transition: cx 0.6s var(--ease), cy 0.6s var(--ease); }
.fr-info { margin-top: 8px; padding: 9px 10px; border: 1px solid #2a2d35; border-radius: 10px; background: #1b1e25; font-size: 11px; }
.fr-info b { margin-right: 8px; color: #fff; }
.fr-info p { margin: 6px 0 0; color: #b5b2aa; line-height: 1.4; }

/* Пекарня: печи и изменения заказов */
.ovs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ov { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.ov-head { display: flex; justify-content: space-between; padding: 6px 9px; background: var(--ac-soft); font-size: 11px; }
.ov-head em { font-style: normal; font-weight: 700; color: var(--ac); }
.ov-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 9px; border-top: 1px solid #f1eee8; font-size: 11.5px; }
.ov-line small { color: var(--soft); font-size: 10px; white-space: nowrap; }
.chg { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.chg b { display: block; font-size: 11.5px; }
.chg span { display: block; color: var(--muted); font-size: 10px; line-height: 1.25; }
.stp { flex: 0 0 auto; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.stp button { width: 22px; height: 24px; padding: 0; border: 0; background: #f6f4f0; font-weight: 800; }
.stp button:hover { background: var(--ac-soft); color: var(--ac); }
.stp b { min-width: 30px; text-align: center; font-size: 11.5px; }
.dough { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 11px; color: var(--muted); }
.dough b { font-family: var(--display); font-size: 15px; color: var(--ink); }

/* Выездной сервис: замеры */
.reads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 4px 0 2px; }
.reads div { padding: 6px 4px; border-radius: 8px; text-align: center; }
.reads span { display: block; font-size: 9.5px; color: var(--muted); }
.reads b { font-family: var(--display); font-size: 15px; color: var(--ink); }

/* Стройка: бюджет по этапам */
.bg { display: grid; gap: 2px; }
.bg-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) 88px; gap: 10px; align-items: center; width: 100%; padding: 7px 6px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 11.5px; }
.bg-row b { text-align: right; font-weight: 600; }
.bg-bar { height: 6px; border-radius: 3px; background: #efece6; }
.bg-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ac); }
.bg-row.is-over .bg-bar i { background: var(--red); }
.bg-row.is-over b { color: var(--red); }
.bg-row.is-now { background: var(--ac-soft); font-weight: 700; }
.bg-row.is-now span::after { content: " ▸"; color: var(--ac); }
.bg-row.is-open span::after { content: " ▾"; }
.bg-sub { margin: 0 0 4px 12px; padding-left: 10px; border-left: 2px solid var(--ac-soft); }
.bg-sub[hidden] { display: none; }
.bg-sub div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 11px; color: var(--muted); animation: mock-pop 0.35s var(--ease); }
.bg-sub b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.pay { display: flex; align-items: center; gap: 7px; padding: 4px 0; font-size: 11px; }
.pay i { flex: 0 0 13px; height: 13px; box-sizing: border-box; border: 1.5px solid #cfc8bc; border-radius: 50%; }
.pay.is-ok i { background: var(--green); border-color: var(--green); }
.pay span { flex: 1; color: var(--muted); }
.pay b { font-weight: 600; }

/* Мебель: расчёт с чертежом */
.calc { grid-template-columns: minmax(0, 1fr) 176px; min-width: 0; }
.calc-group button { padding: 4px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 11px; }
.calc-group button.is-on { border-color: var(--ac); background: var(--ac-soft); color: var(--ac); font-weight: 700; }
.kit-wrap { margin-top: 8px; padding: 12px 12px 6px; border: 1px solid var(--line); border-radius: 10px; background: repeating-linear-gradient(0deg, #fff, #fff 11px, #f6f4f0 12px); }
.kit { display: flex; gap: 3px; height: 150px; }
.kit-mod { display: flex; flex-direction: column; min-width: 0; animation: mock-pop 0.4s var(--ease); }
.kit-mod i { flex: 0 0 34%; border: 1.5px solid #8f8778; border-radius: 2px; background: #f4efe6; }
.kit-mod u { flex: 0 0 16%; position: relative; }
.kit-mod.is-sink u::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 10px; height: 12px; margin-left: -7px; border: 2px solid #7d8a92; border-bottom: 0; border-radius: 7px 7px 0 0; }
.kit-mod em { flex: 1; position: relative; border: 1.5px solid #8f8778; border-radius: 2px; background: #ebe4d7; }
.kit-mod em::after { content: ""; position: absolute; left: 25%; right: 25%; top: 7px; height: 2px; border-radius: 1px; background: #8f8778; }
.kit-mod small { padding-top: 3px; text-align: center; font-size: 9.5px; color: var(--muted); }
.kit.f-1 .kit-mod i, .kit.f-1 .kit-mod em { background: repeating-linear-gradient(90deg, #c99c68 0 5px, #bd8d58 5px 9px); }
.kit.f-2 .kit-mod i, .kit.f-2 .kit-mod em { background: #d9dde0; }
.kit.c-1 .kit-mod em { box-shadow: inset 0 -7px 0 #b98c57; }
.kit-dim { margin-top: 4px; padding-top: 2px; border-top: 1.5px solid var(--ac); text-align: center; font-size: 10px; font-weight: 700; color: var(--ac); }
.calc-sum b.total { border-radius: 6px; }

/* Прокат: строка под календарём (её же используют смены) */
.rent-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #f6f4f0; font-size: 11.5px; color: var(--muted); }
.rent-strip b { color: var(--ink); }
.rent-strip button { padding: 5px 10px; border: 0; border-radius: 7px; background: var(--ac); color: #fff; font-weight: 700; font-size: 11px; }
.rent-strip button.is-soft { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.rent-strip.is-ok { background: var(--green-soft); color: #1f6a41; font-weight: 600; }

/* Лаборатория: доска работ */
.bd { grid-template-columns: repeat(var(--cols), minmax(104px, 1fr)); gap: 6px; align-items: start; }
.bd-card { display: block; width: 100%; text-align: left; font-size: 11px; }
.bd-card small { display: block; color: var(--soft); font-size: 9.5px; }
.bd-card.is-gone { opacity: 0.35; }

/* Оборудование: плитки */
.eq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.eq-unit { position: relative; display: grid; gap: 2px; align-content: start; padding: 9px 9px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; font-size: 11px; }
.eq-dot { position: absolute; right: 9px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.eq-unit.t-late .eq-dot { background: var(--red); }
.eq-unit.t-work .eq-dot { background: var(--blue); }
.eq-unit.t-wait .eq-dot { background: var(--amber); }
.eq-unit b { padding-right: 14px; font-size: 11.5px; line-height: 1.25; }
.eq-unit small { color: var(--soft); font-size: 10px; }
.eq-bar { height: 4px; margin: 5px 0 3px; border-radius: 2px; background: #efece6; }
.eq-bar i { display: block; height: 100%; border-radius: 2px; background: var(--ac); }
.eq-unit.t-late .eq-bar i { background: var(--red); }
.eq-unit span { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.eq-unit.t-late span { color: var(--red); font-weight: 600; }
.eq-unit.t-work span { color: var(--blue); font-weight: 600; }

/* Парковка: камера, места, въезды */
.pk { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 14px; }
.pk-cam { position: relative; height: 136px; margin-bottom: 6px; border-radius: 10px; background: linear-gradient(#2b3038, #16181d); overflow: hidden; }
.pk-cam em { position: absolute; left: 8px; top: 6px; font-style: normal; font-size: 9.5px; color: #9fe3bd; }
.pk-cam small { position: absolute; left: 8px; bottom: 6px; font-size: 10px; color: #cfd3da; }
.pk-cam::after { content: ""; position: absolute; left: 0; right: 0; bottom: 24px; height: 4px; background: repeating-linear-gradient(90deg, #e5484d 0 12px, #fff 12px 24px); transform-origin: left; transition: transform 0.5s var(--ease); }
.pk-cam.is-open::after { transform: rotate(-58deg); }
.pk-car { position: absolute; left: 50%; top: 26px; width: 112px; height: 72px; margin-left: -56px; transform: translateY(-130px); transition: transform 0.6s var(--ease); }
.pk-cam.is-in .pk-car { transform: none; }
.pk-car i { position: absolute; inset: 0 0 14px; border-radius: 16px 16px 8px 8px; background: #5d6672; }
.pk-car u { position: absolute; left: 14px; right: 14px; top: 6px; height: 20px; border-radius: 9px 9px 3px 3px; background: #9fb4c6; }
.pk-car span { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 2px 6px; border: 1.5px solid #111; border-radius: 3px; background: #fff; color: #111; font: 700 11px/1 Arial, sans-serif; letter-spacing: 0.5px; white-space: nowrap; }
.pk-cam.is-read .pk-car span { box-shadow: 0 0 0 2px #36d07f; }
.pk-right h6:first-child { margin-top: 0; }
.pk-lot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.pk-lot i { aspect-ratio: 1 / 1.3; border: 1px solid #bfe3cd; border-radius: 3px; background: var(--green-soft); }
.pk-lot i.is-busy { border-color: #c5c9d0; background: #d9dce1; }
.pk-row { display: grid; grid-template-columns: 82px 40px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f1eee8; font-size: 11px; }
.pk-row span { color: var(--muted); }
.pk-row b { font: 700 11px/1 Arial, sans-serif; letter-spacing: 0.3px; }
.pk-bill { grid-column: 1 / -1; justify-self: end; padding: 4px 9px; border: 0; border-radius: 7px; background: var(--ac); color: #fff; font-weight: 700; font-size: 10.5px; }

/* Персонал: сетка смен */
.sh { display: grid; gap: 3px; min-width: 500px; }
.sh-head, .sh-row { display: grid; grid-template-columns: 92px repeat(7, minmax(0, 1fr)); gap: 3px; }
.sh-head span { padding-bottom: 3px; text-align: center; font-size: 10px; color: var(--soft); }
.sh-name { font-size: 11.5px; font-weight: 600; line-height: 1.2; align-self: center; }
.sh-name small { display: block; color: var(--soft); font-weight: 400; font-size: 10px; }
:where(.sh-cell) { background: #f6f4f0; }
.sh-cell { min-height: 38px; padding: 5px 3px; border: 0; border-radius: 7px; text-align: center; font-size: 10px; line-height: 1.2; }
.sh-cell b { display: block; font-size: 10.5px; color: var(--ink); }
.sh-cell small { display: block; font-size: 9px; }
button.sh-cell.t-late { box-shadow: inset 0 0 0 1.5px var(--red); }

/* Тёмные экраны */
.app.is-dark { border-color: #2a2d35; background: #15171c; color: #e8e6e1; }
.is-dark .app-side, .is-darkside .app-side { border-color: #23262e; background: #0f1115; color: #e8e6e1; }
.is-dark .app-nav, .is-darkside .app-nav { color: #a9a79f; }
.is-dark .app-nav.is-on { background: #23262e; color: #fff; box-shadow: none; }
.is-darkside .app-nav.is-on { background: var(--ac); color: #fff; box-shadow: none; }
.is-darkside .app-nav.is-on svg { stroke: #fff; }
.is-darkside .app-nav.is-on b { color: #fff; }
.is-dark .app-user, .is-darkside .app-user { border-color: #2a2d35; }
.is-dark .app-top { border-color: #2a2d35; }
.is-dark .app-top p { color: #8d8a82; }
.is-dark .app-seg { background: #23262e; }
.is-dark .app-seg span { color: #a9a79f; }
.is-dark .app-seg span:first-child { background: #3a3f4b; color: #fff; }
.is-dark .app-ai { border-color: #2a2d35; background: #111318; }
.is-dark .app-ai-q { background: #2b2f39; }
.is-dark .app-ai-a p { border-color: #2a2d35; background: #1b1e25; color: #e8e6e1; }
.is-dark .app-ai-a i { background: var(--ac); color: var(--ac-ink); }
.is-dark .app-ai-a b { color: var(--ac); }

@media (max-width: 980px) {
  .ba-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .ord-row { grid-template-columns: minmax(0, 1fr) auto 26px; }
  .ord-row .trk { grid-column: 1 / -1; grid-row: 2; }
  .fr, .pk, .calc { grid-template-columns: minmax(0, 1fr); }
  .fr-right { order: -1; }
  .eq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd { min-width: 560px; }
  .bg-row { grid-template-columns: 100px minmax(0, 1fr) 82px; gap: 8px; }
  .toast { flex-wrap: wrap; }
  .kit { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-flash, .is-new, .kit-mod, .bg-sub div { animation: none; }
}

/* Меню экрана: длинные названия не наезжают на счётчик */
.app { grid-template-columns: 144px minmax(0, 1fr); }
.app-nav { gap: 6px; }
.app-nav span { flex: 1; overflow: hidden; white-space: nowrap; }
.app-nav b { flex: 0 0 auto; }
@media (max-width: 640px) {
  .app { grid-template-columns: minmax(0, 1fr); }
}

/* Схема процесса по ролям */
.flow-map { overflow-x: auto; margin: 0 -1.2rem; padding: 0 1.2rem; }
.fm { display: block; width: 100%; min-width: 980px; height: auto; font-family: var(--font); }
.fm-band { fill: #f8f6f2; }
.fm-rule { stroke: var(--line); }
.fm-lane { font-size: 11px; font-weight: 600; fill: #4a443c; }
.fm-place { fill: #f1eee8; stroke: #d9d3c8; }
.fm-place-t { font-size: 10px; fill: #5c554b; }
.fm-link { stroke: #b9b1a3; stroke-width: 0.8; stroke-dasharray: 3 3; }
.fm-arrow { fill: none; stroke: #8a8378; stroke-width: 1.1; }
.fm-head { fill: #8a8378; }
.fm-box { fill: #fff; stroke: #cfc8bc; }
.fm-box.is-twice { fill: var(--red-soft); stroke: #e08672; }
.fm-t { font-size: 10px; fill: var(--ink); }
.fm-t.is-twice { fill: var(--red); font-weight: 600; }
.fm-wait { fill: #fff; stroke: #e08672; }
.fm-wait-t { font-size: 9px; fill: var(--red); }
.fm-one .fm-place { fill: var(--teal-soft); stroke: #9fd2c9; }
.fm-one .fm-place-t { fill: var(--teal); font-weight: 600; font-size: 11px; }
.fm-one .fm-link { stroke: #9fd2c9; }
.fm-one .fm-box { fill: #f5fbfa; stroke: #7cc3b8; }
.fm-one .fm-arrow { stroke: var(--teal); }
.fm-one .fm-head { fill: var(--teal); }
.flow-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.8rem 0 0; font-size: 0.82rem; color: var(--muted); }
.flow-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; border: 1px solid #e08672; background: var(--red-soft); }
.flow-legend i.is-wait { border-radius: 6px; background: #fff; }
@media (max-width: 640px) {
  .flow-map { margin: 0 -0.8rem; padding: 0 0.8rem; }
}

/* Колонка «Сейчас»: у каждого бизнеса своя сцена (тетрадь, переписка, доска, бланк, журнал) */
.nw { position: relative; --hw: "Caveat", "Segoe Print", "Bradley Hand", cursive; --pen: #1f3a93; --red: #c0392b; --lift: 0 14px 26px -16px rgba(0, 0, 0, 0.5); }
.nw-p { position: absolute; transform-origin: 50% 50%; }
.nw .xls th, .nw .xls td { padding: 3px 5px; max-width: 110px; }
.nw .c-h, .nw .c-x, .nw .c-r, .nw .c-b { font-family: var(--hw); font-size: 18px; line-height: 1; font-weight: 500; color: var(--pen); }
.nw .c-x { text-decoration: line-through; text-decoration-color: var(--red); }
.nw .c-r { color: var(--red); font-weight: 700; }
.nw .c-b { color: #1f5fbf; }
.nw td span + span { margin-left: 5px; }

.nw-note { position: relative; padding: 10px 12px 12px 30px; border: 1px solid #e3dec9; background: #fffdf2 repeating-linear-gradient(transparent 0 25px, #cdd9ec 25px 26px); background-position: 0 9px; box-shadow: var(--lift); }
.nw-note::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: #e9aaa3; }
.nw-note b, .nw-note p { display: block; height: 26px; margin: 0; overflow: hidden; white-space: nowrap; font-family: var(--hw); font-size: 20px; line-height: 26px; font-weight: 500; color: var(--pen); }
.nw-note b { font-weight: 700; }
.nw-note p.is-x { text-decoration: line-through; text-decoration-color: var(--red); }
.nw-note p.is-r { color: var(--red); }

.nw-stick { padding: 10px 10px 16px; background: #ffe66b; box-shadow: 0 12px 16px -10px rgba(0, 0, 0, 0.45); font-family: var(--hw); font-size: 18px; line-height: 1.05; font-weight: 700; color: #3b3300; }
.nw-stick.is-pink { background: #ffc4d2; color: #4a1626; }

.nw-chat { overflow: hidden; border: 1px solid #d6d0c4; border-radius: 14px; background: #ebe5da; box-shadow: var(--lift); font: 12px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c1c1a; }
.nw-chat-top { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #ddd8cd; background: #f7f6f3; font-weight: 600; }
.nw-chat-top > i { flex: 0 0 26px; display: grid; place-items: center; height: 26px; border-radius: 50%; background: #8aa3b8; color: #fff; font-style: normal; font-size: 12px; }
.nw-chat-top small { display: block; font-weight: 400; font-size: 10.5px; color: #7c7b73; }
.nw-chat-body { display: flex; flex-direction: column; gap: 5px; padding: 9px 9px 11px; }
.nw-msg { align-self: flex-start; max-width: 88%; padding: 5px 8px 4px; border-radius: 9px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); }
.nw-msg.is-me { align-self: flex-end; background: #d9f5c5; }
.nw-msg > b { display: block; font-size: 11px; color: #b0562a; }
.nw-msg > small { float: right; margin: 4px 0 0 8px; font-size: 9.5px; color: #8b8a80; }
.nw-voice { display: inline-flex; align-items: center; gap: 7px; }
.nw-voice i { width: 0; height: 0; border-left: 9px solid #5d6b5d; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.nw-voice u { width: 86px; height: 14px; background: repeating-linear-gradient(90deg, #9aa59a 0 2px, transparent 2px 4px); }
.nw-photo { position: relative; display: block; width: 118px; height: 68px; margin-bottom: 3px; overflow: hidden; border-radius: 6px; background: linear-gradient(135deg, #b9b1a0, #8f897b); }
.nw-photo::after { content: ""; position: absolute; left: 22px; top: 10px; width: 70px; height: 74px; background: repeating-linear-gradient(#f4f2ea 0 7px, #c9c6ba 7px 8px); transform: rotate(-7deg); }
.nw-shot { display: block; margin-bottom: 3px; padding: 5px; border-radius: 6px; background: #cfcabd; }
.nw-shot table { width: 100%; border-collapse: collapse; background: #fbfaf5; transform: rotate(-1.5deg); font-size: 10px; }
.nw-shot th, .nw-shot td { padding: 1px 4px; border: 1px solid #99968c; text-align: left; white-space: nowrap; font-weight: 400; }

.nw-calls { overflow: hidden; border: 1px solid #d9d8d2; border-radius: 14px; background: #fff; box-shadow: var(--lift); font: 12px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c1c1a; }
.nw-calls div { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-bottom: 1px solid #efeeea; }
.nw-calls div:last-child { border-bottom: 0; }
.nw-calls i { flex: 0 0 8px; height: 8px; border-radius: 50%; background: #b9c2bb; }
.nw-calls p { margin: 0; font-weight: 600; }
.nw-calls small { display: block; font-weight: 400; font-size: 10.5px; color: #7c7b73; }
.nw-calls .is-miss i { background: var(--red); }
.nw-calls .is-miss p, .nw-calls .is-miss small { color: var(--red); }

.nw-board { padding: 8px 12px 12px; border: 6px solid #c5c9cf; border-radius: 6px; background: #fdfdfb; box-shadow: var(--lift); }
.nw-board > b { display: block; margin-bottom: 2px; font-family: var(--hw); font-size: 24px; line-height: 1.1; color: #1c1c1a; text-decoration: underline; text-underline-offset: 3px; }
.nw-board table { width: 100%; border-collapse: collapse; }
.nw-board th, .nw-board td { padding: 3px 6px; border-bottom: 2px solid rgba(40, 40, 40, 0.14); text-align: left; white-space: nowrap; font-family: var(--hw); font-size: 20px; line-height: 1.1; font-weight: 700; color: #1c1c1a; }
.nw-board th { font-weight: 500; color: #6b6b66; }
.nw-board .c-r, .nw-board .c-b { font-size: 20px; font-weight: 700; }

.nw-form { padding: 12px 12px 14px; border: 1px solid #d8d7d0; background: #fff; box-shadow: var(--lift); font: 11.5px/1.3 "Times New Roman", Times, serif; color: #222; }
.nw-form h6 { margin: 0 0 2px; font: 700 12.5px/1.2 "Times New Roman", Times, serif; text-transform: uppercase; letter-spacing: 0.3px; }
.nw-form > small { display: block; color: #555; }
.nw-form dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: end; margin: 6px 0 0; }
.nw-form dd { min-height: 21px; margin: 0; overflow: hidden; border-bottom: 1px solid #777; white-space: nowrap; font-family: var(--hw); font-size: 18px; line-height: 20px; color: var(--pen); }
.nw-form table { width: 100%; margin-top: 6px; border-collapse: collapse; }
.nw-form th, .nw-form td { height: 25px; padding: 2px 5px; border: 1px solid #777; text-align: left; white-space: nowrap; }
.nw-form th { background: #f1f1ed; font-weight: 700; }

.nw-slip { padding: 8px 10px 12px; border: 1px solid #dcdbd5; background: #fff; box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.5); font: 10.5px/1.4 "Courier New", Courier, monospace; color: #222; }
.nw-slip + .nw-slip { margin: -6px 0 0 18px; transform: rotate(4deg); }
.nw-slip b { display: block; text-transform: uppercase; }
.nw-slip span { display: block; }

.nw-sketch { border: 1px solid #d8d7d0; background: #fff linear-gradient(#dfe7f3 1px, transparent 1px) 0 0 / 12px 12px, linear-gradient(90deg, #dfe7f3 1px, transparent 1px) 0 0 / 12px 12px; background-color: #fff; box-shadow: var(--lift); padding: 8px; }
.nw-sketch svg { display: block; width: 100%; height: auto; }
.nw-sketch text { font: 500 13px var(--hw); fill: var(--pen); }
.nw-sketch text.is-r { fill: var(--red); font-weight: 700; }

@media (max-width: 760px) {
  .nw-note b, .nw-note p { font-size: 18px; }
  .nw-board th, .nw-board td, .nw-board .c-r, .nw-board .c-b { font-size: 18px; }
}

/* Типография: заказы с макетами */
.pr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pr-job { display: grid; gap: 3px; justify-items: start; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font-size: 11px; }
.pr-job > b { font-size: 12px; line-height: 1.2; }
.pr-job > span { min-height: 2.5em; color: var(--muted); font-size: 10.5px; line-height: 1.25; }
.pr-art { position: relative; width: 100%; height: 72px; margin-bottom: 4px; overflow: hidden; border-radius: 8px; background: #f4f1ec; }
.pr-art i { position: absolute; border-radius: 2px; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16); }
.is-cards i { width: 54px; height: 32px; }
.is-cards i:nth-child(1) { left: calc(50% - 38px); top: 14px; transform: rotate(-8deg); background: linear-gradient(90deg, var(--ac) 0 28%, #fff 28%); }
.is-cards i:nth-child(2) { left: calc(50% - 16px); top: 26px; transform: rotate(5deg); background: linear-gradient(#fff 0 62%, #1f2430 62%); }
.is-book i { top: 12px; width: 30px; height: 48px; }
.is-book i:nth-child(1) { left: calc(50% - 47px); background: linear-gradient(#0ea5e9 0 46%, #fff 46%); }
.is-book i:nth-child(2) { left: calc(50% - 15px); background: repeating-linear-gradient(#fff 0 6px, #d9d6cf 6px 7px); }
.is-book i:nth-child(3) { left: calc(50% + 17px); background: linear-gradient(#fff 0 60%, #fbbf24 60%); }
.is-banner i:nth-child(1) { left: 10%; top: 16px; width: 80%; height: 40px; background: linear-gradient(120deg, #16a34a, #0ea5e9); }
.is-banner i:nth-child(2) { left: 18%; top: 32px; width: 38%; height: 7px; background: #fff; box-shadow: none; }
.is-stick i { top: 23px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #fff 0 36%, #f59e0b 38%); }
.is-stick i:nth-child(1) { left: calc(50% - 58px); }
.is-stick i:nth-child(2) { left: calc(50% - 28px); }
.is-stick i:nth-child(3) { left: calc(50% + 2px); }
.is-stick i:nth-child(4) { left: calc(50% + 32px); }
.is-menu i { left: calc(50% - 20px); top: 8px; width: 40px; height: 56px; background: linear-gradient(#7c2d12 0 22%, transparent 22%), repeating-linear-gradient(#fff 0 6px, #d9d6cf 6px 7px); }
.is-box i:nth-child(1) { left: calc(50% - 28px); top: 26px; width: 56px; height: 36px; background: #c8a273; }
.is-box i:nth-child(2) { left: calc(50% - 31px); top: 17px; width: 62px; height: 10px; background: #b58d5c; }
.is-box i:nth-child(3) { left: calc(50% - 8px); top: 36px; width: 16px; height: 16px; border-radius: 50%; background: var(--ac); box-shadow: none; }
.pr-msg { margin-top: 10px; padding: 7px 9px; border-radius: 10px 10px 10px 3px; background: var(--ac-soft); font-size: 11px; line-height: 1.35; }
.pr-msg small { display: block; margin-bottom: 2px; color: var(--ac); font-weight: 700; font-size: 10px; }

/* «Сейчас»: общая таблица в браузере, календарь в телефоне, переводы на карту, файл в переписке */
.xls.is-web { overflow: hidden; border: 1px solid #dadce0; border-radius: 9px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #202124; }
.is-web .xls-title { display: flex; align-items: center; gap: 6px; padding: 7px 9px; background: #fff; color: #202124; font-weight: 600; font-size: 12px; }
.is-web .xls-title i { flex: 0 0 14px; height: 17px; border-radius: 2px; background: linear-gradient(#188038 0 30%, #34a853 30%); }
.is-web .xls-title span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.is-web .xls-title b { flex: 0 0 20px; display: grid; place-items: center; height: 20px; margin-left: -8px; border: 2px solid #fff; border-radius: 50%; background: #e37400; color: #fff; font-size: 9.5px; }
.is-web .xls-title b:nth-of-type(2) { background: #1a73e8; }
.is-web .xls-title b:nth-of-type(3) { background: #9334e6; }
.is-web th { background: #f8f9fa; color: #5f6368; }
.is-web th, .is-web td { border-color: #e3e5e8; }
.is-web td.y { background: #fff2b3; }
.is-web td.p { background: #fbd4cf; }
.is-web td.g { background: #d3efd9; }
.xls-note { margin: 7px 38% 8px 8px; padding: 6px 9px; border: 1px solid #f1d9a0; border-radius: 8px; background: #fff8e1; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.35); font-size: 11px; line-height: 1.35; }
.xls-note b { display: block; font-size: 10.5px; color: #b06000; }

.nw-pc { overflow: hidden; border: 1px solid #d9d8d2; border-radius: 16px; background: #fff; box-shadow: var(--lift); font: 12px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c1c1a; }
.nw-pc-top { padding: 9px 12px 7px; border-bottom: 1px solid #efeeea; font-weight: 700; font-size: 14px; color: #d93025; }
.nw-pc-day { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start; padding: 6px 10px; border-bottom: 1px solid #f3f2ee; }
.nw-pc-day:last-child { border-bottom: 0; }
.nw-pc-day > b { font-size: 15px; line-height: 1.1; text-align: center; }
.nw-pc-day > b small { display: block; font-weight: 400; font-size: 10px; color: #7c7b73; }
.nw-pc-day > div { display: grid; gap: 3px; }
.nw-pc-day span { padding: 4px 7px; overflow: hidden; border-radius: 6px; background: #dbe7fb; color: #174ea6; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; font-weight: 600; }
.nw-pc-day span.is-hot { background: #fbd9d5; color: #b3261e; }
.nw-pc-day span.is-mute { background: #eceae5; color: #6b6a63; }

.nw-bank { overflow: hidden; border: 1px solid #d9d8d2; border-radius: 14px; background: #fff; box-shadow: var(--lift); font: 12px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c1c1a; }
.nw-bank-top { padding: 8px 12px; background: #1f2430; color: #fff; font-weight: 600; font-size: 11.5px; }
.nw-bank > div + div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #efeeea; }
.nw-bank > div:last-child { border-bottom: 0; }
.nw-bank p { margin: 0; min-width: 0; font-weight: 600; }
.nw-bank small { display: block; font-weight: 400; font-size: 10.5px; color: #7c7b73; }
.nw-bank div > b { color: #188038; white-space: nowrap; }

.nw-file { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; word-break: break-all; }
.nw-file i { flex: 0 0 26px; display: grid; place-items: center; height: 30px; border-radius: 4px; background: #d93025; color: #fff; font-style: normal; font-size: 8.5px; font-weight: 700; }

/* Карусель экранов в первом экране */
.hc { position: relative; overflow: hidden; padding: 1.4rem 0 0; }
.hc-cap { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 0 0 0.9rem; color: var(--muted); font-size: 0.95rem; }
.hc-cap > span { min-width: min(19rem, 60vw); text-align: center; }
.hc-cap b { margin-right: 0.4rem; color: var(--ink); }
.hc-cap button { flex: 0 0 34px; width: 34px; height: 34px; padding: 0 0 2px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 19px; line-height: 1; }
.hc-cap button:hover { border-color: var(--ink); }
.hc-stage { position: relative; height: 410px; perspective: 1900px; touch-action: pan-y; --w: min(880px, 62vw); }
.hc-slide {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--w);
  height: 100%;
  margin-left: calc(var(--w) / -2);
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(var(--d, 0) * 77%)) scale(calc(1 - var(--a, 0) * 0.17)) rotateY(calc(var(--d, 0) * -22deg));
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s, visibility 0s 0.5s;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.hc-slide.is-on, .hc-slide.is-near { opacity: 1; visibility: visible; transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s; }
.hc-slide.is-on { z-index: 2; }
.hc-slide.is-near { opacity: 0.9; }
.hc-slide .app { min-height: 100%; pointer-events: none; text-align: left; }
.hc-slide .app-ai, .hc-slide .cur { display: none; }
@media (max-width: 980px) {
  .hc-stage { --w: 80vw; height: 380px; }
}
@media (max-width: 640px) {
  .pr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc { padding-top: 1rem; }
  .hc-stage { --w: 84vw; height: 340px; perspective: none; }
  .hc-slide { transform: translateX(calc(var(--d, 0) * 104%)); }
  .hc-slide.is-near { opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-slide, .hc-slide.is-on, .hc-slide.is-near { transition: none; }
}
.pr-job .pill { font-style: normal; }
