/* Homepage hero «Живой логотип»: dark stage, network + orbits canvas, rotating icosahedron.
   Selectors are scoped to .rk-hero-orb and the homepage header states. */

.rk-hero-orb {
  --orb-bg: #0b0819;
  --orb-text: #ffffff;
  --orb-muted: #bdb6d9;
  --orb-caption: #cfc9e6;
  position: relative;
  overflow: hidden;
  color: var(--orb-text);
  background:
    radial-gradient(circle at 72% 52%, rgba(106, 61, 240, 0.22), rgba(11, 8, 25, 0) 42%),
    radial-gradient(circle at 4% 96%, rgba(194, 59, 192, 0.12), rgba(11, 8, 25, 0) 38%),
    var(--orb-bg);
  padding: 80px 0 40px;
}

.rk-hero-orb__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.rk-hero-orb__inner {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 1400px);
  margin-inline: auto;
  padding-inline: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rk-hero-orb__text {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rk-hero-orb__title {
  margin: 0;
  font-family: var(--rk-font-head);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.4px;
  color: var(--orb-text);
}

.rk-hero-orb__title span {
  background: linear-gradient(90deg, #a98bff, #f07be0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rk-hero-orb__lead {
  margin: 0;
  font-family: var(--rk-font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--orb-muted);
}

.rk-hero-orb__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.rk-hero-orb__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-family: var(--rk-font-head);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rk-hero-orb__cta:hover {
  transform: translateY(-1px);
}

.rk-hero-orb__cta:focus-visible {
  outline: 2px solid #c9b2ff;
  outline-offset: 3px;
}

.rk-hero-orb__cta--primary {
  color: #fff;
  background: linear-gradient(270deg, rgb(223, 98, 226) 9%, rgb(106, 92, 234) 90%);
}

.rk-hero-orb__cta--primary:hover {
  color: #fff;
  opacity: 0.94;
}

.rk-hero-orb__cta--secondary {
  color: #006fdc;
  background: #fff;
  border: 0.8px solid rgba(30, 30, 30, 0.22);
}

.rk-hero-orb__cta--secondary:hover {
  color: #006fdc;
  background: #f8fafc;
}

.rk-hero-orb__cta-ico {
  font-size: 18px;
  line-height: 1;
}

.rk-hero-orb__cta-play {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #24a0ff;
  position: relative;
  flex: 0 0 auto;
}

.rk-hero-orb__cta-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.rk-hero-orb__stage {
  order: 0;
  cursor: pointer;
  position: relative;
  width: 100%;
  height: 280px;
  margin-inline: auto;
}

.rk-hero-orb__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rk-hero-orb.is-live .rk-hero-orb__fallback {
  visibility: hidden;
}

.rk-hero-orb__labels {
  position: absolute;
  inset: 0;
}

.rk-hero-orb__label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -135%);
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #3b3364;
  background: rgba(20, 16, 42, 0.85);
  color: #e6e2f5;
  font-family: var(--rk-font-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  white-space: nowrap;
  cursor: pointer;
  will-change: transform, opacity;
}

.rk-hero-orb__label[data-active] {
  background: linear-gradient(90deg, #6a3df0, #c23bc0);
  border-color: #b48bff;
  color: #fff;
}

.rk-hero-orb__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  text-align: center;
  font-family: var(--rk-font-ui);
  font-size: 14px;
  line-height: 1.4;
  color: var(--orb-caption);
}

/* Reserve the H1 height of the web font so the font swap does not shift the buttons */
@media (max-width: 500px) {
  .rk-hero-orb__title {
    min-height: 4.48em;
  }
}

@media (min-width: 501px) {
  .rk-hero-orb__inner {
    padding-inline: 32px;
  }

  .rk-hero-orb__stage {
    height: 400px;
    max-width: 560px;
  }

  .rk-hero-orb__title {
    font-size: 44px;
  }

  .rk-hero-orb__lead {
    font-size: 17px;
  }

  .rk-hero-orb__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .rk-hero-orb__cta--primary {
    width: 367px;
    height: 52px;
  }

  .rk-hero-orb__cta--secondary {
    width: 242px;
    height: 56px;
  }
}

@media (min-width: 1100px) {
  .rk-hero-orb {
    display: flex;
    align-items: center;
    min-height: max(720px, min(100vh, 920px));
    padding: 96px 0 40px;
    box-sizing: border-box;
  }

  .rk-hero-orb__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-inline: 48px;
  }

  .rk-hero-orb__text {
    order: 0;
    flex: 0 1 660px;
    gap: 28px;
  }

  .rk-hero-orb__title {
    font-size: clamp(44px, 4.3vw, 64px);
    line-height: 1.06;
    letter-spacing: -1px;
  }

  .rk-hero-orb__lead {
    font-size: 19px;
    line-height: 1.55;
    max-width: 540px;
  }

  .rk-hero-orb__actions {
    margin-top: 0;
    gap: 14px;
  }

  .rk-hero-orb__stage {
    order: 1;
    flex: 0 0 auto;
    width: min(640px, 40vw);
    height: auto;
    max-width: none;
    aspect-ratio: 1;
    margin: 0;
  }

  .rk-hero-orb__label {
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }

  .rk-hero-orb__caption {
    font-size: 15px;
  }
}

/* ---------- Homepage header over the hero ---------- */

body.rk-home-page .rk-header.rk-header--fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}

.rk-header .rk-logo .rk-logo__light {
  display: none;
}

body.rk-home-page .rk-header.rk-header--hero {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.rk-home-page .rk-header.rk-header--hero .rk-logo img {
  display: none;
}

body.rk-home-page .rk-header.rk-header--hero .rk-logo .rk-logo__light {
  display: block;
}

body.rk-home-page .rk-header.rk-header--hero .rk-nav a {
  color: #e6e2f5;
}

body.rk-home-page .rk-header.rk-header--hero .rk-nav a[aria-current="page"],
body.rk-home-page .rk-header.rk-header--hero .rk-nav a:hover {
  color: #c9b2ff;
}

body.rk-home-page .rk-header.rk-header--hero .rk-header__bar > .rk-header__contacts .rk-header__phone {
  color: #fff;
}

body.rk-home-page .rk-header.rk-header--hero .rk-burger span {
  background: #fff;
}

body.rk-home-page .rk-header.rk-header--hero .rk-nav a:focus-visible,
body.rk-home-page .rk-header.rk-header--hero .rk-burger:focus-visible,
body.rk-home-page .rk-header.rk-header--hero .rk-wa:focus-visible,
body.rk-home-page .rk-header.rk-header--hero .rk-header__phone:focus-visible {
  outline-color: #c9b2ff;
}

/* Open mobile menu: show the regular white header */
body.rk-home-page.rk-menu-open .rk-header.rk-header--hero {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--rk-border);
}

body.rk-home-page.rk-menu-open .rk-header.rk-header--hero .rk-logo img {
  display: block;
}

body.rk-home-page.rk-menu-open .rk-header.rk-header--hero .rk-logo .rk-logo__light {
  display: none;
}

body.rk-home-page.rk-menu-open .rk-header.rk-header--hero .rk-burger span {
  background: var(--rk-text-dark);
}

body.rk-home-page .rk-header.rk-header--solid {
  animation: rk-header-in 0.3s ease;
}

@keyframes rk-header-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.rk-home-page .rk-header.rk-header--solid {
    animation: none;
  }

  .rk-hero-orb__cta {
    transition: none;
  }
}

.rk-hero-orb:not(.is-live) .rk-hero-orb__labels {
  visibility: hidden;
}
