.sg {

  @media (width >= 768px) {
    display: flex;
    gap: 3rem;
  }

}

/* ---------------------------------------------- */

.sg__sidebar {
  /* max-width: 30rem; */
  flex: 1 1 18rem;
  background-color: white;

  @media (width < 768px) {
    position: sticky;
    top: 0;
    padding-block: 1rem;
    z-index: 10;
    border-bottom: 1px solid #ddd;
    margin-block-end: 2rem;
  }
}

.sg__sidebar .block-menu-block {

  @media (width < 768px) {
    position: absolute;
    top: 100%;
    width: 100%;
    left: 0;
    background-color: white;
  }
  
  @media (width >= 768px) {
    position: sticky;
    top: 20px;
    display: block !important;
  }

  @media (width >= 992px) {
    top: 60px
  }

}

.sg__menu-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2rem;

  @media (width >= 768px) {
    display: none;
  }
}

.sg__icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* ---------------------------------------------- */

.sg__content {
  flex: 5 1 45rem;
}

.sg__content > h2 {
  scroll-margin-top: 10px;

  @media (width < 768px) {
    scroll-margin-top: 70px;
  }

  @media (width >= 992px) {
    scroll-margin-top: 50px;
  }
}

.sg__content > hr:has(+ h2) {
  margin-block-start: 40px;
}

/* ---------------------------------------------- */

.sg__intro {
  display: flex;
  flex-wrap: wrap;
}
.sg__intro-image {
  flex: 1 1 50rem;
}
.sg__intro-text {
  flex: 1 1 30rem;
  padding: 2rem;
  background-color: #0065bd;
  color: white;
}

/* ---------------------------------------------- */

.sg__apply-btn {
  margin-block: 40px;
}