.header__wrapper {
  display: flex;
  max-width: 1352px;
  padding: 0 10px;
  margin: 24px auto 0;
}

.header-bar {
  background-color: rgba(249, 249, 252, 0.8);
  padding: 16px 26px;
  border-radius: 500px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  width: 100%;
  margin: 0;
  border: 1px solid #ededf9;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0px 4px 40px 0px rgba(80, 81, 196, 0.1490196078);
  height: 78px;
}

.header-bar__left {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.header-bar__phone {
  font-size: 18px;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 2%;
}

p.header-bar__phone {
  margin: 0;
}

.header-bar__phone-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.header-bar__menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-bar__menu-item a {
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  color: #212121;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.header-bar__menu > li.menu-item:nth-of-type(1) > a::after,
.header-bar__menu > li.menu-item:nth-of-type(2) > a::after,
.header-bar__menu > li.menu-item:nth-of-type(3) > a::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 8px;
  flex: none;
  flex-grow: 0;
  background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 9.75L4.5 6.25h7L8 9.75z" fill="%23212121" stroke="%23212121" stroke-width="1"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  flex-shrink: 0;
}

.header-bar__menu > li.menu-item:nth-of-type(1).popup-open > a::after,
.header-bar__menu > li.menu-item:nth-of-type(2).popup-open > a::after,
.header-bar__menu > li.menu-item:nth-of-type(3).popup-open > a::after {
  background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 6.25L4.5 9.75h7L8 6.25z" fill="%23212121" stroke="%23212121" stroke-width="1"/></svg>');
}

.header-bar__menu-item a:hover {
  color: rgba(26, 26, 64, 0.6);
}

.header-bar__right {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.header-bar__right-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid #212121;
  padding: 4px;
}

.header-bar__lng {
  position: relative;
}

.header-bar__lng-btn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 100%;
  cursor: pointer;
  color: #212121;
}

.header-bar__burger {
  width: 36px;
  height: 36px;
  border: 1px solid #212121;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: none;
  display: none;
  cursor: pointer;
}

.burger {
  background: 0 0;
  border: none;
  box-shadow: none;
  cursor: pointer;
  display: none;
  height: 22px;
  outline: 0;
  position: relative;
  width: 40px;
  z-index: 10;
}

.burger__line {
  background-color: #000;
  height: 2px;
  left: 50%;
  position: absolute;
  width: 26px;
}

.burger__line:first-child {
  top: 0;
  transform: translateX(-50%) translateY(0);
  transition: top .3s cubic-bezier(.21,.83,.26,.87) .3s, transform .3s cubic-bezier(.21,.83,.26,.87);
}

.burger__line:nth-child(2) {
  opacity: 1;
  top: 8px;
  transform: translateX(-50%);
}

.burger__line:last-child {
  top: 16px;
  transform: translateX(-50%) translateY(0);
  transition: top .3s cubic-bezier(.21,.83,.26,.87) .3s, transform .3s cubic-bezier(.21,.83,.26,.87);
}

.page-header__nav {
  align-items: center;
  display: flex;
}

.page-header__nav-header {
  display: none;
}

.page-header__nav-close {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: none;
  height: 44px;
  padding: 0;
  width: 44px;
}

.mobile-nav-logo {
  display: none;
}

.lang-switcher__item {
  display: none;
}

.lang-switcher {
  height: 25px;
  list-style-type: none;
  margin: 0 26px 0 20px;
  padding-left: 0;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lang-switcher__item:first-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  width: 45px;
  height: 25px;
  flex: none;
  order: 1;
  flex-grow: 0;
}

.lang-switcher__item:first-child .lang-switcher__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  width: 100%;
  gap: 0;
}

.lang-switcher__item:first-child .lang-switcher__link::after {
  content: '';
  width: 20px;
  height: 20px;
  flex: none;
  order: 1;
  flex-grow: 0;
  margin-left: auto;
  background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 9.75L4.5 6.25h7L8 9.75z" fill="%23212121"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.lang-switcher:hover .lang-switcher__item {
  display: flex;
}

