.wrapper {
  overflow: inherit;
}

.sidebar {
  width: 100%;
  max-width: 280px;
  padding: 0;
  display: flex;
  flex-direction: column;
  padding: 60px 0;
}

.sidebar_title {
  font-weight: 700;
  font-size: 18px;
  line-height: 140%;
  text-align: center;
  color: #243d3a;
  margin-bottom: 15px;
}

.sidebar_programs_items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar_programs_item {
  background-color: #3e635f;
}

.sidebar_programs_img {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.sidebar_programs_img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  object-fit: contain;
}

.sidebar_programs_item_popular {
  position: absolute;
  top: 13px;
  right: -32px;
  width: 120px;
  background-color: red;
  transform: rotate(45deg);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px 10px;
}

.sidebar_programs_tag {
  position: absolute;
  bottom: 10px;
  left: 15px;
  background: #9c7130;
  opacity: 0.9;
  border-radius: 20px 0px;
  padding: 10px;
  color: white;
  font-weight: 700;
  font-size: 12px;
}

.sidebar_programs_item_content {
  padding: 15px 15px 25px;
}

.sidebar_programs_item_content a {
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  color: white;
  margin-bottom: 10px;
  text-align: left;
  text-decoration: none;
  display: block;
}

.sidebar_programs_item_content p {
  font-weight: 500;
  font-size: 14px;
  line-height: 130%;
  color: white;
  text-align: left;
}

.sidebar_form .srm {
  background: white;
}

.sidebar_form .srm p {
  box-shadow: none;
}

.sidebar_form {
  margin-top: 15px;
  box-shadow: 0px 5px 5px rgba(67, 111, 115, 0.1);
  position: sticky;
  top: 150px;
  height: max-content;
}

.sidebar_form label {
  background-color: #FFF;
  background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");
  background-repeat: no-repeat;
  background-position: 12px 16px;
  background-size: 12px;
}

.sidebar_form input {
  background-color: transparent;
}

.sidebar_cat {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar_cat ul {
  list-style: none;
}

.sidebar_cat_parent {
  padding: 15px 0 0 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  transition: all linear 0.5s;
}

.sidebar_cat_wrap.active .sidebar_cat_parent {
  padding: 15px 0 15px 0;
}

.sidebar_cat_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid transparent;
  transition: all linear 0.5s;
  color: #967340;
  font-size: 16px;
  font-weight: 600;
}

.sidebar_cat_title span {
  width: 20px;
  height: 20px;
  border: 1px solid #967340;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
}

.sidebar_cat_title span::after,
.sidebar_cat_title span::before {
  content: "";
  background: #967340;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: all linear 0.1s;
}

.sidebar_cat_title span::after {
  height: 1px;
  width: 60%;
}

.sidebar_cat_title span::before {
  height: 60%;
  width: 1px;
}

.sidebar_cat_wrap.active .sidebar_cat_title span::before {
  opacity: 0;
}

.sidebar_cat_wrap.active .sidebar_cat_title {
  border-bottom: 1px solid #967340;
  margin-bottom: 15px;
}

.sidebar_cat_wrap {
  padding: 0 15px;
  background-color: #ffffff;
  box-shadow: 0px 5px 80px 0px #a1bde136;
  list-style: none;
}

.sidebar_cat_child {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 0px;
  overflow: hidden;
  transition: all linear 0.5s;
}

.sidebar_cat_child::-webkit-scrollbar {
  width: 1px;
}

.sidebar_cat_child::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar_cat_child::-webkit-scrollbar-thumb {
  background-color: #967340;
  border-radius: 20px;
  border: 0;
}

.sidebar_cat_wrap.active .sidebar_cat_child {
  max-height: 300px;
  overflow: auto;
}

.sidebar_cat_child li a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #39464a;
  width: fit-content;
}

.sidebar_cat_child li b {
  font-size: 14px;
  line-height: 18px;
  color: #39464a;
}

.sidebar_cat_child li {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 2;
}

.sidebar_cat_child li span {
  width: 20px;
  height: 20px;
  background-position: center;
  background-size: contain;
}

.sidebar_post_items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar_post_items li {
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0px 5px 80px 0px #a1bde136;
  background: #ffffff;
}

.sidebar_post_item_wrap {
  width: calc(100% - 90px);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar_post_item_wrap a {
  font-size: 14px;
  font-weight: 600;
  color: #2d4744;
  text-decoration: none;
}

.sidebar_post_item_time {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9d8d75;
  font-size: 12px;
  font-weight: 500;
}

.sidebar_post_item_time img {
  display: block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  object-fit: contain;
  object-position: left;
}

.sidebar_post_item_img {
  width: 100%;
  max-width: 80px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar_post_item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sidebar_title_mt {
  margin-top: 15px;
  padding-bottom: 0;
}

@media (hover: hover) {
  .sidebar_programs_tag {
    backdrop-filter: blur(300px);
  }

  .sidebar_programs_tag span:hover {
    text-decoration: underline;
  }

  .sidebar_programs_item_content a:hover {
    text-decoration: underline;
  }
}

@media screen and (max-width: 1000px) {
  .sidebar_form {
    display: none;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
    padding-top: 0;
  }

  .sidebar_title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .otzyvy_post .container {
    gap: 0;
  }

  .sidebar_programs_items {
    flex-direction: row;
  }

  .sidebar_programs_item {
    width: calc(100% / 3 - 40px / 3);
  }

  .sidebar_programs_items {
    gap: 20px;
  }

  .sidebar_programs_item_content a {
    font-size: 14px;
  }

  .sidebar_programs_tag {
    left: 10px;
  }

  .sidebar_programs_item_content {
    padding: 10px 10px 20px 10px;
  }
}

@media screen and (max-width: 900px) {
  .sidebar {
    padding-bottom: 40px;
  }

  .sidebar_programs_items {
    gap: 10px;
  }

  .sidebar_programs_item {
    width: calc(100% / 3 - 20px / 3);
  }
}

@media screen and (max-width: 800px) {
  .sidebar_programs_item {
    width: calc(100% / 2 - 20px / 2);
  }

  .sidebar_programs_items {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .sidebar_programs_items {
    gap: 20px;
  }

  .sidebar_programs_item:last-of-type {
    margin: 0 auto;
  }
}

@media screen and (max-width: 550px) {
  .sidebar_programs_item {
    width: 100%;
  }
}