/* Only dark mode is shown: the day/night switch is hidden (kept in markup). */
.scheme-swit-h { display: none !important; }
/* current language in the switcher */
.drop .language.is-current { color: var(--color-accent, #00e0ff); }
/* Poppins/Goldman have no Cyrillic: fall back to Inter (loaded with Cyrillic) instead of a system font */
html[lang="ru"] .heading-h1, html[lang="ru"] .heading-style-h2, html[lang="ru"] .heading-style-h4 { font-family: Poppins, Inter, sans-serif; }
html[lang="ru"] .menu_link { font-family: Goldman, Inter, sans-serif; }
/* Header edges: home icon glyph and "Login" text sit exactly on the ends of the header line */
.panel > a.home { margin-left: -5px; }
.menu_link.is_accent { padding-right: 0; }
/* Language dropdown: invisible bridge over the gap between the globe and the list,
   so moving the mouse down to the list doesn't close it (globe flip animation untouched) */
.drop.w--open::before { content: ""; position: absolute; left: -12px; right: -12px; top: -16px; height: 16px; }
.drop.w--open { padding: 0 12px 8px 0; }
/* Service cards: on multi-column layouts the 4 cards share one subgrid — icon, title, description and
   footer (tagline + Telegram invite) each sit on a common row, so taglines line up in every language. */
.text_service .svc-desc, .text_service .svc-foot { display: block; text-align: center; }
.text_service .svc-foot { padding-top: 1.5em; }
@media (min-width: 768px) {
  .services_list { align-items: stretch; }
  .services_list > .service_link,
  .services_list > .service_link > .service_item {
    display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; width: 100%;
  }
  .services_list > .service_link > .service_item { justify-items: center; align-items: start; align-content: start; }
  .service_item > .text_service { display: contents; }
  .text_service .svc-desc, .text_service .svc-foot { align-self: start; }
}
/* "AInnovation" / "ИИнновациям" in the section heading: upright, no italics (all languages) */
.heading-style-h2 em { font-style: normal; }
/* Header: section links (Trading · Staff · Studio · Software, Goldman font) hidden — kept in markup.
   The account icon replaces the "Login" text and sits on the right end of the header line. */
.panel > .menu { display: none !important; }
.panel { justify-content: flex-start; }
.panel > .sl-account { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  padding: 0 !important; margin-left: auto; margin-right: -2px; color: var(--color-accent); }
.panel > .sl-account:hover { color: var(--color-link-active); }
.panel > .sl-account svg { display: block; width: 24px; height: 24px; }
/* Footer: "Subscribe" stands before the e-mail field, on one line */
.footer_right-wrapper form { display: flex; align-items: baseline; gap: .75em; }
.footer_right-wrapper form .submit-button { order: -1; flex: none; }
.footer_right-wrapper form .subscribe { flex: 1 1 auto; min-width: 0; width: auto; }
.panel > .icon_container { margin-left: 0 !important; margin-right: 0 !important; }
@media (max-width: 767px) {
  /* phone footer: Resources / Subscribe + e-mail / social icons stacked, nothing runs off-screen */
  .footer_top-wrapper { flex-direction: column; align-items: stretch; row-gap: 14px; }
  .footer_top-wrapper > .footer_right-wrapper { margin: 0; width: 100%; }
  .footer_top-wrapper > .social_media { justify-content: flex-start; }
}

/* fixed header (custom/header-fix.js) */
.section_navigation.sl-fixed { position: fixed !important; right: auto !important; bottom: auto !important; z-index: 1000; margin: 0 !important; }
.section_navigation.sl-fixed::before {
  content: ""; display: block !important; position: absolute; z-index: -1; pointer-events: none;
  top: calc(-1 * var(--sl-nav-top, 0px)); bottom: -6px; left: -100vw; right: -100vw;
  background: linear-gradient(to bottom, rgba(26, 26, 46, .88), rgba(26, 26, 46, .72));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* header: brain badge (drawn by logo-sphere.js) in the account's old place */
.sl-brain-badge { display: inline-block; width: 34px; height: 34px; flex: 0 0 34px; align-self: center; pointer-events: none; }
@media (max-width: 479px) { .sl-brain-badge { width: 28px; height: 28px; flex-basis: 28px; } }
.section_navigation .panel > a.sl-account { margin-left: 4px; margin-right: 0; }
.section_navigation .panel > .icon_container { margin-left: 4px !important; margin-right: auto !important; }  /* home · languages · account, then the rest to the right */
.sl-brain-badge { margin-left: 12px; }
