:root {
  --ink: #f0e6d4;
  --muted: #b8a990;
  --panel: rgba(18, 16, 12, 0.82);
  --line: rgba(200, 180, 140, 0.35);
  --accent: #c4a35a;
  --danger: #e08a7a;
  --font: "Segoe UI", Tahoma, Arial, sans-serif;
  --btn-bg: rgba(196, 163, 90, 0.25);
  --btn-bg-hover: rgba(196, 163, 90, 0.4);
  --btn-border: rgba(196, 163, 90, 0.55);
  --btn-ink: #f0e6d4;
  --btn-ink-on-paper: #1a1510;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: #0e0c0a;
}

.site-page { min-height: 100vh; }

.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
}

.gsk-inside-page {
  overflow-x: hidden;
}

.gsk-scene {
  min-height: 92vh;
}

.clue-rail {
  position: relative;
  z-index: 1;
  background: #0e0c0a;
  padding: 28px 16px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.clue-rail figure {
  width: min(720px, 100%);
  margin: 0;
}

.clue-rail img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  background: #1a1612;
}

.clue-rail figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.clue-rail-wide figure {
  width: min(1040px, 100%);
}

.clue-rail-note {
  width: min(1040px, 100%);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.photo-flip-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

.photo-flip {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.look-dock .photo-flip-btn,
.photo-flip-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  appearance: none;
  -webkit-appearance: none;
  opacity: 0.9;
  border: 2px solid #fff4c2;
  background: #ffd24a;
  background-color: #ffd24a;
  color: #1a1200;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 2px;
  pointer-events: auto;
  filter: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 3px 12px rgba(0, 0, 0, 0.55);
}

.look-dock .photo-flip-btn:hover,
.look-dock .photo-flip-btn:focus-visible,
.photo-flip-btn:hover,
.photo-flip-btn:focus-visible {
  background: #ffe66e;
  background-color: #ffe66e;
  border-color: #ffffff;
  color: #100a00;
  opacity: 0.95;
  filter: none;
  outline: none;
}

.photo-flip-front {
  position: relative;
  display: block;
  transition: opacity 0.35s ease;
}

.photo-flip-front img,
.photo-flip-back img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  background: #1a1612;
}

.photo-flip-front img {
  height: auto;
}

.photo-flip-back img {
  height: 100%;
  object-fit: cover;
}

.photo-flip-back {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.photo-flip.is-flipped .photo-flip-front {
  opacity: 0;
}

.photo-flip.is-flipped .photo-flip-back {
  opacity: 1;
}

.look-compact {
  min-height: 0;
}

.look-compact .look-photo {
  flex: 0 0 auto;
}

.vetrova-foto-card {
  width: 100%;
  margin: 16px 0 20px;
}

.vetrova-foto-card figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .photo-flip-front,
  .photo-flip-back {
    transition: none;
  }
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--scene-image);
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.05);
}

.scene-fixed-bg .scene-bg {
  position: fixed;
}

.scene-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 4, 0.85) 0%, rgba(8, 6, 4, 0.25) 45%, rgba(8, 6, 4, 0.35) 100%);
}

/* Картинка целиком, текст под ней; кружки закреплены на кадре фото */
.look {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.look-photo {
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080706;
}

.look-photo-frame {
  --ar: 1.5;
  --max-h: min(72vh, 860px);
  position: relative;
  display: inline-block;
  line-height: 0;
  width: min(100%, calc(var(--max-h) * var(--ar)));
  max-width: 100%;
  aspect-ratio: var(--ar);
}

.look-photo img,
.look-photo-frame img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 860px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.look-photo-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
}

.look-admin {
  left: 80%;
  top: 26%;
}

.look-smoke {
  left: 66%;
  top: 46%;
}

.look-parking {
  left: 86%;
  top: 62%;
}

.look-kpp {
  left: 48%;
  top: 84%;
  flex-direction: column-reverse;
}

.look-church-door {
  left: 34%;
  top: 50%;
}

.look-church-stairs {
  left: 86%;
  top: 58%;
}

.look-church-cave {
  left: 16%;
  top: 82%;
  flex-direction: column-reverse;
}

.look-crime-up {
  left: 58%;
  top: 18%;
}

.look-crime-church {
  left: 84%;
  top: 72%;
  flex-direction: column-reverse;
}

.look-smotrovaya-down {
  left: 22%;
  top: 48%;
}

.look-smotrovaya-cave {
  left: 52%;
  top: 62%;
}

.look-altar-open {
  left: 50%;
  top: 58%;
}

.look-parking-mercedes {
  left: 72%;
  top: 68%;
}

.mercedes-trunk-try {
  left: 50%;
  top: 52%;
}

.mercedes-trunk-try.is-locked .hotspot-ring {
  border-color: rgba(180, 90, 70, 0.9);
  background: rgba(180, 90, 70, 0.22);
  animation: none;
}

.mercedes-trunk-try.is-locked .hotspot-label {
  color: #ffd7c8;
  border-color: rgba(200, 120, 90, 0.55);
}

.look-gsk-box {
  left: 74%;
  top: 56%;
}

.sokolov-map {
  left: 35%;
  top: 24%;
}

.look-dock {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--line);
  background: #0e0c0a;
}

.look-dock h1 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent);
}

.look-dock .hint {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 12px;
}

.look-who {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 10px;
}

.look-speech {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 12px;
}

.look-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.look-links-actions {
  margin-bottom: 10px;
}

.look-links-near {
  margin-bottom: 14px;
  padding-top: 2px;
}

.look-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.look-box {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  padding: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 14px;
}

.look-box p {
  margin: 0 0 8px;
}

.look-box p:last-child {
  margin-bottom: 0;
}

.look-box-kicker {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.look-dock .reply {
  margin: 4px 0 12px;
}

.unwrap-clue {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  max-width: 420px;
}

.unwrap-clue summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
}

.unwrap-clue summary::-webkit-details-marker {
  display: none;
}

.unwrap-clue[open] summary {
  margin-bottom: 8px;
}

.unwrap-photo {
  margin: 8px 0 0;
}

.unwrap-photo img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border: 1px solid var(--line);
}

.unwrap-photo figcaption {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.unwrap-shot {
  margin: 12px 0 14px;
  width: 100%;
  max-width: none;
}

.unwrap-shot-frame {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #000;
}

.unwrap-shot-frame > img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.unwrap-shot figcaption {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.unwrap-on-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.unwrap-on-photo-btn {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  margin: 0;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(255, 236, 190, 0.55);
  border-radius: 999px;
  background: rgba(18, 14, 10, 0.78);
  color: #f3e6c8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.unwrap-on-photo-btn::-webkit-details-marker {
  display: none;
}

.unwrap-on-photo-btn:hover,
.unwrap-on-photo-btn:focus-visible {
  background: rgba(40, 30, 18, 0.9);
  border-color: rgba(255, 220, 150, 0.85);
}

.unwrap-on-photo[open] .unwrap-on-photo-btn {
  top: 10px;
  left: auto;
  right: 10px;
  transform: none;
  font-size: 0.75rem;
  padding: 6px 12px;
}

.unwrap-on-photo[open] .unwrap-on-photo-btn::after {
  content: " · закрыть";
  font-weight: 500;
  opacity: 0.85;
}

.unwrap-on-photo-panel {
  pointer-events: auto;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 48px 10px 12px;
  background: rgba(8, 6, 4, 0.94);
  color: #e8dfd0;
  overflow: auto;
}

.unwrap-on-photo-panel p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #d9d0bf;
}

.unwrap-on-photo-panel img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100% - 8px);
  object-fit: contain;
  background: #111;
  border: 1px solid var(--line);
}

.unwrap-on-photo-cap {
  font-size: 0.75rem !important;
  color: var(--muted) !important;
}

.accuse-block {
  margin: 14px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
  max-width: 420px;
}

.accuse-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 12px;
}

.look-dock form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin-bottom: 12px;
}

.look-dock form > label {
  font-size: 0.9rem;
  color: var(--muted);
}

.look-dock input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(30, 26, 20, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

.look-dock input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Единый стиль игровых кнопок (навигация, действия, submit в доке) */
.site-page .primary-link,
.site-page a.back,
.site-page button.back,
.look-dock button:not(.hotspot):not(.photo-flip-btn),
.panel button:not(.hotspot),
.journal-links a.back,
.journal-flip,
.pc-bar a.back,
.cs-back-btn,
.btn-back {
  display: inline-block;
  padding: 8px 14px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 4px;
  color: var(--btn-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.site-page .primary-link:hover,
.site-page a.back:hover,
.site-page button.back:hover,
.look-dock button:not(.hotspot):not(.photo-flip-btn):hover,
.panel button:not(.hotspot):hover,
.journal-links a.back:hover,
.journal-flip:hover:not(:disabled),
.pc-bar a.back:hover,
.cs-back-btn:hover,
.btn-back:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-ink);
  filter: none;
  text-decoration: none;
}

.site-page .primary-link-cta {
  flex: 1 1 100%;
  padding: 12px 18px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(196, 163, 90, 0.55);
  border-color: rgba(230, 200, 120, 0.9);
  color: #fff8e8;
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.35);
}

.site-page .primary-link-cta:hover {
  background: rgba(196, 163, 90, 0.75);
  color: #fffdf5;
  border-color: #e8d090;
}

.site-page .primary-link-hint {
  flex: 1 1 100%;
  padding: 10px 16px;
  font-weight: 700;
  background: rgba(120, 150, 170, 0.35);
  border-color: rgba(160, 190, 210, 0.7);
  color: #e8f2f8;
}

.site-page .primary-link-hint:hover {
  background: rgba(120, 150, 170, 0.55);
  color: #f4faff;
  border-color: rgba(190, 215, 230, 0.9);
}

.pryamye-confirm {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 5, 4, 0.72);
}

.pryamye-confirm[hidden] {
  display: none !important;
}

.pryamye-confirm-box {
  width: min(440px, 100%);
  padding: 24px 22px 20px;
  background: #f4f0e6;
  border: 1px solid #6a5030;
  text-align: center;
  color: #1a1814;
}

