.header {
    height: 172px;
    background: white;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
}

.header .header__inner {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 0 var(--layout-inline-margin);
}

.header .logo {
    width: 110px;
    height: auto;
}

.header .header__nav .menu {
    flex-direction: row;
    gap: 40px;
    font-size: 18px;
    letter-spacing: 0.18px;
}

.header .header__nav .menu a {
    position: relative;
    display: inline-block;
}

.header .header__nav .menu a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    border-bottom: 2px solid currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.header .header__nav .menu a:hover::after {
    opacity: 1;
}

.header .header__mobile-menu {
    display: none;
}

.header .header__toggle {
    display: none;
    width: 40px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.header .header__toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: black;
}

@media (max-width: 767px) {
    .header {
        height: 90px;
    }

    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    body.mobile-menu-open .header {
        box-shadow: none;
    }

    .header .header__inner {
        position: relative;
        z-index: 2;
    }

    .header .logo {
        width: auto;
        height: 42px;
    }

    .header .header__nav {
        display: none;
    }

    .header .header__mobile-menu {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 114px 36px 36px;
        overflow: hidden;
        background: #FBF5F0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .header .header__mobile-menu::before {
        content: '';
        position: absolute;
        inset: 0;
        background: white;
        clip-path: polygon(0 100px, 0 100%, 100% 100%, 100% calc(100px + 100vw));
    }

    body.mobile-menu-open .header .header__mobile-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header .header__mobile-nav {
        position: relative;
        z-index: 1;
    }

    .header .header__mobile-nav .menu {
        flex-direction: column;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

    .header .header__mobile-nav .menu a {
        position: relative;
        display: inline-block;
        font-size: 22px;
        letter-spacing: 0.22px;
    }

    .header .header__mobile-nav .menu a::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: -2px;
        left: 0;
        border-bottom: 2px solid currentColor;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .header .header__mobile-nav .menu a:hover::after {
        opacity: 1;
    }

    .header .header__toggle {
        display: block;
        position: relative;
        width: 32px;
        height: 24px;
        transition: width 0.2s ease;
        z-index: 2;
    }

    .header .header__toggle-line {
        position: absolute;
        left: 0;
        width: 100%;
        transition: top 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    }

    .header .header__toggle-line:nth-child(1) {
        top: 0;
    }

    .header .header__toggle-line:nth-child(2) {
        top: 11px;
    }

    .header .header__toggle-line:nth-child(3) {
        top: 22px;
    }

    body.mobile-menu-open .header .header__toggle {
        width: 24px;
        height: 24px;
    }

    body.mobile-menu-open .header .header__toggle-line:nth-child(1) {
        top: 11px;
        transform: rotate(45deg);
    }

    body.mobile-menu-open .header .header__toggle-line:nth-child(2) {
        opacity: 0;
    }

    body.mobile-menu-open .header .header__toggle-line:nth-child(3) {
        top: 11px;
        transform: rotate(-45deg);
    }
}
