.menu {
  position: relative
}
.menu__main {
  display: flex;
  align-items: center;
  margin: 0 -5px
}
.menu__item {
  flex: auto;
  margin: 0 5px
}
.menu__item:nth-last-child(1),
.menu__item:nth-last-child(2) {
  min-width: 300px;
  max-width: 300px
}
.menu__item:hover .menu__submenu-container {
  display: block;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 20px 10px rgba(0,0,0,.04)
}
.menu__item:hover .menu__link_has-submenu {
  box-shadow: none
}
.menu__item:hover .menu__link_has-submenu:not(.menu__link_active) {
  color: #e81b23
}
.menu__item:hover .menu__link_has-submenu::before {
  display: block
}
.menu__item:hover .menu__link_has-submenu::after {
  display: block
}
.menu__item:hover .menu__link_has-submenu .menu__link-bg {
  display: block
}
.menu__item:first-child .menu__submenu-block {
  border-radius: 0 20px 20px
}
.menu__item:first-child:hover .menu__link_has-submenu::before {
  display: none
}
.menu__item:last-child:hover .menu__link_has-submenu::after {
  display: none
}
.menu__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  line-height: 19px;
  color: #0e0e0e;
  cursor: pointer;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,.04);
  background-color: #fff;
  padding: 4px
}
.menu__link_selected .menu__link-icon,
.menu__link_selected .menu__link-text {
  color: #e81b23
}
.menu__link:hover:not(.menu__link_active) {
  color: #e81b23
}
.menu__link.menu__link_active {
  background: linear-gradient(0deg,rgba(232,27,35,.6),rgba(232,27,35,.6)),rgba(0,0,0,.2);
  color: #fff
}
.menu__link.menu__link_active:hover {
  background: #fff;
  color: #e81b23
}
.menu__link svg {
  flex-shrink: 0;
  width: 32px;
  height: 32px
}
.menu__link::after {
  position: absolute;
  bottom: -10px;
  right: -25px;
  content: '';
  display: none;
  width: 25px;
  height: 25px;
  background-image: url(../img/content/right-bg-menu.png);
  background-size: 25px 25px
}
.menu__link::before {
  position: absolute;
  bottom: -10px;
  left: -25px;
  content: '';
  display: none;
  width: 25px;
  height: 25px;
  background-image: url(../img/content/left-bg-menu.png);
  background-size: 25px 25px
}
.menu__link-text {
  position: relative;
  margin-left: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 19px;
  z-index: 3
}
.menu__link-bg {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: none;
  height: 50px;
  background-color: #fff;
  z-index: -1;
  transition: opacity .35s
}
.menu__submenu-container {
  display: none;
  transition: opacity .35s;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding-top: 10px;
  background-color: transparent;
  z-index: 30
}
.menu__submenu-block {
  display: flex;
  align-items: flex-start;
  height: 435px;
  min-height: 200px;
  padding: 20px 20px 20px 32px;
  border-radius: 20px;
  background-color: #fff
}
.menu__submenu-first-level-block {
  position: relative;
  max-height: 400px;
  overflow-y: auto
}
.menu__submenu-first-level-block::-webkit-scrollbar {
  width: 5px;
  height: 0
}
.menu__submenu-first-level-block::-webkit-scrollbar-track {
  background-color: #d9d9d9
}
.menu__submenu-first-level-block::-webkit-scrollbar-thumb {
  background-color: #999
}
.menu__submenu-first-level-block-item {
  width: 295px;
  padding-right: 24px
}
.menu__submenu-first-level-block-item .menu__arrow-left-sub {
  display: none!important
}
.menu__submenu-first-level-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 8px 8px 8px 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 19px;
  color: #0e0e0e;
  border-radius: 10px;
  transition: .35s;
  cursor: pointer
}
.menu__submenu-first-level-row_selected {
  color: #e81b23
}
.menu__submenu-first-level-row_thin {
  font-weight: 400
}
.menu__submenu-first-level-row svg {
  color: #858585;
  transition: .35s
}
.menu__submenu-second-level-block {
  display: none;
  min-height: 100%;
  border-left: 1px solid #f3f3f3
}
.menu__submenu-second-level-placeholder {
  align-self: stretch;
  max-height: 400px;
  overflow: auto
}
.menu__submenu-second-level-placeholder::-webkit-scrollbar {
  width: 5px
}
.menu__submenu-second-level-placeholder::-webkit-scrollbar-track {
  background-color: #d9d9d9
}
.menu__submenu-second-level-placeholder::-webkit-scrollbar-thumb {
  background-color: #999
}
.menu__submenu-second-level-placeholder .menu__submenu-second-level-block {
  display: block
}
.menu__submenu-third-level-placeholder {
  align-self: stretch;
  max-height: 400px;
  overflow: auto
}
.menu__submenu-third-level-placeholder::-webkit-scrollbar {
  width: 5px
}
.menu__submenu-third-level-placeholder::-webkit-scrollbar-track {
  background-color: #d9d9d9
}
.menu__submenu-third-level-placeholder::-webkit-scrollbar-thumb {
  background-color: #999
}
.menu__submenu-third-level-placeholder .menu__submenu-third-level-block {
  display: flex
}
.menu__sertificate {
  margin-left: auto
}
.menu__submenu-second-level-block-item {
  width: 300px;
  padding-left: 24px;
  padding-right: 24px
}
.menu__submenu-second-level-block-item .menu__arrow-left-sub-third {
  display: none!important
}
.menu__submenu-second-level-block-item_open .menu__submenu-third-level-block {
  position: static;
  display: flex;
  flex-direction: column;
  border: none;
  width: 100%;
  padding: 24px 0 0;
  border-top: 1px solid #eaeaea
}
.menu__submenu-second-level-block-item_open .menu__submenu-third-level-block-item {
  width: 100%;
  padding: 0
}
.menu__submenu-second-level-block-item_open .menu__leaf-link {
  height: auto;
  display: block;
  padding: 16px 0 16px 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 23px
}
.menu__submenu-second-level-block-item_open .menu__submenu-second-level-row {
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px!important;
  font-size: 15px!important;
  font-weight: 400!important;
  line-height: 19px!important;
  color: #858585
}
.menu__submenu-second-level-block-item_open .menu__submenu-second-level-row svg {
  display: none;
  margin-right: 4px
}
.menu__submenu-second-level-block-item_open .menu__arrow-left-sub-third {
  display: block!important
}
.menu__submenu-second-level-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 8px 8px 8px 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 19px;
  color: #0e0e0e;
  border-radius: 10px;
  transition: .35s;
  cursor: pointer
}
.menu__submenu-second-level-row_selected {
  color: #e81b23
}
.menu__submenu-second-level-row_thin {
  font-weight: 400
}
.menu__submenu-second-level-row svg {
  color: #858585;
  transition: .35s
}
.menu__submenu-third-level-block {
  display: none;
  flex-direction: column;
  min-height: 100%;
  width: 300px;
  padding-left: 24px;
  padding-right: 24px;
  border-left: 1px solid #f3f3f3
}
.menu__leaf-link {
  width: 100%;
  height: 36px;
  padding: 8px 8px 8px 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  color: #0e0e0e;
  border-radius: 10px;
  transition: .35s;
  cursor: pointer
}
.menu__leaf-link_selected {
  color: #e81b23
}
.menu__leaf-link:hover {
  background-color: #f8f8f8
}
.menu__arrow-left,
.menu__icon-arrow-mob {
  display: none
}
@media (min-width:1024px) {
  .menu__submenu-first-level-block-item:hover .menu__submenu-second-level-block {
    display: block
  }
  .menu__submenu-first-level-block-item:hover .menu__submenu-first-level-row {
    background-color: #f8f8f8
  }
  .menu__submenu-first-level-block-item:hover .menu__submenu-first-level-row svg {
    color: #0e0e0e
  }
  .menu__submenu-second-level-block-item:hover .menu__submenu-third-level-block {
    display: flex
  }
  .menu__submenu-second-level-block-item:hover .menu__submenu-second-level-row {
    background-color: #f8f8f8
  }
  .menu__submenu-second-level-block-item:hover .menu__submenu-second-level-row svg {
    color: #0e0e0e
  }
}
@media (max-width:1350px) {
  .menu__item:nth-last-child(1),
  .menu__item:nth-last-child(2) {
    min-width: 230px;
    max-width: 230px
  }
}
@media (max-width:1200px) {
  .menu__item:nth-last-child(1),
  .menu__item:nth-last-child(2) {
    min-width: auto;
    max-width: none
  }
  .menu__link-text {
    margin-left: 3px;
    font-size: 13px
  }
}
@media (max-width:1023px) {
  .menu {
    display: none
  }
  .menu__main {
    flex-direction: column;
    align-items: stretch;
    margin: 0
  }
  .menu__item {
    margin: 0
  }
  .menu__item:hover .menu__submenu-container {
    box-shadow: none;
    border-radius: none;
    position: static!important;
    display: none
  }
  .menu__item .menu__submenu-container {
    position: static!important;
    display: none
  }
  .menu__item_open .menu__submenu-container {
    position: static;
    display: block!important
  }
  .menu__item_open .menu__link svg {
    display: none
  }
  .menu__item_open .menu__arrow-left {
    display: block!important;
    width: 24px;
    height: 24px;
    margin-right: 4px
  }
  .menu__item_open .menu__link-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 19px;
    color: #858585
  }
  .menu__link {
    padding: 8px 12px;
    justify-content: flex-start;
    box-shadow: none
  }
  .menu__link svg {
    width: 40px;
    height: 40px;
    margin-right: 14px
  }
  .menu__link .menu__icon-arrow-mob {
    margin-right: 0!important
  }
  .menu__link.menu__link_active {
    background: #fff;
    color: #0e0e0e
  }
  .menu__link::after {
    display: none
  }
  .menu__link::before {
    display: none
  }
  .menu__link-text {
    margin-left: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 23px
  }
  .menu__link-bg {
    display: none
  }
  .menu__submenu-container {
    padding-top: 24px;
    border-top: 1px solid #eaeaea
  }
  .menu__submenu-block {
    min-height: auto;
    height: auto;
    padding: 0
  }
  .menu__submenu-first-level-block {
    width: 100%;
    max-height: none
  }
  .menu__submenu-first-level-block-item {
    width: auto;
    padding-right: 0
  }
  .menu__submenu-first-level-block-item_open .menu__submenu-second-level-block {
    position: static;
    display: block;
    border: none;
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid #eaeaea
  }
  .menu__submenu-first-level-block-item_open .menu__submenu-second-level-block-item {
    width: 100%;
    padding: 0
  }
  .menu__submenu-first-level-block-item_open .menu__submenu-second-level-row {
    padding: 16px 0 16px 16px;
    font-size: 18px;
    font-weight: 500;
    line-height: 23px
  }
  .menu__submenu-first-level-block-item_open .menu__submenu-first-level-row {
    align-items: center;
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 400;
    line-height: 19px;
    color: #858585
  }
  .menu__submenu-first-level-block-item_open .menu__submenu-first-level-row svg {
    display: none;
    margin-right: 4px
  }
  .menu__submenu-first-level-block-item_open .menu__arrow-left-sub {
    display: block!important
  }
  .menu__submenu-first-level-row {
    padding: 16px 0 16px 16px;
    font-size: 18px;
    line-height: 23px;
    transition: none
  }
  .menu__submenu-second-level-placeholder,
  .menu__submenu-third-level-placeholder {
    display: none
  }
  .menu__submenu-second-level-row {
    transition: none
  }
  .menu__icon-arrow-mob {
    display: block;
    width: 20px!important;
    height: 20px!important;
    margin-left: auto
  }
}