.header {
  padding: 40px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  right: 0;
  z-index: 250;
  margin: 0 auto;
}

@media screen and (max-width: 1240px) {
  .header {
    padding: 30px 0;
  }
}

@media screen and (max-width: 767px) {
  .header {
    padding: 22px 0;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 138%;
  color: var(--theme-primary-text);
  font-family: "Gotham Pro";
  margin-right: 50px;
}

@media screen and (max-width: 1240px) {
  .header__logo {
    font-size: 16px;
    margin-right: 25px;
  }
}

@media screen and (max-width: 991px) {
  .header__logo {
    margin: 0 0 0 63px;
  }
}

@media screen and (max-width: 767px) {
  .header__logo {
    margin: 0 0 0 44px;
    font-size: 13px;
  }
}

.header__logo img {
  margin-right: 21px;
  width: 65px;
  height: 65px;
}

@media screen and (max-width: 1240px) {
  .header__logo img {
    margin-right: 18px;
    width: 55px;
    height: 55px;
  }
}

@media screen and (max-width: 767px) {
  .header__logo img {
    width: 38px;
    height: 38px;
  }
}

.header__menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  line-height: 138%;
}

@media screen and (max-width: 1240px) {
  .header__menu {
    font-size: 16px;
  }
}

@media screen and (max-width: 991px) {
  .header__menu {
    justify-content: start;
  }
}

.header__item {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 991px) {
  .header__item {
    position: absolute;
    min-height: calc(100vh - 100px);
    width: 100%;
    top: 100px;
    transition: var(--transition-default);
    left: -100%;
    box-shadow: 0 0 1px 1px #00000021;
    display: block;
  }
}

.header__item.active {
  left: 0;
  background: #000116;
}

.header__inner {
  display: flex;
  align-items: center;
  color: var(--theme-text-color);
}

@media screen and (max-width: 991px) {
  .header__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding: 0 15px 80px 15px;
  }
}

.header__list {
  display: flex;
  margin-right: 49px;
  margin-top: 20px;
}

@media screen and (max-width: 1240px) {
  .header__list {
    margin-right: 30px;
  }
}

@media screen and (max-width: 991px) {
  .header__list {
    display: block;
    margin-bottom: 28px;
    text-align: center;
    margin-top: 0;
    margin-right: 0;
  }
}

.header__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 56px;
  position: relative;
  transition: var(--transition-fast);
  cursor: pointer;
  padding-bottom: 20px;
}

@media only screen and (max-width: 991px) {
  .header__list li {
    margin-bottom: 28px;
    padding-bottom: 0;
    text-align: left;
  }
}

.header__list li a {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

@media only screen and (max-width: 991px) {
  .header__list li a {
    justify-content: flex-start;
    text-align: left;
  }
}

.header__list li svg path {
  transition: 500ms;
}

.header__list li.active {
  font-weight: 600;
  color: var(--color-primary);
}

.header__list li.active svg path {
  fill: var(--color-primary);
}

.header__list li:hover {
  color: var(--color-primary);
}

.header__list li:hover svg path {
  fill: var(--color-primary);
}

.header__list li:hover .header__drop {
  display: block;
}

@media screen and (max-width: 991px) {
  .header__list li:hover .header__drop {
    padding-top: 20px;
    display: none;
  }
}

@media screen and (max-width: 1240px) {
  .header__list li {
    margin-right: 35px;
  }
}

@media screen and (max-width: 991px) {
  .header__list li {
    max-width: 355px;
    margin: 0 0 25px 0;
    flex-wrap: wrap;
    align-items: center;
  }
  .header__list li:nth-child(2) {
    max-width: 270px;
  }
  .header__list li:last-child {
    margin: 0;
  }
}

.header__list li svg {
  margin-left: 10px;
}

.header__list li:last-child {
  margin-right: 0;
}

.header__drop {
  position: absolute;
  top: 40px;
  left: 0;
  width: 355px;
  background: var(--theme-dropdown-bg);
  border: 1px solid var(--theme-border-color);
  border-radius: 15px;
  display: none;
  padding: 10px 26px 17px 21px;
  font-weight: 400;
  font-size: 14px;
  line-height: 138%;
}

@media only screen and (max-width: 991px) {
  .header__drop {
    position: static;
    background: rgba(43, 43, 43, 0.42);
    margin-top: 10px !important;
    padding-top: 20px !important;
    overflow: hidden;
  }
  .header__drop.active {
    display: block !important;
  }
}

@media only screen and (max-width: 767px) {
  .header__drop {
    width: 100%;
    max-width: 343px;
  }
}

.header__drop-head {
  color: var(--theme-title-color);
  margin-bottom: 9px;
}

@media only screen and (max-width: 991px) {
  .header__drop-head {
    color: var(--theme-text-color);
    margin-top: 20px;
  }
}

.header__drop-end {
  display: flex;
}

.header__drop-end:last-child li {
  margin-bottom: 0;
}

.header__drop-end li {
  padding: 0;
  margin: 0 52px 8px 0;
  color: var(--theme-text-color);
}

@media only screen and (max-width: 767px) {
  .header__drop-end li {
    margin-right: 15px;
  }
}

@media only screen and (max-width: 991px) {
  .header__drop-end li {
    color: var(--theme-text-color);
  }
}

.header__drop-end li:last-child li {
  margin-bottom: 0;
}

.header__drop-end-server {
  flex-direction: column;
}

@media only screen and (max-width: 991px) {
  .header__drop-end-server {
    margin-top: 20px !important;
  }
}

.header__drop-end-server:last-child li {
  margin-bottom: 7px;
}

.header__drop-end-server li {
  margin: 0 0 7px 0;
}

.header__drop-end-server li:last-child {
  margin: 0;
}

.header__drop-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  -moz-column-gap: 30px;
  column-gap: 30px;
  row-gap: 13px;
  padding-bottom: 21px;
  margin-bottom: 16px;
  position: relative;
}

