.navbar {
    width: 100%;

    position: absolute;
    top: 0;
    left: 0;

    z-index: 80;

    background-color: rgba(255, 248, 245, 0.92);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(0,0,0,0.04);

    overflow: visible;

    animation: navbarReveal .55s ease both;
}

.navbar::before {
    content: '';

    position: absolute;

    inset: 0;

    background-image:
        url('/static/images/hero/navbar_texture.png');

    background-size: cover;
    background-position: center;

    opacity: 0.84;

    pointer-events: none;
}

.navbar .container {
    width: 100%;
    max-width: none;
    padding-left: clamp(26px, 5.6vw, 78px);
    padding-right: clamp(14px, 1.8vw, 28px);
}

.navbar-wrapper {
    height: 88px;

    display: flex;
    align-items: center;
    gap: 0;

    position: relative;
    z-index: 2;
}

.navbar-logo {
    flex: 0 0 clamp(210px, 21vw, 330px);
}

.navbar-logo img {
    height: 62px;
    object-fit: contain;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 46px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding-left: clamp(10px, 2vw, 34px);
    padding-right: clamp(56px, 7vw, 132px);
}

.navbar-links a {
    font-size: 17px;

    color: #5e5e5e;

    position: relative;

    padding-bottom: 8px;

    transition:
        color .28s ease,
        opacity .28s ease,
        transform .28s ease;
}

.navbar-links a::after {
    content: '';

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0%;
    height: 1px;

    background: var(--color-primary);

    transition: width .35s ease;
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-links a:hover {
    opacity: .65;
    transform: translateY(-1px);
}

.navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 0 0 auto;
    margin-left: auto;
}

.navbar-button,
.navbar-account-button {
    height: 42px;

    padding-left: 24px;
    padding-right: 24px;

    border-radius: 999px;

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

    gap: 10px;

    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;

    position: relative;
    overflow: hidden;

    transition:
        transform .28s ease,
        background .28s ease,
        color .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}

.navbar-button {
    width: 148px;
    min-width: 148px;
    background: var(--color-primary);
    color: white;
    box-shadow: 0 12px 28px rgba(199, 119, 112, .18);
}

.navbar-account-button {
    width: auto;
    min-width: 128px;
    max-width: 220px;
    border: 1px solid rgba(199, 119, 112, .76);
    background: rgba(255, 255, 255, .42);
    color: #5e5e5e;
    letter-spacing: .2px;
    text-transform: none;
    font-size: 15px;
    white-space: nowrap;
}

.navbar-button::before,
.navbar-account-button::before {
    content: '';
    position: absolute;
    inset: -45% auto -45% -70%;
    width: 55%;
    transform: rotate(18deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .42),
        transparent
    );
    opacity: 0;
    transition:
        left .58s ease,
        opacity .28s ease;
    pointer-events: none;
}

.navbar-button:hover::before,
.navbar-account-button:hover::before {
    left: 118%;
    opacity: 1;
}

.navbar-account-button svg {
    width: 19px;
    height: 19px;
    stroke: var(--color-primary);
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navbar-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navbar-button:hover {
    transform: translateY(-2px);

    background: #ba6e66;
    box-shadow: 0 16px 34px rgba(199, 119, 112, .28);
}

.navbar-account-button:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 14px 30px rgba(199, 119, 112, .14);
}

@keyframes navbarReveal {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar,
    .navbar-links a,
    .navbar-button,
    .navbar-account-button,
    .navbar-button::before,
    .navbar-account-button::before {
        animation: none;
        transition: none;
    }
}

@media (max-width: 900px) {
    .navbar .container {
        padding-left: clamp(18px, 4vw, 40px);
        padding-right: clamp(18px, 4vw, 40px);
    }

    .navbar-wrapper {
        height: auto;
        min-height: 76px;
        flex-wrap: wrap;
        gap: 10px 16px;
        padding: 10px 0 12px;
    }

    .navbar-logo {
        width: 100%;
        display: flex;
        justify-content: center;
        order: 0;
    }

    .navbar-logo img {
        height: 48px;
    }

    .navbar-actions {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .navbar-button,
    .navbar-account-button {
        height: 42px;
        padding-left: 20px;
        padding-right: 20px;
        font-size: 11px;
        letter-spacing: 1.4px;
    }

    .navbar-button {
        width: 132px;
        min-width: 132px;
    }

    .navbar-account-button {
        width: auto;
        min-width: 118px;
        max-width: min(210px, 46vw);
        font-size: 13px;
        letter-spacing: .2px;
    }

    .navbar-account-button svg {
        width: 18px;
        height: 18px;
    }

    .navbar-button svg {
        width: 16px;
        height: 16px;
    }

    .navbar-links {
        order: 3;
        width: 100%;
        gap: 8px;
        flex: 0 0 100%;
        justify-content: flex-start;
        padding-left: 0;
        padding-right: 0;
        overflow-x: auto;
        padding: 2px 0 4px;
        scrollbar-width: none;
    }

    .navbar-links::-webkit-scrollbar {
        display: none;
    }

    .navbar-links a {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 8px 12px;
        border: 1px solid rgba(199,119,112,.14);
        border-radius: 999px;
        background: rgba(255,255,255,.48);
        font-size: 13px;
    }

    .navbar-links a::after {
        display: none;
    }
}

@media (max-width: 460px) {
    .navbar-logo img {
        height: 42px;
    }

    .navbar-actions {
        gap: 8px;
    }

    .navbar-button,
    .navbar-account-button {
        height: 38px;
        padding-left: 16px;
        padding-right: 16px;
        letter-spacing: 1px;
    }

    .navbar-button {
        width: 118px;
        min-width: 118px;
    }

    .navbar-account-button {
        width: auto;
        min-width: 104px;
        max-width: min(190px, 46vw);
        font-size: 12px;
        letter-spacing: .1px;
    }

    .navbar-account-button svg {
        width: 17px;
        height: 17px;
    }

    .navbar-button svg {
        width: 15px;
        height: 15px;
    }

    .navbar-links a {
        font-size: 12px;
    }
}