.pryamye-confirm-title {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.45;
}

.pryamye-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pryamye-confirm-yes,
.pryamye-confirm-no {
  appearance: none;
  min-width: 9rem;
  padding: 10px 16px;
  font: 0.82rem/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
}

.pryamye-confirm-yes {
  color: #fff;
  background: #6a5030;
  border: 1px solid #6a5030;
}

.pryamye-confirm-no {
  color: #6a5030;
  background: #fff;
  border: 1px solid #c8c0b0;
}

.pryamye-confirm-yes:hover,
.pryamye-confirm-yes:focus-visible {
  background: #543e24;
  border-color: #543e24;
}

.pryamye-confirm-no:hover,
.pryamye-confirm-no:focus-visible {
  background: #f3eee3;
}

.accuse-confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 5, 4, 0.72);
}

.accuse-confirm[hidden] {
  display: none !important;
}

.accuse-confirm-box {
  width: min(420px, 100%);
  padding: 22px 20px 18px;
  background: #14110e;
  border: 1px solid rgba(200, 180, 140, 0.45);
  text-align: center;
}

.accuse-confirm-title {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--ink);
}

.accuse-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.accuse-confirm-actions .primary-link,
.accuse-confirm-actions .primary-link-cta {
  flex: 1 1 auto;
  min-width: 110px;
}

.site-page .primary-link:focus-visible,
.site-page a.back:focus-visible,
.site-page button.back:focus-visible,
.look-dock button:not(.hotspot):not(.photo-flip-btn):focus-visible,
.panel button:not(.hotspot):focus-visible,
.journal-links a.back:focus-visible,
.journal-flip:focus-visible,
.pc-bar a.back:focus-visible,
.cs-back-btn:focus-visible,
.btn-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dopros-page .primary-link,
.dopros-page a.back,
.journal-links a.back,
.journal-flip {
  color: var(--btn-ink-on-paper);
}

.dopros-page .primary-link:hover,
.dopros-page a.back:hover,
.journal-links a.back:hover,
.journal-flip:hover:not(:disabled) {
  color: var(--btn-ink-on-paper);
}

@media (max-width: 700px) {
  .look-photo img { max-height: 52vh; }
  .look-photo-frame { --max-h: 52vh; }
  .look-dock { padding: 14px 14px 24px; }
  .look-dock h1 { font-size: 1.15rem; }
  .hotspot-ring { width: 40px; height: 40px; }
  .hotspot-label { font-size: 0.72rem; padding: 5px 8px; }
}

.church-interior-scene .scene-bg {
  background-image: var(--scene-image);
  background-size: cover;
  background-position: center;
  filter: saturate(0.88) contrast(1.06) brightness(0.92);
}

.church-interior-scene .scene-bg::after {
  background: linear-gradient(
    to top,
    rgba(8, 6, 4, 0.88) 0%,
    rgba(8, 6, 4, 0.28) 42%,
    rgba(8, 6, 4, 0.38) 100%
  );
}

.church-bag {
  left: 58%;
  top: 66%;
}

.notebook-page {
  margin: 12px 0 4px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.notebook-page p {
  margin: 0 0 10px;
}

.notebook-page p:last-child {
  margin-bottom: 0;
}

.panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 22px 20px;
  backdrop-filter: blur(6px);
}

.place {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.panel h1 {
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--accent);
}

.panel form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel form > label {
  font-size: 0.9rem;
  color: var(--muted);
}

.panel input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(30, 26, 20, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

.panel input:focus {
  outline: none;
  border-color: var(--accent);
}

.phone-time-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-time-wrap[hidden] {
  display: none;
}

.phone-time-wrap label {
  font-size: 0.82rem;
  color: var(--muted);
}

.err {
  color: var(--danger);
  font-size: 0.95rem;
  margin-top: 14px;
  line-height: 1.4;
}

.reply {
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.reply.err {
  color: var(--danger);
}

.reply.ok {
  color: #9ecf9a;
  font-weight: 600;
}

.hint {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.45;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.home main {
  max-width: 480px;
}

.home h1 {
  color: var(--accent);
  margin-bottom: 16px;
}

.home a {
  color: var(--ink);
  font-size: 1.1rem;
}

.home li {
  list-style: none;
  margin-bottom: 10px;
}

@media (min-width: 800px) {
  .scene {
    align-items: center;
    justify-content: flex-end;
    padding: 40px 8vw;
  }
  .panel {
    width: min(400px, 36vw);
  }
}

/* —— Заставка / как играть —— */
html.splash-skip .splash {
  display: none;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #070605;
  cursor: default;
  overflow: hidden;
}

.splash.is-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background-image: var(--splash-image);
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.06);
  animation: splash-drift 18s ease-out forwards;
}

.splash-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 4, 3, 0.96) 0%, rgba(6, 4, 3, 0.72) 28%, rgba(6, 4, 3, 0.32) 52%, rgba(6, 4, 3, 0.28) 72%, rgba(6, 4, 3, 0.5) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
}

@keyframes splash-drift {
  from { transform: scale(1.08); }
  to { transform: scale(1.0); }
}

.splash-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px 6vh;
  max-width: 720px;
  pointer-events: none;
}

.splash-case {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c4a35a;
  font-weight: 600;
}

.splash-kicker {
  margin: 0 0 8px;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: #cbb89a;
}

.splash-copy h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #f3ead8;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
  line-height: 0.95;
}

.splash-how {
  margin: 0 0 16px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c4a35a;
}

.splash-points {
  list-style: none;
  margin: 0 auto 28px;
  padding: 0;
  max-width: 36em;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #d4c6ae;
}

.splash-points li {
  margin: 0 0 10px;
  padding-left: 1.1em;
  position: relative;
}

.splash-points li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #c4a35a;
}

.splash-points b {
  color: #f3ead8;
  font-weight: 600;
}

.splash-points a {
  pointer-events: auto;
  color: #c4a35a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.splash-points a:hover,
.splash-points a:focus {
  color: #f3ead8;
}

.splash-start {
  pointer-events: auto;
  appearance: none;
  border: 1px solid #c4a35a;
  background: rgba(12, 10, 8, 0.55);
  color: #f3ead8;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.splash-start:hover,
.splash-start:focus {
  background: #c4a35a;
  color: #1a1610;
  outline: none;
}

@media (max-width: 700px) {
  .splash-copy { padding-bottom: 5vh; }
  .splash-copy h1 { letter-spacing: 0.04em; }
  .splash-points { font-size: 0.86rem; }
}

/* —— PIN-вход (как кабинет в «Седом Хребте») —— */
.cabinet-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #070605;
  position: relative;
  overflow: hidden;
}

.cabinet-bg {
  position: absolute;
  inset: 0;
  background-image: var(--cabinet-image);
  background-size: cover;
  background-position: center 42%;
  filter: saturate(0.88) contrast(1.05);
  transform: scale(1.04);
  pointer-events: none;
}

.cabinet-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 4, 3, 0.92) 0%, rgba(6, 4, 3, 0.55) 45%, rgba(6, 4, 3, 0.7) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(0, 0, 0, 0.4) 100%);
}

.cabinet-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 28px;
  text-align: center;
  border: 1px solid rgba(196, 163, 90, 0.45);
  background: rgba(12, 10, 8, 0.72);
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.cabinet-case {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c4a35a;
  font-weight: 600;
}

.cabinet-kicker {
  margin: 0 0 8px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #cbb89a;
}

.cabinet-box h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #f3ead8;
  line-height: 1;
}

.cabinet-hint {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: #d4c6ae;
  line-height: 1.4;
}

.cabinet-gate {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.cabinet-pin-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c4a35a;
  text-align: left;
}

.cabinet-pin {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(196, 163, 90, 0.65);
  background: rgba(8, 6, 5, 0.75);
  color: #e8d9b0;
  font: 600 1.15rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.42em;
  text-align: center;
  padding: 12px 14px 12px 22px;
  border-radius: 2px;
}

.cabinet-pin::placeholder {
  color: rgba(196, 163, 90, 0.4);
  letter-spacing: 0.42em;
}

.cabinet-pin:focus {
  outline: none;
  border-color: #c4a35a;
}

