.header-section-block--lesson {
  padding-bottom: 20px;
}

.program-group {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 50px auto;
  grid-template-areas:
    'menu'
    'description';
  max-width: 100%;
  /* min-height: 380px; */
  gap: 15px;
}
@media (max-width: 1024px) {
  .program-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .program-group {
    grid-template-columns: 1fr;
    grid-template-rows: 45px 1fr;
    grid-template-areas:
      'menu'
      'description';
    height: 100%;
    border-radius: 20px;
  }
}


.program-group__menu-wrapper {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  grid-area: menu;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  border-radius: 30px;
  z-index: 2;
  transition: transform 0.5s ease;
}
.program-group__menu-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari и Opera */
}

.program-group__menu {
  height: 100%;
  border-radius: 30px;
  /* padding-right: 25px; */
  width: auto;
  background-color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-align: center;
}
@media (max-width: 1024px) {
  .program-group__menu {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .program-group__menu {
    width: 100%;

  /* padding-right: 0; */
  }
}

.program-group__menu-item {
  display: flex;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
  height: 100%;
  border-radius: 30px;
  flex-grow: 1;
}
.program-group__menu-item.selected {
  background-color: #5b9bd6;
  color: #fff;
  border: 2px solid #fff;
  box-sizing: border-box;
  /* order: 1; */
}

/* .program-group__menu-item:hover {
  background-color: #dacfc9;
} */
@media (max-width: 1024px) {
  .program-group__menu-item {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 400px) {
  .program-group__menu-item {
    padding-left: 5px;
    padding-right: 5px;
  }
}
.program-group__menu-arrow {
  position: absolute;
  top: 0;
  right: -2px;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #5b9bd6 url(../media/img/arrow.svg) no-repeat center center;
  background-size: 30%;
  border: 2px solid #fff;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}
.program-group__menu-arrow:active {
  transform: scale(0.9);
}
@media (max-width: 768px) {
  .program-group__menu-arrow {
    border: 2px solid #f5f5f5;
  }
}

.program-group__menu-title {
  font-family: 'Manrope Regular';
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 133.333% */
  margin-top: auto;
  margin-bottom: auto;
}
@media (max-width: 1024px) {
  .program-group__menu-title {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .program-group__menu-title {
    font-size: 16px;
  }
}

.program-group__description {
  border-radius: 30px;
  grid-area: description;
  background-color: #fff;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: top;
  position: relative;
}

@media (max-width: 768px) {
  .program-group__description {
    padding: 20px 25px;
  }
  /* .program-group__description::before {
    position: absolute;
    top: -50px;
    right: 0;
    content: '';
    height: 50px;
    width: 100%;
    background-color: #fff;
    z-index: 1;
  } */
  /* .program-group__description {
    gap: 15px;
    padding-top: 15px;
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  } */
}
/* @media (max-width: 768px) {
  .program-group__description {
    gap: 10px;
    padding-top: 10px;
  }
} */

.program-group__description-title {
  font-family: 'Manrope Regular';
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 133.333% */
}
@media (max-width: 1024px) {
  .program-group__description-title {
    font-size: 22px;
  }
}
@media (max-width: 768px) {
  .program-group__description-title {
    font-size: 20px;
    line-height: 22px;
  }
}

.program-group__description-text {
  font-family: 'Manrope Regular';
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px; /* 140% */
}
@media (max-width: 1024px) {
  .program-group__description-text {
    font-size: 18px;
  }
}
@media (max-width: 768px) {
  .program-group__description-text {
    font-size: 16px;
    line-height: 24px;
  }
}

.program-group__img,
.program-group__description {
  display: none;
}

.program-group__img.active,
.program-group__description.active {
  display: flex;
}
