.header_section {
  position: relative;
}


.header {
  border-radius: 20px;
  border: 1px solid #2A2F3C;
  background: linear-gradient(180deg, #2A2E3A 0%, #1E2432 100%);
  padding: 15px 20px;
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 45px;
}


.header_logo {
  display: flex;
  gap: 10px;
  height: 40px;
  align-items: center;
}
.header_logo img {
  width: 40px;
  height: 40px;
}
.header_logo span {
  color: #fff;
  word-wrap: break-word;
  width: max-content;
  font-weight: 600;
  text-transform: lowercase;
  max-width: 95px;
  font-size: 20px;
}


.header_btn-burger {
  min-width: 50px !important;
  height: 50px !important;
}
.header_btn-burger i {
  font-size: 20px;
}


.header_search {
  display: flex;
  align-items: center;
  border-radius: 13px;
  padding: 10px 15px;
  width: 100%;
  border: 1px solid #3a3a3a;
  justify-content: space-between;
  line-height: 1.5;
  height: 50px;
  border-radius: 13px;
  background: linear-gradient(180deg, #1D2228 0%, #1C2125 100%);
  box-shadow: 0px 4px 4px 0px #1C1F25 inset;
}

.header_search label {
  width: 100%;
  line-height: 1.2;
}

.header_search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  padding: 5px;
  line-height: 1.2;
  width: 100%;
}

.header_search i {
  color: #6e7484;
}

.header_search:hover, .header_search:focus-within {
  border-color: #fff;
}


.header_actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}


.header_telegram, .header_gift {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  width: 44px;
  height: 44px;
}

.header_actions .header_telegram:hover svg rect {
  fill: #0064bb;
}

.header_actions .header_gift:hover svg rect {
  fill: #15181f;
}

.header_actions .header_gift:hover svg path {
  fill: #ffd600;
}


/*** header menu ***/