.cabinet-go {
  appearance: none;
  border: 1px solid #c4a35a;
  background: rgba(12, 10, 8, 0.55);
  color: #f3ead8;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.cabinet-go:hover,
.cabinet-go:focus {
  background: #c4a35a;
  color: #1a1610;
  outline: none;
}

.cabinet-err {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: #e8a0a0;
}

.cabinet-foot {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(196, 163, 90, 0.25);
  font-size: 0.85rem;
  color: #a89880;
}

.cabinet-foot a {
  color: #c4a35a;
  text-underline-offset: 3px;
}

.cabinet-foot a:hover {
  color: #f3ead8;
}

/* —— Карта —— */
.map-page {
  min-height: 100vh;
  background: #0a0908;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.map-stage {
  width: min(100%, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.map-wrap {
  position: relative;
  width: min(100%, 1200px);
  line-height: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.map-stage .map-wrap {
  width: 100%;
}

.map-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.map-hints-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.map-hints {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff8ea;
  background: rgba(12, 10, 8, 0.86);
  border: 1px solid rgba(196, 163, 90, 0.65);
  padding: 10px 18px;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.map-hints:hover,
.map-hints:focus-visible {
  background: #c4a35a;
  color: #1a1610;
  outline: none;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  text-decoration: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.map-pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c43c3c;
  border: 2px solid #fff6e8;
  box-shadow: 0 0 0 3px rgba(196, 60, 60, 0.35), 0 2px 8px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.map-pin:hover .map-pin-dot,
.map-pin:focus .map-pin-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(196, 163, 90, 0.45), 0 2px 10px rgba(0, 0, 0, 0.6);
}

.map-pin-above {
  flex-direction: column-reverse;
}

.map-pin-left {
  flex-direction: row-reverse;
  gap: 6px;
  /* точка на координатах пина; подпись сразу слева, не уезжает в лес */
  transform: translate(calc(-100% + 9px), -50%);
}

.map-pin-right {
  flex-direction: row;
  gap: 6px;
  transform: translate(-9px, -50%);
}

.map-pin-left .map-pin-label,
.map-pin-right .map-pin-label {
  white-space: nowrap;
}

.map-pin-label {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.25;
  color: #fff8ea;
  background: rgba(12, 10, 8, 0.82);
  border: 1px solid rgba(200, 180, 140, 0.35);
  padding: 3px 7px;
  border-radius: 3px;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  max-width: 150px;
}

.map-pin-label .lbl-short {
  display: none;
}

@media (max-width: 700px) {
  .map-page {
    padding: 8px;
    align-items: flex-start;
  }

  .map-stage,
  .map-wrap {
    width: 100%;
  }

  .map-hints {
    font-size: 0.78rem;
    padding: 10px 16px;
  }

  .map-pin {
    gap: 0;
    z-index: 2;
  }

  .map-pin-dot {
    width: 12px;
    height: 12px;
    border-width: 1.5px;
  }

  /* Подписи абсолютно — не раздувают соседние пины */
  .map-pin-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 3px);
    transform: translateX(-50%);
    font-size: 0.58rem;
    line-height: 1.15;
    max-width: 72px;
    padding: 2px 5px;
    white-space: normal;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  }

  .map-pin-label .lbl-full {
    display: none;
  }

  .map-pin-label .lbl-short {
    display: inline;
  }

  .map-pin-above,
  .map-pin-left,
  .map-pin-right {
    flex-direction: column;
    transform: translate(-50%, -50%);
  }

  .map-pin-above .map-pin-label {
    top: auto;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
  }

  .map-pin-left .map-pin-label {
    top: 50%;
    left: auto;
    right: calc(100% + 4px);
    bottom: auto;
    transform: translateY(-50%);
    max-width: 78px;
    white-space: nowrap;
  }

  .map-pin-right .map-pin-label {
    top: 50%;
    left: calc(100% + 4px);
    right: auto;
    bottom: auto;
    transform: translateY(-50%);
    max-width: 78px;
    white-space: nowrap;
  }

  .map-pin:hover,
  .map-pin:focus-visible,
  .map-pin.is-open {
    z-index: 40;
  }

  .map-pin:hover .map-pin-label,
  .map-pin:focus-visible .map-pin-label,
  .map-pin.is-open .map-pin-label {
    font-size: 0.72rem;
    max-width: none;
    white-space: nowrap;
    background: rgba(12, 10, 8, 0.94);
    border-color: rgba(196, 163, 90, 0.55);
  }

  .map-pin:hover .map-pin-label .lbl-full,
  .map-pin:focus-visible .map-pin-label .lbl-full,
  .map-pin.is-open .map-pin-label .lbl-full {
    display: inline;
  }

  .map-pin:hover .map-pin-label .lbl-short,
  .map-pin:focus-visible .map-pin-label .lbl-short,
  .map-pin.is-open .map-pin-label .lbl-short {
    display: none;
  }
}

@media (max-width: 420px) {
  /* Короткие подписи видны сразу — один тап открывает локацию */
  .map-pin-label {
    opacity: 1;
    visibility: visible;
    font-size: 0.55rem;
    max-width: 64px;
  }
}

/* —— Компьютерный клуб —— */
.club-page .panel.mini {
  width: min(320px, 90vw);
  padding: 16px 18px;
}

.club-page .hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 12px;
}

.forester-yard-scene {
  align-items: flex-end;
}

.forester-door {
  left: 74%;
  top: 46%;
}

.forester-car {
  left: 36%;
  top: 52%;
}

.forester-yard-panel {
  width: min(380px, 100%);
}

.hotspot {
  position: absolute;
  z-index: 3;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
}

button.hotspot {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.hotspot-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px dashed rgba(196, 163, 90, 0.85);
  background: rgba(196, 163, 90, 0.12);
  animation: hotspot-pulse 2s ease-in-out infinite;
}

.hotspot:hover .hotspot-ring {
  background: rgba(196, 163, 90, 0.28);
  border-style: solid;
}

.hotspot-label {
  font-size: 0.84rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: #fff8ea;
  background: rgba(12, 10, 8, 0.78);
  border: 1px solid rgba(200, 180, 140, 0.35);
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.pc-seat {
  left: 82%;
  top: 76%;
}

.director-door {
  left: 72%;
  top: 46%;
}

.base-smoke {
  left: 78%;
  top: 38%;
}

.accountant-desk {
  left: 80%;
  top: 62%;
}

.kpp-gate {
  left: 18%;
  top: 82%;
}

.frequencies-board {
  left: 8%;
  top: 38%;
}

.kpp-scene {
  align-items: flex-end;
}

.kpp-weather {
  left: 13%;
  top: 28%;
}

.kpp-radio {
  left: 16%;
  top: 40%;
}

.kpp-radio.is-on .hotspot-ring {
  border-style: solid;
  background: rgba(196, 163, 90, 0.38);
  box-shadow: 0 0 0 6px rgba(196, 163, 90, 0.22), 0 0 16px rgba(220, 160, 70, 0.55);
  animation: none;
}

.kpp-journal {
  left: 44%;
  top: 78%;
  flex-direction: column-reverse;
}

.kpp-camera {
  left: 84%;
  top: 32%;
}

.base-parking {
  left: 58%;
  top: 78%;
}

.hall-lockers {
  left: 72%;
  top: 46%;
}

.hall-lockers-vetrova {
  left: 60.4%;
  top: 33.8%;
}

.hall-lockers-kruglov {
  left: 66.2%;
  top: 33.2%;
}

.vetrova-foto {
  left: 64.3%;
  top: 25.5%;
}

.orlov-keys {
  left: 34%;
  top: 31%;
}

#foto {
  scroll-margin-top: 28px;
}

.hall-door {
  left: 64%;
  top: 40%;
}

.office-pc {
  left: 50%;
  top: 56%;
}

.office-mouse {
  left: 62%;
  top: 68%;
}

.office-freq {
  left: 16%;
  top: 26%;
}

.office-smoke {
  left: 88%;
  top: 30%;
}

.office-stand {
  left: 22%;
  top: 76%;
}

.office-phone {
  left: 66%;
  top: 72%;
}

.office-hall {
  left: 90%;
  top: 72%;
}

.clue-rail-reveal {
  display: none;
}

.clue-rail-reveal:target {
  display: flex;
  scroll-margin-top: 24px;
}

.hall-office {
  left: 30%;
  top: 52%;
}

.hall-acc {
  left: 86%;
  top: 55%;
}

.hall-safe {
  left: 47%;
  top: 36%;
}

.hall-plan {
  position: absolute;
  z-index: 3;
  left: 69%;
  top: 28%;
  width: clamp(76px, 9vw, 126px);
  color: inherit;
  text-decoration: none;
  transform: translate(-50%, -50%) perspective(500px) rotateY(-7deg);
}

.hall-plan-frame {
  display: block;
  padding: 5px;
  background: #e9e5d5;
  border: 4px solid #61533e;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.65);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hall-plan-title,
.hall-plan-marker {
  display: block;
  color: #213d32;
  font: 700 clamp(5px, 0.48vw, 8px)/1.2 Arial, sans-serif;
  text-align: center;
  letter-spacing: 0.06em;
}

.hall-plan-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 3px 0;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.05);
}

.hall-plan-marker {
  color: #b51e18;
}

.hall-plan > .hotspot-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
}

.hall-plan:hover .hall-plan-frame,
.hall-plan:focus-visible .hall-plan-frame {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.5), 0 5px 12px rgba(0, 0, 0, 0.75);
}

.plan-smoke {
  left: 14%;
  top: 52%;
}

.plan-office {
  left: 30%;
  top: 40%;
}

.plan-hall {
  left: 48%;
  top: 62%;
}

.plan-lockers {
  left: 58%;
  top: 48%;
}

.plan-lockers-vetrova {
  left: 60%;
  top: 49%;
}

.plan-lockers-kruglov {
  left: 66%;
  top: 52%;
}

.plan-safe {
  left: 48%;
  top: 20%;
}

.plan-acc {
  left: 74%;
  top: 40%;
}

.accountant-pills {
  left: 76%;
  top: 70%;
  flex-direction: column-reverse;
}

.gromov-hand {
  left: 58%;
  top: 54%;
}

.icq-item.unread {
  background: #fff8d0;
}

.icq-new {
  font-size: 9px;
  font-weight: bold;
  color: #a00;
  text-transform: uppercase;
}

.icq-toast {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #316ac5;
  color: #fff;
  font: 12px Tahoma, sans-serif;
  padding: 8px 14px;
  border: 1px solid #1f4a8c;
  box-shadow: 2px 2px 0 #0006;
}

/* Магнитофон: кружок закреплён на кадре фото бокса. */
.gsk-scene {
  --tape-x: 16.8%;
  --tape-y: 64.5%;
}

.gsk-scene .scene-bg {
  background-size: cover;
  background-position: var(--tape-x) var(--tape-y);
}

.gsk-tape {
  left: 17%;
  top: 72%;
}

.gsk-tape.is-on .hotspot-ring,
.gsk-tape-photo.is-on .hotspot-ring {
  border-style: solid;
  background: rgba(196, 163, 90, 0.38);
  box-shadow: 0 0 0 6px rgba(196, 163, 90, 0.22), 0 0 16px rgba(220, 160, 70, 0.55);
  animation: none;
}

.gsk-tape-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.gsk-tape-photo img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  background: #1a1612;
}

