.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.667rem;
  background: #fff;
  box-shadow: 0 0.053rem 0.267rem rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header__container {
  max-width: 51.2rem;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.067rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  width: 5.787rem;
  height: 1.493rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.header__logo:hover {
  opacity: 0.8;
}

.header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex: 1;
  justify-content: center;
}

.header__link {
  font-size: 0.64rem;
  color: #1A1A1A;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 2.667rem;
  position: relative;
}

.header__link:hover {
  color: #003D72;
  font-weight: 500;
}

.header__link.active {
  color: #003D72;
  font-weight: 500;
}

.header__link.active::after {
  content: '';
  position: absolute;
  bottom: 0.1rem;
  left: 0;
  width: 100%;
  height: 0.053rem;
  background: #003D72;
}

.header__dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.667rem;
}

.header__dropdown .header__link {
  font-size: 0.64rem;
  color: #1A1A1A;
}

.header__dropdown:hover .header__link,
.header__dropdown.active .header__link {
  color: #003D72;
  font-weight: 500;
}

.header__dropdown.active .header__link::after {
  content: '';
  position: absolute;
  bottom: 0.1rem;
  left: 0;
  width: 100%;
  height: 0.053rem;
  background: #003D72;
}


.header__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0.107rem 0.533rem rgba(0, 0, 0, 0.1);
  border-radius: 0.107rem;
  padding: 0.267rem 0;
  width: fit-content;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  transform: translateX(-50%) translateY(-0.267rem);
  margin-top: 0.15rem;
}

.header__dropdown:hover .header__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__menu a {
  display: block;
  padding: 0.32rem 0.533rem;
  font-size: 0.373rem;
  color: #666;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

.header__menu a:hover {
  background: #f5f5f5;
  color: #003d72;
}

.header__menu a.active {
  background: #f5f5f5;
  color: #003d72;
  font-weight: 500;
}

.header__btn {
  width: 4rem;
  height: 1.493rem;
  background: linear-gradient(270deg, #0070AB 0%, #003D72 100%);
  color: #fff;
  font-size: 0.427rem;
  border-radius: 0.747rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__btn:hover {
  opacity: 0.9;
  transform: translateY(-0.053rem);
}