.lang-switcher:hover .lang-switcher__item:first-child .lang-switcher__link::after {
  display: none;
}

.lang-switcher__link {
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  font-feature-settings: 'tnum' on, 'lnum' on;
  color: #1a1a40;
  cursor: pointer;
  display: flex;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.wpml-ls-sub-menu {
  background-color: #fff;
}

.page-menu {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  margin: 0;
  padding-left: 0;
  gap: 24px;
}

.page-menu > li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-menu > li.menu-item-has-children > a:after {
  content: "";
  background-image: url(../assets/img/svg/menu-arrow-down.svg);
  background-size: cover;
  background-repeat: no-repeat;
  width: 8px;
  height: 5px;
  margin: 0 0 0 4px;
  transition-duration: .4s;
}

.page-menu > li.menu-item-has-children > a.open:after {
  transform: rotate(180deg);
}

.page-menu > li > a {
  color: #1a1a40;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 133%;
  padding: 0 5px;
  display: flex;
  position: relative;
}

.header__sub-menu {
  list-style-type: none;
  margin-bottom: 0;
  margin-top: 16px;
  padding-left: 0;
  scrollbar-width: none;
}

.header__sub-menu::-webkit-scrollbar {
  display: none;
}

.header__sub-menu a {
  color: #333;
  font-size: calc(13.6px + .125vw);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 200%;
  text-wrap: balance;
  padding-bottom: 4px;
  padding-top: 4px;
}

.header__sub-menu a:hover {
  opacity: .8;
}

.page-menu > li > .header__sub-menu {
  background-color: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 4px 4px rgba(0,0,0,.1);
  counter-reset: submenuTitle;
  display: none;
  left: 50%;
  list-style-type: none;
  margin: 0;
  max-height: calc(100dvh - 120px);
  max-width: 1200px;
  overflow-y: auto;
  padding: 48px;
  position: fixed;
  top: 80px;
  transform: translateX(-50%);
  z-index: 22;
}

.page-menu > li > .header__sub-menu--active {
  display: grid;
  grid-template-columns: minmax(280px,380px);
  justify-content: center;
  width: max-content;
}

.page-menu > li > .header__sub-menu--active:has(.header__sub-menu__title) {
  gap: 48px 24px;
  grid-template-columns: repeat(3,1fr);
  width: 100%;
}

.page-menu > li > .header__sub-menu--active:not(:has(.header__sub-menu__title)) {
  padding-left: 48px;
}

.page-menu > li > .header__sub-menu > li {
  counter-increment: submenuTitle;
}

.header__sub-menu__title:not(:last-child) > a {
  border-bottom: 1px solid #b3b3b3;
}

.header__sub-menu__title > a {
  align-items: center;
  color: #1a1a40;
  column-gap: 24px;
  display: grid;
  font-size: calc(15.6px + .125vw);
  font-weight: 600;
  grid-template-columns: 38px auto;
  letter-spacing: -0.01em;
  max-width: 100%;
  padding-bottom: 20px;
  text-wrap: wrap;
}

.header__sub-menu__title > a:before {
  background: radial-gradient(199% 141.42% at 100% 100%,#23c0ad 0,#4c50cc 100%);
  border-radius: 4px;
  color: #fff;
  content: counter(submenuTitle,decimal-leading-zero);
  font-size: 20px;
  font-weight: 800;
  height: 38px;
  letter-spacing: -0.02em;
  line-height: 140%;
  padding: 5px;
  text-align: center;
  text-transform: capitalize;
  width: 38px;
}

.close-sub-menu {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 20px;
  top: 20px;
}

.header__sub-menu {
  display: none !important;
}

.desktop-nav-header_lang {
  display: block;
}

.mobile-nav-header_lang {
  display: none;
}

.page-header__menu-wrapper {
  display: flex;
  flex-direction: row;
}

.page-header__phone-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-header__phone-label {
  font-weight: 400;
  font-style: Display Regular;
  font-size: 10px;
  line-height: 140%;
  letter-spacing: 2%;
  text-transform: uppercase;
}

.page-header__logo-wrapper {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.page-header__login-wrapper {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.mobile-menu_container-nav-left {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.mobile-courses-menu {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 24px;
  margin: 0 20px;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 400px;
}

.mobile-courses-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f9f9fc;
  border-bottom: 1px solid #ededf9;
}

.mobile-courses-menu__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a40;
}

.mobile-courses-menu__back {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  flex-direction: row;
  align-items: center;
  padding: 12px;
  gap: 8px;
  position: absolute;
  width: 103px;
  height: 48px;
  left: 14px;
  top: 16px;
  z-index: 20;
}

.mobile-courses-menu__back.active {
  display: flex !important;
  z-index: 25 !important;
}

.mobile-courses-menu__back:hover {
  transform: translateY(-1px);
}

.mobile-courses-menu__back svg {
  width: 24px;
  height: 24px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.mobile-courses-menu__back::after {
  content: 'Назад';
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 47px;
  height: 22px;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum' on, 'onum' on;
  background: radial-gradient(100% 172.04% at 100% 100%, #23c0ad 0%, #4c50cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  flex: none;
  order: 1;
  flex-grow: 0;
}

html[lang="uk"] .mobile-courses-menu__back::after {
  content: 'Назад';
}

.mobile-courses-menu__categories {
  display: block;
  padding: 0;
  height: calc(100% - 72px);
  overflow-y: auto;
}

.mobile-courses-menu__list {
  list-style: none;
  padding: 0;
  margin: 0 20px;
  width: calc(100% - 40px);
  box-sizing: border-box;
}

.mobile-courses-menu__category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #ececec;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.mobile-courses-menu__category-item:hover {
  background: #f9f9fc;
}

.mobile-courses-menu__category-item:last-child {
  border-bottom: none;
}

.mobile-courses-menu__category-name {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a40;
  flex: 1;
}

.mobile-courses-menu__category-arrow {
  transition: transform 0.3s;
}

.mobile-courses-menu__footer {
  padding: 16px 20px;
  border-top: 1px solid #ededf9;
  background: #f9f9fc;
}

.mobile-courses-menu__all-courses {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #23c0ad 0%, #4c50cc 100%);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.mobile-courses-menu__all-courses:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35, 192, 173, 0.3);
}

.mobile-courses-menu__all-courses svg {
  fill: #fff;
}

.mobile-courses-menu__courses {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 2;
  padding-top: 146px;
}

.mobile-courses-menu__courses.active {
  display: block;
}

.mobile-courses-menu__courses.active ~ .mobile-courses-menu__categories {
  display: none;
}

.mobile-courses-menu__courses.active ~ .mobile-courses-menu__header .mobile-courses-menu__back {
  display: block;
}

.mobile-courses-menu__courses-header {
  padding: 16px 20px;
  background: #f9f9fc;
  border-bottom: 1px solid #ededf9;
  position: absolute;
  top: 76px;
  left: 0;
  width: 100%;
  height: 70px;
  box-sizing: border-box;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-courses-menu__courses-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a40;
}

.mobile-courses-menu__courses-list {
  padding: 0;
  height: calc(100% - 146px);
  min-height: 300px;
  overflow-y: auto;
  margin: 0;
  list-style: none;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #23c0ad #f9f9fc;
  position: relative;
  z-index: 1;
}

.mobile-courses-menu__courses-list::-webkit-scrollbar {
  width: 4px;
}

.mobile-courses-menu__courses-list::-webkit-scrollbar-track {
  background: #f9f9fc;
  border-radius: 2px;
}

.mobile-courses-menu__courses-list::-webkit-scrollbar-thumb {
  background: #23c0ad;
  border-radius: 2px;
}

.mobile-courses-menu__courses-list::-webkit-scrollbar-thumb:hover {
  background: #4c50cc;
}

.mobile-courses-menu__course-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #ececec;
  text-decoration: none;
  color: #1a1a40;
  transition: background-color 0.3s;
}

.mobile-courses-menu__course-item:hover {
  background: #f9f9fc;
}

.mobile-courses-menu__course-item:last-child {
  border-bottom: none;
}

.mobile-courses-menu__course-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.mobile-courses-menu__course-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  flex: 1;
}

@media (min-width: 1301px) {
  .mobile-courses-menu {
    display: none !important;
  }

  .page-menu > li.mobile-hidden-courses,
  .page-menu > li.menu-item-15479,
  .page-menu > li.menu-item-15546 {
    display: flex !important;
  }

  .page-header__menu-wrapper {
    max-height: none;
    overflow-y: visible;
  }

  .mobile-menu-scroll-container {
    height: auto;
    max-height: none;
    overflow-y: visible;
    padding-bottom: 0;
  }

  .mobile-menu-divider {
    display: none !important;
  }

  .page-header__menu-wrapper .page-menu {
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
  }

  .page-header__menu-wrapper .page-menu > li {
    border-bottom: none !important;
  }

  .page-header__menu-wrapper .page-menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 5px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #1a1a40 !important;
    line-height: 133% !important;
    letter-spacing: -0.01em !important;
    position: relative !important;
  }

  .page-header__menu-wrapper .page-menu > li.menu-item:nth-of-type(1) > a::after,
  .page-header__menu-wrapper .page-menu > li.menu-item:nth-of-type(2) > a::after,
  .page-header__menu-wrapper .page-menu > li.menu-item:nth-of-type(3) > a::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    flex: none;
    order: 1;
    flex-grow: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 9.75L4.5 6.25h7L8 9.75z" fill="%23212121" stroke="%23212121" stroke-width="1"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    flex-shrink: 0;
  }

  .page-header__menu-wrapper .page-menu > li.menu-item:nth-of-type(1).popup-open > a::after,
  .page-header__menu-wrapper .page-menu > li.menu-item:nth-of-type(2).popup-open > a::after,
  .page-header__menu-wrapper .page-menu > li.menu-item:nth-of-type(3).popup-open > a::after {
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 6.25L4.5 9.75h7L8 6.25z" fill="%23212121" stroke="%23212121" stroke-width="1"/></svg>');
  }

  .page-header__menu-wrapper .page-menu > li > a:hover {
    background-color: transparent !important;
  }
}

