.admin-bar .header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .header {
    top: 0;
  }
}

.header {
  padding: 15px;
  padding-top: 7px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 32;
  width: 100%;
  background: #090A0C;
}
@media (max-width: 1024px) {
  .header {
    padding: 0 24px;
    position: relative;
  }
}
.header__nav-mobile {
  position: relative;
  display: none;
}
@media (max-width: 1024px) {
  .header__nav-mobile {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}
@media (max-width: 624px) {
  .header__nav-mobile {
    gap: 39px;
    align-items: flex-start;
  }
}
@media (max-width: 624px) {
  .header .close-search {
    display: none;
  }
}
.header .burger-close {
  display: none;
}
.header .burger {
  width: 16px;
}
.header .active-form {
  position: static;
}
.header .active-form .burger {
  display: none;
}
.header .active-form .header__search-btn {
  z-index: 3;
}
.header__search {
  width: 100%;
  max-width: 229px;
}
@media (max-width: 624px) {
  .header__search {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    max-width: 100%;
  }
  .header__search form {
    height: 100%;
    width: 100%;
  }
  .header__search input {
    width: 100%;
  }
}
.header__search .focus {
  visibility: hidden;
  position: absolute;
  left: 13px;
}
.header__search .on-focus {
  visibility: visible;
  position: absolute;
  left: 13px;
}
.header__search input {
  outline: none;
  background: none;
  border: 0;
  font-family: "SF Pro Display";
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #EBEBEB;
}
.header__search input::placeholder {
  color: rgba(235, 235, 235, 0.48);
  font-size: 14px;
}
.header__search input:focus + .focus {
  visibility: visible;
}
.header__search input:focus ~ .on-focus {
  visibility: hidden;
}
.header__search input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.header__search input[type=search]::-moz-search-cancel-button {
  display: none;
}
.header__search label {
  display: flex;
  background: #1D2026;
  box-shadow: inset 0px 1px 1px #3A3842;
  border-radius: 12px;
  height: 37px;
  padding-left: 39px;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
}
@media (max-width: 624px) {
  .header__search label {
    height: 100%;
    padding-right: 48px;
  }
}
.header__search form, .header__search label, .header__search input {
  width: 100%;
}
.header__wrap {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.header .header__search-btn {
  display: none;
}
@media (max-width: 624px) {
  .header .header__search-btn {
    display: flex;
    z-index: 5;
  }
}
.header__menu {
  width: 100%;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 15px;
  padding-right: 52px;
  display: flex;
  align-items: center;
  padding-right: 0;
  position: relative;
}
@media (max-width: 1024px) {
  .header__menu {
    padding: 10px 15px;
    margin-top: 26px;
  }
}
@media (max-width: 624px) {
  .header__menu {
    padding: 16px 15px;
    padding-right: 29px;
    padding-top: 18px;
    padding-bottom: 14px;
  }
}
.header__menu::before {
  content: "";
  position: absolute;
  width: 100%;
  background: linear-gradient(180deg, rgba(27, 26, 31, 0.72) 0%, rgba(33, 32, 39, 0.72) 100%);
  box-shadow: 0px 1px 1px #21262C, inset 0px 1px 1px #3A3842;
  backdrop-filter: blur(24px);
  border-radius: 16px;
  height: 100%;
  left: 0;
  top: 0;
}
@media (max-width: 1024px) {
  .header__menu::before {
    border-radius: 12px;
  }
}
.header__menu-top {
  display: flex;
  padding: 0 12px;
  display: flex;
  gap: 36px;
}
@media (max-width: 1200px) {
  .header__menu-top {
    gap: 24px;
  }
}
.header__link {
  font-family: "Play";
  font-style: normal;
  display: flex;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  line-height: 15px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #EBEBEB;
  text-decoration: none;
  display: flex;
  align-items: center;
  cursor: pointer;
}
@media (max-width: 1366px) {
  .header__link {
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  .header__link {
    font-size: 11px;
  }
}
.header__links {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  overflow: visible;
  border-radius: 14px;
}
@media (max-width: 1024px) {
  .header__links {
    display: none;
  }
}
.header__link-wrap {
  width: 100%;
  max-width: 240px;
  display: flex;
  justify-content: center;
  position: relative;
  height: 100%;
  padding: 20px 0;
  text-decoration: none;
}
.header__link-wrap:hover .header__hover {
  opacity: 1;
}
.header__link-wrap:hover .border {
  opacity: 1;
}
.header__link-wrap .border {
  position: absolute;
  bottom: 0;
  width: 100%;
  transition: all 0.2s ease;
  height: 1px;
  opacity: 0;
}
.header__link-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  width: 1px;
  background: linear-gradient(270deg, rgba(22, 22, 26, 0) 0%, #373741 50%, rgba(26, 25, 31, 0) 100%);
  top: 0;
  height: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.header__link-wrap:last-child::after {
  display: none;
}
.header__beetwen {
  display: flex;
  justify-content: space-between;
  padding-right: 11px;
}
@media (max-width: 1024px) {
  .header__beetwen {
    display: none;
  }
}
.header__hover {
  position: absolute;
  bottom: 0;
  background: #E60648;
  border-radius: 20px;
  height: 20px;
  width: 100%;
  z-index: -1;
  opacity: 0;
  transition: all 0.2s ease;
}
.header__link--mini {
  font-size: 13px;
}
@media (max-width: 1200px) {
  .header__link--mini {
    font-size: 11px;
  }
}
.header__link--mini img {
  max-width: 25px;
}
.header .logo__bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  max-height: 48px;
}
.header .logo {
  z-index: 1;
}

.overflow {
  overflow: hidden;
}

.mobile-menu {
  display: none;
  position: fixed;
  z-index: 99;
  overflow: auto;
  background: #090A0C;
  width: 100%;
  height: calc(100% - 94px);
  left: 0;
  top: 94px;
  padding: 0 25px;
  padding-bottom: 15px;
}
.mobile-menu .header__link-wrap {
  height: auto;
  max-width: 100%;
  justify-content: flex-start;
  padding: 17px 0;
}
.mobile-menu .header__link-wrap::after {
  display: none;
}
.mobile-menu .header__link {
  font-size: 24px;
  gap: 16px;
  line-height: 28px;
}
.mobile-menu .header__link img {
  width: 31px;
}
.mobile-menu .header__hover {
  display: none;
}
.mobile-menu .header__link--mini {
  font-size: 16px;
  gap: 5px;
}
.mobile-menu .mobile-bottom {
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid #3A3842;
  display: flex;
  flex-direction: column;
  gap: 31px;
}

.admin-bar .mobile-menu {
  top: 126px;
  height: calc(100% - 94px - 32px);
}
@media (max-width: 782px) {
  .admin-bar .mobile-menu {
    top: 142px;
    height: calc(100% - 94px - 48px);
  }
}

.rank-math-breadcrumb {
	margin:10px 5px;
	font-family: 'Play';
}

.header__link-wrap.has-submenu {
  position: relative;
}

.header__link-wrap.has-submenu:hover .header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Стрелочка ▼ для пунктов с сабменю */
.header__link-wrap.has-submenu > .header__link::after {
  content: '▾';
  font-size: 10px;
  margin-left: 6px;
  color: #EBEBEB;
}

/* Сабменю */
.header__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #1d2026;
  border-radius: 10px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 99;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

/* Стили ссылок внутри сабменю */
.header__submenu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: #ebebeb;
  text-decoration: none;
  font-family: 'Play';
  font-size: 14px;
  line-height: 18px;
  transition: background 0.2s ease;
}

.header__submenu-link img {
  width: 20px;
  height: auto;
}

.header__submenu-link:hover {
  background: rgba(255, 255, 255, 0.05);
}