@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

body > header:not(.topbar) {
  position: fixed !important;
  inset: 0 0 auto;
  z-index: 1000;
  display: block;
  padding: 18px 0;
  border: 0 !important;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(to bottom, rgba(15, 16, 25, .82), rgba(15, 16, 25, .12));
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}

html:has(head link[href="/assets/css/main.css"]) body > header:not(.topbar) + main {
  margin-block-start: 94px;
}

html:has(head link[href="/assets/css/main.css"]) body > header:not(.topbar).scrolled + main {
  margin-block-start: 80px;
}

body > header:not(.topbar).scrolled {
  padding: 11px 0;
  background: rgba(8, 9, 20, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}

body > header:not(.topbar) .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: 24px;
  padding-block: 0 !important;
  flex-direction: row;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  direction: inherit;
}

body > header:not(.topbar):not(:has(.header-inner)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-inline: max(24px, calc((100vw - 1432px) / 2));
}

body > header:not(.topbar):not(:has(.header-inner)) > a:first-child {
  display: flex;
  flex: 0 0 250px;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 60px;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body > header:not(.topbar):not(:has(.header-inner)) > a:first-child img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body > header:not(.topbar):not(:has(.header-inner)) > a:first-child:hover,
body > header:not(.topbar):not(:has(.header-inner)) > a:first-child:focus,
body > header:not(.topbar):not(:has(.header-inner)) > a:first-child:active {
  transform: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body > header:not(.topbar):not(:has(.header-inner)) #main-nav {
  flex: 1;
}

body > header[id]:not(.topbar) {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  background: linear-gradient(to bottom, rgba(15, 16, 25, .82), rgba(15, 16, 25, .12)) !important;
}

body > header[id]:not(.topbar).scrolled {
  padding-top: 11px !important;
  padding-bottom: 11px !important;
  background: rgba(8, 9, 20, .94) !important;
}

body > header[id]:not(.topbar) #main-nav {
  display: flex !important;
  background: transparent !important;
}

body > header[id]:not(.topbar) #main-nav a {
  color: rgba(255, 255, 255, .88);
  background: transparent;
  font-family: 'Cairo', sans-serif;
}

body > header:not(.topbar) .logo {
  display: flex;
  flex: 0 0 250px;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 60px;
  overflow: hidden;
  color: #fff;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: none;
}

body > header:not(.topbar) .logo:hover,
body > header:not(.topbar) .logo:focus,
body > header:not(.topbar) .logo:active {
  transform: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body > header:not(.topbar) .logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  background: transparent !important;
}

body > header:not(.topbar) #main-nav {
  display: flex !important;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 24px;
  position: static;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}

body > header:not(.topbar) #main-nav > ul,
body > header:not(.topbar) #main-nav .nav-group {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}

body > header:not(.topbar) #main-nav li {
  margin: 0;
  padding: 0;
}

body > header:not(.topbar) #main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 2px;
  border-radius: 0;
  color: rgba(255, 255, 255, .88);
  background: transparent;
  font-family: 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease, background .3s ease, transform .3s ease, box-shadow .3s ease;
}

body > header:not(.topbar) #main-nav a:hover,
body > header:not(.topbar) #main-nav a[aria-current="page"],
body > header:not(.topbar) #main-nav a.active {
  color: #fff;
  background: transparent;
}

body > header:not(.topbar) #main-nav ul > li > a:not(.nav-youtube):not(.nav-store):not(.nav-lang)::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 4px;
  background: #ffc400;
  transform: translateX(50%) scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}

html[dir="ltr"] body > header:not(.topbar) #main-nav ul > li > a:not(.nav-youtube):not(.nav-store):not(.nav-lang)::after {
  right: auto;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
}

body > header:not(.topbar) #main-nav ul > li > a:not(.nav-youtube):not(.nav-store):not(.nav-lang):hover::after,
body > header:not(.topbar) #main-nav ul > li > a[aria-current="page"]:not(.nav-youtube):not(.nav-store):not(.nav-lang)::after,
body > header:not(.topbar) #main-nav ul > li > a.active:not(.nav-youtube):not(.nav-store):not(.nav-lang)::after {
  transform: translateX(50%) scaleX(1);
}

html[dir="ltr"] body > header:not(.topbar) #main-nav ul > li > a:not(.nav-youtube):not(.nav-store):not(.nav-lang):hover::after,
html[dir="ltr"] body > header:not(.topbar) #main-nav ul > li > a[aria-current="page"]:not(.nav-youtube):not(.nav-store):not(.nav-lang)::after,
html[dir="ltr"] body > header:not(.topbar) #main-nav ul > li > a.active:not(.nav-youtube):not(.nav-store):not(.nav-lang)::after {
  transform: translateX(-50%) scaleX(1);
}

