/* Общая шапка сайта (рисует /assets/header.js). Стили самодостаточные и под своим
   префиксом .sh-, чтобы шапка выглядела одинаково на всех страницах, независимо от
   их собственной ширины контейнера и стилей кнопок. */
.sh {
  --sh-accent: #27ae60;
  --sh-text: #1a1f24;
  --sh-muted: #5c6b73;
  --sh-soft: #f4f8f5;
  --sh-border: #e3e9e5;
  --sh-shadow: 0 8px 30px rgba(20, 40, 30, 0.08);
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--sh-border);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh a { color: inherit; text-decoration: none; }
.sh-in { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sh-brand { display: flex; align-items: center; gap: 10px; }
.sh-brand img { width: 40px; height: 40px; display: block; flex-shrink: 0; }
.sh-brand-t { display: flex; flex-direction: column; line-height: 1.15; }
.sh-brand-t b { color: var(--sh-accent); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.sh-brand-t small { color: var(--sh-muted); font-size: 0.8rem; font-weight: 500; white-space: nowrap; }

.sh-links { display: flex; align-items: center; gap: 28px; }
.sh-links > a, .sh-drop-btn { color: var(--sh-muted); font-size: 0.95rem; font-weight: 500; }
.sh-links > a:hover, .sh-links > a.active { color: var(--sh-text); }

.sh-drop { position: relative; }
.sh-drop-btn { background: none; border: none; font-family: inherit; cursor: pointer; padding: 0; display: flex; align-items: center; gap: 5px; }
.sh-drop-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sh-drop:hover .sh-drop-btn, .sh-drop:focus-within .sh-drop-btn { color: var(--sh-text); }
.sh-drop-menu { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); padding-top: 12px; display: none; z-index: 60; }
.sh-drop:hover .sh-drop-menu, .sh-drop:focus-within .sh-drop-menu { display: block; }
.sh-drop-list { background: #fff; border: 1px solid var(--sh-border); border-radius: 12px; box-shadow: var(--sh-shadow); padding: 6px; min-width: 280px; }
.sh-drop-list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--sh-text); line-height: 1.25; font-size: 0.95rem; font-weight: 500; }
.sh-drop-list a:hover { background: var(--sh-soft); }
.sh-drop-list small { color: var(--sh-muted); font-size: 0.8rem; font-weight: 400; }
.sh-drop-list small b { color: var(--sh-text); font-weight: 700; }
.sh-drop-list small.sh-accent-red { display: flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: 6px; padding: 3px 9px; border: 1.5px solid #e8790f; border-radius: 8px; color: #e8790f; font-weight: 400; }
/* Ссылка на отчёт VirusTotal под пунктом «Приложение для Windows» */
.sh-drop-list a.sh-vt { flex-direction: row; white-space: nowrap; align-items: center; gap: 7px; margin-top: -4px; padding: 4px 12px 10px; font-size: 0.8rem; font-weight: 500; color: #219150; }
.sh-drop-list a.sh-vt:hover { background: none; text-decoration: underline; }
.sh-drop-list a.sh-vt svg { flex-shrink: 0; }
.sh-drop-list a.sh-vt code { font-family: ui-monospace, Consolas, monospace; font-size: 0.74rem; font-weight: 400; color: #8a97a0; }
/* Заглушка «Скоро» (расширение на проверке в Chrome Web Store): серая и не кликается */
.sh-drop-list .sh-soon { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; color: #9aa5ad; line-height: 1.25; font-size: 0.95rem; font-weight: 500; cursor: default; }
.sh-drop-list .sh-soon small { color: #b3bcc2; font-size: 0.8rem; font-weight: 400; }
.sh-soon em { font-style: normal; font-size: 0.72rem; font-weight: 600; color: #8a959c; background: #eef1f3; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }

.sh-auth { display: flex; align-items: center; gap: 12px; min-width: 90px; justify-content: flex-end; }
.sh-login { display: inline-flex; align-items: center; padding: 9px 18px; border: 1px solid var(--sh-border); border-radius: 10px; color: var(--sh-text); font-size: 0.95rem; font-weight: 600; }
.sh-login:hover { background: var(--sh-soft); }

.sh-profile { position: relative; }
.sh-chip { display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border: 1px solid var(--sh-border); border-radius: 999px; cursor: pointer; background: #fff; font-family: inherit; color: var(--sh-text); }
.sh-chip:hover { background: var(--sh-soft); }
.sh-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--sh-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.sh-email { font-size: 0.9rem; font-weight: 500; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-caret { color: #8a97a0; }
.sh-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--sh-border); border-radius: 12px; box-shadow: var(--sh-shadow); min-width: 180px; padding: 6px; display: none; }
.sh-menu.open { display: block; }
.sh-menu a, .sh-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 0.92rem; color: var(--sh-text); background: none; border: none; cursor: pointer; font-family: inherit; }
.sh-menu a:hover, .sh-menu button:hover { background: var(--sh-soft); }
.sh-menu .sh-logout { color: #e05a4d; }

@media (max-width: 720px) {
  .sh-links { display: none; }
  .sh-email { display: none; }
}
.sh-drop-list small.sh-accent-red svg { flex-shrink: 0; }
