/* Руководство платформы мастеров. Те же материалы, что в приложении мастера: эмаль, алюминиевые шильдики,
   индикаторы-лампы, сигнальный оранжевый. Шрифты — Onest (текст) и Martian Mono (гравировка, цифры). */

@font-face {
  font-family: "Onest";
  src: url("fonts/Onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/MartianMono.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --enamel: #ECEFEE;
  --surface: #FFFFFF;
  --sunken: #E2E7E5;
  --ink: #161A18;
  --muted: #59635E;
  --line: #D2D9D6;
  --plate-light: #E3E8EA;
  --plate-dark: #C3CBCF;
  --plate-edge: #A4AEB3;
  --plate-ink: #1E262A;
  --engrave: rgba(255, 255, 255, .7);
  --signal: #DD4719;
  --on-signal: #FFFFFF;
  --work: #1C8C50;
  --wait: #C98400;
  --stop: #C4302A;
  --off: #8A9590;
  --paper: #FBFCFB;
  --raise: 0 1px 2px rgba(22, 26, 24, .06), 0 10px 28px -18px rgba(22, 26, 24, .28);

  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --enamel: #101312;
    --surface: #181C1A;
    --sunken: #212623;
    --ink: #E8ECEA;
    --muted: #98A39D;
    --line: #2B322E;
    --plate-light: #4B5458;
    --plate-dark: #353C40;
    --plate-edge: #5E696E;
    --plate-ink: #E4EAEC;
    --engrave: rgba(0, 0, 0, .45);
    --signal: #FF6A3D;
    --on-signal: #1A0B05;
    --work: #3CC47A;
    --wait: #F2B02E;
    --stop: #FF5A4F;
    --off: #6F7A75;
    --paper: #DDE3E0;
    --raise: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -18px rgba(0, 0, 0, .8);
  }
}

/* ---------- основа ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--enamel);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-weight: 700; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--signal) 70%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--signal); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
  border-radius: 6px;
}

code {
  font: 500 .84em var(--f-mono);
  background: var(--sunken);
  border: 1px solid var(--line);
  padding: .08em .4em;
  border-radius: 6px;
  white-space: nowrap;
}

b, strong { font-weight: 650; }

[hidden] { display: none !important; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--enamel);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.muted { color: var(--muted); font-size: 15.5px; }

/* ---------- индикаторы ---------- */

.lamp {
  --c: var(--off);
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, .28), inset 0 1px 1px rgba(255, 255, 255, .35);
}
.lamp--free { --c: var(--signal); }
.lamp--work { --c: var(--work); }
.lamp--wait { --c: var(--wait); }
.lamp--stop { --c: var(--stop); }
.lamp--done { --c: var(--ink); }
.lamp--off { --c: var(--off); }
.lamp--free, .lamp--work, .lamp--wait {
  box-shadow:
    inset 0 -1px 1px rgba(0, 0, 0, .2),
    inset 0 1px 1px rgba(255, 255, 255, .4),
    0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent),
    0 0 12px color-mix(in srgb, var(--c) 55%, transparent);
}

/* ---------- шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--enamel) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.topbar__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 680;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: 8px; }
.topbar__nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 15px;
}
.topbar__nav a { text-decoration: none; color: var(--muted); }
.topbar__nav a:hover { color: var(--ink); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: .03em;
  color: var(--muted);
  white-space: nowrap;
}
.status .lamp { width: 9px; height: 9px; }

@media (max-width: 640px) {
  .topbar__nav { display: none; }
  .status { margin-left: auto; }
}
@media (max-width: 480px) {
  /* на телефоне в шапке — только лампа, текст остаётся для экранного диктора */
  .status { padding: 9px; }
  .topbar .status__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- первый экран ---------- */

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 16px 36px;
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(330px, .9fr);
    align-items: center;
    gap: 64px;
    padding: 84px 16px 56px;
  }
}

