/* arma5.ru — «Директива № 5/203█-сс». Paper dossier on a dark desk. */

:root {
  --desk: #16150f;
  --desk-2: #24221a;
  --paper: #f0e7cf;
  --paper-2: #e6d9b8;
  --ink: #1e1c17;
  --ink-soft: #544e40;
  --red: #b3141f;
  --pen: #c42a2f;
  --blue: #23408e;
  --green: #2f6a3b;
  --folder: #c6a468;
  --folder-2: #b08f55;
  --note: #f5e17a;
  --note-2: #f7c6c9;
  --amber: #e2b23c;

  --f-type: "PT Mono", "Courier New", monospace;
  --f-head: "Oswald", "Arial Narrow", sans-serif;
  --f-stencil: "Stardos Stencil", "Oswald", sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --f-sig: "Marck Script", "Caveat", cursive;

  --grunge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 0 0 0 2.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grunge-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4.2 0 0 0 3.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 30%, var(--desk-2), var(--desk) 70%) fixed, var(--desk);
  color: var(--ink);
  font: 16px/1.6 var(--f-type);
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- desk: topo map canvas + ribbon ---------- */

.topo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; transition: opacity .6s; }
body.topo-on .topo { opacity: 1; }

.ribbon {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--red); color: #fff;
  font: 600 12px/1 var(--f-head); letter-spacing: .28em; text-transform: uppercase;
  border-bottom: 2px solid #6d0a11;
}
.ribbon-track { display: flex; width: max-content; animation: ribbon 60s linear infinite; }
.ribbon-track span { padding: 9px 22px; white-space: nowrap; }
.ribbon-track span::after { content: "✦"; margin-left: 44px; opacity: .6; }
@keyframes ribbon { to { transform: translateX(-50%); } }

.desk { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 56px 16px 40px; }

.folder {
  position: absolute; left: 40px; right: 0; top: 34px; bottom: 90px;
  background: linear-gradient(160deg, var(--folder), var(--folder-2));
  border-radius: 4px; transform: rotate(1.6deg);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.folder::after { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .18; mix-blend-mode: multiply; border-radius: inherit; }
.folder-tab {
  position: absolute; right: 36px; top: -26px; padding: 4px 22px 6px;
  background: var(--folder); border-radius: 6px 6px 0 0;
  font: 700 13px/1.2 var(--f-head); letter-spacing: .18em; color: #3b2d14;
}

/* ---------- the sheet ---------- */

.dossier {
  position: relative;
  padding: 56px 64px 44px 76px;
  background:
    radial-gradient(ellipse 60% 40% at 88% 8%, rgba(160,120,40,.14), transparent 70%),
    radial-gradient(ellipse 50% 35% at 10% 92%, rgba(140,100,40,.12), transparent 70%),
    radial-gradient(ellipse at 50% 50%, var(--paper) 55%, var(--paper-2));
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 50px rgba(0,0,0,.55), 0 2px 4px rgba(0,0,0,.3);
  transform: rotate(-.4deg);
  text-shadow: 0 0 .6px rgba(30,28,23,.45);
}
.dossier::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--noise); opacity: .22; mix-blend-mode: multiply;
}
.dossier.thud { animation: thud .18s ease-out; }
@keyframes thud { 40% { transform: rotate(-.4deg) translateY(3px) scale(.997); } }

.holes { position: absolute; left: 22px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; padding: 18% 0; pointer-events: none; }
.holes i { width: 16px; height: 16px; border-radius: 50%; background: var(--desk); box-shadow: inset 1px 2px 3px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.08); }

.clip {
  position: absolute; left: 118px; top: -30px; width: 30px; height: 84px; padding: 0; border: 0; background: none;
  color: #8b9097; cursor: pointer; z-index: 5; filter: drop-shadow(1px 2px 1px rgba(0,0,0,.35));
  transform: rotate(-4deg); transition: transform .3s;
}
.clip svg { width: 100%; height: 100%; }
.clip:hover { transform: rotate(-9deg); }
.clip.falling { animation: clipfall 1.8s cubic-bezier(.5,0,.8,.4) forwards; }
@keyframes clipfall {
  30% { transform: rotate(-30deg) translateY(10px); }
  100% { transform: rotate(160deg) translate(-60px, -1600px); opacity: 0; }
}