body > header:not(.topbar) .header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

body > header:not(.topbar) #main-nav a.nav-youtube {
  padding: 9px 18px;
  border: 0 solid rgba(255, 255, 255, .4);
  border-radius: 50px;
  color: #fff;
  background: #b4050581;
  font-size: 17px;
  font-weight: 700;
}

body > header:not(.topbar) #main-nav a.nav-youtube::after,
body > header:not(.topbar) #main-nav a.nav-store::after,
body > header:not(.topbar) #main-nav a.nav-lang::after {
  display: none;
}

body > header:not(.topbar) #main-nav a.nav-youtube:hover {
  border-color: #ffc400;
  color: #ffc400;
}

body > header:not(.topbar) #main-nav a.nav-store,
body > header:not(.topbar) #main-nav a.nav-lang {
  padding: 10px 20px;
  border-radius: 50px;
  color: #15150c;
  background: #ffc400;
  font-size: 17px;
  font-weight: 800;
}

body > header:not(.topbar) #main-nav a.nav-store:hover,
body > header:not(.topbar) #main-nav a.nav-lang:hover {
  color: #15150c;
  background: #ffb94d;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 165, 36, .25);
}

body > header:not(.topbar) [data-nav-toggle] {
  position: relative;
  z-index: 1002;
  display: none;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}

body > header:not(.topbar) [data-nav-toggle]:hover {
  border-color: #ffc400;
  background: rgba(245, 165, 36, .18);
}

body > header:not(.topbar) [data-nav-toggle] svg {
  width: 25px;
  height: 25px;
}

body > header:not(.topbar) button[data-nav-toggle]:not(:has(svg)) {
  font-size: 0;
}

body > header:not(.topbar) button[data-nav-toggle]:not(:has(svg))::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -6px currentColor, 0 6px currentColor;
}

body > header:not(.topbar) [data-nav-toggle]:focus-visible,
body > header:not(.topbar) #main-nav a:focus-visible {
  outline: 2px solid #ffc400;
  outline-offset: 5px;
}

@media (max-width: 1200px) {
  body > header:not(.topbar) .header-inner {
    gap: 16px;
    padding-inline: 22px;
  }

  body > header:not(.topbar) .logo {
    flex-basis: 250px;
    width: 250px;
  }

  body > header:not(.topbar) #main-nav {
    gap: 15px;
  }

  body > header:not(.topbar) #main-nav > ul,
  body > header:not(.topbar) #main-nav .nav-group {
    gap: 15px;
  }

  body > header:not(.topbar) #main-nav a {
    font-size: 15px;
  }

  body > header:not(.topbar) #main-nav a.nav-youtube,
  body > header:not(.topbar) #main-nav a.nav-store,
  body > header:not(.topbar) #main-nav a.nav-lang {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  body > header:not(.topbar) .header-actions {
    gap: 15px;
  }
}

@media (max-width: 760px) {
  html:has(head link[href="/assets/css/main.css"]) body > header:not(.topbar) + main {
    margin-block-start: 72px;
  }

  html:has(head link[href="/assets/css/main.css"]) body > header:not(.topbar).scrolled + main {
    margin-block-start: 66px;
  }

  body > header:not(.topbar) {
    padding: 12px 0;
  }

  body > header#site-header:not(.topbar),
  body > header#siteHeader:not(.topbar) {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  body > header#site-header:not(.topbar).scrolled,
  body > header#siteHeader:not(.topbar).scrolled {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }

  body > header[id]:not(.topbar) {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  body > header[id]:not(.topbar).scrolled {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }

  body > header:not(.topbar).scrolled {
    padding: 9px 0;
  }

  body > header:not(.topbar) .header-inner {
    justify-content: space-between;
    gap: 12px;
  }

  body > header:not(.topbar):not(:has(.header-inner)) {
    gap: 12px;
    padding: 12px 22px;
  }

  body > header:not(.topbar):not(:has(.header-inner)) > a:first-child {
    flex-basis: 155px;
    width: 155px;
    height: 48px;
  }

  body > header:not(.topbar) .logo {
    position: relative;
    z-index: 1002;
    flex: 0 0 155px;
    width: 155px;
    height: 48px;
  }

  body > header:not(.topbar) [data-nav-toggle] {
    display: flex;
  }

  body > header:not(.topbar) #main-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 100px 25px 35px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(6, 7, 15, .97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform .35s ease, opacity .35s ease, visibility .35s ease;
  }

  body > header[id]:not(.topbar) #main-nav {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1001 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 100px 25px 35px !important;
    overflow-y: auto !important;
    background: rgba(6, 7, 15, .97) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
  }

  body > header[id]:not(.topbar) #main-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  body > header:not(.topbar) #main-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  body > header:not(.topbar) #main-nav > ul,
  body > header:not(.topbar) #main-nav .nav-group {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 17px;
    width: 100%;
    white-space: normal;
  }

  body > header:not(.topbar) #main-nav li {
    width: 100%;
    text-align: center;
  }

  body > header:not(.topbar) #main-nav a {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 20px;
  }

  body > header:not(.topbar) #main-nav .header-actions {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 290px;
    gap: 14px;
  }

  body > header:not(.topbar) #main-nav a.nav-youtube,
  body > header:not(.topbar) #main-nav a.nav-store,
  body > header:not(.topbar) #main-nav a.nav-lang {
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    font-size: 17px;
  }

  body:has(> header:not(.topbar) #main-nav.is-open) {
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  html:has(head link[href="/assets/css/main.css"]) body > header:not(.topbar) + main {
    margin-block-start: 68px;
  }

  html:has(head link[href="/assets/css/main.css"]) body > header:not(.topbar).scrolled + main {
    margin-block-start: 62px;
  }

  body > header:not(.topbar) .logo {
    flex-basis: 135px;
    width: 135px;
    height: 44px;
  }

  body > header:not(.topbar) .header-inner {
    padding-inline: 16px;
  }

  body > header:not(.topbar) [data-nav-toggle] {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  body > header:not(.topbar) #main-nav a {
    font-size: 18px;
  }
}

