:root {
  --paper: #fbfaf7;
  --ink: #171717;
  --muted: #666a70;
  --line: #e2ddd4;
  --panel: #f3efe7;
  --dark: #0b0c10;
  --dark-2: #14161b;
  --dark-3: #202229;
  --orange: #f97316;
  --orange-soft: #fff2e8;
  --cyan: #0891b2;
  --green: #128056;
  --red: #b42318;
  --violet: #6d5bd0;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(20, 16, 10, 0.12);
  --font: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #e9e4da;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
}

body {
  counter-reset: guide-page;
}

.manual {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 0;
}

.page {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 19mm 18mm 18mm;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  counter-increment: guide-page;
  break-after: page;
}

.page::after {
  content: "Frontline VR · Руководство пользователя · " counter(guide-page);
  position: absolute;
  left: 18mm;
  right: 18mm;
  bottom: 9mm;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: #9a9388;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.cover {
  display: flex;
  min-height: 297mm;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.12), transparent 42%),
    linear-gradient(160deg, #0b0c10 0%, #151821 58%, #242016 100%);
  color: #fff;
}

.cover::after {
  content: "";
  border: 0;
}

.cover__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #c7cbd2;
  font-size: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border: 2px solid var(--orange);
  border-radius: 7px;
  transform: rotate(45deg);
}

.cover__title {
  max-width: 620px;
}

.cover__eyebrow,
.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cover h1 {
  margin: 0;
  font-size: 54px;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.cover__subtitle {
  margin: 22px 0 0;
  max-width: 520px;
  color: #d8dbe0;
  font-size: 18px;
  line-height: 1.45;
}

.cover__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 520px;
}