.coffee {
  position: absolute; right: 70px; bottom: 150px; width: 150px; height: 150px; border: 0; padding: 0; cursor: pointer;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 58%, rgba(120,70,20,.22) 60%, rgba(120,70,20,.08) 64%, transparent 67%),
    radial-gradient(circle at 60% 40%, rgba(120,70,20,.05), transparent 60%);
  transform: rotate(20deg) scaleX(1.05);
  mix-blend-mode: multiply; z-index: 0;
}

/* ---------- head ---------- */

.doc-head { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; line-height: 1.5; text-transform: uppercase; }
.org { letter-spacing: .04em; }
.org-dept { text-transform: none; }
.org-no { margin-top: 8px; text-transform: none; }
.grif { text-align: right; font-family: var(--f-head); font-weight: 500; letter-spacing: .06em; }
.grif-top { font-weight: 700; font-size: 16px; color: var(--red); }
.muted { color: var(--ink-soft); text-transform: none; font-family: var(--f-type); font-size: 12px; }
.led-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; font: 11px/1 var(--f-type); text-transform: lowercase; color: var(--ink-soft); }
.led {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 1px solid #5c0b10; cursor: pointer;
  background: radial-gradient(circle at 35% 35%, #7a2328, #3d0a0d);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
}
.led.on { background: radial-gradient(circle at 35% 35%, #ffd0cf, #ff2b35 45%, #9c0710); box-shadow: 0 0 10px 3px rgba(255,40,50,.55); }
.led.sound { outline: 2px dotted var(--red); outline-offset: 3px; }

.approve { margin: 26px 0 0 auto; width: max-content; max-width: 100%; font-size: 13px; line-height: 1.55; }
.approve-h { font: 700 15px/1.4 var(--f-head); letter-spacing: .2em; }
.approve-sig { position: relative; }
.scribble { position: absolute; left: 40%; top: -10px; font: 30px/1 var(--f-sig); color: var(--blue); transform: rotate(-8deg); opacity: .85; pointer-events: none; text-shadow: none; }

.title-block { margin-top: 34px; text-align: center; }
.doc-type { margin: 0; font: 700 22px/1.2 var(--f-head); letter-spacing: .45em; padding-left: .45em; }
.doc-sub { margin: 4px 0 0; font-size: 14px; }

/* ---------- hero ---------- */

.hero { position: relative; margin: 20px 0 0; text-align: center; line-height: .9; font-weight: normal; }
.hero-title {
  display: block; white-space: nowrap; font: 700 clamp(58px, 17vw, 176px)/.9 var(--f-stencil); letter-spacing: .02em; color: var(--ink);
  -webkit-mask-image: var(--grunge-soft); mask-image: var(--grunge-soft); -webkit-mask-size: 300px; mask-size: 300px;
}
.hero-sub { display: inline-flex; align-items: center; margin-top: 12px; font: 500 clamp(22px, 5vw, 40px)/1 var(--f-head); letter-spacing: .22em; padding-left: .22em; }
.digit {
  display: inline-block; width: .62em; height: 1em; margin-left: .06em; padding: 0; border: 0; cursor: pointer;
  background: var(--ink); color: transparent; font: inherit; line-height: 1; overflow: hidden; vertical-align: middle;
  text-shadow: none; transition: transform .15s;
}
.digit:hover { transform: scale(1.06); }
.digit.rolling, .digit.leak { background: #fff5c4; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); letter-spacing: 0; }
.digit.leak { color: var(--red); }

.lead { margin: 58px 0 8px; text-align: center; font-size: 15px; color: var(--ink-soft); }

/* ---------- stamps ---------- */

.stamp {
  --rot: -14deg;
  position: absolute; right: -58px; top: 46%; z-index: 3;
  padding: 8px 16px; border: 4px solid currentColor; outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px;
  font: 700 24px/1.05 var(--f-head); letter-spacing: .1em; text-transform: uppercase; text-align: center;
  color: var(--red); opacity: .82; mix-blend-mode: multiply; cursor: pointer; user-select: none; text-shadow: none;
  -webkit-mask-image: var(--grunge); mask-image: var(--grunge);
  transform: rotate(var(--rot));
}
.stamp.slam { animation: slam .32s cubic-bezier(.2,.9,.3,1.2); }
@keyframes slam {
  0% { transform: rotate(var(--rot)) scale(2.6); opacity: 0; }
  65% { transform: rotate(var(--rot)) scale(.93); opacity: .95; }
  100% { transform: rotate(var(--rot)) scale(1); opacity: .82; }
}
.stamp.blue { color: var(--blue); }
.stamp.green { color: var(--green); }

.mini-stamp {
  position: absolute; right: 10px; bottom: 12px; padding: 2px 8px; border: 2px solid currentColor; border-radius: 3px;
  font: 700 11px/1.3 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--red);
  transform: rotate(-9deg); opacity: .8; mix-blend-mode: multiply; text-shadow: none;
  -webkit-mask-image: var(--grunge); mask-image: var(--grunge);
}
.mini-stamp--green { color: var(--green); }
.mini-stamp--blue { color: var(--blue); }

/* ---------- redaction ---------- */

.rd, .bar {
  background: var(--ink); color: var(--ink); border-radius: 1px; font-weight: inherit;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; text-shadow: none;
}
.rd { cursor: help; padding: 0 .1em; transition: background .25s, color .25s; }
.rd::selection, .rd *::selection, .bar::selection { background: var(--ink); color: var(--ink); }
.rd:hover, .rd:focus, .rd.open { background: rgba(255,214,0,.42); color: var(--ink); outline: none; }
.rd--deep { position: relative; }
.rd--deep:hover, .rd--deep:focus, .rd--deep.open { background: var(--ink); color: var(--ink); }
.rd--deep:hover::after, .rd--deep:focus::after, .rd--deep.open::after {
  content: "ДОПУСК НЕДОСТАТОЧЕН"; position: absolute; left: 0; bottom: calc(100% + 4px); white-space: nowrap;
  padding: 2px 6px; background: var(--red); color: #fff; font: 700 11px/1.4 var(--f-head); letter-spacing: .12em;
}
body.cleared .rd, body.cleared .rd--deep { background: rgba(30,28,23,.07); color: var(--ink); box-shadow: 0 1px 0 var(--red); }
body.cleared .rd--deep::after { content: none; }
body.cleared .rd.flash { animation: flash .6s ease-out; }
@keyframes flash { from { background: rgba(255,214,0,.8); } }

/* ---------- sections ---------- */

.sec { position: relative; margin-top: 34px; }
.sec h2 {
  margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px dashed rgba(30,28,23,.45);
  font: 700 17px/1.3 var(--f-head); letter-spacing: .16em; text-transform: uppercase;
}
.sec h2 span { color: var(--red); margin-right: 6px; }
.sec p { margin: 0 0 10px; }
.small { font-size: 13px; color: var(--ink-soft); }
.src { font-size: 13px; color: var(--ink-soft); }

a.obj { font-weight: 700; text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100%/100% 2px no-repeat; padding: 0 2px; transition: background-size .2s, color .2s; }
a.obj:hover, a.obj:focus-visible { background-size: 100% 100%; color: #fff; outline: none; }

.tasks { margin: 0; padding-left: 2.2em; }
.tasks li { margin-bottom: 6px; padding-left: 4px; }
.tasks li::marker { content: "2." counter(list-item) ".  "; font-weight: 700; }
.tasks--plain li::marker { content: counter(list-item) ".  "; }
.tasks s { text-decoration-color: var(--pen); text-decoration-thickness: 2px; }

.pen { font: 700 24px/1 var(--f-hand); color: var(--pen); text-shadow: none; }
.pen--inline { margin-left: 8px; display: inline-block; transform: rotate(-4deg); font-size: 22px; }
.hero-wrap { position: relative; }
.pen--hero { position: absolute; left: -18px; bottom: -34px; margin: 0; transform: rotate(-5deg); z-index: 2; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border: 1px solid rgba(30,28,23,.55); padding: 7px 10px; text-align: left; vertical-align: top; }
th { font: 700 12px/1.3 var(--f-head); letter-spacing: .12em; text-transform: uppercase; background: rgba(30,28,23,.06); }
.intel td:first-child { white-space: nowrap; }
.intel td:last-child { text-align: center; font-weight: 700; white-space: nowrap; }

.timer { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 10px; }
.timer-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; padding: 12px 10px 8px; border: 2px solid var(--ink); }
.timer-cell b { font: 700 34px/1 var(--f-type); letter-spacing: .04em; }
.timer-cell span { font-size: 12px; color: var(--ink-soft); }
.timer-cell--open { border-color: var(--red); }
.timer-cell--open b { color: var(--red); }
body.cleared #tDays { background: none; color: var(--red); font-size: 22px; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 180px; padding: 30px 14px 44px;
  text-decoration: none; background: linear-gradient(170deg, var(--folder), var(--folder-2)); color: #2c220f;
  border-radius: 0 6px 4px 4px; box-shadow: 0 6px 14px rgba(0,0,0,.25); transition: transform .2s, box-shadow .2s;
}
.case::before { content: ""; position: absolute; left: 0; top: -14px; width: 46%; height: 16px; background: var(--folder); border-radius: 6px 6px 0 0; }
a.case:hover, a.case:focus-visible { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 12px 22px rgba(0,0,0,.35); outline: none; }
.case-no { font: 700 12px/1 var(--f-head); letter-spacing: .18em; text-transform: uppercase; }
.case-title { font: 700 32px/1 var(--f-stencil); }
.case-text { font-size: 13px; line-height: 1.45; }
.case-go { margin-top: auto; font-weight: 700; font-size: 14px; }
.case--here { background: linear-gradient(170deg, #3b3a2e, #282720); color: #d9d2bb; }
.case--here::before { background: #3b3a2e; }

.readers .sig { font: 24px/1 var(--f-sig); color: var(--blue); text-shadow: none; }
.readers td:last-child { white-space: nowrap; }
.readers .me td { background: rgba(255,214,0,.12); }
.readers .me img { display: block; height: 42px; width: auto; }

.btn {
  padding: 8px 16px; border: 2px solid var(--ink); background: transparent; cursor: pointer;
  font: 700 13px/1.2 var(--f-head); letter-spacing: .14em; text-transform: uppercase; text-shadow: none;
  transition: background .15s, color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.btn--small { padding: 4px 10px; font-size: 11px; }
.btn--red { border-color: var(--red); color: var(--red); }
.btn--red:hover, .btn--red:focus-visible { background: var(--red); color: #fff; }
.linkish { padding: 0; border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--ink-soft); text-decoration: underline dotted; text-underline-offset: 3px; }
.linkish:hover { color: var(--red); }

.access { display: flex; gap: 10px; flex-wrap: wrap; }
.access input {
  flex: 1 1 220px; min-width: 0; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 0; background: rgba(255,255,255,.35);
  font: 700 18px/1.2 var(--f-type); letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.access input:focus { outline: 3px solid rgba(179,20,31,.35); outline-offset: 0; }
.access.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.access-msg { min-height: 1.6em; margin-top: 8px !important; font-weight: 700; color: var(--red); }
.access-msg.ok { color: var(--green); }

/* ---------- sticky notes ---------- */

.note {
  position: absolute; z-index: 4; width: 190px; padding: 16px 16px 14px;
  background: linear-gradient(175deg, var(--note), #eed35f); color: #2b2510;
  font: 700 21px/1.15 var(--f-hand); text-shadow: none;
  box-shadow: 0 10px 18px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.2);
}
.note::before { content: ""; position: absolute; left: 50%; top: -9px; width: 72px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(255,255,255,.45); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.note p { margin: 0; }
.note b { color: var(--pen); }
.note-code { margin-top: 8px !important; font-size: 23px; letter-spacing: 0; word-spacing: -.08em; white-space: nowrap; }
.note--safe { right: -150px; top: 330px; transform: rotate(5deg); }
.note--morse { left: -170px; bottom: 360px; transform: rotate(-6deg); background: linear-gradient(175deg, var(--note-2), #efb3b7); }

/* ---------- footer ---------- */

.doc-foot { position: relative; margin-top: 44px; padding-top: 16px; border-top: 1px solid rgba(30,28,23,.4); font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.foot-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.ink { margin: 18px 0 0; color: transparent; text-shadow: none; font-size: 12px; }
.ink::selection { background: var(--ink); color: var(--amber); }

.disclaimer { position: relative; margin: 44px auto 0; max-width: 640px; text-align: center; font-size: 12px; color: #8d8672; }

/* ---------- toasts, modals, overlay ---------- */

.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  padding: 10px 14px; background: #0e0e0a; color: #e8dfc4; border-left: 4px solid var(--red);
  font: 13px/1.45 var(--f-type); box-shadow: 0 8px 24px rgba(0,0,0,.5);
  animation: toastIn .25s ease-out; transition: opacity .4s, transform .4s;
}
.toast b { color: var(--amber); font-weight: 700; }
.toast.out { opacity: 0; transform: translateX(-20px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(8,8,6,.72); }
.modal-card { width: min(580px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; background: var(--paper); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.modal-h { margin: 0 0 6px; font: 700 18px/1.3 var(--f-head); letter-spacing: .16em; text-transform: uppercase; }
.modal-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
#sigPad { display: block; width: 100%; height: auto; margin-top: 10px; background: #fbf6e6; border: 2px dashed rgba(30,28,23,.4); touch-action: none; cursor: crosshair; }
.found-list { margin: 10px 0 0; padding-left: 2em; font-size: 14px; }
.found-list li { margin: 3px 0; }
.found-list .no { color: transparent; background: var(--ink); }

.overlay {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; text-align: center;
  background: rgba(6,6,4,.92); color: #f0e7cf;
}
.overlay-big { font: 700 clamp(48px, 14vw, 140px)/1 var(--f-stencil); color: var(--red); }
.overlay-text { margin-top: 18px; font: 16px/1.6 var(--f-type); }
.overlay-mission { font: 700 clamp(34px, 8vw, 84px)/1.05 var(--f-stencil); color: var(--amber); letter-spacing: .04em; }

.dossier.burn { animation: burn 2.2s ease-in forwards; }
@keyframes burn {
  0% { filter: none; }
  40% { filter: sepia(1) brightness(.7) contrast(1.4); }
  100% { filter: sepia(1) brightness(0) contrast(2); opacity: 0; transform: rotate(-.4deg) scale(.96) translateY(40px); }
}

/* ---------- boot sequence ---------- */

.boot { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: #070805; color: #9fdc7c; cursor: pointer; }
.boot-log { margin: 0 auto; width: min(640px, 100%); font: 14px/1.7 var(--f-type); white-space: pre-wrap; text-shadow: 0 0 6px rgba(120,220,90,.5); }
.boot-log .warn { color: var(--amber); }
.boot-skip { margin: 24px auto 0; width: min(640px, 100%); font: 12px var(--f-type); color: #4e6a40; }
.boot.done { opacity: 0; transition: opacity .45s; pointer-events: none; }

.print-only { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .desk { overflow: hidden; }
  .note { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 26px 0 0 auto; }
  .note--morse { margin: 26px auto 0 0; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .desk { padding: 34px 12px 28px; }
  .folder { left: 14px; right: -6px; top: 22px; }
  .dossier { padding: 38px 18px 30px 30px; transform: none; }
  .holes { left: 8px; }
  .holes i { width: 12px; height: 12px; }
  .clip { left: 60px; }
  .doc-head { flex-direction: column; gap: 14px; }
  .grif { text-align: left; }
  .led-row { justify-content: flex-start; }
  .approve { margin-left: 0; }
  .stamp { position: relative; right: auto; top: auto; display: table; margin: 18px auto 0; font-size: 19px; }
  .pen--hero { position: static; display: block; margin-top: 10px; text-align: center; }
  .cases { grid-template-columns: 1fr; }
  .coffee { right: 10px; bottom: 260px; width: 110px; height: 110px; }
  .intel td:first-child { white-space: normal; }
  .timer { gap: 8px; }
  .timer-cell { min-width: 0; flex: 1; padding: 10px 4px 6px; }
  .timer-cell b { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; }
  .stamp.slam, .dossier.thud, .clip.falling { animation: none; }
}

@media print {
  body { background: #fff; }
  .topo, .ribbon, .folder, .note, .clip, .coffee, .foot-actions, .toasts, .disclaimer, .led-row, .boot { display: none !important; }
  .dossier { box-shadow: none; transform: none; padding: 0; background: #fff; }
  .dossier::before { content: "КОПИЯ"; position: fixed; inset: 0; display: grid; place-items: center; background: none; opacity: .08; font: 700 180px/1 var(--f-stencil); transform: rotate(-30deg); mix-blend-mode: normal; }
  .print-only { display: block; margin-top: 24px; font-size: 12px; text-align: center; border-top: 1px dashed #000; padding-top: 8px; }
}