@media (min-width: 1025px) {
  .page-header__nav {
    display: none !important;
  }
}

@media (max-width: 1300px) {
  .logo {
    width: auto;
    height: 22px;
  }

  .page-header__phone-label {
    display: none;
  }

  .desktop-nav-header_lang {
    display: none;
  }

  .mobile-nav-header_lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .page-header__login-wrapper {
    display: none;
  }

  .page-header {
    position: fixed;
    background: white;
    z-index: 1001;
    width: 100%;
    top: 0;
    left: 0;
    height: 72px;
    margin: 0;
    padding: 0 20px;
    border-radius: 200px;
    display: flex;
    align-items: center;
  }

  .burger {
    display: block;
    margin-left: 0 !important;
  }

  .page-header__nav {
    background-color: #f9f9fc;
    border-radius: 16px;
    box-shadow: 0 0 6px 0 rgba(0,0,0,.15);
    display: none;
    height: 100%;
    left: 50%;
    overflow-y: auto;
    position: fixed;
    scrollbar-width: none;
    top: 72px;
    transform: translateX(-50%);
    width: 100%;
    z-index: 999;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .page-header__nav::-webkit-scrollbar {
    display: none;
  }

  .page-header__nav--opened {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto 1fr;
    height: calc(100vh - 72px) !important;
    width: 100vw !important;
    left: 0 !important;
    transform: none !important;
    overflow-y: auto;
  }

  .page-header__nav-header {
    align-items: center;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 12px 20px 12px 20px !important;
    border-radius: 500px;
    box-shadow: 0px 4px 40px rgba(80, 81, 196, 0.15);
    backdrop-filter: blur(12px);
    height: 48px !important;
    max-height: 48px !important;
    box-sizing: border-box !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
  }

  .mobile-nav-header_logo {
    display: flex;
    flex-direction: row;
    gap: 24px;
  }

  .mobile-nav_container {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 4px 40px rgba(80, 81, 196, 0.15);
    backdrop-filter: blur(12px);
    padding: 14px;
    width: 100%;
    display: flex;
    gap: 8px;
    flex-direction: column;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .page-header__nav-close {
    display: block;
    justify-self: end;
  }

  .mobile-nav-logo {
    display: block;
  }

  .page-header__menu-wrapper {
    display: flex;
    flex-direction: column;
    max-height: none !important;
    overflow-y: visible !important;
    scrollbar-width: none;
  }

  .page-header__menu-wrapper::-webkit-scrollbar {
    display: none !important;
  }

  .mobile-nav-header_lang .lang-switcher__item {
    display: flex;
  }

  .mobile-nav-header_lang .lang-switcher__item:first-child {
    background-image: none;
  }

  .mobile-nav-header_lang .lang-switcher__link {
    background-color: #f1f1f1;
    border-radius: 8px;
    color: #858598;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 4px 12px;
    text-transform: uppercase;
  }

  .mobile-nav-header_lang .lang-switcher__link--current {
    color: #1a1a40;
  }

  .page-menu {
    background-color: #fff;
    border-radius: 24px;
    flex-direction: column;
    grid-area: menu;
    margin-left: 20px;
    margin-right: 20px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-menu > li:not(:last-child) {
    border-bottom: 1px solid #ececec;
  }

  .page-menu > li > a {
    align-items: center;
    font-size: 18px;
    line-height: 178%;
    padding: 10px 0 10px 35px;
    position: relative;
  }

  .page-menu > li.menu-item-has-children > a {
    position: relative;
  }

  .page-menu > li.menu-item-has-children > a:after,
  .page-menu li:not(.menu-item-has-children) > a:after {
    background-image: url(../assets/img/svg/mobile-menu-arrow-icon.svg);
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    content: "";
    width: 16px;
    height: 16px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .page-menu li:not(.menu-item-has-children) > a {
    justify-content: space-between;
    position: relative;
  }

  .page-menu > li > .header__sub-menu {
    box-shadow: none;
    grid-template-columns: 100%;
    max-height: none;
    padding: 10px 0 20px 20px;
    position: static;
    transform: none;
  }

  .page-menu > li > .header__sub-menu--active {
    background-color: transparent;
    grid-template-columns: 100%;
    width: 100%;
  }

  .page-menu > li > .header__sub-menu--active:has(.header__sub-menu__title) {
    grid-template-columns: 100%;
    row-gap: 10px;
  }

  .header__sub-menu__title > a {
    padding: 5px 0 5px 40px;
    position: relative;
    white-space: nowrap;
  }

  .header__sub-menu__title > a:before {
    font-size: 16px;
    height: 28px;
    line-height: 1;
    width: 28px;
    position: absolute;
    left: 0;
  }

  .header__sub-menu .header__sub-menu {
    display: none;
  }

  .header__sub-menu .header__sub-menu--active {
    display: block;
    padding-left: 60px;
  }

  .header__sub-menu li.menu-item-has-children > a {
    background-image: url(../assets/img/svg/menu-arrow-down.svg);
    background-position: right 4px top 16px;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 20px;
  }

  .header__sub-menu li.menu-item-has-children > a.open {
    background-image: url(../assets/img/svg/menu-arrow-down-open.svg);
  }

  .mobile-courses-menu {
    display: block;
    height: 400px;
    margin-bottom: 16px;
    overflow-y: visible;
    width: calc(100% - 40px);
    box-sizing: border-box;
    position: relative;
  }

  .mobile-menu-divider {
    position: relative;
    width: 100%;
    height: 1px;
    margin-left: 14px;
    margin-top: 20px;
    margin-bottom: 20px;
    background: rgba(26, 26, 64, 0.2);
  }

  .mobile-courses-menu .mobile-courses-menu__courses.active {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #fff !important;
    z-index: 15 !important;
    padding-top: 146px !important;
    box-sizing: border-box !important;
  }

  .mobile-courses-menu .mobile-courses-menu__courses.active ~ .mobile-courses-menu__categories {
    display: none !important;
  }

  .mobile-menu-scroll-container.courses-active .page-header__menu-wrapper,
  .mobile-menu-scroll-container.courses-active .mobile-menu-divider {
    display: none !important;
  }

  .mobile-menu-scroll-container.courses-active .mobile-courses-menu {
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
  }

  .mobile-menu-scroll-container.courses-active .mobile-courses-menu__courses.active {
    height: 100vh !important;
    max-height: 100vh !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .mobile-courses-menu .mobile-courses-menu__courses.active .mobile-courses-menu__courses-list {
    display: block !important;
    height: calc(100% - 146px) !important;
    overflow-y: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-courses-menu .mobile-courses-menu__course-item {
    display: flex !important;
    align-items: center !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #ececec !important;
    text-decoration: none !important;
    color: #1a1a40 !important;
    transition: background-color 0.3s !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .mobile-courses-menu .mobile-courses-menu__course-title {
    font-size: 16px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    flex: 1 !important;
    color: #1a1a40 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .page-menu > li.mobile-hidden-courses,
  .page-menu > li.menu-item-15479,
  .page-menu > li.menu-item-15546,
  .page-menu > li[data-menu-title*="Курс"],
  .page-menu > li[data-menu-title*="урс"] {
    display: none !important;
  }

  .page-menu > li > a[data-popup-id="courses"],
  .page-menu > li > a[href*="courses"],
  .page-menu > li > a[href*="kursy"] {
    display: none !important;
  }

  .mobile-menu-scroll-container {
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #23c0ad #f9f9fc;
    padding-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-menu-scroll-container.courses-active {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: hidden !important;
    padding-bottom: 0 !important;
  }

  .mobile-menu-scroll-container::-webkit-scrollbar {
    width: 4px;
    display: block;
  }

  .mobile-menu-scroll-container::-webkit-scrollbar-track {
    background: #f9f9fc;
    border-radius: 2px;
  }

  .mobile-menu-scroll-container::-webkit-scrollbar-thumb {
    background: #23c0ad;
    border-radius: 2px;
  }

  .mobile-menu-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #4c50cc;
  }

  .page-header__menu-wrapper .page-menu {
    margin-top: 0 !important;
    background-color: #fff !important;
    border-radius: 24px !important;
    padding: 10px !important;
    margin: 0 20px !important;
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    width: calc(100% - 40px) !important;
    box-sizing: border-box !important;
  }

  .page-header__menu-wrapper .page-menu > li:not(.mobile-hidden-courses) {
    border-bottom: 1px solid #ececec !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-header__menu-wrapper .page-menu > li:not(.mobile-hidden-courses):last-child {
    border-bottom: none !important;
  }

  .page-header__menu-wrapper .page-menu > li:not(.mobile-hidden-courses) > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 10px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #1a1a40 !important;
    text-decoration: none !important;
    transition: background-color 0.3s !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-header__menu-wrapper .page-menu > li:not(.mobile-hidden-courses) > a:hover {
    background-color: #f9f9fc !important;
  }

  .page-header__menu-wrapper .page-menu > li:not(.mobile-hidden-courses) > a:after {
    content: '' !important;
    background-image: url(../assets/img/svg/mobile-menu-arrow-icon.svg) !important;
    background-size: 16px 16px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 16px !important;
    height: 16px !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 1024px) {
  .header-bar__menu {
    display: none;
  }

  .header-bar__burger {
    display: flex;
  }

  .page-header__nav-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .page-header__nav-close {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .header-bar__lng {
    display: none;
  }

  .header-bar__right-profile-main-page {
    display: none;
  }
}

@media (max-width: 1300px) and (max-width: 768px) {
  .page-header__nav--opened {
    row-gap: 20px;
  }
}

@media (max-width: 1300px) and (max-width: 576px) {
  .page-header__nav--opened {
    grid-template-rows: 104px 1fr 80px;
  }
}
