header#masthead {
  padding: 10px 0;
  background-color: transparent;
  transition: background-color 0.3s ease;
  color: #000;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2;
}

header#masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header#masthead.sticky {
  background-color: #373A36;
  color: var(--White);
  z-index: 999;
  top: 0;
  position: fixed;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#primary-menu .menu-item a,
.sticky .menu-item a {
  font-size: 15px;
  font-weight: 700;
  line-height: 130%;
  text-transform: uppercase;
  color: #000;
  transition: 0.2s;
}
.sticky #primary-menu .menu-item a {
    color: #fff;
}
.home header#masthead,
.home #primary-menu .menu-item a,
.page-template-Pagescontacts-php header#masthead,
.page-template-Pagescontacts-php #primary-menu .menu-item a,
body.post-type-archive-team header#masthead,
body.post-type-archive-team #primary-menu .menu-item a {
  color: var(--White);
}

#primary-menu .menu-item a:hover {
  color: #000;
}
.sticky #primary-menu .menu-item a:hover,
.home #primary-menu .menu-item a:hover,
.page-template-Pagescontacts-php #primary-menu .menu-item a:hover,
body.post-type-archive-team #primary-menu .menu-item a:hover {
  color: var(--White);
}

a.ppopup {
  font-size: 16px;
  font-weight: 700;
  line-height: 120%;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--White);
  padding: 15px 22px;
  border-radius: 12px;
  transition: 0.2s;
  border: 2px solid var(--White)
}

a.ppopup:hover {
  color: var(--White);
  background-color: transparent;
}

.main-navigation ul {
  column-gap: 30px;
}

.main-navigation a {
  position: relative;
  transition: 0.2s;
}

.main-navigation a::before {
  content: '';
  display: block;
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.sticky .main-navigation a::before {
  background: var(--White);
}
.home .main-navigation a::before,
body.post-type-archive-team .main-navigation a::before,
body.page-template-Pagescontacts-php .main-navigation a::before {
  background: var(--White);
}

.main-navigation a:hover::before {
  opacity: 1;
}
/* //////// */

