.hbc-custom-hero {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  height: min(82vh, 48vw);
  min-height: 560px;
  max-height: 760px;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: #080b27;
  box-sizing: border-box;
}

.hbc-slide-backgrounds {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hbc-slide-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.025);
  transition:
    opacity 1600ms cubic-bezier(.22, .61, .36, 1),
    transform 7600ms cubic-bezier(.22, .61, .36, 1);
}

.hbc-slide-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.hbc-slide-bg-1 {
  background-image: url("hero-pic-blockchain.png");
}

.hbc-slide-bg-2 {
  background-image: url("research-block-chain.png");
}

.hbc-slide-bg-3 {
  background-image: url("block-chain-forum-eu.png");
}

.hbc-custom-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 7, 35, .34) 0%, rgba(9, 7, 35, .14) 46%, rgba(9, 7, 35, .24) 100%),
    linear-gradient(180deg, rgba(9, 8, 34, .18) 0%, rgba(8, 7, 30, .44) 100%);
  z-index: 1;
}

.hbc-custom-hero::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 61%;
  background:
    linear-gradient(115deg, rgba(57, 28, 101, .92) 0 32%, transparent 32.1%),
    linear-gradient(115deg, transparent 0 23%, rgba(12, 47, 91, .88) 23.1% 69%, transparent 69.1%);
  z-index: 2;
  pointer-events: none;
}

.hbc-hero-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 2.4vw, 46px);
  width: 100%;
  min-height: 76px;
  padding: 0 clamp(38px, 5.6vw, 104px);
  border-top: 1px solid rgba(113, 96, 185, .28);
  border-bottom: 1px solid rgba(113, 96, 185, .34);
  background: rgba(3, 13, 38, .92);
  box-shadow: 0 18px 58px rgba(0,0,0,.30);
  box-sizing: border-box;
}

.hbc-hero-header::before {
  content: "";
  display: none;
}

.hbc-hero-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(22px, 2.8vw, 58px);
  min-width: 0;
}

.hbc-hero-menu a {
  position: relative;
  padding: 27px 0;
  color: rgba(255,255,255,.92);
  font: 700 clamp(14px, .95vw, 18px)/1 Helvetica, Arial, sans-serif;
  letter-spacing: .015em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.hbc-hero-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  background: #8f67ff;
  transition: transform .22s ease;
}

.hbc-hero-menu a.is-active,
.hbc-hero-menu a:hover,
.hbc-hero-menu a:focus-visible {
  color: #9d79ff;
}

.hbc-hero-menu a.is-active::after,
.hbc-hero-menu a:hover::after,
.hbc-hero-menu a:focus-visible::after {
  transform: scaleX(1);
}

.hbc-hero-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.hbc-forum-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  text-decoration: none;
  box-sizing: border-box;
}

.hbc-forum-link {
  min-width: 236px;
  padding: 0 20px;
  border-radius: 7px;
  background: #fff;
  color: #09091e;
  font: 800 13px/1 Helvetica, Arial, sans-serif;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.hbc-forum-link::after {
  content: "→";
  margin-left: auto;
  padding-left: 18px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.hbc-menu-toggle {
  display: none;
}

.hbc-custom-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: 15.2vh 0 0 7.85vw;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  filter: blur(8px);
  transition:
    opacity 850ms cubic-bezier(.22, .61, .36, 1),
    transform 950ms cubic-bezier(.22, .61, .36, 1),
    filter 850ms cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear 850ms;
  z-index: 3;
  box-sizing: border-box;
}

.hbc-custom-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0s;
}

.hbc-custom-hero.is-transitioning .hbc-prev,
.hbc-custom-hero.is-transitioning .hbc-next,
.hbc-custom-hero.is-transitioning .hbc-dots button {
  pointer-events: none;
}

.hbc-custom-content {
  max-width: 660px;
  color: #fff;
}

.hbc-counter,
.hbc-label {
  display: block;
  margin-bottom: 22px;
  color: rgba(216, 207, 255, .68);
  font-family: "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.hbc-custom-content h1 {
  max-width: 620px;
  font-family: "Arial Narrow", "HelveticaNeue-CondensedBold", "Roboto Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 4.95vw, 82px);
  line-height: .985;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 26px;
  color: #fff;
}

.hbc-custom-content p {
  max-width: 690px;
  font-family: "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 1.18vw, 20px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: .025em;
  text-transform: uppercase;
  margin: 0 0 32px;
  color: rgba(255,255,255,.82);
}

.hbc-custom-content a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 230px;
  height: 56px;
  padding: 0 18px 0 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0) 48%),
    rgba(0,0,0,.72);
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.hbc-custom-content a::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-size: 22px;
  line-height: 1;
  transition: transform .22s ease, background .22s ease;
}

.hbc-custom-content a:hover,
.hbc-custom-content a:focus-visible {
  border-color: rgba(255,255,255,.38);
  background:
    linear-gradient(135deg, rgba(143,103,255,.28), rgba(255,255,255,0) 52%),
    rgba(0,0,0,.78);
  box-shadow: 0 22px 54px rgba(0,0,0,.36);
  transform: translateY(-2px);
}