@media only screen and (max-width: 991px) {
  .header__drop-list {
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 767px) {
  .header__drop-list {
    grid-template-columns: 1fr 1fr;
  }
}

.header__drop-list::before {
  content: "";
  position: absolute;
  width: 355px;
  height: 1px;
  background-color: var(--theme-border-color);
  bottom: 0;
  left: -22px;
}

@media only screen and (max-width: 991px) {
  .header__drop-list::before {
    background: #fff;
    bottom: -10px;
  }
}

.header__drop-list li {
  padding: 0;
  margin: 0;
}

.header__drop-list li a {
  color: var(--theme-text-color);
  display: flex;
  align-items: center;
}

@media only screen and (max-width: 991px) {
  .header__drop-list li a {
    color: var(--theme-text-color);
  }
}

.header__drop-list li a:hover {
  color: #7430e2;
}

.header__drop-list li a img {
  margin-right: 7px;
}

.header__drop-list-server {
  display: block;
  padding-bottom: 7px;
}

.header__drop-list-server:before {
  width: 191px;
  bottom: -6px;
  left: -19px;
}

.header__drop-list-server li {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 175%;
}

.header__drop-list-server li:last-child {
  margin-bottom: 0;
}

.header__drop-list-server li svg {
  position: static;
  margin-right: 12px;
  width: 12px;
  min-width: 12px;
  height: 12px;
  margin-left: 0;
}

.header__drop-server {
  padding: 10px 4px 14px 18px;
  width: 191px;
}

.header__select {
  margin: 0 0 -50px 10px;
  padding-bottom: 50px;
}

.language {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  border-radius: 35px;
  background: #A065FF;
  cursor: pointer;
  transition: var(--transition-default);
}

.language:hover {
  background: var(--color-hover-primary);
}

.language svg {
  position: absolute;
  left: 7px;
  top: 6px;
}

@media screen and (max-width: 1240px) {
  .language {
    width: 40px;
    height: 40px;
  }
  .language svg {
    width: 32px;
    height: 32px;
    left: 5px;
    top: 4px;
  }
}

@media screen and (max-width: 991px) {
  .header__select {
    display: none;
  }
}

.header__select:hover .header__drop {
  display: block !important;
}

.header__drop-language {
  position: absolute;
  top: 120%;
  left: -200%;
  width: 232px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: #150E1F;
}

.header__drop-title {
  margin: 8px 0 14px 10px;
  font-family: "Gilroy";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  color: var(--theme-primary-text);
}

.header__drop-list-language {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 10px;
}

.header__drop-list-language li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Gilroy";
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--theme-text-color);
}

.header__drop-list-language li:hover {
  color: var(--theme-primary-text);
  transition: all 150ms;
}

.header__drop-list-language .active {
  font-family: "Gilroy";
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--theme-primary-text);
  transition: all 350ms;
}

.header__drop-list-language li {
  background-image: url("data:image/svg+xml,<svg width='20' height='20' viewBox='0 0 0 0' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(%23clip0_1_992)'><path d='M4.54545 1C2.58735 1 1 2.58735 1 4.54545V15.4545C1 17.4126 2.58735 19 4.54545 19H15.4545C17.4126 19 19 17.4126 19 15.4545V4.54545C19 2.58735 17.4126 1 15.4545 1H4.54545Z' stroke='%23A065FF' stroke-width='1.5'/><path d='M5 10L8.33357 14L15 6' stroke='%23A065FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></g><defs><clipPath id='clip0_1_992'><rect width='20' height='20' fill='white'/></clipPath></defs></svg>");
  background-repeat: no-repeat;
  background-position: right;
}