.gsk-tape-photo .hotspot-ring {
  position: absolute;
  left: 40%;
  top: 62%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.gsk-tape-photo .hotspot-label {
  position: absolute;
  left: 40%;
  top: calc(62% + 34px);
  transform: translateX(-50%);
}

.gsk-tape-photo:hover .hotspot-ring {
  background: rgba(196, 163, 90, 0.28);
  border-style: solid;
}

.radio-now {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0 0 12px;
}

.shimono-journal {
  left: 68%;
  top: 55%;
}

.hospital-poster {
  left: 80.8%;
  top: 27.8%;
}

.kpp-panel {
  width: min(440px, 100%);
}

.forester-room-scene {
  align-items: flex-end;
}

.forester-tv {
  left: 10%;
  top: 48%;
}

.forester-table {
  left: 46%;
  top: 62%;
}

.forester-wardrobe {
  left: 86%;
  top: 42%;
}

.forester-room-panel {
  width: min(360px, 100%);
}

.scene-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

@keyframes hotspot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 163, 90, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(196, 163, 90, 0); }
}

.pc-screen-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  padding: 12px 12px 48px;
}

.pc-screen-frame {
  position: relative;
  display: inline-block;
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 60px);
}

.pc-screen-img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 60px);
  width: auto;
  height: auto;
  display: block;
  user-select: none;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.desktop-hotspot {
  position: absolute;
  display: block;
  z-index: 3;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.desktop-hotspot:hover,
.desktop-hotspot:focus {
  border-color: rgba(255, 255, 200, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

/* CS, Форум, ICQ, Поисковик — comp.jpg 1407×768 */
.cs-icon {
  left: 21.32%;
  top: 44.51%;
  width: 7.75%;
  height: 14.4%;
}

.forum-icon {
  left: 31.98%;
  top: 44.51%;
  width: 7.04%;
  height: 14.4%;
}

.icq-icon {
  left: 31.98%;
  top: 25.9%;
  width: 7.04%;
  height: 14.4%;
}

.trash-icon {
  left: 31.98%;
  top: 7.29%;
  width: 7.04%;
  height: 14.4%;
}

.search-icon {
  left: 20.61%;
  top: 64.42%;
  width: 9.17%;
  height: 16.8%;
}

@media (max-width: 700px) {
  .cs-icon {
    left: 21.32%;
    top: 44.51%;
    width: 7.75%;
    height: 14.4%;
  }
  .forum-icon {
    left: 31.98%;
    top: 44.51%;
    width: 7.04%;
    height: 14.4%;
  }
  .icq-icon {
    left: 31.98%;
    top: 25.9%;
    width: 7.04%;
    height: 14.4%;
  }
  .trash-icon {
    left: 31.98%;
    top: 7.29%;
    width: 7.04%;
    height: 14.4%;
  }
  .search-icon {
    left: 20.61%;
    top: 64.42%;
    width: 9.17%;
    height: 16.8%;
  }
}

/* —— Поисковик (IE ~2000) —— */
.search-page {
  min-height: 100vh;
  background: #3a6ea5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 12px 48px;
}

.search-window {
  width: min(720px, 100%);
  background: #ece9d8;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.search-titlebar {
  background: linear-gradient(90deg, #0a246a, #3a6ea5);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-titlebar-icon {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
  display: inline-block;
}

.search-toolbar {
  background: #ece9d8;
  border-bottom: 1px solid #808080;
  padding: 6px 8px;
  font-size: 11px;
  color: #000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.search-toolbar a {
  color: #000;
  text-decoration: none;
  border: 1px solid #808080;
  background: #ece9d8;
  padding: 2px 8px;
  font-size: 11px;
}

.search-toolbar a:hover {
  background: #fff;
}

.search-url {
  flex: 1;
  border: 1px inset #808080;
  background: #fff;
  color: #000;
  padding: 2px 6px;
  font-size: 11px;
  min-width: 180px;
}

.search-body {
  padding: 20px 16px 16px;
  background: #fff;
  color: #000;
}

.search-logo {
  text-align: center;
  margin-bottom: 16px;
}

.search-logo-main {
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: #003399;
  letter-spacing: 0.02em;
}

.search-logo-sub {
  font-size: 11px;
  color: #666;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-form input {
  flex: 1;
  padding: 6px 8px;
  border: 1px inset #808080;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 14px;
}

.search-form button {
  padding: 6px 16px;
  border: 1px solid #808080;
  background: #ece9d8;
  font: inherit;
  cursor: pointer;
}

.search-form button:hover {
  background: #fff;
}

.search-msg.err {
  color: #c00;
  font-size: 14px;
  margin-bottom: 12px;
}

.search-results {
  border-top: 1px solid #ccc;
  padding-top: 12px;
  margin-bottom: 12px;
}

.search-count {
  font-size: 11px;
  color: #666;
  margin-bottom: 10px;
}

.search-hit {
  margin-bottom: 14px;
}

.search-hit-title {
  font-size: 15px;
  color: #003399;
  text-decoration: underline;
}

.search-hit-title:hover {
  color: #dd6900;
}

.search-hit-url {
  display: block;
  font-size: 11px;
  color: #008000;
  margin: 2px 0 4px;
}

.search-hit-snippet {
  font-size: 12px;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

.search-hint {
  font-size: 10px;
  color: #999;
  margin: 16px 0 0;
}

.search-admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.search-admin-overlay[hidden] {
  display: none;
}

.search-admin-win {
  width: min(560px, 100%);
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

.search-admin-title {
  background: linear-gradient(90deg, #0a246a, #a6caf0);
  color: #fff;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-admin-title span {
  flex: 1;
}

.search-admin-photo {
  position: relative;
  background: #000;
}

.search-admin-photo img {
  width: 100%;
  display: block;
}

.search-admin-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffe082;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.search-admin-foot {
  text-align: center;
  padding: 8px 12px 10px;
  background: #c0c0c0;
}

.search-admin-foot button {
  min-width: 88px;
  padding: 2px 16px;
  font: 11px Tahoma, sans-serif;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
}

.pc-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(12, 10, 8, 0.92);
  border-top: 1px solid rgba(200, 180, 140, 0.25);
  z-index: 10;
}

.pc-bar-hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.cs-page .cs-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 12px 12px 48px;
}

.cs-page .cs-fullscreen img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 60px);
  width: auto;
  height: auto;
  user-select: none;
}

.cs-page .pc-bar-hint {
  color: #e8c060;
  letter-spacing: 0.04em;
}

.cs-back-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 20;
  backdrop-filter: blur(4px);
}

/* —— ACQ (Win2000 / 2000b) —— */
.icq-page {
  min-height: 100vh;
  background: #008080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  color: #000;
}

.icq-win {
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  width: min(320px, 100%);
}

.icq-win-contacts {
  width: min(280px, 100%);
}

.icq-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icq-titlebar span:nth-child(2) {
  flex: 1;
}

.icq-title-close,
.icq-title-btns button {
  width: 16px;
  height: 14px;
  line-height: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  background: #c0c0c0;
  border: 1px outset #fff;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  font-family: Tahoma, sans-serif;
}

.icq-title-btns {
  margin: 0;
}

.icq-flower {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #ffc828 32%, #e68c14 33% 70%, #283246 71%);
  background-color: #e68c14;
  flex-shrink: 0;
  display: inline-block;
  border: 1px solid #222;
}

.icq-flower.big {
  width: 40px;
  height: 40px;
}

.icq-login-body {
  padding: 14px 14px 12px;
}

.icq-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.icq-login-brand strong {
  display: block;
  font-size: 18px;
  color: #000080;
}

.icq-login-brand span {
  font-size: 10px;
  color: #444;
}

.icq-login-form label {
  display: block;
  font-size: 11px;
  margin: 8px 0 3px;
}

.icq-login-form input {
  width: 100%;
  border: 2px inset #808080;
  background: #fff;
  color: #000;
  padding: 4px 6px;
  font: 12px "Courier New", monospace;
}

.icq-err {
  color: #c00;
  font-size: 11px;
  margin-top: 10px;
}

.icq-login-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.icq-login-actions button {
  border: 2px outset #dfdfdf;
  background: #c0c0c0;
  padding: 3px 14px;
  font: 12px Tahoma, Arial, sans-serif;
  cursor: pointer;
  color: #000;
}

.icq-login-actions button:hover {
  background: #d4d0c8;
}

.icq-cancel {
  font-size: 11px;
  color: #000080;
}

.icq-toolbar {
  background: #ece9d8;
  border-bottom: 1px solid #808080;
  padding: 5px 6px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
}

.icq-toolbar a {
  color: #000;
  text-decoration: none;
  border: 1px solid #808080;
  background: #ece9d8;
  padding: 1px 6px;
}

.icq-status {
  font-size: 10px;
  padding: 4px 8px;
  background: #fff;
  border-bottom: 1px solid #808080;
  color: #333;
}

.icq-list {
  background: #fff;
  min-height: 160px;
  max-height: 260px;
  overflow: auto;
  padding: 4px 0;
}

.icq-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  font-size: 12px;
}

.icq-item:hover {
  background: #e8f0ff;
}

.icq-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #999;
  flex-shrink: 0;
}