.hbc-custom-content a:hover::after,
.hbc-custom-content a:focus-visible::after {
  background: rgba(255,255,255,.2);
  transform: translateX(3px);
}

.hbc-prev,
.hbc-next {
  position: absolute;
  top: 55%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(3, 13, 38, .34);
  color: #fff;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.hbc-prev:hover,
.hbc-next:hover,
.hbc-prev:focus-visible,
.hbc-next:focus-visible {
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.12);
  opacity: 1;
}

.hbc-prev { left: clamp(18px, 2.3vw, 40px); }
.hbc-next { right: clamp(18px, 2.3vw, 40px); }

.hbc-dots {
  position: absolute;
  right: 7.7vw;
  bottom: clamp(49px, 6.55vh, 67px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hbc-dots button {
  width: 54px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  padding: 0;
  background: rgba(151, 144, 212, .58);
  cursor: pointer;
}

.hbc-dots button.is-active {
  background: #fff;
}

@media (max-width: 768px) {
  .hbc-custom-hero {
    height: 590px;
    min-height: 590px;
    max-height: none;
  }

  .hbc-slide-bg {
    background-position: 58% center;
  }

  .hbc-slide-bg-2 {
    background-position: 54% center;
  }

  .hbc-custom-hero::after {
    width: 100%;
    background:
      linear-gradient(105deg, rgba(57, 28, 101, .92) 0 58%, transparent 58.2%),
      linear-gradient(105deg, transparent 0 26%, rgba(12, 47, 91, .88) 26.2% 100%);
  }

  .hbc-custom-slide {
    padding: 118px 28px 0;
  }

  .hbc-counter,
  .hbc-label {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .hbc-custom-content h1 {
    font-size: 44px;
    line-height: 1;
  }

  .hbc-custom-content p {
    font-size: 16px;
    max-width: 92%;
  }

  .hbc-prev,
  .hbc-next {
    display: none;
  }

  .hbc-dots {
    right: auto;
    bottom: 28px;
    left: 28px;
    transform: none;
  }

  .hbc-dots button {
    width: 38px;
  }
}

@media (max-width: 1500px) {
  .hbc-hero-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    min-height: 72px;
    padding: 0 34px;
  }

  .hbc-hero-menu {
    gap: 26px;
  }

  .hbc-hero-menu a {
    padding: 25px 0;
    font-size: 14px;
  }

  .hbc-hero-menu a::after {
    bottom: 15px;
  }

  .hbc-forum-link {
    min-width: 220px;
    height: 44px;
    padding: 0 18px;
    font-size: 12px;
  }

  .hbc-forum-link::after {
    padding-left: 16px;
    font-size: 21px;
  }
}

@media (max-width: 1180px) {
  .hbc-hero-header {
    top: 0;
    width: 100%;
    min-height: 64px;
    grid-template-columns: auto;
    justify-content: end;
    gap: 16px;
    padding: 0 16px;
  }

  .hbc-menu-toggle {
    display: inline-flex;
    grid-column: 1;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.075);
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .2s ease, border-color .2s ease;
  }

  .hbc-menu-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 99px;
    margin: 0 auto;
    background: #fff;
    transition: transform .22s ease, opacity .22s ease;
  }

  .hbc-menu-toggle:hover,
  .hbc-menu-toggle:focus-visible {
    border-color: rgba(255,255,255,.42);
    background: rgba(255,255,255,.13);
  }

  .hbc-custom-hero.is-menu-open .hbc-menu-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .hbc-custom-hero.is-menu-open .hbc-menu-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hbc-hero-menu,
  .hbc-hero-actions {
    position: absolute;
    right: 0;
    left: 0;
    display: none;
    background: #030d26;
    box-shadow: 0 22px 52px rgba(0,0,0,.28);
  }

  .hbc-custom-hero.is-menu-open .hbc-hero-menu,
  .hbc-custom-hero.is-menu-open .hbc-hero-actions {
    display: flex;
  }

  .hbc-hero-menu {
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 22px 10px;
    border-top: 1px solid rgba(113, 96, 185, .34);
  }

  .hbc-hero-menu a {
    padding: 13px 0;
    font-size: 15px;
  }

  .hbc-hero-menu a::after {
    display: none;
  }

  .hbc-hero-actions {
    top: calc(100% + 264px);
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 0 22px 18px;
    border-bottom: 1px solid rgba(113, 96, 185, .34);
  }

  .hbc-custom-hero.is-menu-open .hbc-custom-slide {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none;
  }

  .hbc-custom-hero.is-menu-open .hbc-dots {
    display: none;
  }

  .hbc-forum-link {
    height: 46px;
    min-width: 220px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .hbc-hero-header {
    top: 0;
    min-height: 58px;
    padding: 0 14px;
  }

  .hbc-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hbc-forum-link {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding: 0 16px;
  }
}
