body .hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  margin-bottom: 22px;
  border: 1px solid rgba(112, 107, 223, .2);
  border-radius: 30px 30px 58px 30px;
  background: #070c29;
  box-shadow: 0 28px 70px rgba(20, 27, 73, .22), 0 8px 24px rgba(66, 43, 126, .16);
}

body .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12px 5% 24%;
  border-radius: 42px;
  background: linear-gradient(115deg, rgba(0, 197, 255, .28), rgba(102, 70, 239, .25) 52%, rgba(222, 68, 255, .24));
  filter: blur(28px);
  opacity: .78;
}

body .hero > img {
  content: url("/help/slotsmile-help-brand-wide.jpg");
  display: block;
  width: 100%;
  height: clamp(150px, 17.5vw, 200px);
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 29px 29px 0 0;
  filter: saturate(1.05) contrast(1.02);
}

body .hero-copy {
  position: relative;
  margin-top: -2px;
  padding: 12px 30px 16px;
  border-radius: 0 0 57px 29px;
  background:
    radial-gradient(circle at 88% 0, rgba(185, 68, 255, .17), transparent 35%),
    linear-gradient(118deg, #07142e 0%, #101536 47%, #241044 100%);
  color: #fff;
}

body .hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -44px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, rgba(7, 17, 47, .94));
  pointer-events: none;
}

body .hero-copy .eyebrow { color: #b9d8ff; }
body .hero-copy h1 { font-size: clamp(22px, 3vw, 32px); margin: 2px 0; }
body .hero-copy p { margin: 3px 0 0; color: #d8dcf4; }

@media (max-width: 780px) {
  body .hero {
    margin-bottom: 18px;
    border-radius: 21px 21px 38px 21px;
  }

  body .hero > img {
    height: clamp(105px, 32vw, 135px);
    max-height: none;
    border-radius: 20px 20px 0 0;
  }

  body .hero-copy {
    padding: 10px 18px 14px;
    border-radius: 0 0 37px 20px;
  }

  body .hero::before {
    inset: -5px 7% 30%;
    filter: blur(20px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body .hero > img { animation: help-hero-in .6s ease-out both; }
  @keyframes help-hero-in {
    from { opacity: 0; transform: scale(1.012); }
    to { opacity: 1; transform: scale(1); }
  }
}

.toolbar .language-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.toolbar details.language-picker { position: relative; width: 210px; margin: 0; overflow: visible; z-index: 12; background: transparent; border: 0; border-radius: 12px; }
.toolbar .language-picker summary,.toolbar .language-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font: inherit; line-height: 1.65; text-align: left; cursor: pointer; }
.toolbar .language-picker summary { list-style: none; font-weight: 650; }
.toolbar .language-picker summary::-webkit-details-marker { display: none; }
.toolbar .language-picker summary::before { content: none; }
.toolbar .language-picker summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.toolbar .language-picker img,.toolbar .language-menu img { width: 24px; height: 18px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.toolbar .language-menu { position: absolute; top: calc(100% + 5px); left: 0; z-index: 30; width: 100%; max-height: 310px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(24,35,71,.18); }
.toolbar .language-menu button { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.toolbar .language-menu button:last-child { border-bottom: 0; }
.toolbar .language-menu button:hover,.toolbar .language-menu button[aria-current=true] { background: var(--soft); color: var(--accent); }
@media(max-width:780px){.toolbar .language-picker{width:100%}}

/* Заметная кнопка «на главную» в строке панели справки перед поиском
   (общая для /help/ и /help/<язык>/…). */
.toolbar .home-link {
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 8px;
  /* Высота как у поля поиска и списков: те же отступы, шрифт, рамка и межстрочный интервал. */
  box-sizing: border-box;
  min-height: 52px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: 700 16px system-ui;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(89, 64, 189, .3);
}
.toolbar .home-link:hover { filter: brightness(1.1); }
.toolbar .home-link svg { flex-shrink: 0; }
html[data-theme=dark] .toolbar .home-link { color: #1a1330; box-shadow: none; }
@media(max-width:780px){.toolbar .home-link{grid-column:1/-1;justify-content:center}}