.header__drop-list-language li.active {
  background-image: url("data:image/svg+xml,<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(%23clip0_1_992)'><path d='M4.54545 1C2.58735 1 1 2.58735 1 4.54545V15.4545C1 17.4126 2.58735 19 4.54545 19H15.4545C17.4126 19 19 17.4126 19 15.4545V4.54545C19 2.58735 17.4126 1 15.4545 1H4.54545Z' stroke='%23A065FF' stroke-width='1.5'/><path d='M5 10L8.33357 14L15 6' stroke='%23A065FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></g><defs><clipPath id='clip0_1_992'><rect width='20' height='20' fill='white'/></clipPath></defs></svg>") !important;
  background-repeat: no-repeat;
  background-position: right;
}

.header__drop-list-language::before {
  content: '';
  width: 0;
}

.header__drop-list-mobal {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  padding: 16px 40px;
  border-radius: 18px;
  background: rgba(43, 43, 43, 0.42);
}

.header__drop-list-mobal li {
  cursor: pointer;
  width: 92px;
}

.header__drop-list-mobal li.active {
  background-image: url("data:image/svg+xml,<svg width='20' height='20' viewBox='0 0 0 0' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(%23clip0_1_992)'><path d='M4.54545 1C2.58735 1 1 2.58735 1 4.54545V15.4545C1 17.4126 2.58735 19 4.54545 19H15.4545C17.4126 19 19 17.4126 19 15.4545V4.54545C19 2.58735 17.4126 1 15.4545 1H4.54545Z' stroke='%23A065FF' stroke-width='1.5'/><path d='M5 10L8.33357 14L15 6' stroke='%23A065FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></g><defs><clipPath id='clip0_1_992'><rect width='20' height='20' fill='white'/></clipPath></defs></svg>") !important;
  background-repeat: no-repeat;
  background-position: right;
}

.header__drop-list-mobal .active {
  font-family: "Inter";
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 138.2%;
  color: #A065FF !important;
}

.language-mobal {
  display: none;
  margin: 20px 0 12px;
  max-width: 600px;
}

.language-mobal .title {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  font-family: "Gilroy";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 138.2%;
  color: #A065FF;
}

