:root {
  color-scheme: dark;
  --bg: #080b13;
  --panel: #111b32;
  --line: rgba(255,255,255,.14);
  --text: #f7f8fc;
  --muted: #aeb8cd;
  --gold: #f4b942;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(244,185,66,.13), transparent 34%),
    var(--bg);
}

a,
button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.manual-page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.manual-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.manual-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
}

.manual-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #171107;
  font-size: 25px;
  background: var(--gold);
}

.manual-back,
.manual-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.manual-hero {
  max-width: 800px;
  margin: 0 auto 28px;
  text-align: center;
}

.manual-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1;
  letter-spacing: -.045em;
}

.manual-hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.6;
}

.manual-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.manual-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  text-decoration: none;
  background: rgba(17,27,50,.94);
  transition: transform .2s ease, border-color .2s ease;
}

.manual-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244,185,66,.75);
}

.manual-card-preview {
  height: 330px;
  display: grid;
  place-items: start center;
  overflow: hidden;
  padding: 14px;
  background: #fff;
}

.manual-card-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
}

.manual-card-content {
  padding: 20px;
}

.manual-card h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 25px;
}

.manual-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.manual-detail {
  width: min(920px, 100%);
  margin: 0 auto;
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 22px;
}

.manual-image-link {
  display: block;
  border-radius: 18px;
}

.manual-image {
  width: 100%;
  height: auto;
  display: block;
  border: 12px solid #fff;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}

.manual-hint {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .manual-cards {
    grid-template-columns: 1fr;
  }

  .manual-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .manual-back {
    width: 100%;
  }

  .manual-card-preview {
    height: 280px;
  }

  .manual-actions {
    display: grid;
  }

  .manual-image {
    border-width: 6px;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .manual-topbar,
  .manual-actions,
  .manual-hint {
    display: none !important;
  }

  .manual-page {
    width: 100%;
    padding: 0;
  }

  .manual-hero {
    margin-bottom: 12px;
  }

  .manual-hero h1 {
    color: #000;
    font-size: 26px;
  }

  .manual-hero p {
    display: none;
  }

  .manual-image {
    max-height: 94vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
  }
}