.icq-dot.online { background: #0c0; }
.icq-dot.away { background: #fc0; }
.icq-dot.offline { background: #999; }

.icq-nick {
  font-weight: bold;
  color: #000;
}

.icq-uin {
  font-size: 10px;
  color: #555;
  font-family: "Courier New", monospace;
}

.icq-page-desk {
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 72px;
  padding-bottom: 32px;
}

a.icq-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.icq-item.active {
  background: #316ac5;
}

.icq-item.active .icq-nick,
.icq-item.active .icq-uin {
  color: #fff;
}

.icq-win-chat {
  width: min(440px, 100%);
}

.icq-log {
  background: #fff;
  height: 340px;
  overflow: auto;
  padding: 8px 10px 12px;
}

.icq-msg {
  margin: 0 0 12px;
}

.icq-msg-head {
  color: #000080;
  font-weight: bold;
  font-size: 11px;
}

.icq-msg.me .icq-msg-head {
  color: #008000;
}

.icq-msg-text {
  margin: 3px 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
}

.icq-attach {
  display: inline-block;
  margin: 8px 0 0 6px;
  border: 1px solid #808080;
  background: #ece9d8;
  padding: 4px;
  text-decoration: none;
  color: #000080;
}

.icq-attach img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.icq-attach-name {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}

.icq-compose {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #ece9d8;
  border-top: 1px solid #808080;
}

.icq-compose input {
  flex: 1;
  border: 2px inset #808080;
  padding: 3px 6px;
  font: 12px Tahoma, Arial, sans-serif;
  background: #e8e8e8;
  color: #666;
}

.icq-compose button {
  border: 2px outset #dfdfdf;
  background: #c0c0c0;
  font: 11px Tahoma, Arial, sans-serif;
  padding: 2px 10px;
  color: #666;
}

.icq-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.72);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.icq-lightbox:target {
  display: flex;
}

.icq-lightbox img {
  max-width: min(720px, 94vw);
  max-height: 90vh;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  background: #111;
}

.icq-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 28px;
  height: 24px;
  line-height: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  background: #c0c0c0;
  border: 2px outset #fff;
  text-decoration: none;
}

/* —— Корзина (Win2000 Explorer) —— */
.trash-page {
  min-height: 100vh;
  background: #008080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  color: #000;
}

.trash-win {
  width: min(460px, 100%);
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.trash-titlebar {
  background: linear-gradient(90deg, #0a246a, #a6caf0);
  color: #fff;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trash-titlebar span:nth-child(2) {
  flex: 1;
}

.trash-title-icon {
  width: 14px;
  height: 14px;
  background:
    linear-gradient(180deg, #bbb 0 35%, #888 35% 100%);
  border: 1px solid #555;
  border-radius: 1px 1px 40% 40%;
  flex-shrink: 0;
  display: inline-block;
}

.trash-close {
  width: 16px;
  height: 14px;
  line-height: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  background: #c0c0c0;
  border: 1px outset #fff;
  text-decoration: none;
}

.trash-menubar {
  display: flex;
  gap: 12px;
  padding: 2px 8px;
  font-size: 11px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  color: #000;
}

.trash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 11px;
  background: #ece9d8;
  border-bottom: 1px solid #808080;
  color: #000;
}

.trash-toolbar a {
  color: #000;
  text-decoration: none;
  border: 1px solid #808080;
  background: #ece9d8;
  padding: 1px 6px;
}

.trash-sep {
  color: #808080;
}

.trash-body {
  background: #fff;
  min-height: 200px;
  max-height: min(420px, 62vh);
  overflow: auto;
  padding: 8px 0;
}

.trash-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: default;
}

a.trash-item,
button.trash-item {
  cursor: pointer;
}

.trash-item:hover {
  background: #0a246a;
  color: #fff;
}

.trash-item:hover .trash-item-meta {
  color: #c8d0ff;
}

.trash-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trash-empty p {
  margin: 0;
  color: #555;
  font-size: 12px;
}

.trash-item-ico {
  width: 28px;
  height: 32px;
  flex-shrink: 0;
  display: inline-block;
  border: 1px solid #666;
}

.trash-item-ico.doc {
  background: linear-gradient(180deg, #fff 0 18%, #e8e8ff 18% 100%);
  box-shadow: inset 0 0 0 1px #ccc;
}

.trash-item-ico.img {
  background:
    linear-gradient(135deg, #8cf 25%, transparent 25%),
    linear-gradient(#6a6, #ad5);
}

.trash-item-ico.cfg {
  background: linear-gradient(180deg, #f4f4f4 0 22%, #ddd 22% 100%);
  box-shadow: inset 2px 6px 0 #999, inset 2px 10px 0 #bbb;
}

.trash-item-ico.exe {
  background:
    linear-gradient(90deg, #0a246a 0 100%) 0 0 / 100% 7px no-repeat,
    linear-gradient(#cfd8f0, #9aacd4);
  box-shadow: inset 0 0 0 1px #335;
}

.trash-item-ico.pdf {
  position: relative;
  background: linear-gradient(180deg, #fff 0 64%, #d7d7d7 100%);
  box-shadow: inset 0 0 0 1px #bbb;
}

.trash-item-ico.pdf::after {
  content: "PDF";
  position: absolute;
  right: 1px;
  bottom: 4px;
  left: 1px;
  padding: 1px 0;
  background: #b01917;
  color: #fff;
  font: bold 8px Arial, sans-serif;
  text-align: center;
}

.trash-item-name {
  font-size: 12px;
  font-weight: bold;
}

.trash-item-meta {
  font-size: 10px;
  color: #555;
  margin-top: 2px;
}

.trash-statusbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 8px;
  font-size: 10px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  color: #000;
}

.trash-error {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.trash-error[hidden] {
  display: none;
}

.trash-error-win {
  width: min(340px, 100%);
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.trash-error-title {
  background: linear-gradient(90deg, #0a246a, #a6caf0);
  color: #fff;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trash-error-title span {
  flex: 1;
}

.trash-error-body {
  display: flex;
  gap: 12px;
  padding: 14px 12px 8px;
  font-size: 12px;
  line-height: 1.4;
}

.trash-error-body p {
  margin: 0;
}

.trash-error-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #c00;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #800;
  position: relative;
}

.trash-error-ico::before,
.trash-error-ico::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 7px;
  width: 4px;
  height: 18px;
  background: #fff;
  transform: rotate(45deg);
}

.trash-error-ico::after {
  transform: rotate(-45deg);
}

.trash-error-foot {
  text-align: center;
  padding: 0 12px 12px;
}

.trash-error-foot button {
  min-width: 74px;
  padding: 2px 12px;
  font: 11px Tahoma, sans-serif;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
}

.notepad-win {
  width: min(520px, 100%);
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.notepad-win.notepad-img {
  width: min(760px, 100%);
}

.notepad-title-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 1px solid #555;
  background: #fff;
}

.notepad-title-icon-doc {
  background: linear-gradient(180deg, #fff 0 30%, #e8e8ff 30% 100%);
}

.notepad-title-icon-cfg,
.notepad-title-icon-txt {
  background: #f4f4f4;
}

.notepad-title-icon-img {
  background:
    linear-gradient(#cfe8ff 0 45%, #8fbc8f 45% 70%, #c4a574 70% 100%);
}

.notepad-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 11px;
  background: #ece9d8;
  border-bottom: 1px solid #808080;
}

.notepad-tb-btn {
  display: inline-block;
  min-width: 18px;
  text-align: center;
  border: 1px outset #fff;
  background: #ece9d8;
  padding: 0 4px;
}

.notepad-body {
  margin: 0;
  background: #fff;
  color: #000;
  min-height: 240px;
  max-height: min(420px, 58vh);
  overflow: auto;
  padding: 10px 12px;
  font: 13px "Courier New", Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.notepad-doc .notepad-body {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  line-height: 1.45;
}

.journal-scene {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px 28px;
}

.journal-book {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  background:
    radial-gradient(circle at 12% 18%, rgba(90, 50, 20, 0.09), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(40, 30, 10, 0.07), transparent 32%),
    linear-gradient(180deg, #efe4c8 0%, #e6d4a8 100%);
  color: #2a2216;
  border: 1px solid #8a7048;
  box-shadow:
    0 0 0 3px #5c3d24,
    8px 12px 28px rgba(0, 0, 0, 0.45);
  padding: 18px 22px 16px;
}

.journal-head {
  border-bottom: 2px solid #6b4a2a;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.journal-stamp {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a3a32;
  margin: 0 0 4px;
}

.journal-book h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #3a2a18;
  margin: 0 0 4px;
}

.journal-sub {
  margin: 0;
  font-size: 0.78rem;
  color: #5c4a32;
}

.journal-period {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #5a3c22;
  letter-spacing: 0.04em;
}

.journal-leaves {
  min-height: 240px;
}

.journal-table-wrap {
  overflow-x: auto;
}

.journal-table {
  width: 100%;
  border-collapse: collapse;
  font: 0.8rem/1.35 "Courier New", Courier, monospace;
}

.journal-table th,
.journal-table td {
  text-align: left;
  padding: 5px 7px;
  border-bottom: 1px solid rgba(90, 60, 30, 0.28);
  vertical-align: top;
}

.journal-table th {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b4a2a;
  border-bottom: 2px solid #6b4a2a;
}

.journal-redpen {
  color: #c42828;
  font-weight: inherit;
  border: 1.5px solid #c42828;
  border-radius: 45% 55% 50% 45%;
  padding: 0 3px;
  display: inline-block;
  transform: rotate(-6deg);
}

.journal-got {
  display: block;
  font-size: 0.78rem;
}

.journal-sign {
  display: block;
  margin-top: 1px;
  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.1;
  color: #1a3a78;
  transform: rotate(-9deg);
  transform-origin: left center;
  letter-spacing: 0.02em;
}

.journal-empty {
  color: #8a7860;
}

.journal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #8a7048;
}

.journal-flip {
  min-width: 108px;
}

.journal-flip:disabled {
  opacity: 0.35;
  cursor: default;
}

.journal-pos {
  font-size: 0.82rem;
  color: #5c4a32;
  letter-spacing: 0.04em;
}

.journal-hint {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: #6a5840;
  text-align: center;
}

.journal-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}

@media (max-width: 640px) {
  .journal-book {
    padding: 14px 12px 12px;
  }

  .journal-table {
    font-size: 0.72rem;
  }

  .journal-flip {
    min-width: 0;
    padding: 8px 10px;
  }
}

/* ── протоколы допросов (вопрос — ответ) ── */
.dopros-page {
  background: #e4d9c6;
  color: #16120e;
}

.dopros-page .place {
  color: #6a4e1f;
}

.dopros-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.dopros-head h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #16120e;
}

.dopros-sub {
  margin: 0;
  color: #3a3228;
  font-size: 0.92rem;
  line-height: 1.45;
}

.dopros-sub b {
  color: #16120e;
}

.dopros-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dopros-list a {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 14px 16px;
  border: 2px solid #6c5835;
  border-radius: 5px;
  background: #fffdf7;
  box-shadow: 0 2px 5px rgba(45, 34, 20, 0.16);
  text-decoration: none;
  color: #1a1510;
}

.dopros-list a:hover,
.dopros-list a:focus-visible {
  border-color: #2f2416;
  background: #f4e6c7;
  box-shadow: 0 3px 8px rgba(45, 34, 20, 0.28);
  outline: 3px solid rgba(139, 88, 34, 0.25);
  outline-offset: 2px;
}

.dopros-list-time {
  grid-row: 1 / span 2;
  font-size: 0.78rem;
  color: #4a3c28;
  letter-spacing: 0.02em;
}

.dopros-list-name {
  font-weight: 600;
  color: #16120e;
}

.dopros-list-role {
  font-size: 0.86rem;
  color: #4a3c28;
}

.dopros-protocol {
  background: #faf7f0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 22px 20px 18px;
}

.dopros-meta {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
  font-size: 0.88rem;
}

.dopros-meta-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 10px;
  padding: 4px 0;
}

.dopros-meta-row span {
  color: #4a3c28;
}

.dopros-qa-title {
  margin: 22px 0 6px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dopros-qa-lead {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #3a3228;
}

.dopros-dialogue {
  display: grid;
  gap: 16px;
}

.dopros-exchange {
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.dopros-exchange:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dopros-q,
.dopros-a {
  margin: 0;
  line-height: 1.55;
  font-size: 0.94rem;
}

.dopros-q {
  margin-bottom: 8px;
}

.dopros-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a3c28;
  margin-bottom: 3px;
}

.dopros-a .dopros-label {
  color: #2a3d2c;
}

.dopros-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #3a3228;
}

.dopros-sign {
  margin: 10px 0 0;
}

.dopros-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
}

.opis-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.opis-figure {
  margin: 18px 0 0;
}

.opis-caption {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #6a6256;
}

.opis-figure + .opis-figure {
  margin-top: 28px;
}

.opis-figure img {
  width: 100%;
  display: block;
  background: #fff;
  border: 1px solid #c8bfae;
  box-shadow: 0 10px 32px rgba(30, 24, 16, 0.22);
}

@media (max-width: 640px) {
  .dopros-wrap {
    padding: 16px 12px 32px;
  }

  .dopros-protocol {
    padding: 16px 14px;
  }

  .dopros-meta-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .dopros-list a {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .dopros-list-time {
    grid-row: auto;
  }

  .dopros-page .dopros-links a {
    width: 100%;
  }
}

.gromov-pc-frame {
  position: relative;
}

.gromov-pc-frame.is-asleep .desktop-hotspot,
.gromov-pc-frame.is-asleep .gromov-acq-toast {
  visibility: hidden;
  pointer-events: none;
}

.gromov-pc-frame:not(.is-asleep) .gromov-ssaver {
  display: none;
}

.gromov-pc-frame button.desktop-hotspot {
  background: transparent;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.gromov-ssaver {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.gromov-tank {
  position: absolute;
  /* стекло ЭЛТ: не прямоугольник, пластиковая рамка остаётся снаружи */
  left: 5.2%;
  top: 2.2%;
  width: 89.4%;
  height: 93.2%;
  overflow: hidden;
  background: #03140e;
  border-radius: 4.8% 5.4% 5% 4.4% / 7% 7.6% 6.6% 6.2%;
}

.gromov-tank::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(12, 40, 28, 0.45), transparent 55%);
  pointer-events: none;
}

.gromov-tank::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 22px 10px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 3px
  );
}

.gromov-weed {
  position: absolute;
  bottom: 0;
  width: 18px;
  height: 42%;
  background: linear-gradient(180deg, #1a5a32, #062012);
  border-radius: 40% 60% 20% 20%;
  transform-origin: bottom center;
  animation: gromov-weed 4.5s ease-in-out infinite;
}

.gromov-weed-a { left: 6%; height: 38%; animation-delay: 0s; }
.gromov-weed-b { left: 16%; height: 28%; width: 12px; animation-delay: -1.4s; }
.gromov-weed-c { right: 10%; left: auto; height: 32%; animation-delay: -2.2s; }

@keyframes gromov-weed {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(7deg); }
}

.gromov-fish {
  position: absolute;
  left: -12%;
  height: 22px;
  width: 52px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  /* глаз справа — плывут вправо; у края разворот (scaleX) */
  animation: gromov-swim 14s linear infinite;
  transform-origin: center center;
}

/* хвост слева, чуть повёрнут — лучше читается как треугольник */
.gromov-fish::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 43%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 14px 8px 0;
  border-color: transparent currentColor transparent transparent;
  transform: translateY(-50%) rotate(-58deg);
  transform-origin: right center;
}

/* глаз у носа (справа) — направление хода */
.gromov-fish::after {
  content: "";
  position: absolute;
  right: 9px;
  left: auto;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-radius: 50%;
  background: #102018;
}

.gromov-fish-1 {
  top: 10%;
  color: #e8a33a;
  background: #e8a33a;
  animation-duration: 16s;
}

.gromov-fish-2 {
  top: 28%;
  height: 16px;
  width: 38px;
  color: #d45a4a;
  background: #d45a4a;
  animation-duration: 11s;
  animation-delay: -4s;
}

.gromov-fish-2::before {
  border-width: 6px 11px 6px 0;
  left: -13px;
  top: 42%;
}

.gromov-fish-2::after {
  width: 4px;
  height: 4px;
  right: 7px;
  margin-top: -2px;
}

.gromov-fish-3 {
  top: 48%;
  height: 26px;
  width: 62px;
  color: #4eb3c8;
  background: #4eb3c8;
  animation-duration: 20s;
  animation-delay: -8s;
}

.gromov-fish-3::before {
  border-width: 10px 16px 10px 0;
  left: -19px;
  top: 42%;
}

.gromov-fish-3::after {
  width: 6px;
  height: 6px;
  right: 11px;
  margin-top: -3px;
}

.gromov-fish-4 {
  top: 18%;
  height: 14px;
  width: 32px;
  color: #f0d060;
  background: #d4b040;
  animation-duration: 13s;
  animation-delay: -2s;
}

.gromov-fish-4::before {
  border-width: 5px 10px 5px 0;
  left: -12px;
  top: 41%;
  transform: translateY(-50%) rotate(-62deg);
}

.gromov-fish-4::after {
  width: 3px;
  height: 3px;
  right: 6px;
  margin-top: -2px;
}

.gromov-fish-5 {
  top: 68%;
  height: 18px;
  width: 42px;
  color: #c97ad4;
  background: #c97ad4;
  animation-duration: 18s;
  animation-delay: -10s;
}

.gromov-fish-5::before {
  border-width: 7px 12px 7px 0;
  left: -14px;
  top: 42%;
}

.gromov-fish-6 {
  top: 82%;
  height: 20px;
  width: 48px;
  color: #7ec87a;
  background: #7ec87a;
  animation-duration: 15s;
  animation-delay: -6s;
}

.gromov-fish-7 {
  top: 38%;
  height: 13px;
  width: 30px;
  color: #f4a0a0;
  background: #e87878;
  animation-duration: 12s;
  animation-delay: -9s;
}

.gromov-fish-7::before {
  border-width: 5px 9px 5px 0;
  left: -11px;
  top: 41%;
  transform: translateY(-50%) rotate(-60deg);
}

.gromov-fish-7::after {
  width: 3px;
  height: 3px;
  right: 5px;
  margin-top: -2px;
}

/* туда → разворот → обратно → разворот */
@keyframes gromov-swim {
  0% {
    left: -12%;
    transform: scaleX(1);
  }
  46% {
    left: 108%;
    transform: scaleX(1);
  }
  50% {
    left: 108%;
    transform: scaleX(-1);
  }
  96% {
    left: -12%;
    transform: scaleX(-1);
  }
  100% {
    left: -12%;
    transform: scaleX(1);
  }
}

.gromov-bubble {
  position: absolute;
  bottom: 8%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(220, 245, 255, 0.7);
  border-radius: 50%;
  background: rgba(220, 245, 255, 0.15);
  animation: gromov-bubble 6s linear infinite;
}

.gromov-bubble.b1 { left: 22%; animation-duration: 5.5s; }
.gromov-bubble.b2 { left: 48%; width: 5px; height: 5px; animation-duration: 7s; animation-delay: -1.5s; }
.gromov-bubble.b3 { left: 63%; animation-duration: 6.4s; animation-delay: -3s; }
.gromov-bubble.b4 { left: 31%; width: 4px; height: 4px; animation-duration: 8s; animation-delay: -2s; }
.gromov-bubble.b5 { left: 77%; animation-duration: 5.8s; animation-delay: -4s; }

@keyframes gromov-bubble {
  0% { transform: translateY(0) translateX(0); opacity: 0.9; }
  50% { transform: translateY(-140px) translateX(8px); opacity: 0.7; }
  100% { transform: translateY(-280px) translateX(-4px); opacity: 0; }
}

.gromov-desk-note {
  position: fixed;
  left: 20px;
  bottom: 64px;
  z-index: 20;
  width: min(380px, calc(100vw - 40px));
}

.gromov-desk-note[hidden] {
  display: none;
}

.gromov-desk-note .hint {
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 12px;
  color: var(--ink);
}

.gromov-acq-toast {
  position: absolute;
  z-index: 9;
  right: 11%;
  bottom: 13%;
  width: min(268px, 38%);
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid #b8c4d0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  color: #2b587a;
  font: 12px Tahoma, Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  animation: gromov-vk-in 0.35s ease-out;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

@keyframes gromov-vk-in {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.gromov-acq-toast:hover,
.gromov-acq-toast:focus-visible {
  border-color: #4a76a8;
  outline: 1px solid #4a76a8;
  outline-offset: 1px;
}

.gromov-toast-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #4a76a8;
  color: #fff;
  font: bold 11px Tahoma, Arial, sans-serif;
  letter-spacing: 0.03em;
}

.gromov-toast-logo {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: #fff;
  color: #4a76a8;
  font: bold 9px Tahoma, sans-serif;
}

.gromov-toast-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 9px;
  background: #fff;
}

.gromov-toast-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: #f5a000;
  color: #111;
  font: bold 18px Arial, sans-serif;
  box-shadow: inset 0 0 0 1px #d48a00;
}

.gromov-toast-copy {
  min-width: 0;
}

.gromov-toast-copy b {
  display: block;
  color: #2b587a;
  font-size: 12px;
  font-weight: 700;
}

.gromov-toast-copy small {
  display: block;
  margin-top: 1px;
  color: #777;
  font-size: 11px;
  line-height: 1.25;
}

.gromov-toast-copy span {
  display: block;
  margin-top: 2px;
  color: #000;
  font-size: 11px;
  line-height: 1.3;
}

.gromov-tray-acq {
  left: 80.5%;
  top: 88.5%;
  width: 5%;
  height: 7%;
}

.gromov-ico-trash {
  left: 8.3%;
  top: 5.6%;
  width: 7.4%;
  height: 11.4%;
}
.gromov-ico-acq {
  left: 8.3%;
  top: 16.8%;
  width: 7.4%;
  height: 11.8%;
}
.gromov-ico-file { left: 8.0%; top: 48.2%; width: 9.2%; height: 11.5%; }
.gromov-ico-kvartal { left: 26.5%; top: 46%; width: 9%; height: 11%; }
.gromov-ico-excel {
  left: 7.8%;
  top: 66.8%;
  width: 9.6%;
  height: 12.4%;
}

.gromov-file-view {
  background: #3a3a3a;
  padding: 12px;
  max-height: 70vh;
  overflow: auto;
}

.gromov-file-view img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.gromov-file-stack {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gromov-file-hint {
  max-width: 640px;
  margin: 0 auto;
  color: #fff8dc;
  font-size: 0.9rem;
  text-align: center;
  padding: 0 8px;
}

.xls-win {
  width: min(860px, 100%);
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  color: #000;
}

.xls-app-ico {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  background: #207245;
  color: #fff;
  font: bold 10px Arial, sans-serif;
  border: 1px solid #0e3d22;
}

.xls-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
}

.xls-tb-sep {
  width: 1px;
  height: 16px;
  background: #808080;
  margin: 0 4px;
}

.xls-formula {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  font-size: 11px;
}

.xls-namebox {
  min-width: 52px;
  padding: 1px 6px;
  background: #fff;
  border: 1px inset #808080;
}

.xls-fx {
  font-weight: bold;
  font-style: italic;
  color: #000;
  padding: 0 4px;
}

.xls-formula-val {
  flex: 1;
  padding: 1px 6px;
  background: #fff;
  border: 1px inset #808080;
}

.xls-grid-wrap {
  background: #808080;
  overflow: auto;
  max-height: min(520px, 62vh);
}

.xls-grid {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  font-size: 12px;
}

.xls-grid th,
.xls-grid td {
  border: 1px solid #c0c0c0;
  padding: 3px 7px;
  white-space: nowrap;
}

.xls-grid thead th,
.xls-grid tbody th {
  background: #c0c0c0;
  font-weight: 600;
  text-align: center;
  width: 28px;
}

.xls-grid thead th {
  min-width: 72px;
}

.xls-grid .xls-corner {
  min-width: 28px;
  width: 28px;
}

.xls-title {
  font-weight: 700;
  background: #ffffcc;
}

.xls-head {
  font-weight: 700;
  background: #e8e8e8;
}

.xls-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.xls-neg {
  color: #c00000;
}

.xls-pos {
  color: #006600;
}

.xls-sel {
  outline: 2px solid #000;
  outline-offset: -2px;
  background: #d4e4ff;
}

.xls-note {
  white-space: normal;
  color: #333;
  font-size: 11px;
  background: #ffffe8;
}

.xls-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 4px 8px 0;
  background: #c0c0c0;
  border-top: 1px solid #808080;
}

.xls-tab {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #808080;
  border-bottom: 0;
  background: #b8b8b8;
  font: 11px Tahoma, sans-serif;
  padding: 3px 14px 4px;
  cursor: pointer;
  border-radius: 3px 3px 0 0;
}

.xls-tab.is-on {
  background: #fff;
  position: relative;
  top: 1px;
  font-weight: 700;
}

.xls-chart-head {
  padding: 8px 12px 0;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}

.xls-chart-sub {
  margin: 0;
  padding: 2px 12px 6px;
  font-size: 11px;
  color: #444;
  background: #fff;
}

.xls-chart-box {
  background: #fff;
  padding: 4px 12px 12px;
}

.xls-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px inset #808080;
  background: #fff;
}

.xls-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
}