.header_menu {
  position: absolute;
  top: 100px;
  display: none;
  width: 100%;
  padding: 15px;
  align-items: flex-start;
  gap: 75px;
  border-radius: 15px;
  border: 1px solid #404550;
  background: linear-gradient(180deg, #2a2e3a 0%, #1e2432 100%);
  box-shadow: 0 10px 24px 0 rgba(0, 0, 0, 0.50);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.header_menu.show {
  display: flex;
  opacity: 1;
}

.fa-bars,
.fa-xmark {
  transition: opacity 0.15s ease;
}

.fa-bars.hidden,
.fa-xmark.hidden {
  opacity: 0;
}

.header_menu-groups {
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.header_menu-groups ul li {

  gap: 16px;
  border-radius: 15px;
  background: linear-gradient(180deg, #1d2228 0%, #1c2125 100%);
  color: #fff;

  cursor: pointer;
}

.header_menu-groups ul li > * {
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.header_menu-groups ul li a {
  color: #fff;
  width: 100%;
}

.header_menu-groups ul li.active {
  background: #0582ee;
}

.header_menu-groups ul {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.header_menu-groups ul li:hover {
  background: #0064bb;;
}

.header_menu-lists {
  display: flex;
  width: 100%;
  height: 500px;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 30px;
}

/* Стилизация скроллбара */
.header_menu-lists::-webkit-scrollbar {
  width: 12px; /* Ширина скроллбара */
}

.header_menu-lists::-webkit-scrollbar-track {
  background: #2c2f38; /* Цвет фона трека */
  border-radius: 10px; /* Закругленные углы */
}

.header_menu-lists::-webkit-scrollbar-thumb {
  background-color: #7D8494; /* Цвет скроллбара */
  border-radius: 10px; /* Закругленные углы */
  border: 3px solid #2c2f38; /* Отступ и цвет вокруг скроллбара */
}

.header_menu-lists::-webkit-scrollbar-thumb:hover {
  background-color: #888; /* Цвет скроллбара при наведении */
}

.header_menu-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 30%;
}

.header_menu-list-main {
  color: #fff;
}


.header_menu-list ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header_menu-list ul li a {
  color: #7d8494;
}
a.header_menu-list-main:hover, .header_menu-list ul li a:hover {
  color: #0582ee;
}


.header_mob-actions {
  display: grid;
  gap: 10px;
  flex-direction: column;
  grid-template-columns: repeat(2, 1fr);
}

.header_mob-actions .header_telegram:hover  {
  background: #0064bb;
}

.header_mob-actions .header_telegram:hover svg rect {
  fill: #0064bb;
}

.header_menu-reg {
  gap: 0 !important;
}

/*** END header menu ***/

@media (min-width: 769px) {
  .header_telegram span, .header_gift span {
    font-size: 0;
  }

  .header_sticky {
    display: none;
    height: 0;
  }
}

@media (max-width: 1024px) {
  .header_menu {
    gap: 45px;
  }

  .header_actions > .header_menu-report {
    height: 0;
    display: none;
  }
}



@media (max-width: 1000px) {
  .header_menu {
    gap: 45px;
  }
}





@media (max-width: 768px) {
  .header_actions > .header_telegram, .header_actions > .header_gift, .header_menu-reg span {
    height: 0;
    display: none;
  }



  .header_menu-list {
    width: 100%;
  }
  .header_menu-lists {
    overflow-y: auto;
    flex-wrap: unset;
    height: 700px;
  }



  .header_gift {
    background: #FFD600;
    border-radius: 13px;
    display: flex;
    height: 50px;
    padding: 5px;
    align-items: center;
    gap: 15px;
    align-self: stretch;
    color: #15181F;
  }

  .header_telegram {
    background: #0582EE;
    border-radius: 13px;
    display: flex;
    height: 50px;
    padding: 5px;
    align-items: center;
    gap: 15px;
    align-self: stretch;
    color: #fff;
  }


  .header_mob-actions > * {
    width: 100%;
    max-width: 100% !important;
  }

  .header_btn-burger {
    display: none !important;
    height: 0 !important;
  }

  .header_sticky {
    position: fixed;
    bottom: 0;
    z-index: 9;
    border-radius: 20px 20px 0 0;
    background: rgba(66, 72, 85, 0.7);
    box-shadow: 0 -5px 10px 0 rgba(0, 0, 0, 0.10);
    width: 100%;
    padding: 15px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header_sticky-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    background: none;
    min-width: 40px;
  }

  .header_sticky-item span {
    color: #fff;
    font-size: 10px;
  }

  .header_sticky-menu.active svg > path {
    stroke: #07B7F8;
  }
  .header_sticky-menu.active span {
    color: #07B7F8;
  }


}

@media (max-width: 650px) {
  .header {
    margin-top: 55px;
  }

  .header_menu-groups ul {
    max-width: none;
  }

  .header_menu-groups {
    width: 100%;
  }

  .header_menu-lists {
    display: none;
    background: linear-gradient(180deg, #2A2E3A 0%, #1E2432 100%);
    border-radius: 20px;
    padding: 20px 0;
    width: calc(100% - 20px);
    height: 100% !important;
    top: 0;
  }

  .header_menu-mob-back {
    display: flex;
    background: none;
    align-items: center;
    gap: 10px;
    color: #fff;
  }

  .header_menu-mob-back > span {
    border-radius: 20px;
    border: 1px solid #7D8494;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  .header_menu-mob-back > span > i {
    font-size: 14px;

  }
  .header_search {
    width: max-content;
    margin-left: auto;
  }
  .header_search label {
    display: none;
  }

  .header {
    justify-content: space-between;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .header_mob-actions {
    grid-template-columns: repeat(1, 1fr);
    max-width: 350px;
  }
}




@media (max-width: 360px) {
  .header {
    padding: 15px;
    margin-top: 45px;
  }


  .header_logo img {
    width: 36px;
    height: 36px;
  }

  .header_actions > a, .header_search {
    height: 44px !important;
  }


}



.header_menu-lists {
  transition: opacity 0.5s ease, visibility 0.5s ease, position 0.5s ease;
  opacity: 1;
  visibility: visible;
}

.header_menu-lists.hidden {
  opacity: 0;
  visibility: hidden;
  position: relative; /* или любое другое значение, необходимое для скрытия */
}

