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

header.solarquiz-main-header {
  --header-surface: rgba(251, 248, 243, 0.97);
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  width: 100%;
  height: 76px;
  padding: 0 50px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--header-surface);
  border-bottom: 1px solid rgba(74, 74, 74, 0.14);
  font-family: var(--sq-font);
  backdrop-filter: blur(12px);
}

body.home-page header.solarquiz-main-header,
body.home-page header.solarquiz-main-header.fixed {
  --header-surface: #fbf8f3;
  position: fixed;
  height: 76px;
  padding: 0 50px;
  background: var(--header-surface);
  border-bottom: 0;
  border-color: transparent;
  box-shadow: none;
}

.solarquiz-main-header .site-logo {
  display: block;
  justify-self: start;
}

.solarquiz-main-header .site-logo img {
  display: block;
  width: 122px;
  height: 30px;
  object-fit: contain;
}

.solarquiz-main-header .site-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 30px;
}

.solarquiz-main-header .site-nav a {
  color: #4a4a4a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.solarquiz-main-header .site-nav a:hover,
.solarquiz-main-header .site-nav a[aria-current="page"] {
  color: var(--sq-blue);
}

.solarquiz-main-header .start-quiz {
  position: absolute;
  top: 16px;
  right: 50px;
  display: inline-flex;
  height: 44px;
  padding: 0 20px !important;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--sq-radius);
  background: var(--sq-blue);
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.solarquiz-main-header .start-quiz:hover {
  background: var(--sq-blue-hover);
}

.solarquiz-main-header .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #4a4a4a !important;
  cursor: pointer;
  font: 600 14px Poppins, Arial, sans-serif;
}

.solarquiz-main-header .menu-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 16px;
  margin-right: 0;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.solarquiz-main-header .menu-icon::after {
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  content: "";
  border-top: 2px solid currentColor;
}

@media (max-width: 760px) {
  header.solarquiz-main-header {
    display: flex;
    height: 68px;
    padding: 0 20px;
    justify-content: space-between;
  }

  body.home-page header.solarquiz-main-header,
  body.home-page header.solarquiz-main-header.fixed {
    height: 68px;
    padding: 0 20px;
  }

  .solarquiz-main-header .site-logo img {
    width: 112px;
    height: 28px;
  }

  .solarquiz-main-header .menu-toggle {
    display: flex;
  }

  .solarquiz-main-header .site-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 20px 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    background: var(--header-surface, #fbf8f3);
    border-bottom: 1px solid rgba(74, 74, 74, 0.14);
  }

  .solarquiz-main-header .site-nav.open {
    display: flex;
  }

  .home-page .solarquiz-main-header .site-nav {
    position: fixed;
    z-index: 31;
    top: 68px;
    right: 0;
    bottom: 0;
    left: auto;
    display: flex;
    width: min(320px, 86vw);
    height: calc(100svh - 68px);
    padding: 22px 20px;
    background: var(--header-surface, #fbf8f3);
    border-bottom: 0;
    box-shadow: -12px 18px 30px rgb(45 60 90 / 14%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 240ms ease, opacity 180ms ease, visibility 0s linear 240ms;
  }

  .home-page .solarquiz-main-header .site-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 240ms ease, opacity 180ms ease;
  }

  .solarquiz-main-header .site-nav a {
    padding: 12px;
  }

  .solarquiz-main-header .start-quiz {
    position: static;
    height: 44px;
    margin-top: 8px;
  }
}
