:root {
  --kg-yellow: #fff32a;
  --kg-black: #080808;
  --kg-border: rgba(255, 243, 42, .18);
  --kg-header-height: 81px;
}

.kg-header,
.kg-header * { box-sizing: border-box; }

.kg-header {
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(10, 10, 10, .74);
  border-bottom: 1px solid rgba(255, 243, 42, .14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.kg-header__inner {
  display: flex;
  align-items: center;
  gap: 16px 40px;
  width: 100%;
  max-width: 1440px;
  min-height: 80px;
  margin: 0 auto;
  padding: 12px clamp(16px, 3.5vw, 56px);
}

.kg-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
}

.kg-logo img {
  display: block;
  width: auto;
  height: 56px;
}

.kg-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0 28px;
  min-width: 0;
}

.kg-nav__link,
.kg-mega__trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kg-yellow);
  font: 500 15px/1 Montserrat, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}

.kg-nav__link:hover,
.kg-nav__link:focus-visible,
.kg-mega__trigger:hover,
.kg-mega__trigger:focus-visible {
  color: #fff;
  outline: none;
}

.kg-nav__link--active {
  position: relative;
  color: #fff;
}

.kg-nav__link--active::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--kg-yellow);
  content: "";
}

.kg-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.kg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid var(--kg-yellow);
  border-radius: 6px;
  color: #000;
  background: var(--kg-yellow);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.kg-button:hover,
.kg-button:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #000;
  outline: none;
}

.kg-mega {
  display: flex;
  align-self: stretch;
  align-items: center;
}

.kg-mega__trigger { gap: 7px; }

.kg-mega__trigger::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.kg-mega:hover .kg-mega__trigger::after,
.kg-mega:focus-within .kg-mega__trigger::after,
.kg-mega.is-open .kg-mega__trigger::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.kg-mega__panel {
  position: fixed;
  z-index: 9998;
  top: var(--kg-header-height);
  right: 0;
  left: 0;
  max-height: calc(100vh - var(--kg-header-height));
  overflow: auto;
  border-top: 1px solid var(--kg-border);
  border-bottom: 1px solid rgba(255, 243, 42, .26);
  background: rgba(8, 8, 8, .97);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.kg-mega:hover .kg-mega__panel,
.kg-mega:focus-within .kg-mega__panel,
.kg-mega.is-open .kg-mega__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.kg-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px clamp(16px, 3.5vw, 56px) 34px;
}

.kg-mega__column {
  min-width: 0;
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, .11);
}

.kg-mega__column:first-child {
  padding-left: 0;
  border-left: 0;
}

.kg-mega__column:last-child { padding-right: 0; }

.kg-mega__title {
  display: block;
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--kg-yellow);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.kg-module-list {
  display: grid;
  gap: 3px;
}

.kg-module {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 6px 0;
  color: #e8e8e8;
  font-size: 12.5px;
  line-height: 1.35;
}

.kg-module__soon {
  flex: none;
  color: #858585;
  font-size: 9.5px;
  font-weight: 450;
  font-style: italic;
  white-space: nowrap;
}

.kg-module--link {
  margin-top: 1px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 243, 42, .35);
  border-radius: 5px;
  background: rgba(255, 243, 42, .06);
  color: var(--kg-yellow);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.kg-module--link:hover,
.kg-module--link:focus-visible {
  border-color: var(--kg-yellow);
  background: var(--kg-yellow);
  color: #000;
  outline: none;
}

.kg-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid var(--kg-yellow);
  border-radius: 6px;
  background: transparent;
  color: var(--kg-yellow);
  cursor: pointer;
}

.kg-menu-button:hover,
.kg-menu-button:focus-visible {
  background: var(--kg-yellow);
  color: #000;
  outline: none;
}

.kg-menu-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.kg-mobile-nav {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--kg-header-height));
  overflow-y: auto;
  padding: 4px clamp(16px, 3.5vw, 56px) 20px;
  border-top: 1px solid #262626;
  background: rgba(8, 8, 8, .98);
}

.kg-mobile-nav[hidden] { display: none; }

.kg-mobile-nav__link,
.kg-mobile-modules > summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  border-bottom: 1px solid #262626;
  color: var(--kg-yellow);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.kg-mobile-nav__link--active { color: #fff; }
.kg-mobile-modules { border-bottom: 1px solid #262626; }

.kg-mobile-modules > summary {
  justify-content: space-between;
  border: 0;
  cursor: pointer;
  list-style: none;
}

.kg-mobile-modules > summary::-webkit-details-marker { display: none; }
.kg-mobile-modules > summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 350;
}
.kg-mobile-modules[open] > summary::after { content: "−"; }

.kg-mobile-modules__content {
  display: grid;
  gap: 20px;
  padding: 8px 4px 22px;
}

.kg-mobile-group h3 {
  margin: 0 0 8px;
  color: var(--kg-yellow);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.kg-mobile-group .kg-module-list { gap: 0; }
.kg-mobile-group .kg-module {
  padding: 7px 0;
  font-size: 13px;
}

@media (max-width: 1360px) {
  .kg-nav { display: none; }
  .kg-menu-button { display: inline-flex; }
}

@media (max-width: 560px) {
  .kg-header__inner { gap: 12px; }
  .kg-logo img { height: 46px; }
  .kg-button--portal {
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }
  :root { --kg-header-height: 71px; }
}

@media (max-width: 390px) {
  .kg-button--portal { padding: 0 9px; font-size: 11px; }
  .kg-menu-button { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .kg-mega__panel,
  .kg-mega__trigger::after { transition: none; }
}