.xls-leg-swatch {
  width: 18px;
  height: 3px;
  background: #c00000;
  box-shadow: 0 0 0 1px #800000;
}

.xls-chart-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #333;
  line-height: 1.35;
}

/* —— Карта на стене кабинета Соколова —— */
.sokolov-wall-map {
  position: absolute;
  left: 25.5%;
  top: 2%;
  width: 31.5%;
  z-index: 3;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: rotate(-0.5deg);
}

.sokolov-wall-map-frame {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  background: #1a1410;
  padding: 4px;
  box-shadow:
    0 1px 0 rgba(255, 240, 210, 0.25),
    0 8px 18px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(40, 28, 18, 0.7);
}

.sokolov-wall-map-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

.yarn-map-inner,
.map-wrap.yarn-board {
  position: relative;
  display: block;
  line-height: 0;
}

.sokolov-wall-map .yarn-pin-head {
  width: 8px;
  height: 8px;
}

.sokolov-wall-map .yarn-pin-needle {
  height: 8px;
}

.sokolov-wall-map .yarn-line {
  stroke-width: 0.7;
}

.sokolov-wall-map:hover .sokolov-wall-map-frame,
.sokolov-wall-map:focus .sokolov-wall-map-frame {
  box-shadow:
    0 1px 0 rgba(255, 240, 210, 0.4),
    0 10px 22px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(196, 60, 60, 0.55);
}