.cover__meta div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.cover__meta span {
  display: block;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cover__meta strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 15px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-kicker {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.page-title {
  margin: 4px 0 0;
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-lead {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.section-title {
  margin: 22px 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.compact-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stack {
  display: grid;
  gap: 12px;
}

.card,
.note,
.step,
.definition,
.status-card,
.toc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card {
  padding: 15px;
}

.card--soft {
  background: var(--panel);
}

.note {
  padding: 14px 15px;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
}

.note--quiet {
  border-left-color: var(--cyan);
  background: #edf8fb;
}

.note--risk {
  border-left-color: var(--red);
  background: #fff1f0;
}

.callout-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.icon-box {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 12px;
}

.step__num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.step p,
.card p,
.definition p,
.status-card p,
.note p {
  margin-bottom: 0;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li {
  margin-bottom: 6px;
}

.list li:last-child {
  margin-bottom: 0;
}

.clean-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 17px;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--orange);
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.table th,
.table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  background: var(--panel);
  color: #4d4a45;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.table tr:last-child td {
  border-bottom: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff;
  color: #393734;
  font-size: 11px;
  font-weight: 700;
}

.tag--orange {
  border-color: #ffd2b3;
  background: var(--orange-soft);
  color: #9a4100;
}

.tag--green {
  border-color: #bde8d2;
  background: #effaf4;
  color: var(--green);
}

.tag--cyan {
  border-color: #b9e8f2;
  background: #edf8fb;
  color: var(--cyan);
}

.tag--red {
  border-color: #ffc7c1;
  background: #fff1f0;
  color: var(--red);
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.toc-card {
  min-height: 92px;
  padding: 14px;
}

.toc-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.toc-card span {
  color: var(--muted);
  font-size: 12px;
}

.screen {
  margin: 14px 0 0;
}

.screen__frame {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid #24262d;
  border-radius: 12px;
  background: var(--dark);
  color: #f8fafc;
  box-shadow: 0 20px 40px rgba(15, 15, 15, 0.18);
}

.screen__side {
  padding: 14px 10px;
  background: #11131a;
  border-right: 1px solid #2a2d36;
}

.screen__logo {
  margin-bottom: 14px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.screen__nav {
  display: grid;
  gap: 6px;
}

.screen__nav span {
  display: block;
  border-radius: 7px;
  padding: 7px 8px;
  color: #a1a7b3;
  font-size: 10px;
}

.screen__nav .active {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
}

.screen__main {
  padding: 16px;
}

.screen__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.screen__title {
  font-size: 17px;
  font-weight: 800;
}

.screen__pill {
  border-radius: 999px;
  padding: 4px 8px;
  background: #262a33;
  color: #cbd5e1;
  font-size: 9px;
  font-weight: 800;
}

.hero-mock {
  display: grid;
  align-content: end;
  min-height: 126px;
  border-radius: 10px;
  padding: 16px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78)),
    linear-gradient(135deg, #3b2c21, #12333d 54%, #111827);
}

.hero-mock strong {
  display: block;
  max-width: 300px;
  font-size: 24px;
  line-height: 1.08;
}

.screen-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.mock-card {
  min-height: 68px;
  border: 1px solid #2e323c;
  border-radius: 9px;
  padding: 9px;
  background: #171a21;
}

.mock-card b {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
}

.mock-card span {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: #353945;
}

.mock-device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mock-device {
  min-height: 108px;
  border: 1px solid #30343e;
  border-radius: 10px;
  padding: 9px;
  background: #181b22;
}

.mock-device__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.dot--warn {
  background: #f59e0b;
}

.dot--off {
  background: #6b7280;
}

.bars {
  display: grid;
  gap: 5px;
}

.bars span {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: #30343e;
}

.bars span:nth-child(1) {
  width: 86%;
}

.bars span:nth-child(2) {
  width: 62%;
}

.bars span:nth-child(3) {
  width: 42%;
}

.mock-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.mock-toolbar span {
  border: 1px solid #343844;
  border-radius: 999px;
  padding: 5px 8px;
  color: #cbd5e1;
  font-size: 9px;
  font-weight: 700;
}

.map-mock {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  border: 1px solid #323640;
  border-radius: 10px;
  padding: 8px;
  background: #101218;
}

.map-grid span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #252934;
}

.map-grid span.on {
  background: #f97316;
}

.map-grid span.col {
  background: #06b6d4;
}

.map-grid span.wall {
  background: #7c3aed;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.timeline__item time {
  color: var(--orange);
  font-weight: 800;
}

.checklist {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.checklist li::before {
  content: "✓";
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f7ef;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.definition {
  padding: 12px;
}

.definition strong {
  display: block;
  margin-bottom: 4px;
}

.status-card {
  padding: 12px;
}

.status-card strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.status-card strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--orange);
}

.status-card--green strong::before {
  background: var(--green);
}

.status-card--red strong::before {
  background: var(--red);
}

.status-card--cyan strong::before {
  background: var(--cyan);
}

.status-card--violet strong::before {
  background: var(--violet);
}

.page-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  align-items: start;
}

.mini-flow {
  display: flex;
  align-items: stretch;
  gap: 7px;
}

.mini-flow span {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 8px;
  background: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.figcaption,
figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

code {
  border-radius: 5px;
  padding: 1px 5px;
  background: #eee8dd;
  color: #5f3512;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
}

@media print {
  html,
  body {
    width: 210mm;
    background: #fff;
  }

  .manual {
    display: block;
    padding: 0;
  }

  .page {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
  }

  .page,
  .card,
  .note,
  .step,
  .screen__frame,
  .table {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  @page {
    size: A4;
    margin: 0;
  }
}


/* Readability pass — cleaner, lighter, easier to print */
:root {
  --paper: #fffdf9;
  --ink: #1f2328;
  --muted: #586069;
  --line: #e7e0d6;
  --panel: #f7f3ec;
  --orange: #e85d04;
  --orange-soft: #fff4ea;
  --radius: 12px;
  --shadow: 0 18px 52px rgba(20, 16, 10, 0.10);
}

html,
body {
  font-size: 15.5px;
  line-height: 1.68;
  background: #ebe6dc;
}

.page {
  padding: 20mm 19mm 19mm;
}

.page-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
}

.page-title {
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.page-lead,
.cover__subtitle {
  max-width: 710px;
  color: #4f5964;
  font-size: 16px;
  line-height: 1.65;
}

.section-title {
  margin: 26px 0 12px;
  font-size: 19px;
}

.compact-title {
  font-size: 15.5px;
  line-height: 1.35;
}

.card,
.note,
.step,
.definition,
.status-card,
.toc-card {
  border-color: #e5ded3;
  border-radius: 12px;
}

.card,
.definition,
.status-card {
  padding: 16px;
}

.note {
  padding: 15px 16px;
  border-left-width: 5px;
}

.reader-note {
  margin-bottom: 14px;
}

.clean-list {
  gap: 8px;
}

.clean-list li {
  padding-left: 19px;
}

.clean-list li::before {
  top: 10px;
  width: 5px;
  height: 5px;
}

.table {
  font-size: 14.5px;
  line-height: 1.55;
}

.table th,
.table td {
  padding: 11px 12px;
}

.table th {
  background: #f5efe6;
  color: #3f3d39;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: none;
}

.toc-card {
  min-height: 96px;
}

.toc-card strong,
.definition strong,
.status-card strong {
  font-size: 15px;
}

.toc-card span,
.definition p,
.status-card p,
.card p,
.note p {
  color: #4f5964;
}

.step {
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 14px;
}

.step__num {
  width: 30px;
  height: 30px;
}

.tag {
  min-height: 28px;
  font-size: 12px;
  font-weight: 650;
}

.mini-flow {
  gap: 9px;
}

.mini-flow span {
  padding: 11px 9px;
  font-size: 12px;
  line-height: 1.35;
}

.screen__frame {
  box-shadow: 0 14px 32px rgba(15, 15, 15, 0.14);
}

figcaption {
  font-size: 12px;
  line-height: 1.5;
}

@media print {
  html,
  body {
    font-size: 12pt;
    line-height: 1.55;
  }

  .page {
    padding: 18mm 17mm 18mm;
  }

  .page-title {
    font-size: 24pt;
  }

  .page-lead,
  .cover__subtitle {
    font-size: 12.5pt;
  }

  .card,
  .note,
  .step,
  .definition,
  .status-card,
  .toc-card,
  .table {
    break-inside: avoid;
  }

  .screen__frame {
    break-inside: avoid;
  }
}
.manual-video-nav{display:flex;flex-wrap:wrap;gap:12px 24px;padding:20px 28px;margin-bottom:18px;background:#171b22;border-radius:12px;font:14px/1.5 Inter,"Segoe UI",sans-serif}
.manual-video-nav a{color:#ffb574;text-underline-offset:4px}
.manual-video-nav a:focus-visible{outline:2px solid #ff8c2b;outline-offset:4px}
@media print{.manual-video-nav{display:none}}
