.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgb(245 244 241 / 0.05);
    border-bottom: 1px solid rgba(17, 17, 17, 0.07);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* ========================================
   MAIN HEADER
======================================== */

.site-header__inner {
    width: min(calc(100% - 80px), 1480px);
    height: 76px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    column-gap: 56px;
}


/* ========================================
   LOGO
======================================== */

.site-header__logo {
    color: #0b0b0b;

    font-size: 30px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: -1.8px;

    text-decoration: none;

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.site-header__logo:hover {
    opacity: 0.65;
}


/* ========================================
   DESKTOP NAVIGATION
======================================== */

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.site-header__nav a {
    position: relative;
    color: #222;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    letter-spacing: -0.1px;
    text-decoration: none;
    transition: opacity 160ms ease;
    text-transform: uppercase;
}

.site-header__nav a:hover {
    opacity: 0.45;
}

.site-header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 1px;
    background: #111;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 220ms ease;
}

.site-header__nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}


/* ========================================
   ACTIONS
======================================== */

.site-header__actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


/* ========================================
   SEARCH ICON BUTTON
======================================== */

.site-header__icon-button,
.site-header__menu-button {
    width: 42px;
    height: 42px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #111;

    cursor: pointer;

    transition:
        background-color 160ms ease,
        transform 160ms ease;
}

.site-header__icon-button:hover,
.site-header__menu-button:hover {
    background: #f3f3f3;
}

.site-header__icon-button:active,
.site-header__menu-button:active {
    transform: scale(0.94);
}

.site-header__icon-button svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ========================================
   SEARCH PANEL
======================================== */

.site-header__search-panel {
    max-height: 0;

    overflow: hidden;

    background: #fff;

    opacity: 0;

    border-top: 1px solid transparent;

    transform: translateY(-6px);

    transition:
        max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 200ms ease,
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 200ms ease;
}

.site-header__search-panel.is-open {
    max-height: 120px;

    opacity: 1;

    transform: translateY(0);

    border-top-color: rgba(17, 17, 17, 0.06);
}


/* ========================================
   SEARCH FORM
======================================== */

.site-header__search-form {
    position: relative;

    width: min(calc(100% - 80px), 760px);

    margin: 0 auto;
    padding: 20px 0;
}

.site-header__search-form input {
    width: 100%;
    height: 56px;
    border-radius: 19px;
    padding: 0 56px;

    border: 1px solid #dedede;


    outline: none;

    background: #fafafa;

    color: #111;

    font-size: 16px;
    font-weight: 400;

    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.site-header__search-form input::placeholder {
    color: #999;
}

.site-header__search-form input:hover {
    background: #f7f7f7;
}

.site-header__search-form input:focus {
    background: #fff;

    border-color: #111;

    box-shadow: none;
}


/* Search icon inside bar */

.site-header__search-form-icon {
    position: absolute;

    left: 18px;
    top: 50%;

    width: 20px;
    height: 20px;

    transform: translateY(-50%);

    fill: none;

    stroke: #111;
    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
}


/* Search close */

.site-header__search-close {
    position: absolute;

    right: 14px;
    top: 50%;

    width: 34px;
    height: 34px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #777;

    font-size: 25px;
    font-weight: 300;
    line-height: 1;

    transform: translateY(-50%);

    cursor: pointer;

    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.site-header__search-close:hover {
    color: #111;
    background: #f0f0f0;
}


/* ========================================
   HAMBURGER
======================================== */

.site-header__menu-button {
    display: none;

    position: relative;

    flex-direction: column;

    gap: 6px;
}

.site-header__menu-button span {
    width: 19px;
    height: 1.5px;

    display: block;

    background: #111;

    transition:
        transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 180ms ease;
}

.site-header__menu-button.is-open span:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.site-header__menu-button.is-open span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}


/* ========================================
   MOBILE MENU
======================================== */

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


/* ========================================
   TABLET / MOBILE
======================================== */

@media (max-width: 900px) {

    .site-header__inner {
        width: calc(100% - 32px);
        height: 68px;

        grid-template-columns: 1fr auto;

        column-gap: 16px;
    }

    .site-header__logo {
        font-size: 27px;
        letter-spacing: -1.4px;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__actions {
        gap: 2px;
    }

    .site-header__menu-button {
        display: flex;
    }


    /* SEARCH */

    .site-header__search-form {
        width: calc(100% - 32px);

        padding: 16px 0;
    }

    .site-header__search-panel.is-open {
        max-height: 110px;
    }

    .site-header__search-form input {
        height: 52px;

        padding-left: 52px;

        border-radius: 3px;

        font-size: 16px;
    }


    /* MOBILE MENU */

    .site-header__mobile-menu {
        display: block;

        max-height: 0;

        overflow: hidden;

        opacity: 0;

        background: #fff;

        border-top: 1px solid transparent;

        transform: translateY(-8px);

        transition:
            max-height 380ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
            border-color 200ms ease;
    }

    .site-header__mobile-menu.is-open {
        max-height: 420px;

        opacity: 1;

        transform: translateY(0);

        border-top-color: rgba(17, 17, 17, 0.07);
    }

    .site-header__mobile-menu nav {
        width: calc(100% - 32px);

        margin: 0 auto;

        padding: 20px 0 30px;

        display: flex;
        flex-direction: column;
    }

    .site-header__mobile-menu a {
        min-height: 58px;

        display: flex;
        align-items: center;

        border-bottom: 1px solid #eeeeee;

        color: #111;

        font-size: 24px;
        font-weight: 500;

        letter-spacing: -0.7px;

        text-decoration: none;

        transition:
            padding-left 180ms ease,
            opacity 180ms ease;
    }

    .site-header__mobile-menu a:last-child {
        border-bottom: 0;
    }

    .site-header__mobile-menu a:hover {
        padding-left: 8px;

        opacity: 0.55;
    }
}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 480px) {

    .site-header__inner {
        width: calc(100% - 24px);
        height: 64px;
    }

    .site-header__logo {
        font-size: 26px;
    }

    .site-header__icon-button,
    .site-header__menu-button {
        width: 38px;
        height: 38px;
    }

    .site-header__search-form {
        width: calc(100% - 24px);
    }

    .site-header__mobile-menu nav {
        width: calc(100% - 24px);
    }

    .site-header__mobile-menu a {
        min-height: 56px;

        font-size: 22px;
    }
}

.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    text-decoration: none;
}

.site-header__logo-image {
    display: block;

    width: auto;
    height: 40px;

    object-fit: contain;

    transition: opacity 180ms ease;
}

.site-header__logo:hover .site-header__logo-image {
    opacity: 0.65;
}
@media (max-width: 900px) {
    .site-header__logo-image {
        height: 27px;
    }
}