.scene-object-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sokolov-wall-map:hover .scene-object-ring,
.sokolov-wall-map:focus-visible .scene-object-ring,
.sokolov-desk-photo:hover .scene-object-ring,
.sokolov-desk-photo:focus-visible .scene-object-ring {
  background: rgba(196, 163, 90, 0.28);
  border-style: solid;
}

.sokolov-desk-photo {
  position: absolute;
  left: 38%;
  top: 62%;
  width: 13%;
  z-index: 3;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: rotate(3deg);
}

.sokolov-desk-photo-frame {
  display: block;
  width: 100%;
  line-height: 0;
  background: #1a1410;
  padding: 3px;
  box-shadow:
    0 1px 0 rgba(255, 240, 210, 0.25),
    0 8px 18px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(40, 28, 18, 0.7);
}

.sokolov-desk-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.1) saturate(0.7);
}

.sokolov-desk-photo:hover .sokolov-desk-photo-frame,
.sokolov-desk-photo:focus .sokolov-desk-photo-frame {
  box-shadow:
    0 1px 0 rgba(255, 240, 210, 0.4),
    0 10px 22px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(196, 163, 90, 0.55);
}

.yarn-board {
  overflow: visible;
  box-shadow:
    0 0 0 8px #2a1c14,
    0 14px 40px rgba(0, 0, 0, 0.6);
}

.yarn-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.yarn-line {
  stroke: #c41414;
  stroke-width: 0.55;
  stroke-linecap: round;
  opacity: 0.88;
  filter: drop-shadow(0 0.15px 0.15px rgba(80, 0, 0, 0.7));
}