.eyebrow {
  margin: 0 0 18px;
  font: 600 12px/1.3 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.2rem, 1.3rem + 4.1vw, 4.15rem);
  line-height: 1.03;
  font-weight: 760;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.lead {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: clamp(1.04rem, 1rem + .3vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
}

.routes {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.routes a {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 18px;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--raise);
  text-decoration: none;
}
.routes a::after {
  content: "→";
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-family: var(--f-mono);
  color: var(--signal);
  transition: transform .2s;
}
.routes a:hover { color: var(--ink); border-color: var(--plate-edge); }
.routes a:hover::after { transform: translateX(3px); }
.routes span { font-weight: 650; }
.routes small { font-size: 13.5px; color: var(--muted); }
@media (max-width: 520px) {
  .routes li, .routes a { width: 100%; }
}

/* Шильдик: алюминий, заклёпки, гравировка */
.plate {
  position: relative;
  margin: 0;
  padding: 28px 30px 22px;
  border: 1px solid var(--plate-edge);
  border-radius: 10px;
  color: var(--plate-ink);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, .025) 1px 2px, transparent 2px 4px),
    linear-gradient(160deg, var(--plate-light), var(--plate-dark));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -2px 0 rgba(0, 0, 0, .08),
    0 1px 1px rgba(0, 0, 0, .08),
    0 26px 50px -28px rgba(22, 26, 24, .55);
  text-shadow: 0 1px 0 var(--engrave);
}
@media (min-width: 960px) {
  .plate { transform: rotate(-1.4deg); }
}
.rivet {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95) 0 1px, var(--plate-light) 2.5px, var(--plate-edge) 6px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 1px rgba(0, 0, 0, .3);
}
.rivet--tl { left: 11px; top: 11px; }
.rivet--tr { right: 11px; top: 11px; }
.rivet--bl { left: 11px; bottom: 11px; }
.rivet--br { right: 11px; bottom: 11px; }
.plate__eyebrow {
  font: 600 10.5px/1 var(--f-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  opacity: .72;
}
.plate__title {
  margin: 10px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
  box-shadow: 0 1px 0 var(--engrave);
  font: 700 clamp(17px, 1.2rem + .5vw, 23px)/1.15 var(--f-mono);
  font-stretch: 87.5%;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
}
.plate__rows { margin: 0; }
.plate__rows div {
  display: grid;
  grid-template-columns: 8.6em minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--plate-ink) 22%, transparent);
}
.plate__rows dt {
  padding-top: 2px;
  font: 600 10px/1.4 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}
.plate__rows dd {
  margin: 0;
  font: 600 13px/1.45 var(--f-mono);
  font-stretch: 92%;
}
.plate__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font: 650 11.5px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .plate { animation: settle .9s cubic-bezier(.2, .8, .2, 1) both; }
  .hero__text > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .hero__text > :nth-child(2) { animation-delay: .06s; }
  .hero__text > :nth-child(3) { animation-delay: .12s; }
  .hero__text > :nth-child(4) { animation-delay: .18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes settle { from { opacity: 0; transform: translateY(-14px) rotate(-4deg); } }
@media (max-width: 959px) {
  @keyframes settle { from { opacity: 0; transform: translateY(-10px); } }
}

/* ---------- точки входа ---------- */

.entries {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 44px;
}
.entries__title {
  margin: 0 0 14px;
  font: 600 12px/1.3 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.entries__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.entry h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.entry p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.entry .entry__tag {
  font: 600 10.5px/1.3 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry .btn, .entry .entry__note { margin-top: auto; }
.entry .btn { align-self: flex-start; }
.entry .entry__note { padding-top: 6px; font-size: 13.5px; }
.entries .notice { margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--signal);
  color: var(--on-signal);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .18);
}
.btn:hover { color: var(--on-signal); filter: brightness(1.07); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--plate-edge);
  box-shadow: none;
}
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); filter: none; }

.notice {
  margin: 24px 0 0;
  max-width: 78ch;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--plate-edge);
  border-radius: 12px;
  background: var(--surface);
  font-size: 15.5px;
  line-height: 1.55;
}
.notice--signal { border-left-color: var(--signal); }
.notice--warn { border-left-color: var(--wait); }

/* ---------- раскладка и содержание ---------- */

