.site-header {
  z-index: 100;
  height: 70px;
  border-bottom: 1px solid rgba(25, 23, 20, 0.12);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  width: var(--inner-width);
  min-width: var(--inner-min);
  max-width: var(--inner-max);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
}

.header-center-nav {
  position: static;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  grid-column: 2;
}

.header-nav-button {
  position: relative;
  min-width: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #17130c;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.header-nav-button::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.header-nav-button i {
  width: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 20px;
}

.menu-toggle {
  display: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-toggle:active,
.menu-toggle:focus {
  background: transparent;
  outline: none;
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(25, 23, 20, 0.28);
  outline-offset: 2px;
}

.drawer-brand,
.drawer-user-link {
  display: none;
}

@keyframes drawer-slide-in {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  height: 100%;
}

.brand-logo {
  display: block;
  width: auto;
  height: 64px;
  max-width: min(360px, 42vw);
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  flex: 0 0 auto;
}

.header-logout-form {
  margin: 0;
}

.header-user {
  max-width: 160px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f1d1a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.header-user i {
  flex: 0 0 auto;
  font-size: 18px;
}

.header-user-avatar {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 22px;
  border-radius: 50%;
  object-fit: cover;
}

.header-user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-verify-link,
.header-admin-link {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid rgba(216, 148, 0, 0.54);
  border-radius: 999px;
  background: #fff6d7;
  color: #7a4b00;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.header-admin-link {
  border-color: rgba(25, 23, 20, 0.32);
  background: rgba(255, 253, 248, 0.94);
  color: #191714;
}

.dark-button {
  min-width: 92px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #252525;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

@media (min-width: 901px) and (max-width: 980px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    width: min(100% - 24px, 680px);
    min-width: 0;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .dark-button {
    min-width: 74px;
    height: 38px;
    font-size: 13px;
  }
}

@media (min-width: 901px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-center-nav {
    gap: 30px;
  }

  .header-nav-button {
    height: 48px;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
  }

  .header-nav-button::after {
    display: none;
  }

  .header-nav-button i {
    width: 24px;
    font-size: 23px;
  }

  .dark-button {
    min-width: 100px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    color: #191714;
    background: #fffdf8;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(43, 34, 18, 0.14);
  }

  .header-actions .dark-button:first-child {
    border: 1px solid rgba(25, 23, 20, 0.45);
    background: rgba(255, 255, 255, 0.92);
    color: #191714;
  }

  .header-actions .dark-button:last-child {
    min-width: 126px;
    padding: 0 12px;
    border: 1px solid rgba(216, 148, 0, 0.45);
    background: linear-gradient(180deg, #f3b71f, #d89400);
    color: #fffdf8;
    box-shadow: 0 2px 0 rgba(137, 94, 0, 0.32);
  }

  .dark-button i {
    width: 16px;
    display: inline-flex;
    justify-content: center;
    font-size: 14px;
  }

  .header-actions.is-authenticated {
    gap: 8px;
  }

  .header-actions.is-authenticated .dark-button {
    min-width: 112px;
    border: 1px solid rgba(25, 23, 20, 0.45);
    background: rgba(255, 255, 255, 0.92);
    color: #191714;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 900px) {
  body {
    padding-top: 62px;
  }

  .header-help-button {
    display: none;
  }

  .header-center-nav {
    display: none;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 62px;
  }

  .header-inner {
    position: relative;
    width: calc(100% - 20px);
    min-width: 0;
    max-width: none;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .brand {
    width: 156px;
    flex: 0 0 156px;
    height: 100%;
  }

  .brand-logo {
    display: block;
    width: 156px;
    height: 50px;
    max-width: 156px;
    object-fit: contain;
    object-position: left center;
  }

  .header-actions {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 5px;
    margin-left: auto;
  }

  .header-actions.is-authenticated {
    gap: 5px;
  }

  .header-actions.is-authenticated .header-user {
    order: 20;
    width: 34px;
    height: 34px;
    max-width: 34px;
    display: inline-flex;
    justify-content: center;
    flex: 0 0 34px;
    gap: 0;
    border: 1px solid rgba(25, 23, 20, 0.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  }

  .header-actions.is-authenticated .header-user i {
    font-size: 18px;
  }

  .header-actions.is-authenticated .header-user-avatar {
    width: 100%;
    height: 100%;
    flex-basis: 100%;
  }

  .header-actions.is-authenticated .header-user-name {
    display: none;
  }

  .header-actions.is-authenticated .header-verify-link {
    order: 5;
  }

  .header-actions.is-authenticated .header-logout-form {
    order: 10;
  }

  .header-verify-link,
  .header-admin-link {
    width: 64px;
    height: 35px;
    padding: 0;
    border-radius: 6px;
    font-size: 10px;
  }

  .dark-button {
    width: 86px;
    min-width: 0;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 3px;
    padding: 0;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
  }

  .header-actions .dark-button:first-child {
    border: 1px solid rgba(25, 23, 20, 0.72);
    background: rgba(255, 255, 255, 0.86);
    color: #1f1d1a;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  }

  .header-actions .dark-button:last-child {
    width: 86px;
    min-width: 0;
    display: inline-flex;
    border: 0;
    background: #252525;
    color: #fff;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  }

  .dark-button i {
    width: auto;
    display: inline-flex;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 12px;
  }

  .header-actions.is-authenticated .dark-button {
    width: 80px;
    border: 1px solid rgba(25, 23, 20, 0.72);
    background: rgba(255, 255, 255, 0.86);
    color: #1f1d1a;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  }

  .header-nav {
    position: fixed;
    top: 62px;
    right: 0;
    z-index: 40;
    width: 250px;
    min-width: 0;
    height: calc(100dvh - 62px);
    margin: 0;
    padding: 18px 14px 18px;
    display: grid;
    align-content: start;
    gap: 0;
    background: rgba(255, 253, 248, 0.99);
    border-left: 1px solid rgba(221, 214, 200, 0.95);
    box-shadow: -12px 0 28px rgba(43, 34, 18, 0.14);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      transform 0.8s ease,
      visibility 0s linear 0.8s;
    will-change: transform;
  }

  .drawer-brand {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0 14px;
    text-decoration: none;
  }

  .drawer-brand img {
    width: 148px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
  }

  .drawer-user-link {
    min-width: 0;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(221, 214, 200, 0.72);
    border-bottom: 1px solid rgba(221, 214, 200, 0.72);
    color: #17130c;
    text-decoration: none;
  }

  .drawer-user-avatar {
    width: 38px;
    height: 38px;
    display: block;
    flex: 0 0 38px;
    border-radius: 50%;
    object-fit: cover;
  }

  .drawer-user-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
    flex: 1 1 auto;
  }

  .drawer-user-name,
  .drawer-user-note {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .drawer-user-name {
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
  }

  .drawer-user-note {
    color: rgba(25, 23, 20, 0.68);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
  }

  .drawer-user-link > i {
    flex: 0 0 auto;
    color: rgba(25, 23, 20, 0.58);
    font-size: 14px;
  }

  .header-nav-button {
    width: 100%;
    min-width: 0;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 12px;
    padding: 0 0;
    border: 0;
    border-bottom: 1px solid rgba(221, 214, 200, 0.72);
    border-radius: 0;
    background: transparent;
    color: #17130c;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
  }

  .header-nav-button::before {
    content: "\f105";
    margin-left: auto;
    order: 3;
    color: rgba(25, 23, 20, 0.58);
    font-family: "Font Awesome 6 Free";
    font-size: 14px;
    font-weight: 900;
  }

  .header-nav-button::after {
    display: none;
  }

  .header-nav-button i {
    width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 23px;
  }

  .header-nav-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    position: relative;
    z-index: 45;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #1f1d1a;
    cursor: pointer;
    box-shadow: none;
  }

  .menu-toggle i {
    font-size: 24px;
    line-height: 1;
  }

  body.drawer-open .header-nav {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition:
      transform 0.8s ease,
      visibility 0s linear 0s;
  }
}

@media (max-width: 420px) {
  .header-inner {
    justify-content: flex-start;
  }

  .brand {
    width: 156px;
    flex-basis: 156px;
  }

  .brand-logo {
    width: 156px;
    height: 50px;
    max-width: 156px;
  }

  .dark-button {
    width: 80px;
  }

  .header-user {
    display: none;
  }

  .header-actions.is-authenticated .header-user {
    display: inline-flex;
  }

  .header-verify-link,
  .header-admin-link {
    width: 58px;
    font-size: 9px;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-grid !important;
  }
}

@media (max-width: 640px) {
  .header-actions {
    margin-left: auto;
  }

  .header-actions.is-authenticated {
    margin-left: auto;
  }

  .header-actions.is-authenticated .header-user {
    display: inline-flex;
  }

  .header-admin-link {
    display: none;
  }

}

.site-header.is-authenticated .header-nav {
  position: fixed;
  top: 70px;
  right: -300px;
  z-index: 40;
  width: 300px;
  min-width: 0;
  max-width: none;
  height: calc(100dvh - 70px);
  margin: 0;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  background: rgba(255, 253, 248, 0.99);
  border-left: 1px solid rgba(221, 214, 200, 0.95);
  box-shadow: -12px 0 28px rgba(43, 34, 18, 0.14);
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition:
    right 0.8s ease,
    visibility 0s linear 0.8s;
  will-change: right;
}

.site-header.is-authenticated .header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-header.is-authenticated .brand {
  margin-right: auto;
}

body.drawer-open .site-header.is-authenticated .header-nav {
  right: 0;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    right 0.8s ease,
    visibility 0s linear 0s;
}

.site-header.is-authenticated .drawer-brand {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 14px;
  text-decoration: none;
}

.site-header.is-authenticated .drawer-brand img {
  width: 148px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.site-header.is-authenticated .drawer-user-link {
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(221, 214, 200, 0.72);
  border-bottom: 1px solid rgba(221, 214, 200, 0.72);
  color: #17130c;
  text-decoration: none;
}

.site-header.is-authenticated .drawer-user-avatar {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
}

.site-header.is-authenticated .drawer-user-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  flex: 1 1 auto;
}

.site-header.is-authenticated .drawer-user-name,
.site-header.is-authenticated .drawer-user-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header.is-authenticated .drawer-user-name {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.site-header.is-authenticated .drawer-user-note {
  color: rgba(25, 23, 20, 0.68);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.site-header.is-authenticated .drawer-user-link > i {
  flex: 0 0 auto;
  color: rgba(25, 23, 20, 0.58);
  font-size: 14px;
}

.site-header.is-authenticated .header-nav .header-nav-button,
.site-header.is-authenticated .drawer-logout-button {
  width: 100%;
  min-width: 0;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(221, 214, 200, 0.72);
  border-radius: 0;
  background: transparent;
  color: #17130c;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}

.site-header.is-authenticated .header-nav .header-nav-button::before,
.site-header.is-authenticated .drawer-logout-button::before {
  content: "\f105";
  margin-left: auto;
  order: 3;
  color: rgba(25, 23, 20, 0.58);
  font-family: "Font Awesome 6 Free";
  font-size: 14px;
  font-weight: 900;
}

.site-header.is-authenticated .header-nav .header-nav-button::after {
  display: none;
}

.site-header.is-authenticated .header-nav .header-nav-button i,
.site-header.is-authenticated .drawer-logout-button i {
  width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 23px;
}

.site-header.is-authenticated .header-nav .header-nav-button span,
.site-header.is-authenticated .drawer-logout-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header.is-authenticated .header-help-button {
  display: inline-flex;
}

.site-header.is-authenticated .drawer-logout-form {
  margin: auto 0 0;
  padding-top: 18px;
}

.site-header.is-authenticated .drawer-logout-button {
  border-top: 1px solid rgba(221, 214, 200, 0.72);
}

.site-header.is-authenticated .header-actions {
  margin-left: auto;
}

.site-header.is-authenticated .header-user {
  order: 20;
  width: 34px;
  height: 34px;
  max-width: 34px;
  display: inline-flex;
  justify-content: center;
  flex: 0 0 34px;
  gap: 0;
  border: 1px solid rgba(25, 23, 20, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.site-header.is-authenticated .header-user-avatar {
  width: 100%;
  height: 100%;
  flex-basis: 100%;
}

.site-header.is-authenticated .header-user-name {
  display: none;
}

.site-header.is-authenticated .menu-toggle {
  position: relative;
  z-index: 45;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1f1d1a;
  cursor: pointer;
  box-shadow: none;
}

.site-header.is-authenticated .menu-toggle i {
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 900px) {
  .site-header.is-authenticated .header-nav {
    top: 62px;
    right: -250px;
    width: 250px;
    height: calc(100dvh - 62px);
  }

  body.drawer-open .site-header.is-authenticated .header-nav {
    right: 0;
  }
}
