.site-header .container.nav-wrap {
  width: min(1320px, calc(100% - 20px));
}

.site-header .nav-wrap {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  height: 64px;
  justify-content: space-between;
}

.site-header .brand-logo {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
  max-width: 132px;
}

.site-header .brand-logo img {
  background: transparent;
  display: block;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
  width: auto;
  max-width: 132px;
}

.site-header .main-nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 2px;
  justify-content: center;
  margin-left: 0;
  min-width: 0;
  overflow: visible;
}

.site-header .main-nav > a {
  border-radius: 4px;
  color: var(--muted, #9aa7b5);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: .01em;
  line-height: 1.15;
  padding: 6px 8px;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .main-nav > a:hover {
  color: var(--text, #e8edf4);
}

.site-header .main-nav > a.active {
  background: transparent;
  box-shadow: inset 0 -1px 0 rgba(61, 154, 140, .85);
  color: var(--text, #e8edf4);
  font-weight: 650;
}

.site-header .main-nav > a[href="tmc.php"] {
  color: #c9a227;
}

.site-header .nav-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.site-header .nav-actions .button-small {
  font-size: 11px;
  padding: 8px 12px;
}

.site-header .nav-actions .login-link {
  font-size: 12px;
  white-space: nowrap;
}

.site-header .nav-actions .user-link {
  font-size: 11px;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  padding: 8px 10px;
}

@media (min-width: 1101px) {
  .site-header .main-nav > a {
    font-size: 12.5px;
    padding: 8px 10px;
  }

  .site-header .brand-logo img {
    max-height: 54px;
    max-width: 156px;
  }
}

@media (max-width: 1100px) {
  .site-header .main-nav > a {
    font-size: 11px;
    padding: 7px 7px;
  }

  .site-header .brand-logo,
  .site-header .brand-logo img {
    max-width: 120px;
  }

  .site-header .brand-logo img {
    max-height: 44px;
  }

  .site-header .nav-actions .button-small {
    padding: 7px 10px;
  }
}

@media (max-width: 960px) {
  .site-header .nav-wrap {
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    min-height: 72px;
    padding: 10px 0;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header .main-nav {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 2px;
    order: 3;
    width: 100%;
  }

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

  .site-header .main-nav > a {
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
  }

  .site-header .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    order: 2;
  }

  .site-header .nav-actions .user-link {
    max-width: none;
  }

  .site-header .brand-logo,
  .site-header .brand-logo img {
    max-height: 48px;
    max-width: 132px;
  }
}

.site-footer .brand-logo img {
  display: block;
  height: auto;
  margin-bottom: 10px;
  max-height: 72px;
  max-width: 180px;
  object-fit: contain;
}