.yarn-pin {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.yarn-pin-needle {
  width: 2px;
  height: 12px;
  background: linear-gradient(#c8c4bc, #6a6860);
  margin-bottom: -4px;
}

.yarn-pin-head {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ff7a7a, #c41414 52%, #6a0808);
  border: 1px solid #4a0606;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

.yarn-pin-label,
.yarn-pin-date {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.2;
  color: #fff4e8;
  background: rgba(90, 12, 12, 0.88);
  border: 1px solid rgba(255, 180, 160, 0.35);
  padding: 2px 6px;
  border-radius: 2px;
  margin-top: 3px;
  white-space: nowrap;
}

.yarn-pin-date {
  background: #f3e6c8;
  color: #8a1414;
  border: 1px solid #c9a56a;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.2);
}

.yarn-pin-date-mini {
  font-size: 0.42rem;
  padding: 1px 3px;
  letter-spacing: 0;
  margin-top: 1px;
  transform: scale(0.95);
}

.police-yarn-page {
  flex-direction: column;
  gap: 12px;
}

.yarn-board-back {
  display: flex;
  gap: 18px;
  justify-content: center;
}

@media (max-width: 700px) {
  .sokolov-wall-map {
    width: 31.5%;
    left: 25.5%;
    top: 2%;
  }
  .yarn-pin-date { font-size: 0.68rem; }
}

/* Псевдо-PDF из поисковика: подпольная памятка по ACQ */
.hacker-pdf-page {
  min-height: 100vh;
  padding: 54px 14px 28px;
  background:
    repeating-linear-gradient(0deg, rgba(52, 255, 128, 0.025) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 0, #173326 0, #07110c 48%, #020403 100%);
  color: #142219;
}

.hacker-pdf-viewer {
  width: min(850px, 100%);
  margin: 0 auto;
  border: 1px solid #44594c;
  box-shadow: 0 15px 45px #000;
}

.hacker-pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 10px;
  background: #17241c;
  border-bottom: 1px solid #5a7563;
  color: #8cffad;
  font: 12px "Courier New", monospace;
}

.hacker-pdf-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60ff91;
  box-shadow: 0 0 8px #60ff91;
}

.hacker-pdf-page-number {
  margin-left: auto;
  color: #a9bbae;
}

.hacker-pdf-sheet {
  position: relative;
  padding: clamp(25px, 5vw, 58px);
  overflow: hidden;
  background: #d8d4bd;
  color: #172019;
  font: 15px/1.55 "Courier New", monospace;
}

.hacker-pdf-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-linear-gradient(2deg, transparent 0 17px, #4d5d4f 18px);
}

.hacker-pdf-sheet > * {
  position: relative;
}

.hacker-pdf-path {
  margin-bottom: 18px;
  color: #405347;
  font-size: 11px;
}

.hacker-pdf-sheet h1 {
  max-width: 650px;
  margin: 0;
  color: #102c1d;
  font-size: clamp(25px, 4.3vw, 45px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.hacker-pdf-sub {
  margin: 8px 0 30px;
  color: #486052;
  font-size: 12px;
}

.hacker-pdf-sheet section {
  margin: 24px 0;
  padding-left: 16px;
  border-left: 4px solid #295d3e;
}

.hacker-pdf-sheet h2 {
  margin: 0 0 8px;
  color: #183d28;
  font-size: 17px;
}

.hacker-pdf-sheet p {
  margin: 0;
}

.hacker-pdf-sheet ul {
  margin: 10px 0 0 20px;
}

.hacker-login-scheme {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: #0b2516;
  font-weight: bold;
}

.hacker-login-scheme span {
  padding: 6px 8px;
  border: 1px solid #426a50;
  background: rgba(55, 104, 70, 0.1);
}

.hacker-pdf-hint {
  margin: 30px 0;
  padding: 15px;
  border: 2px dashed #8d201a;
  background: rgba(145, 35, 26, 0.08);
  color: #531813;
  transform: rotate(-0.4deg);
}

.hacker-pdf-stamp {
  position: absolute;
  top: 38px;
  right: -22px;
  padding: 6px 26px;
  border: 3px solid rgba(132, 24, 20, 0.55);
  color: rgba(132, 24, 20, 0.6);
  font-weight: bold;
  transform: rotate(12deg);
}

.hacker-pdf-sheet footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid #53675a;
  color: #355241;
  font-size: 11px;
}

@media (max-width: 560px) {
  .hacker-login-scheme {
    flex-wrap: wrap;
  }

  .hacker-pdf-stamp {
    display: none;
  }
}

/* Обложка удалённого журнала Gamer.pdf */
.gamer-pdf-page {
  min-height: 100vh;
  padding: 54px 14px 28px;
  background: #3b3b3b;
  color: #111;
}

.gamer-pdf-viewer {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 0 24px;
  background: #777;
  border: 2px outset #ddd;
  box-shadow: 5px 8px 28px rgba(0, 0, 0, 0.7);
}

.gamer-pdf-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 10px;
  background: #c0c0c0;
  border-bottom: 2px groove #eee;
  color: #111;
  font: 11px Tahoma, sans-serif;
}

.gamer-cover {
  position: relative;
  width: min(470px, calc(100% - 30px));
  aspect-ratio: 3 / 4;
  margin: 24px auto 0;
  overflow: hidden;
  padding: 16px 18px;
  background: #120c22;
  border: 1px solid #222;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
}

.gamer-cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  pointer-events: none;
}

.gamer-cover-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 6, 20, 0.72) 0 18%, transparent 32%),
    linear-gradient(180deg, transparent 48%, rgba(6, 4, 16, 0.92) 78%);
}

.gamer-cover header,
.gamer-cover-main,
.gamer-cover-burst,
.gamer-topic,
.gamer-cover footer,
.gamer-sticker {
  position: absolute;
  z-index: 2;
}

.gamer-cover header {
  top: 10px;
  right: 16px;
  left: 16px;
}

.gamer-issue {
  margin: 0;
  color: #fff;
  font: bold 11px Arial, sans-serif;
  letter-spacing: 0.1em;
  text-align: right;
  text-shadow: 0 1px 3px #000, 0 0 8px #000;
}

.gamer-cover h1 {
  margin: -2px 0 0;
  color: #ffef19;
  font-size: clamp(58px, 17vw, 94px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-shadow: 4px 4px 0 #ef1f62, 7px 7px 0 #13213a, 0 0 14px rgba(0, 0, 0, 0.85);
}

.gamer-slogan {
  margin: 8px 0 0;
  display: inline-block;
  padding: 4px 8px;
  background: #ffef19;
  color: #111;
  font: italic bold 13px/1.15 Arial, sans-serif;
  letter-spacing: 0.08em;
}

.gamer-cover-main {
  top: 28%;
  left: 16px;
  width: 58%;
  padding: 8px 10px 10px;
  background: rgba(8, 6, 22, 0.88);
  border: 2px solid #ffef19;
  transform: rotate(-1.5deg);
}

.gamer-cover-kicker {
  display: inline-block;
  padding: 4px 7px;
  background: #ffed00;
  color: #111;
  font: bold 11px Arial, sans-serif;
  letter-spacing: 0.06em;
}

.gamer-cover-main strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: clamp(26px, 7.4vw, 40px);
  line-height: 0.92;
  text-shadow: 3px 3px 0 #e51c50;
}

.gamer-cover-main p {
  margin: 8px 0 0;
  color: #fff;
  font: bold 14px/1.3 Arial, sans-serif;
  text-shadow: 0 1px 2px #000;
}

.gamer-sticker {
  display: grid;
  place-items: center;
  color: #111;
  font: bold 11px Arial, sans-serif;
  letter-spacing: 0.08em;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.55);
}

.gamer-sticker-cd {
  top: 24%;
  right: 8%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1a1a1a 0 12%, #cfd8e0 13% 18%, #8ab 19% 34%, #cfd8e0 35% 42%, #9aa7b4 43%);
  color: #fff;
  text-shadow: 0 1px 2px #000;
  transform: rotate(12deg);
}

.gamer-sticker-lan {
  top: 46%;
  right: 6%;
  padding: 6px 8px;
  background: #ef1f62;
  color: #fff;
  transform: rotate(8deg);
}

.gamer-cover-burst {
  top: 38%;
  right: 7%;
  width: 70px;
  height: 70px;
  padding-top: 12px;
  border-radius: 50%;
  background: #ffef19;
  color: #b31243;
  font-size: 26px;
  line-height: 0.65;
  text-align: center;
  transform: rotate(10deg);
}

.gamer-cover-burst small {
  font: bold 8px/0.9 Arial, sans-serif;
}

.gamer-topic {
  left: 16px;
  width: 70%;
  padding: 8px 10px;
  border-left: 6px solid #ffef19;
  background: #0b0a18;
  color: #fff;
  text-decoration: none;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.55);
}

.gamer-topic b,
.gamer-topic span {
  display: block;
}

.gamer-topic b {
  color: #ffef19;
  font-size: 20px;
  line-height: 1.05;
  text-shadow: 2px 2px 0 #000;
}

.gamer-topic span {
  margin-top: 4px;
  color: #fff;
  font: bold 13px/1.3 Arial, sans-serif;
}

.gamer-topic-quake { top: 54%; }
.gamer-topic-acq {
  top: 68%;
  left: auto;
  right: 16px;
  width: 66%;
  border-left-color: #ef1f62;
}
.gamer-topic-acq:hover,
.gamer-topic-acq:focus-visible {
  background: #16132a;
  outline: 2px solid #ffef19;
}
.gamer-topic-party { top: 82%; width: 64%; }

.gamer-cover footer {
  right: 16px;
  bottom: 10px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font: bold 11px Arial, sans-serif;
  letter-spacing: 0.06em;
}

.gamer-cover footer b {
  color: #ffef19;
}

.gamer-article {
  width: min(650px, calc(100% - 30px));
  margin: 24px auto 0;
  padding: clamp(24px, 6vw, 54px);
  background:
    linear-gradient(90deg, transparent 0 96%, rgba(237, 31, 98, 0.12) 96%),
    #eee9d8;
  border: 1px solid #222;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
  color: #141526;
  font: 15px/1.55 Arial, sans-serif;
}

.gamer-article-head {
  position: relative;
  margin-bottom: 28px;
  padding: 16px 18px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #181038, #5f2179 58%, #0c7774);
  color: #fff;
}

.gamer-article-head::after {
  content: "ACQ";
  position: absolute;
  right: -12px;
  bottom: -27px;
  color: rgba(84, 255, 229, 0.16);
  font: 900 92px/1 Impact, sans-serif;
  transform: rotate(-8deg);
}

.gamer-article-masthead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
}

.gamer-article-masthead strong {
  color: #ffef19;
  font: clamp(34px, 8vw, 54px)/0.8 Impact, "Arial Black", sans-serif;
  letter-spacing: -0.06em;
  text-shadow: 3px 3px 0 #ef1f62;
}

.gamer-article-masthead span {
  color: #fff;
  font: bold 11px Arial, sans-serif;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.gamer-article-rubric {
  color: #54ffe5;
  font: bold 11px Arial, sans-serif;
  letter-spacing: 0.15em;
}

.gamer-article-page {
  float: right;
  color: #ffef19;
  font: bold 16px Arial, sans-serif;
}

.gamer-article-head h1 {
  position: relative;
  z-index: 1;
  margin: 12px 0 4px;
  color: #ffef19;
  font: clamp(38px, 9vw, 70px)/0.9 Impact, "Arial Black", sans-serif;
  letter-spacing: -0.03em;
  text-shadow: 3px 3px 0 #ef1f62;
}

.gamer-article-head p {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 10px 0 0;
  font-weight: bold;
}

.gamer-article section {
  margin: 24px 0;
  padding-left: 15px;
  border-left: 5px solid #ef1f62;
}

.gamer-article section:nth-of-type(even) {
  border-left-color: #0eaaa2;
}

.gamer-article h2 {
  margin: 0 0 8px;
  color: #32205a;
  font: 24px/1 Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
}

.gamer-article p {
  margin: 0;
}

.gamer-article ul {
  margin: 10px 0 0 20px;
}

.gamer-article-pullquote {
  margin: 30px 0;
  padding: 16px;
  border: 3px solid #29204e;
  background: #ffef19;
  color: #29204e;
  font: bold 15px/1.4 Arial, sans-serif;
  transform: rotate(-0.5deg);
}

.gamer-article footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  border-top: 2px solid #302551;
  color: #302551;
  font: bold 10px Arial, sans-serif;
  letter-spacing: 0.08em;
}
