.vn-header,
.vn-footer {
  font-family: "Trebuchet MS", "Avenir Next", Avenir, "Microsoft YaHei", sans-serif;
}

.vn-header {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  height: auto;
  min-height: 76px;
  padding: 10px clamp(20px, 5vw, 86px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  border-bottom: 1px solid rgba(22, 91, 156, .13);
  background: rgba(251, 254, 255, .97);
  box-shadow: 0 7px 25px rgba(34, 97, 158, .055);
  backdrop-filter: blur(14px);
  color: #173657;
}

.vn-header a,
.vn-footer a { margin: 0; text-decoration: none; }
.vn-header__brand { display: inline-flex; align-items: center; width: max-content; }
.vn-header__brand img { display: block; width: 116px; max-width: 100%; }
.vn-header__nav { display: flex; justify-content: center; align-items: center; gap: clamp(15px, 2.5vw, 34px); min-width: 0; }
.vn-header__nav a { position: relative; padding: 9px 0; color: #315675; font-size: .79rem; font-weight: 900; white-space: nowrap; }
.vn-header__nav a:hover,
.vn-header__nav a[aria-current="page"] { color: #1766ba; }
.vn-header__nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #2476cf;
}
.vn-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; }
.vn-header__language {
  min-width: 116px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(26, 80, 131, .2);
  border-radius: 9px;
  background: white;
  color: #173657;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.vn-header__apply {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #ffbd60;
  box-shadow: 0 3px 0 #e69339;
  color: #153853;
  font-size: .76rem;
  font-weight: 1000;
  white-space: nowrap;
}
.vn-header__apply:hover { transform: translateY(1px); box-shadow: 0 2px 0 #e69339; }
.vn-header :focus-visible,
.vn-footer :focus-visible { outline: 3px solid #ffbd60; outline-offset: 3px; }

.vn-footer {
  display: block;
  margin: 0;
  padding: 42px clamp(24px, 6vw, 90px) 32px;
  background: #15385f;
  color: #e8f3fc;
  text-align: left;
  font-size: .77rem;
}
.vn-footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 26px; }
.vn-footer__brand { display: block; width: max-content; }
.vn-footer__brand img { display: block; width: 112px; }
.vn-footer__tagline { display: block; margin-top: 10px; color: #bfd5e8; font-size: .76rem; }
.vn-footer__socials { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.vn-footer__social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #edf8ff;
  transition: transform .16s ease, background .16s ease;
}
.vn-footer__social svg { display: block; width: 21px; height: 21px; fill: currentColor; }
.vn-footer__social:hover { transform: translateY(-2px); color: #fff; }
.vn-footer__social--facebook:hover { background: #1877f2; }
.vn-footer__social--x:hover { background: #17171b; }
.vn-footer__social--youtube:hover { background: #e62117; }
.vn-footer__social--discord:hover { background: #5865f2; }
.vn-footer__bottom {
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px 28px;
  border-top: 1px solid rgba(255, 255, 255, .17);
  color: #b8d0e2;
  font-size: .73rem;
}
.vn-footer__links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 20px; }
.vn-footer__links a { color: #dcecf8; }
.vn-footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.vn-footer__operator { margin: 18px 0 0; color: #a9bfd4; font-size: .72rem; line-height: 1.55; }

@media (max-width: 1180px) {
  .vn-header { grid-template-columns: auto 1fr; gap: 5px 16px; padding-block: 10px 7px; }
  .vn-header__brand { grid-column: 1; grid-row: 1; }
  .vn-header__actions { grid-column: 2; grid-row: 1; }
  .vn-header__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 25px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .vn-header__nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .vn-header { padding-inline: 16px; }
  .vn-header__brand img { width: 92px; }
  .vn-header__language { min-width: 104px; max-width: 104px; height: 38px; font-size: .73rem; }
  .vn-header__apply { min-height: 38px; padding-inline: 10px; font-size: .71rem; }
  .vn-header__actions { gap: 7px; }
  .vn-header__nav { justify-content: center; flex-wrap: wrap; gap: 2px 12px; overflow: visible; }
  .vn-header__nav a { flex: 0 0 calc((100% - 36px) / 4); padding-block: 6px; text-align: center; font-size: .74rem; }
  .vn-footer__top { flex-direction: column; align-items: center; text-align: center; }
  .vn-footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  .vn-footer__links { justify-content: center; }
  .vn-footer__operator { text-align: center; }
}
@media (max-width: 360px) {
  .vn-header__brand img { width: 78px; }
  .vn-header__language { min-width: 94px; max-width: 94px; }
  .vn-header__apply { padding-inline: 8px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .vn-header { position: relative; }
}
