:root {
  color-scheme: dark;
  --background: #101926;
  --panel: #182536;
  --border: #36465d;
  --text: #f3f6fa;
  --subtle: #bdc9d8;
  --accent: #ff8a3e;
  --on-accent: #1c110b;
  font-family: system-ui, sans-serif;
}

body[data-brand="pramac"] { --accent: #ff7272; --on-accent: #260a0d; }
* { box-sizing: border-box; }
html { scroll-padding-top: 82px; }
body { margin: 0; color: var(--text); background: var(--background); line-height: 1.55; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }

.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--border);
  background: #101926;
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 14px;
}
.bar img { width: auto; height: 27px; max-width: 142px; object-fit: contain; }
.bar a { padding: 9px 0; font-size: .9rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 28px 20px;
  color: var(--subtle);
  font-size: .84rem;
}

.cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
h1 { margin-top: 6px; font-size: clamp(2rem, 5.2vw, 3.9rem); line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
h2 { margin-bottom: 14px; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.17; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.chips li { padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--subtle); font-size: .86rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px; text-align: center; text-decoration: none; font-weight: 650; font-size: .9rem; }
.action--primary { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.action:hover { box-shadow: inset 0 0 0 2px currentColor; }

.photo { margin: 0; }
.photo a { display: grid; place-items: center; padding: clamp(12px, 2.5vw, 24px); border: 1px solid var(--border); border-radius: 12px; background: radial-gradient(ellipse at center, #253750, #162333 78%); }
.photo img { width: 100%; height: auto; max-height: 400px; aspect-ratio: 4 / 3; object-fit: contain; }
.photo figcaption { margin-top: 7px; color: var(--subtle); font-size: .82rem; }

section.panel { margin-top: clamp(32px, 6vw, 68px); }
.specs { width: 100%; table-layout: fixed; border: 1px solid var(--border); border-collapse: collapse; background: var(--panel); }
.specs :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.specs th { width: 38%; color: var(--subtle); font-weight: 600; }
.note { margin-top: 14px; color: var(--subtle); max-width: 78ch; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery .photo img { max-height: 300px; }
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 10px; padding: 0; list-style: none; }
.docs a { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.bottom { margin-block: 44px 0; padding: 20px 0 32px; border-top: 1px solid var(--border); }
.bottom .actions { margin-top: 0; }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .cover { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .cover-text { display: contents; }
  .cover-text > :is(h1, .chips) { order: 1; }
  .cover h1 { margin-top: 0; }
  .cover .chips { margin-top: -4px; }
  .cover .photo { order: 2; }
  .cover .actions { order: 3; margin-top: 0; }
  .photo img { max-height: 240px; }
  .gallery { grid-template-columns: 1fr; }
  .specs :is(th, td) { padding: 9px 10px; }
  .crumbs { margin-block: 16px; }
}