.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 80px;
  display: grid;
  gap: 8px;
}
@media (min-width: 1180px) {
  .layout {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 64px;
  }
}

.toc__box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 4px 8px;
}
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  cursor: pointer;
  list-style: none;
  font: 600 11.5px/1.3 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "+";
  font-size: 16px;
  letter-spacing: 0;
}
.toc details[open] summary::after { content: "−"; }
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}
.toc a {
  display: grid;
  grid-template-columns: 2.1em 1fr;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.35;
  text-decoration: none;
}
.toc a b {
  padding-top: 2px;
  font: 600 11.5px/1.4 var(--f-mono);
  color: var(--off);
}
.toc a:hover { color: var(--ink); background: var(--sunken); }
.toc a.is-active { color: var(--ink); background: var(--sunken); box-shadow: inset 3px 0 0 var(--signal); }
.toc a.is-active b { color: var(--signal); }

@media (min-width: 1180px) {
  .toc {
    position: sticky;
    top: 76px;
    align-self: start;
    max-height: calc(100vh - 96px);
    overflow: auto;
    padding-top: 56px;
  }
  .toc__box { border: 0; background: none; padding: 0; }
  .toc summary { pointer-events: none; padding: 0 8px 10px; }
  .toc summary::after, .toc details[open] summary::after { content: none; }
}

/* ---------- разделы ---------- */

.doc { min-width: 0; }

.chapter {
  padding: 52px 0 10px;
  border-top: 1px solid var(--line);
}
.layout .chapter:first-child { border-top: 0; }
@media (max-width: 1179px) {
  .layout .chapter:first-child { border-top: 1px solid var(--line); margin-top: 24px; }
}

.chapter__no {
  margin: 0 0 10px;
  font: 600 12px/1.3 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
}
.chapter h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.35rem);
  line-height: 1.12;
  font-weight: 730;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.anchor {
  margin-left: .15em;
  font: 500 .6em var(--f-mono);
  color: var(--off);
  text-decoration: none;
  vertical-align: middle;
  opacity: 0;
  transition: opacity .15s;
}
.chapter h2:hover .anchor, .anchor:focus-visible { opacity: 1; }
.chapter > p { max-width: 72ch; margin: 0 0 14px; }
.chapter > .notice { margin: 24px 0 0; }
.chapter > .muted { margin-top: 10px; }
.chapter .sub {
  margin: 38px 0 14px;
  font-size: 1.2rem;
  font-weight: 680;
  letter-spacing: -.01em;
}

/* 1. Путь заявки */
.flow {
  list-style: none;
  counter-reset: flow;
  margin: 26px 0 6px;
  padding: 0;
  display: grid;
}
.flow li {
  counter-increment: flow;
  position: relative;
  padding: 0 0 22px 52px;
}
.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--plate-edge);
  border-radius: 50%;
  background: var(--surface);
  font: 700 13px/1 var(--f-mono);
}
.flow li:nth-child(3)::before {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--on-signal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 18%, transparent);
}
.flow li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 2px;
  width: 1.5px;
  background: var(--line);
}
.flow li:last-child::after { content: none; }
.flow h3 { margin: 5px 0 4px; font-size: 1.05rem; letter-spacing: -.01em; }
.flow p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
  .flow li { padding: 50px 0 0; }
  .flow li::after { left: 42px; right: -14px; top: 17px; bottom: auto; width: auto; height: 1.5px; }
}

