:root {
  color-scheme: light;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #182a43;
  background: #fff;
  --blue: #184192;
  --muted: #4c5d70;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--blue); }
a:focus-visible { outline: 3px solid #ae4c15; outline-offset: 4px; }
.wrap { width: 90%; max-width: 1180px; margin-inline: auto; }
header { border-bottom: 1px solid #dce4ed; }
.brand {
  display: flex; min-height: 76px; align-items: center; gap: 13px;
  color: var(--blue); font-weight: 700; font-size: 19px; letter-spacing: -.025em;
}
.brand img { display: block; width: 54px; height: auto; }
.layout {
  display: grid; grid-template-columns: minmax(0, .81fr) minmax(0, 1.19fr);
  align-items: start; gap: clamp(34px, 5.6vw, 88px); padding-block: 40px 60px;
}
.details { position: sticky; top: 36px; padding-top: clamp(28px, 4.5vw, 68px); }
h1 { margin: 0; font-size: clamp(45px, 5vw, 73px); line-height: 1.02; letter-spacing: -.052em; font-weight: 650; }
.subject { margin: 16px 0 28px; color: var(--muted); max-width: 30ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.42; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border: 1px solid #a6b6ca; border-radius: 6px;
  background: #fff; font-size: 15px; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.button span { font-size: 18px; line-height: 1; }
.button:hover { background: #edf2fa; border-color: var(--blue); }
.button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button.primary:hover { background: #103373; }
.file-info { margin: 12px 0 5px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.file-info span { white-space: nowrap; }
.qr-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.preview { min-width: 0; padding: clamp(10px, 1.5vw, 20px); background: #f1f4f8; border: 1px solid #dce3eb; border-radius: 9px; }
.pages {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 15px 12px;
  grid-template-rows: repeat(6, auto); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column;
}
.pages li { min-width: 0; }
.pages a { display: block; text-decoration: none; color: #33455c; }
.pages a:hover .caption { color: var(--blue); text-decoration: underline; }
.pages img { width: 100%; height: auto; display: block; background: #fff; box-shadow: 0 1px 4px #18334b26; }
.caption { display: block; padding: 6px 1px 0; font-size: 12px; line-height: 1.35; }
.caption b { font-variant-numeric: tabular-nums; }
@media (max-width: 799px) {
  .brand { min-height: 62px; font-size: 17px; gap: 10px; }
  .brand img { width: 44px; }
  .layout { display: block; padding: 26px 0 32px; }
  .details { position: static; padding: 0; }
  h1 { font-size: clamp(35px, 7.5vw, 49px); }
  .subject { max-width: none; font-size: 16px; margin: 8px 0 19px; }
  .file-info { margin-top: 9px; }
  .preview { margin-top: 14px; padding: 8px; }
  .pages { gap: 12px 8px; }
}
@media (max-width: 359px) {
  .button { padding-inline: 11px; gap: 5px; }
  .caption { font-size: 11px; }
}
