header {
    position: fixed;
    top: 60px;
    right: 80px;
    z-index: 99;
    background: #000;
    padding: 11px 27px;
    box-sizing: border-box;
}


header a {
    position: relative;
    font-family: 'Actor', sans-serif;
    color: #fff;
    text-decoration: none;
    font-size: 24.5px;
    padding: 0 25px;
}
header a:hover {
    color: rgba(255, 255, 255, 0);
}

header a::after {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    color: rgba(255, 255, 255, 0);
}
header a:hover::after {
    color: #fff;
}

header a:nth-of-type(1)::after {
    content: 'rólam';
}
header a:nth-of-type(2)::after {
    content: 'munkák';
}
header a:nth-of-type(3)::after {
    content: 'szolgáltatások';
}
header a:nth-of-type(4)::after {
    content: 'kapcsolat';
}



@media (min-width: 1441px) {
}

@media (min-width: 1025px) and (max-width: 1440px) {
}

@media (min-width: 769px) and (max-width: 1024px) {
}

@media (min-width: 426px) and (max-width: 768px) {
    header {
        top: 30px;
        right: 50%;
        transform: translate(50%, 0);
        white-space: nowrap;
    }

    header a {
        font-size: 17px;
        padding: 0 3.5vw;
    }
}

@media (min-width: 376px) and (max-width: 425px) {
    header {
        top: 30px;
        right: 50%;
        transform: translate(50%, 0);
        white-space: nowrap;
        padding: 2.8vw 5vw;
    }

    header a {
        font-size: 15px;
        padding: 0 3.5vw;
    }
}

@media (min-width: 321px) and (max-width: 375px) {
    header {
        top: 30px;
        right: 50%;
        transform: translate(50%, 0);
        white-space: nowrap;
        padding: 2.8vw 5vw;
    }

    header a {
        font-size: 13px;
        line-height: 24px;
        padding: 0 3.5vw;
    }
}

@media (max-width: 320px) {
    header {
        top: 30px;
        right: 50%;
        transform: translate(50%, 0);
        white-space: nowrap;
        padding: 2.8vw 5vw;
    }

    header a {
        font-size: 13px;
        line-height: 24px;
        padding: 0 3.5vw;
    }
}