/* 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.5rem 1.5rem; */
    padding: 0.4rem 1rem;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid transparent;
    border-radius: var(--rounded);
    background: black;
}

/* Header */
.header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    position: sticky;
    top: 0;
    display: grid;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem;
    /* min-height: 0; */
    background-color: var(--color-black);
    grid-template-columns: 1fr auto;
    transition: 0.6s ;
}

.header.open {
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
    bottom: 0;
    min-height: calc(100vh - 2rem);
    grid-template-rows: auto 1fr;
}

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

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

.header-menu {
    display: none;
    gap: 1rem;
    grid-row: 2;
    grid-column: 1 / -1;
}

.header.open .header-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 0 0;
}

.header-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    width: 2rem;
    height: 2rem;
}

.header-menu-toggle-bar {
    width: 1.5rem;
    height: 1.5px;
    background: white;
    transition: all 0.3s ease;
}

.header.open .header-menu-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.header.open .header-menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.header.open .header-menu-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Header menu items */
.header-menu-link {
    padding: 0.3rem 0;
    font-size: 24px;
}

.header-menu-link li a {
    text-decoration: none;
    transition: opacity 150ms ease;
}

.header-menu-link a:hover,
.header-menu-link a:focus-visible {
    opacity: 0.6;
}

/* Language switcher */
.header-lang-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.header-lang-item {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.15em;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: var(--color-gray);
    transition: color 150ms ease, background-color 150ms ease;
}

.header-lang-item:hover,
.header-lang-item:focus-visible {
    color: var(--color-white);
    opacity: 1;
}

.header-lang-item.is-active {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}