.kit {
  margin: 0;
  border-top: 1px solid var(--line);
}
.kit > div {
  display: grid;
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.kit dt { font-weight: 650; }
.kit dd { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
@media (min-width: 720px) {
  .kit > div { grid-template-columns: 12.5em minmax(0, 1fr); }
}
.chapter .kit { margin-top: 24px; }
.chapter .sub + .kit { margin-top: 0; }

.cats {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}
.cats li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.3;
}
.cats b {
  flex: none;
  min-width: 3.9em;
  padding: 6px 6px 5px;
  border: 1px solid var(--plate-edge);
  border-radius: 6px;
  background: linear-gradient(170deg, var(--plate-light), var(--plate-dark));
  color: var(--plate-ink);
  text-shadow: 0 1px 0 var(--engrave);
  font: 700 12px/1 var(--f-mono);
  letter-spacing: .05em;
  text-align: center;
}

/* 2. Роли */
.roles {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}
@media (min-width: 860px) {
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.role {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.role--chief { border-color: var(--plate-edge); }
.role h3 { margin: 0 0 10px; font-size: 1.1rem; letter-spacing: -.01em; }
.role ul { margin: 0; padding-left: 1.05em; font-size: 15px; line-height: 1.5; color: var(--muted); }
.role li + li { margin-top: 6px; }
.role li::marker { color: var(--off); }

.mstates {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.mstates li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mstates .lamp { align-self: center; }
.mstates li > span:last-child { grid-column: 2; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (min-width: 720px) {
  .mstates li { grid-template-columns: 12px 15em minmax(0, 1fr); }
  .mstates li > span:last-child { grid-column: auto; }
}

/* 3. Подключение */
.split-2 {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}
@media (min-width: 900px) {
  .split-2 { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: 36px; }
}
.split-2--even { gap: 14px; margin: 22px 0 0; }
@media (min-width: 720px) {
  .split-2--even { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 50px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--plate-edge);
  border-radius: 50%;
  background: var(--surface);
  font: 700 12.5px/1 var(--f-mono);
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 34px;
  bottom: 0;
  width: 1.5px;
  background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { content: none; }
.steps h3 { margin: 3px 0 4px; font-size: 1.06rem; letter-spacing: -.01em; }
.steps p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

.steps--compact > li { padding: 0 0 12px 38px; }
.steps--compact > li::before { width: 26px; height: 26px; font-size: 11.5px; top: -1px; }
.steps--compact > li::after { left: 12.5px; top: 27px; }
.steps--compact p { color: var(--ink); font-size: 15px; line-height: 1.5; }
@media (min-width: 860px) {
  .steps--cols { columns: 2; column-gap: 36px; }
  .steps--cols > li { break-inside: avoid; }
  .steps--cols > li::after { content: none; }
}

.chat {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 0) 0 0 / 14px 14px,
    var(--sunken);
  font-size: 14.5px;
  line-height: 1.45;
}
@media (min-width: 900px) {
  .chat { position: sticky; top: 84px; }
}
.chat figcaption {
  text-align: center;
  font: 600 10.5px/1.3 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.chat__me {
  align-self: flex-end;
  margin: 0;
  padding: 7px 12px;
  border-radius: 14px 14px 4px 14px;
  background: color-mix(in srgb, var(--work) 20%, var(--surface));
  font: 500 13px/1.3 var(--f-mono);
}
.chat__bot {
  align-self: flex-start;
  max-width: 94%;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.chat__bot p { margin: 0 0 4px; }
.chat__key {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ink) 7%, var(--surface));
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.chat__keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chat__keys .chat__key { margin-top: 6px; }

/* 4. Панель управления — жизненный цикл */
.panel {
  margin: 28px 0 14px;
  padding: 18px;
  display: grid;
  gap: 16px;
  grid-template-areas: "head" "lcd" "tracks";
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--sunken)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -3px 0 rgba(0, 0, 0, .04),
    0 1px 2px rgba(0, 0, 0, .06),
    0 34px 60px -40px rgba(22, 26, 24, .5);
}
@media (min-width: 860px) {
  .panel { grid-template-areas: "head" "tracks" "lcd"; padding: 22px 26px 26px; }
}
.panel__head {
  grid-area: head;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.engrave {
  margin: 0;
  font: 600 11px/1.3 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.key {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px 0 13px;
  border: 1px solid var(--plate-edge);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface), var(--sunken));
  color: var(--ink);
  font: 650 14.5px/1 var(--f-text);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 2px 0 var(--plate-edge),
    0 4px 8px -4px rgba(0, 0, 0, .25);
  transition: transform .08s, box-shadow .08s;
}
.key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 var(--plate-edge); }
.key__icon {
  width: 10px;
  height: 12px;
  background: var(--signal);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.key[aria-pressed="true"] .key__icon { width: 10px; height: 10px; clip-path: none; border-radius: 2px; }
.key--flat {
  cursor: default;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  white-space: nowrap;
}
.key--flat:active { transform: none; }
.key--signal {
  border-color: color-mix(in srgb, var(--signal) 75%, #000);
  background: linear-gradient(180deg, color-mix(in srgb, var(--signal) 88%, #fff), var(--signal));
  color: var(--on-signal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 0 color-mix(in srgb, var(--signal) 60%, #000), 0 4px 8px -4px rgba(0, 0, 0, .3);
}

.panel__tracks { grid-area: tracks; display: grid; gap: 14px; }
.track { margin: 0; padding: 0; list-style: none; }
.track--main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.track--side { display: grid; gap: 8px; }
.track--side ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }

/* цвет лампы — по статусу (тот же, что data-lamp в таблице статусов) */
.stage { --lamp: var(--off); --glow: 0; }
.stage[data-status="OPEN"] { --lamp: var(--signal); --glow: 1; }
.stage[data-status="ASSIGNED"],
.stage[data-status="CONTACTED"],
.stage[data-status="EN_ROUTE"],
.stage[data-status="IN_PROGRESS"] { --lamp: var(--work); --glow: 1; }
/* ждут решения: ДР — запчасть или визит, «Выполнено» — оплату вознаграждения */
.stage[data-status="LONG_REPAIR"],
.stage[data-status="COMPLETED"] { --lamp: var(--wait); --glow: 1; }
.stage[data-status="RETURNED"],
.stage[data-status="CANCELLED"] { --lamp: var(--stop); }
.stage[data-status="CLOSED"] { --lamp: var(--ink); }

.stage {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 550 14px/1.25 var(--f-text);
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.stage:hover { border-color: var(--plate-edge); }
.stage .lamp {
  --c: var(--off);
  opacity: .4;
  transition: opacity .25s, background .25s, box-shadow .25s;
}
.stage.is-passed .lamp { --c: var(--lamp); opacity: .5; }
.stage[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stage[aria-pressed="true"] .lamp {
  --c: var(--lamp);
  opacity: 1;
  box-shadow:
    inset 0 -1px 1px rgba(0, 0, 0, .2),
    inset 0 1px 1px rgba(255, 255, 255, .45),
    0 0 0 calc(var(--glow) * 4px) color-mix(in srgb, var(--c) 18%, transparent),
    0 0 calc(var(--glow) * 16px) color-mix(in srgb, var(--c) 70%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .stage[aria-pressed="true"] .lamp { animation: breathe 2.4s ease-in-out infinite; }
}
@keyframes breathe { 50% { filter: brightness(1.18); } }

@media (min-width: 860px) {
  /* девять ламп основного пути; линия идёт от центра первой до центра последней */
  .track--main {
    position: relative;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0;
  }
  .track--main::before,
  .track--main::after {
    content: "";
    position: absolute;
    left: calc(100% / 18);
    top: 22px;
    height: 2px;
    border-radius: 2px;
  }
  .track--main::before { right: calc(100% / 18); background: var(--line); }
  .track--main::after {
    width: calc((100% - 100% / 9) * var(--progress, 0));
    background: color-mix(in srgb, var(--ink) 45%, transparent);
    transition: width .45s cubic-bezier(.3, .7, .2, 1);
  }
  .track--main .stage {
    position: relative;
    z-index: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 14px 3px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-size: 13px;
    text-align: center;
  }
  .track--main .stage .lamp {
    width: 18px;
    height: 18px;
    outline: 5px solid var(--surface);
  }
  .track--main .stage:hover { background: var(--sunken); }
  .track--main .stage[aria-pressed="true"] { background: var(--sunken); box-shadow: none; font-weight: 700; }
  .track--side {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
  }
  .track--side ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .track--side .stage { width: auto; min-height: 40px; padding: 8px 14px 8px 12px; border-radius: 999px; }
}

/* табло */
.lcd {
  grid-area: lcd;
  --l-free: #FF6A3D;
  --l-work: #3CC47A;
  --l-wait: #F2B02E;
  --l-stop: #FF5A4F;
  --l-done: #E8ECEA;
  --l-off: #7F8B85;
  --glow-c: var(--l-done);
  min-height: 250px;
  padding: 18px 18px 16px;
  border: 1px solid #050807;
  border-radius: 14px;
  background:
    linear-gradient(transparent 50%, rgba(255, 255, 255, .018) 50%) 0 0 / 100% 3px,
    radial-gradient(130% 150% at 0% 0%, #1A2621 0%, #0D1411 62%);
  color: #CFDDD5;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .04), 0 1px 0 rgba(255, 255, 255, .5);
}
.lcd[data-lamp="free"] { --glow-c: var(--l-free); }
.lcd[data-lamp="work"] { --glow-c: var(--l-work); }
.lcd[data-lamp="wait"] { --glow-c: var(--l-wait); }
.lcd[data-lamp="stop"] { --glow-c: var(--l-stop); }
.lcd[data-lamp="off"] { --glow-c: var(--l-off); }
.lcd .lamp--free { --c: var(--l-free); }
.lcd .lamp--work { --c: var(--l-work); }
.lcd .lamp--wait { --c: var(--l-wait); }
.lcd .lamp--stop { --c: var(--l-stop); }
.lcd .lamp--done { --c: var(--l-done); }
.lcd .lamp--off { --c: var(--l-off); }
.lcd__status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #F3F8F5;
  font: 700 clamp(19px, 1rem + 1.2vw, 27px)/1.1 var(--f-mono);
  font-stretch: 85%;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 0 16px color-mix(in srgb, var(--glow-c) 55%, transparent);
}
.lcd__lamp { width: 14px; height: 14px; }
.lcd__rows { margin: 0; display: grid; gap: 10px; }
.lcd__rows div { display: grid; gap: 2px; }
.lcd__rows dt {
  font: 600 10.5px/1.5 var(--f-mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #7F978A;
}
.lcd__rows dd { margin: 0; }
@media (min-width: 700px) {
  .lcd__rows div { grid-template-columns: 11em minmax(0, 1fr); gap: 16px; }
  .lcd__rows dt { padding-top: 3px; }
}
.lcd__next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, .14);
}
.lcd__next .engrave { color: #7F978A; margin-right: 6px; }
.lcd__next [data-lcd="next"] { display: contents; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #E3ECE7;
  font: 600 12.5px/1.2 var(--f-mono);
  cursor: pointer;
}
.chip:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .09); }
.chip .lamp { width: 8px; height: 8px; }
.lcd.is-flicker { animation: flicker .22s steps(2, end); }
@keyframes flicker { 0% { opacity: .55; } }

.more { margin: 6px 0 0; }
.more summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before {
  content: "+";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--plate-edge);
  border-radius: 6px;
  font: 600 14px/1 var(--f-mono);
}
.more[open] summary::before { content: "−"; }

/* таблицы */
.table-wrap {
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.45;
}
th, td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
thead th {
  background: var(--sunken);
  color: var(--muted);
  font: 600 10.5px/1.4 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  vertical-align: bottom;
}
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 650; }

/* на телефоне длинные таблицы — карточками */
@media (max-width: 719px) {
  .stack thead { display: none; }
  .stack, .stack tbody, .stack tr, .stack th, .stack td { display: block; width: auto; }
  .stack tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack th, .stack td { padding: 0; border: 0; }
  .stack tbody th { margin-bottom: 6px; font-size: 15.5px; }
  .stack td + td { margin-top: 6px; }
  .stack td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font: 600 10px/1.6 var(--f-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
  }
}

.states tbody th { white-space: nowrap; }
.states td:last-child { color: var(--muted); }

/* 5. Работа с заявкой */
.keys {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.keys li {
  display: grid;
  grid-template-columns: 11.5em minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.keys li > span:last-child { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
@media (min-width: 860px) {
  .keys { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  .keys li { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 10px; }
}
@media (max-width: 420px) {
  .keys li { grid-template-columns: 1fr; gap: 6px; }
  .keys .key { justify-self: start; }
}

.box {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.box h3 { margin: 0 0 8px; font-size: 1.08rem; letter-spacing: -.01em; }
.box p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; }
.box > :last-child { margin-bottom: 0; }
.box--wide { margin-top: 14px; }
.box .bullets:not(:last-child) { margin-bottom: 10px; }
.box .steps { margin: 12px 0; }
.box .steps:last-child { margin-bottom: 0; }

.reasons {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.reasons li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sunken);
  font-size: 13.5px;
  line-height: 1.35;
}

/* 6. Расчёт */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 24px 0 22px;
}
@media (min-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: start; gap: 28px; }
}
.calc__form {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.field { display: grid; gap: 7px; }
.field__label {
  margin: 0;
  padding: 0;
  font: 600 10.5px/1.4 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1.5px solid var(--plate-edge);
  border-radius: 10px;
  background: var(--enamel);
}
.field__box:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 30%, transparent);
}
.field input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 650 22px/1.2 var(--f-mono);
  font-stretch: 90%;
}
.field input[aria-invalid="true"] { color: var(--stop); }
.field__unit { font: 600 18px/1 var(--f-mono); color: var(--muted); }

.seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.seg legend { margin-bottom: 7px; }
.seg__row { display: flex; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: block;
  padding: 9px 16px;
  border: 1.5px solid var(--plate-edge);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.seg label:first-child span { border-radius: 10px 0 0 10px; }
.seg label:last-child span { margin-left: -1.5px; border-radius: 0 10px 10px 0; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--enamel); }
.seg input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }

.tiers ol {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.tiers li {
  display: grid;
  gap: 2px;
  padding: 10px 10px 9px;
  border-radius: 8px;
  background: var(--sunken);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  transition: background .2s, color .2s;
}
.tiers li b { font: 700 19px/1.2 var(--f-mono); color: var(--ink); }
.tiers li.is-on { background: var(--ink); color: color-mix(in srgb, var(--enamel) 78%, transparent); }
.tiers li.is-on b { color: var(--enamel); }

.slip {
  position: relative;
  margin-bottom: 12px;
  padding: 22px 22px 24px;
  border-radius: 4px 4px 0 0;
  background: var(--paper);
  color: #1E2421;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 22px 34px -22px rgba(0, 0, 0, .5);
}
.slip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 14px repeat-x,
    linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 14px repeat-x;
}
@media (min-width: 860px) {
  .slip { transform: rotate(.8deg); margin-top: 6px; }
}
.slip__head {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed rgba(0, 0, 0, .28);
  font: 700 12px/1.3 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
}
.slip__rows {
  margin: 0;
  display: grid;
  gap: 8px;
  font: 500 14px/1.35 var(--f-mono);
  font-stretch: 92%;
}
.slip__rows div { display: flex; align-items: baseline; gap: 8px; }
.slip__rows div::before {
  content: "";
  order: 1;
  flex: 1;
  min-width: 12px;
  border-bottom: 1.5px dotted rgba(0, 0, 0, .3);
  transform: translateY(-4px);
}
.slip__rows dt { order: 0; color: #4A544F; }
.slip__rows dd { order: 2; margin: 0; white-space: nowrap; font-weight: 650; }
.slip__rule { margin-top: 4px; padding-top: 10px; border-top: 1.5px dashed rgba(0, 0, 0, .28); }
.slip__total { font-size: 16px; }
.slip__total dt { color: #1E2421; font-weight: 700; }
.slip__total:nth-last-child(2) dd { color: #167444; }
.slip__total:last-child dd { color: #B93A12; }
.share {
  height: 10px;
  margin: 16px 0 0;
  overflow: hidden;
  border-radius: 99px;
  background: #DD4719;
}
.share__bar {
  display: block;
  width: var(--share, 50%);
  height: 100%;
  background: #1C8C50;
  transition: width .35s cubic-bezier(.3, .7, .2, 1);
}
.slip__warn {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #FFF0CC;
  color: #6B4700;
  font: 500 13.5px/1.45 var(--f-text);
}

.rules, .bullets, .bot-msgs {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 76ch;
}
.rules li, .bullets li, .bot-msgs li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
}
.rules li::before, .bullets li::before, .bot-msgs li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: var(--plate-edge);
  transform: rotate(45deg);
}
.bullets { margin: 10px 0 0; gap: 8px; font-size: 15.5px; }
.bot-msgs { margin-top: 0; }
.chapter .bot-msgs + .muted { margin-top: 14px; }

/* 7. Данные клиента */
.matrix th, .matrix td { vertical-align: middle; }
.matrix thead th { text-align: center; }
.matrix thead th:first-child { text-align: left; }
.matrix td { text-align: center; }
.matrix tbody th { font-weight: 550; }
.matrix .short { display: none; }
@media (max-width: 719px) {
  .matrix { font-size: 13.5px; }
  .matrix th, .matrix td { padding: 9px 6px; }
  .matrix tbody th { padding-left: 12px; }
  .matrix .long { display: none; }
  .matrix .short { display: inline; letter-spacing: .04em; }
}
.dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--off);
  border-radius: 50%;
  vertical-align: middle;
}
.dot--on {
  background: var(--work);
  border-color: var(--work);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--work) 16%, transparent);
}
.dot--set {
  background: linear-gradient(90deg, var(--wait) 50%, transparent 50%);
  border-color: var(--wait);
}
.legend {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--muted);
}
.legend li { display: flex; align-items: center; gap: 8px; }

/* 8. Кабинет */
.tiles { display: grid; gap: 12px; margin: 22px 0 0; }
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tile {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.tile h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -.01em; }
.tile p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.55; }
.tile p:last-child { margin-bottom: 0; }
.tile ul { margin: 0; padding-left: 1.05em; font-size: 15.5px; line-height: 1.55; }
.tile li + li { margin-top: 4px; }
.tile li::marker { color: var(--off); }

/* 9. Администратору */
.menu { margin: 0; display: grid; gap: 8px; }
@media (min-width: 720px) {
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.menu > div {
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--plate-edge);
  border-radius: 10px;
  background: var(--surface);
}
.menu dt { font-weight: 650; font-size: 15.5px; }
.menu dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* цвета строк таблицы заявок — те же оттенки, что в админ-панели, через лампы статусов */
.tones {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 76ch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.tones li {
  --tone: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--tone);
  font-size: 15px;
  line-height: 1.45;
}
.tones li:last-child { border-bottom: 0; }
.tones b { flex: none; min-width: 9.5em; font-weight: 650; }
.tones span { flex: 1 1 18em; color: var(--muted); }
.tones .tone--yellow { --tone: color-mix(in srgb, var(--wait) 18%, var(--surface)); }
.tones .tone--done { --tone: color-mix(in srgb, var(--work) 8%, var(--surface)); }
.tones .tone--green { --tone: color-mix(in srgb, var(--work) 20%, var(--surface)); }
.tones .tone--red { --tone: color-mix(in srgb, var(--stop) 14%, var(--surface)); }
.tones + .muted { margin-top: 12px; }

.settings th { font-weight: 450; width: 62%; }
.settings td { font-weight: 650; }

/* 10. Приложение */
.devices { display: grid; gap: 12px; margin: 22px 0 0; }
@media (min-width: 900px) {
  .devices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.device {
  padding: 18px 20px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.device h3 { margin: 0 0 14px; font-size: 1.08rem; }
.device .steps { margin-bottom: 8px; }

/* 11. Неисправности */
.trouble tbody th::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: var(--stop);
  box-shadow: 0 0 6px color-mix(in srgb, var(--stop) 60%, transparent);
  vertical-align: middle;
}
@media (min-width: 720px) {
  .trouble tbody th { width: 31%; }
}

/* ---------- подвал ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--sunken);
}
.footer__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 16px 44px;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
}
.footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .topbar, .toc, .skip, .routes, [data-run], .anchor { display: none !important; }
  body { background: #fff; color: #000; }
  .layout { display: block; }
  .chapter { break-inside: auto; }
  .more:not([open]) > :not(summary) { display: block; }
}
