:root {
  --header-h: 72px;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h, 72px);
  color: #fff;
  background: #0b0e1e !important;
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color .2s;
}

.header.scrolled {
  border-color: var(--line-dark, #2a3055);
}

.header .wrap {
  width: 100%;
  max-width: 1160px;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-family: "Unbounded", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header .logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
}

.header .nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.header .nav a {
  color: #a6acd0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color .15s;
}

.header .nav a:hover,
.header .nav a[aria-current="page"] {
  color: #fff;
}

.header .header-contact {
  text-align: right;
  line-height: 1.3;
}

.header .header-contact a {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header .header-contact span {
  display: block;
  color: #a6acd0;
  font-size: 12px;
}

.header .btn,
.mobile-menu .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: #ffb43a;
  color: #3a2705;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.header .btn {
  min-height: 0;
  margin: 0;
  padding: 11px 18px;
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
}

.header .btn:hover,
.mobile-menu .btn:hover {
  background: #ffc15c;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 180, 58, .2);
}

.header .btn:focus-visible,
.mobile-menu .btn:focus-visible,
.header .burger:focus-visible {
  outline: 3px solid rgba(255, 180, 58, .34);
  outline-offset: 3px;
}

.header .burger {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.header .burger svg {
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h, 72px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 49;
  height: calc(100dvh - var(--header-h, 72px));
  padding: 12px 20px 112px;
  overflow-y: auto;
  flex-direction: column;
  gap: 4px;
  background: #0b0e1e;
  border-bottom: 1px solid #2a3055;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 4px;
  border-bottom: 1px solid #2a3055;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu .btn {
  min-height: 50px;
  margin-top: 14px;
  padding: 12px 22px;
  border-bottom: 0;
}

body.menu-open {
  overflow: hidden;
}

.utility-page main {
  padding-top: calc(var(--header-h, 72px) + 64px);
}

.error-page main {
  margin-top: var(--header-h, 72px);
}

@media (max-width: 1024px) {
  .header .nav,
  .header .header-contact,
  .header > .wrap > .btn {
    display: none;
  }

  .header .burger {
    display: block;
  }
}

@media (max-width: 560px) {
  .utility-page main {
    padding-top: calc(var(--header-h, 72px) + 42px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header {
    transition: none;
  }
}
