.header {
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 3;
    transition: filter 0.6s 0.2s;
    color: white;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%); */
    /* background: black; */
}

.header.grid {
    gap: 0.5rem;
}

.header.black {
    /* background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); */
    background: white;
    color: black;
}

.header-name {
    display: flex;
    align-items: center;
}

.header.open .header-name {
    margin: 6px 0 96px;
}

.header-title .hidden {
    display: block;
    opacity: 0;
    width: 0;
    height: 0;
    visibility: hidden;
}

.header-title-logo svg {
    height: 16px;
    width: auto;
    max-width: calc(100vw - 6rem);
}

.header-title-logo svg * {
    transition: 0.6s;
    fill: white;
}

/* Desktop */
@media only screen and (min-width: 48rem) {
    .header {
        padding: 1rem 1rem 0 1rem;
        grid-template-rows: unset;
    }

    .header.grid {
        gap: 2rem 1rem;
    }

    .header-name {
        margin: 0;
    }

    .header-title-logo {
        translate: 0 -4px;
    }

    .header-title-logo svg {
        height: 18px;
        width: auto;
    }

    .header-nav.header-nav-about:hover,
    .header-nav.header-nav-news:hover,
    .header-nav.header-nav-work:hover {
        text-decoration: underline;
    }
}


/* Header Filters */
.header.black .header-title-logo svg * {
    fill: black;
}

/* Desktop */
@media only screen and (min-width: 48rem) {
    body:has(main.home-page) .header.scrolled,
    .header.scrolled {
        filter: blur(5px);
    }

    body:has(main.home-page) .header:hover,
    .header:hover {
        filter: blur(0px);
    }
}


/* Header Open */
.header.open {
    bottom: 0;
    max-height: 100svh;
    overflow-y: auto;
    background: black !important;
    color: white !important;
    grid-template-rows: auto auto auto 1fr;
}

.header.open .header-title-logo svg * {
    fill: white;
}

/* Desktop */
@media only screen and (min-width: 48rem) {
    .header {
        color: white;
    }

    .header.black {
        color: black;
    }

    .header.black .header-title-logo svg * {
        fill: black;
    }

    .header.open .header-title-logo svg * {
        fill: white;   
    }
}

/* 
    Header Elements
*/

/* Header Name */
.header-name {
    grid-column: 1/-2;
    font-weight: 500;
	font-variation-settings: 'wght' 500;
}

/* Desktop */
@media only screen and (min-width: 48rem) {
    .header-name {
        grid-column: 1/-6;
        font-weight: 400;
        font-variation-settings: 'wght' 400;
    }
}


/* Header Nav */
.header-nav-about,
.header-nav-news,
.header-nav-work,
.header-contacts-title {
    grid-column: 1/3;
    height: fit-content;
    /* margin-bottom: 64px; */
}

.header.open .header-nav.header-nav-about,
.header.open .header-nav.header-nav-news,
.header.open .header-nav.header-nav-work {
    display: block;
    grid-column: 1/-1;
    text-align: center;
    font-size: 2rem;
    line-height: 1.2em;
}

.header-nav.header-nav-about,
.header-nav.header-nav-news,
.header-nav.header-nav-work {
    display: none;
}

/* .header-nav-work {
    grid-column: 3/-1;
    height: fit-content;
} */

/* Desktop */
@media only screen and (min-width: 48rem) {
    .header-nav {
        justify-self: end;
        align-self: end;
        margin: 0;
    }
    .header-nav.header-nav-about,
    .header-nav.header-nav-news,
    .header-nav.header-nav-work {
        display: block;
    }
    
    .header-nav-about {
        grid-column: -4/-3;
    }

    .header-nav-news {
        grid-column: -3/-2;
    }
    
    .header-nav-work {
        grid-column: -2/-1;
    }
}


/* Header Mobile Footer Info */
.header-contacts {
    display: none;
}

header.open .header-contacts {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1rem 0.5rem;
    padding-top: 3rem;
}

.header-contacts-content {
    grid-column: 3/-1;
}

.header-contacts-title,
.header-contacts-content {
    grid-column: 1/-1;
}

.header-contacts-content {
    margin-bottom: 1rem;
    display: inline;
}

.header-contacts-content li {
    display: inline;
}

.header-contacts-content li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
}

.header-contacts-credits {
    grid-column: 1/-1;
    align-content: end;
    margin-top: 80px;
}


/* 
    SVG Button 
*/

body:has(main.home-page) .header-menu svg line,
.header.open button.header-menu svg line {
    stroke: white;
}

.header-menu svg line {
    stroke: white;
    stroke-width: 3px;
}

.header.black .header-menu svg line {
    stroke: black;
}

.header-menu svg * {
    fill: white;
}

.header-menu {
    grid-column: -2 / -1;
    grid-row: 1;
    width: fit-content;
    padding: 0.15rem 0.35rem;
    justify-self: flex-end;
    align-self: baseline;
}

.header-menu svg {
    height: 1.5rem;
    width: auto;
}

.header.open .header-menu .top-line {
    transform: rotate(45deg);
    transform-origin: 6% 35%;
}

.header.open .header-menu .medium-line {
    display: none;
}

.header.open .header-menu .bottom-line {
    transform: rotate(-45deg);
    transform-origin: 13% 71%;
}

/* 
    Skipper 
*/

.skipper {
    position: absolute;
    left: -100%;
    z-index: 1;
}

.skipper:focus-visible {
    top: 0.5rem;
    left: 0.5rem;
}

.skip-btn {
    display: inline-flex;
    padding: 0.4rem 1rem;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid transparent;
    border-radius: var(--rounded);
    background: #000000;
}