:root {
  --viewer-blue: #0054ed;
  --viewer-navy: #092859;
  --viewer-ink: #173357;
  --viewer-muted: #617492;
  --viewer-line: #d8e5f5;
}
* { box-sizing: border-box; }
html { min-width: 300px; background: #f1f6fc; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; color: var(--viewer-ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible, .viewport:focus-visible { outline: 3px solid #1597ff; outline-offset: 4px; }
.brochure-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(ellipse at 45% 35%, #fff 5%, #f2f7fd 70%); }
.viewer-toolbar { flex: 0 0 auto; display: flex; align-items: center; gap: 20px; min-height: 82px; padding: 16px 32px; border-bottom: 1px solid var(--viewer-line); background: #ffffffed; }
.viewer-toolbar .viewer-brand, .viewer-toolbar .brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.viewer-toolbar .viewer-brand img, .viewer-toolbar .brand img { display: block; width: 190px; max-height: 53px; object-fit: contain; }
.viewer-toolbar .viewer-heading { min-width: 0; flex: 1; }
.viewer-toolbar h1 { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.35; color: var(--viewer-navy); }
.viewer-toolbar p { margin: 3px 0 0; font-size: 12px; color: var(--viewer-muted); }
.viewer-toolbar .viewer-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.viewer-toolbar button, .viewer-controls button, .overview button { border: 1px solid var(--viewer-line); border-radius: 12px; background: #fff; color: var(--viewer-navy); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.viewer-toolbar button { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; font-size: 13px; font-weight: 600; }
.viewer-toolbar button:hover, .viewer-controls button:hover, .overview button:hover { background: #edf5ff; border-color: #9bc7ff; }
.viewer-toolbar button[aria-pressed="true"] { background: var(--viewer-blue); color: #fff; border-color: var(--viewer-blue); }
.viewer-toolbar svg, .viewer-controls svg { width: 19px; height: 19px; flex-shrink: 0; }
.viewer-toolbar .viewer-cta, .viewer-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; color: #fff; background: var(--viewer-blue); border: 1px solid var(--viewer-blue); border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 650; white-space: nowrap; }
.viewer-cta:hover { background: #003ec4; }
.viewport { flex: 0 0 auto; position: relative; width: 100%; height: var(--viewport-height, 56.25vw); margin: 24px 0 auto; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.viewport::-webkit-scrollbar { display: none; }
.deck-track { display: flex; flex-wrap: nowrap; width: 100%; height: 100%; }
.slide { position: relative; display: grid; place-items: center; flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.slide-stage { position: relative; flex-shrink: 0; overflow: hidden; background: #fff; box-shadow: 0 7px 30px #193a6514, 0 0 0 1px #16365c0d; }
.slide-canvas { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; overflow: hidden; transform-origin: top left; transform: scale(var(--slide-scale, 1)); }
.viewer-controls { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; min-height: 72px; padding: 12px 28px; background: #ffffffed; border-bottom: 1px solid var(--viewer-line); }
.viewer-controls button { min-width: 43px; height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; font-size: 13px; font-weight: 600; }
.viewer-controls button:disabled { color: #9caeca; background: #f6f9fc; border-color: #e2eaf4; cursor: default; }
#slideCounter { min-width: 65px; text-align: center; font-size: 13px; font-weight: 650; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--viewer-navy); }
.slide-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; max-width: 420px; }
.slide-dots button { position: relative; width: 23px; min-width: 23px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; }
.slide-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b4c5dc; transition: width .18s ease, background-color .18s ease; }
.slide-dots button:hover { background: #e4effc; }
.slide-dots button.is-active::before { width: 17px; border-radius: 4px; background: var(--viewer-blue); }
.viewer-hint { margin: 0; color: var(--viewer-muted); font-size: 11px; text-align: center; }
.sr-only, .visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.overview { width: min(780px, calc(100% - 32px)); max-height: min(85vh, 800px); padding: 25px; border: 1px solid var(--viewer-line); border-radius: 22px; color: var(--viewer-ink); background: #fff; box-shadow: 0 24px 100px #031f5750; }
.overview::backdrop { background: #041c4e85; backdrop-filter: blur(7px); }
.overview:not([open]) { display: none; }
.overview[open] { display: block; }
.overview-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.overview h2 { margin: 0; font-size: 23px; color: var(--viewer-navy); }
.overview p { margin: 7px 0 0; color: var(--viewer-muted); font-size: 13px; }
.overview svg { width: 20px; height: 20px; flex-shrink: 0; }
#closeOverview { width: 40px; min-width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.overview-grid button { min-height: 58px; padding: 13px; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 13px; line-height: 1.4; }
.overview-grid button.is-active { background: #eff6ff; border-color: var(--viewer-blue); box-shadow: inset 0 0 0 1px var(--viewer-blue); }
.overview-number { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; font-variant-numeric: tabular-nums; background: #edf4ff; color: var(--viewer-blue); font-weight: 700; }
.brochure-app.is-fullscreen, .brochure-app:fullscreen { position: fixed; inset: 0; z-index: 10000; width: 100%; height: 100%; min-height: 0; overflow: auto; }
html.brochure-fullscreen { overflow: hidden; }
.brochure-app.is-zoomed .viewport { overflow: hidden; scroll-snap-type: none; }
.brochure-app.is-zoomed .slide { display: block; overflow: auto; overscroll-behavior: contain; touch-action: auto; }
.brochure-app.is-zoomed .slide-stage { margin: 0 auto; }
@media (min-width: 1800px) { .viewer-toolbar { padding-left: 48px; padding-right: 48px; } }
@media (max-width: 1000px) {
  .viewer-toolbar { gap: 15px; padding: 13px 20px; min-height: 76px; }
  .viewer-toolbar .viewer-brand img, .viewer-toolbar .brand img { width: 158px; }
  .viewer-toolbar button .button-label { display: none; }
  .viewer-toolbar button { padding: 0 11px; }
  .viewer-controls { gap: 12px; }
  .viewer-hint { display: none; }
}
@media (max-width: 700px) {
  .brochure-app { justify-content: flex-start; }
  .viewer-toolbar { flex-wrap: wrap; gap: 10px 13px; padding: 12px 13px; }
  .viewer-toolbar .viewer-brand img, .viewer-toolbar .brand img { width: 148px; max-height: 42px; }
  .viewer-toolbar .viewer-heading { flex-basis: calc(100% - 170px); }
  .viewer-toolbar h1 { font-size: 12px; }
  .viewer-toolbar p { font-size: 10px; }
  .viewer-toolbar .viewer-actions { width: 100%; justify-content: flex-end; gap: 7px; }
  .viewer-toolbar .viewer-cta { margin-right: auto; }
  .viewer-toolbar button { min-width: 38px; height: 38px; padding: 0 9px; border-radius: 10px; }
  .viewer-toolbar .viewer-cta { min-height: 38px; font-size: 12px; padding: 0 13px; border-radius: 10px; }
  .viewport { margin: 24px 0 0; }
  .viewer-controls { padding: 15px 12px; gap: 10px; min-height: 72px; }
  .viewer-controls button { min-width: 42px; height: 42px; padding: 0 10px; }
  .viewer-controls .button-label { display: none; }
  .slide-dots { order: 5; width: 100%; gap: 1px; }
  .slide-dots button { width: 21px; min-width: 21px; height: 26px; }
  .overview { padding: 18px; border-radius: 17px; }
  .overview h2 { font-size: 20px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-grid button { min-height: 52px; }
}
@media (max-height: 520px) and (min-width: 701px) {
  .viewer-toolbar { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  .viewer-toolbar .viewer-brand img, .viewer-toolbar .brand img { width: 142px; max-height: 36px; }
  .viewer-toolbar p, .viewer-hint { display: none; }
  .viewer-controls { min-height: 58px; padding: 8px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; } }
