@charset "UTF-8";
/* Walkirya OS — «Справка»: balloon hints, help mode, guided tour, «?» button (portal-os-hints.js).
   Windows-style balloon; colors from the portal-os tokens, so «Синяя» and «Тёмная» both work. */

body.os-site .wh-btn {
  width: 34px; height: 34px; flex: none; margin-right: 6px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--os-line-2); background: linear-gradient(var(--os-3), var(--os-2)); color: var(--os-text);
  font: italic 800 17px/1 var(--os-logo); transition: border-color .16s, box-shadow .16s, transform .16s;
}
body.os-site .wh-btn:hover, body.os-site .wh-btn[aria-pressed='true'] { border-color: var(--os-red); box-shadow: 0 0 12px var(--os-red-glow); transform: translateY(-1px); }

/* balloon */
.wh-tip {
  position: fixed; z-index: 9800; display: flex; gap: 10px; align-items: flex-start; width: max-content; max-width: min(320px, calc(100vw - 16px)); padding: 10px 13px;
  border-radius: 10px; border: 1px solid var(--os-line-2); background: var(--os-1, #fff); color: var(--os-text, #142030);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .14s, transform .14s;
}
.wh-tip.in { opacity: 1; transform: none; }
.wh-tip b { display: block; font: 700 14px/1.3 var(--os-ui, sans-serif); margin-bottom: 2px; }
.wh-tip span { display: block; font-size: 13px; line-height: 1.45; color: var(--os-text-2, #444); }
.wh-tip::before {
  content: ''; position: absolute; left: var(--ax, 24px); top: -6px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg);
  background: inherit; border-left: 1px solid var(--os-line-2); border-top: 1px solid var(--os-line-2);
}
.wh-tip.up::before { top: auto; bottom: -6px; transform: rotate(225deg); }
.wh-ic {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--os-red); color: #fff; font: italic 800 14px/1 var(--os-logo, serif);
}

/* help mode */
html.wh-help, html.wh-help * { cursor: help !important; }
html.wh-help a:hover, html.wh-help button:hover, html.wh-help .wk-card:hover { outline: 2px dashed var(--os-red); outline-offset: 2px; }
.wh-banner {
  position: fixed; z-index: 9700; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 20px); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--os-red); background: var(--os-1, #fff); color: var(--os-text, #142030); font-size: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35), 0 0 18px var(--os-red-glow);
}
.wh-banner button, .wh-nudge button, .wh-card-f button {
  min-height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--os-line-2); background: var(--os-3); color: var(--os-text); font: 700 13px var(--os-ui, sans-serif); cursor: pointer;
}
.wh-nudge .pri, .wh-card-f .pri { background: var(--os-red); border-color: var(--os-red); color: #fff; }

/* «?» menu */
.wh-menu {
  position: fixed; z-index: 9800; width: min(320px, calc(100vw - 16px)); display: grid; padding: 6px; border-radius: 12px; border: 1px solid var(--os-line-2); background: var(--os-1, #fff);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .38);
}
.wh-menu button { display: grid; gap: 2px; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--os-text); cursor: pointer; font-family: var(--os-ui, sans-serif); }
.wh-menu button:hover, .wh-menu button:focus-visible { background: var(--os-3); }
.wh-menu b { font-size: 14px; }
.wh-menu small { font-size: 12.5px; color: var(--os-muted); }

/* nudge */
.wh-nudge {
  position: fixed; z-index: 9800; width: min(300px, calc(100vw - 16px)); display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--os-line-2); background: var(--os-1, #fff); color: var(--os-text);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .38);
}
.wh-nudge b { font-size: 15px; }
.wh-nudge span { font-size: 13px; color: var(--os-text-2); }
.wh-nudge div { display: flex; gap: 8px; margin-top: 6px; }

/* tour: highlighted box + card */
.wh-spot {
  position: fixed; z-index: 9750; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55), 0 0 0 2px var(--os-red), 0 0 22px var(--os-red-glow);
  transition: left .25s, top .25s, width .25s, height .25s;
}
.wh-card {
  position: fixed; z-index: 9800; width: min(340px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--os-line-2); background: var(--os-1, #fff); color: var(--os-text, #142030);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .15s;
}
.wh-card.in { opacity: 1; }
.wh-card::before { display: none; }
.wh-card-h { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.wh-card-h b { flex: 1; font: italic 700 16px/1.25 var(--os-logo, sans-serif); }
.wh-card-h em { font-style: normal; font-size: 12.5px; color: var(--os-muted); }
.wh-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--os-text-2); }
.wh-card-f { display: flex; gap: 8px; align-items: center; }
.wh-card-f span { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .wh-tip, .wh-card, .wh-spot, body.os-site .wh-btn { transition: none; }
}
@media (max-width: 560px) {
  body.os-site .wh-btn { width: 32px; height: 32px; margin-right: 4px; }
}