@media (min-width: 761px) and (max-width: 1300px) {
  html:has(head link[href="/assets/css/main.css"]) body > header:not(.topbar):not(.blog-shell-header) + main {
    margin-block-start: 94px;
  }

  html:has(head link[href="/assets/css/main.css"]) body > header:not(.topbar):not(.blog-shell-header).scrolled + main {
    margin-block-start: 80px;
  }

  body > header:not(.topbar):not(.blog-shell-header) .header-inner {
    justify-content: space-between;
    gap: 12px;
  }

  body > header:not(.topbar):not(.blog-shell-header) .logo {
    flex: 0 0 250px;
    width: 250px;
    height: 60px;
  }

  body > header:not(.topbar):not(.blog-shell-header) [data-nav-toggle] {
    display: flex;
  }

  body > header:not(.topbar):not(.blog-shell-header) #main-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 100px 25px 35px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(6, 7, 15, .97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform .35s ease, opacity .35s ease, visibility .35s ease;
  }

  body > header[id]:not(.topbar):not(.blog-shell-header) #main-nav {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1001 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 100px 25px 35px !important;
    overflow-y: auto !important;
    background: rgba(6, 7, 15, .97) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
  }

  body > header[id]:not(.topbar):not(.blog-shell-header) #main-nav.is-open,
  body > header:not(.topbar):not(.blog-shell-header) #main-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  body > header:not(.topbar):not(.blog-shell-header) #main-nav > ul,
  body > header:not(.topbar):not(.blog-shell-header) #main-nav .nav-group {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 17px;
    width: 100%;
    white-space: normal;
  }

  body > header:not(.topbar):not(.blog-shell-header) #main-nav li {
    width: 100%;
    text-align: center;
  }

  body > header:not(.topbar):not(.blog-shell-header) #main-nav a {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 20px;
  }

  body > header:not(.topbar):not(.blog-shell-header) #main-nav .header-actions {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 290px;
    gap: 14px;
  }

  body:has(> header:not(.topbar):not(.blog-shell-header) #main-nav.is-open) {
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  body > header:not(.topbar) .logo {
    flex-basis: 250px;
    width: 250px;
    height: 60px;
  }

  body > header:not(.topbar):not(:has(.header-inner)) > a:first-child {
    flex-basis: 250px;
    width: 250px;
    height: 60px;
  }
}

@media (max-width: 560px) {
  body > header:not(.topbar) .logo {
    flex-basis: 154px;
    width: 154px;
    height: 50px;
  }

  body > header:not(.topbar):not(:has(.header-inner)) > a:first-child {
    flex-basis: 154px;
    width: 154px;
    height: 50px;
  }
}

@media (max-width: 340px) {
  body > header:not(.topbar) .logo {
    flex-basis: 128px;
    width: 128px;
    height: 46px;
  }

  body > header:not(.topbar):not(:has(.header-inner)) > a:first-child {
    flex-basis: 128px;
    width: 128px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > header:not(.topbar),
  body > header:not(.topbar) *,
  body > header:not(.topbar) *::before,
  body > header:not(.topbar) *::after {
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