@media screen and (max-width: 991px) {
  .language-mobal  {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
}

.header__personal {
  margin-left: 10px;
  min-width: 152px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border-radius: var(--border-radius-default);
  color: var(--theme-primary-text);
  font-weight: 500;
  font-size: 16px;
  line-height: 138%;
  transition: var(--transition-default);
}

@media screen and (max-width: 1240px) {
  .header__personal {
    width: 145px;
    height: 40px;
    font-size: 14px;
  }
}

@media screen and (max-width: 991px) {
  .header__personal {
    margin: 0;
  }
}

.header__personal:hover {
  background: var(--color-hover-primary);
}

.header .switch {
  position: relative;
  width: 81px;
  height: 32px;
  cursor: pointer;
}

@media only screen and (max-width: 991px) {
  .header .switch {
    margin-bottom: 20px;
  }
}

.header .switch label {
  width: 81px;
  height: 32px;
  position: absolute;
  background-color: #9ca3af;
  top: 0;
  left: 0;
  cursor: pointer;
  border-radius: 50px;
}

.header .switch input[type="checkbox"] {
  visibility: hidden;
}

.header .switch label:after {
  content: "";
  width: 44px;
  height: 32px;
  background-color: var(--color-primary);
  border-radius: 35px;
  cursor: pointer;
  position: absolute;
  top: 0px;
  left: 0;
  transition: all 0.1s;
  background-image: url(../images/white-2.svg);
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: center center;
}

.header .switch input[type="checkbox"]:checked + label {
  background-color: #6e6280;
  border-radius: 35px;
  background-image: url(../../images/white.svg);
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: 20% center;
}

.header .switch input[type="checkbox"] + label {
  background-image: url(../images/black-2.svg);
  background-repeat: no-repeat;
  background-color: #f5f5f5;
  background-size: 15px;
  background-position: 80% center;
}

.header .switch input[type="checkbox"]:checked + label:after {
  left: 36px;
  background: var(--color-primary);
  background-image: url(../../images/black.svg);
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: center center;
}

.burger {
  display: none;
  width: 51px;
}

@media screen and (max-width: 991px) {
  .burger {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .burger {
    width: 41px;
  }
}

.burger a {
  display: block;
  cursor: pointer;
  padding: 12px 0;
}

.burger a span {
  position: relative;
  display: block;
  width: 51px;
  height: 3px;
  background: #ffffff;
  transition: all 0.2s ease-in-out;
}

@media screen and (max-width: 767px) {
  .burger a span {
    width: 41px;
    height: 1px;
  }
}

.burger a span:after {
  content: "";
  width: 33px;
  height: 3px;
  position: absolute;
  left: 0;
  background: #ffffff;
  border-radius: 7px;
  transition: all 0.2s ease-in-out;
}

@media screen and (max-width: 767px) {
  .burger a span:after {
    width: 23px;
    height: 1px;
  }
}

.burger a span:before {
  top: -8px;
}

.burger a span:after {
  top: 8px;
}

.burger a.active span:after {
  background: var(--color-primary);
}

.wrapper.active .header__inner {
  color: var(--theme-text-color);
}

.wrapper.active .header__logo {
  color: var(--theme-title-color);
}



.wrapper.active .header__drop-list-mobal .active {
  color: #6C8CD9 !important;
}


.wrapper.active .header__drop-list-language li.active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cg clip-path='url(%23clip0_1_1125)'%3E%3Cpath d='M4.54545 1C2.58735 1 1 2.58735 1 4.54545V15.4545C1 17.4126 2.58735 19 4.54545 19H15.4545C17.4126 19 19 17.4126 19 15.4545V4.54545C19 2.58735 17.4126 1 15.4545 1H4.54545Z' stroke='%2378A1F2' stroke-width='1.5'/%3E%3Cpath d='M5 10L8.33357 14L15 6' stroke='%2378A1F2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_1_1125'%3E%3Crect width='20' height='20' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
  background-position: right;
}

.wrapper.active .header__drop-list-mobal li.active {
  background-image: url("data:image/svg+xml,<svg width='20' height='20' viewBox='0 0 0 0' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(%23clip0_1_992)'><path d='M4.54545 1C2.58735 1 1 2.58735 1 4.54545V15.4545C1 17.4126 2.58735 19 4.54545 19H15.4545C17.4126 19 19 17.4126 19 15.4545V4.54545C19 2.58735 17.4126 1 15.4545 1H4.54545Z' stroke='%23A065FF' stroke-width='1.5'/><path d='M5 10L8.33357 14L15 6' stroke='%23A065FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></g><defs><clipPath id='clip0_1_992'><rect width='20' height='20' fill='white'/></clipPath></defs></svg>") !important;
  background-repeat: no-repeat;
  background-position: right;
}

.wrapper.active .header__drop-list-mobal {
  border-radius: 18px;
  border: 1px solid #CDDBF7;
  background: #FBFBFB;
}


.wrapper.active .header__drop-list-mobal li .active{
  color: #6C8CD9;
}

.wrapper.active .header__personal {
  background: var(--color-secondary);
  transition: var(--transition-default);
}

.wrapper.active .header__personal:hover {
  background: var(--color-hover-secondary);
}

.wrapper.active .header .switch label:after {
  background-color: #6c8cd9;
}

.wrapper.active .header__list li.active {
  color: var(--color-secondary);
}

.wrapper.active .header__list li.active svg path {
  fill: var(--color-secondary);
}

.wrapper.active .header__list li:hover {
  color: var(--color-secondary);
}

.wrapper.active .header__list li:hover svg path {
  fill: var(--color-secondary);
}

.wrapper.active .header__item.active {
  background: #ffffff;
}

.wrapper.active .header__drop-list li a:hover {
  color: var(--color-secondary);
}

.wrapper.active .header__drop-list-server li a:hover {
  color: var(--color-secondary);
}

.wrapper.active .header__drop-language {
  border: 1px solid rgba(26, 26, 26, 0.10);
  background: #FFF;
  box-shadow: 0px -3px 40px -1px rgba(0, 0, 0, 0.08);
}


@media only screen and (max-width: 991px) {
  .wrapper.active .header__item {
    box-shadow: none;
  }
}


@media only screen and (max-width: 991px) {
  .wrapper.active .header__drop li {
    color: rgba(4, 4, 4, 0.7);
  }
  .wrapper.active .header__drop li a {
    color: rgba(4, 4, 4, 0.7);
  }
}

@media only screen and (max-width: 991px) {
  .wrapper.active .header__drop-head {
    color: rgba(4, 4, 4, 0.7);
  }
}

@media only screen and (max-width: 991px) {
  .wrapper.active .header__drop-list::before {
    background: rgba(4, 4, 4, 0.7);
  }
  
  .wrapper.active .header__drop-end li {
    color: var(--theme-text-color);
  }
  
  .wrapper.active .header__drop-list li a {
    color: var(--theme-text-color);
  }
}

.wrapper.active .header__drop-language {
  border: 1px solid rgba(0, 0, 0, 0.20);
  background: #f8f8f8;
}

.wrapper.active .burger a span {
  background: #000000;
}

.wrapper.active .burger a span::after {
  background: #000000;
}

.wrapper.active .burger a.active span:after {
  background: var(--color-secondary);
}