/* Közös felső fejléc és fő navigáció. */
.vc-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(243, 234, 216, .92);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(10px);
}

.vc-topbar:after {
  content: "";
  display: block;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 28px, var(--acid) 28px 56px, var(--signal) 56px 84px, var(--ink) 84px 112px);
}

.vc-top-inner {
  width: min(var(--max), calc(100% - var(--side) * 2));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.vc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
  font-size: .96rem;
}

.vc-brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.vc-top-links {
  justify-self: end;
  display: flex;
  align-items: center;
}

.vc-nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vc-top-links a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
  border-bottom: 3px solid transparent;
  font-size: .84rem;
  font-weight: 900;
  white-space: nowrap;
}

.vc-top-links a:hover { border-color: var(--signal); }
.vc-top-links a[aria-current="page"]:not(.vc-free-link) { border-color: var(--ink); }

.vc-top-links a.vc-free-link {
  background: var(--acid);
  border: 2px solid var(--ink);
  padding: 7px 10px;
  box-shadow: 3px 3px 0 var(--signal);
}

.vc-top-links a.vc-free-link:hover {
  border-color: var(--ink);
  transform: translate(-1px, -1px);
}

.vc-mobile-nav-label,
.vc-mobile-sections,
.vc-mobile-contact { display: none; }

.vc-topbar .vc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper-2);
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--acid);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  position: relative;
  isolation: isolate;
}

.vc-topbar .vc-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--acid);
}

.vc-mobile-toggle {
  display: none;
  background: var(--ink);
  color: var(--paper-2);
  border: 2px solid var(--ink);
  padding: 9px 12px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--acid);
}

@media (max-width: 1080px) {
  .vc-top-inner {
    grid-template-columns: 1fr auto;
    min-height: 62px;
  }

  .vc-top-links {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 82px;
    bottom: auto;
    z-index: 9600;
    display: none;
    background: var(--paper-2);
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 rgba(21,20,20,.22);
    padding: 0;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
  }

  .vc-top-links.vc-open { display: block; }

  .vc-mobile-nav-label {
    display: block;
    padding: 8px 10px 7px;
    background: var(--ink);
    color: var(--paper-2);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .vc-nav-primary,
  .vc-mobile-section-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .vc-mobile-sections { display: block; }

  .vc-nav-primary a,
  .vc-mobile-section-links a,
  .vc-nav-primary .vc-mobile-contact {
    display: grid;
    place-items: center;
    min-height: 44px;
    text-align: center;
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    padding: 8px 6px;
    font-size: .76rem;
  }

  .vc-nav-primary a:nth-child(2n),
  .vc-mobile-section-links a:nth-child(2n) { border-right: 0; }

  .vc-nav-primary .vc-mobile-contact { background: var(--acid); }

  .vc-top-links a.vc-free-link {
    padding: 8px 6px;
    box-shadow: none;
    transform: none;
  }

  .vc-top-links a.vc-free-link:hover { transform: none; }

  .vc-topbar .vc-btn { display: none; }

  .vc-mobile-toggle {
    display: inline-block;
    justify-self: end;
    position: relative;
    z-index: 9700;
  }

  .vc-mobile-toggle.vc-open {
    background: var(--acid);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--signal);
  }
}

@media (max-width: 520px) {
  .vc-brand span { max-width: 190px; line-height: 1.1; }
  .vc-top-links { top: 76px; }

  .vc-nav-primary,
  .vc-mobile-section-links { grid-template-columns: 1fr; }

  .vc-nav-primary a,
  .vc-mobile-section-links a,
  .vc-nav-primary .vc-mobile-contact {
    border-right: 0;
    min-height: 42px;
    font-size: .78rem;
  }
}
