.mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(20, 20, 22, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.mobile-sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    --sidebar-ink: #141416;
    --sidebar-orange-1: #d9351f;
    --sidebar-orange-2: #e85a2b;
    --sidebar-orange-3: #f58b4e;
    --sidebar-orange-4: #fdc68a;

    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    width: min(340px, 88vw);
    height: 100dvh;
    max-height: 100dvh;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.42s;
    pointer-events: none;
}

.mobile-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-sidebar__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(
        120% 80% at 100% 0%,
        #f8f3e7 0%,
        #f2ead6 55%,
        #e9dec3 100%
    );
    box-shadow: -12px 0 40px rgba(20, 20, 22, 0.18);
}

.mobile-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    flex-shrink: 0;
}

.mobile-sidebar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--sidebar-ink);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.mobile-sidebar__brand img {
    flex-shrink: 0;
}

.mobile-sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--sidebar-ink);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-sidebar__close:hover,
.mobile-sidebar__close:focus-visible {
    background: rgba(255, 255, 255, 0.85);
    outline: none;
}

.mobile-sidebar__nav {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1.5rem 1.25rem 8rem;
    overflow-y: auto;
}

.mobile-sidebar__links {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.mobile-sidebar__link {
    display: block;
    padding: 0.85rem 0;
    color: var(--sidebar-ink);
    font-family: "Roboto Condensed", "Segoe UI", sans-serif;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-bottom: 1px solid rgba(20, 20, 22, 0.08);
    transform: translateX(24px);
    opacity: 0;
    transition: color 0.2s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.mobile-sidebar.is-open .mobile-sidebar__link {
    transform: translateX(0);
    opacity: 1;
}

.mobile-sidebar.is-open .mobile-sidebar__links li:nth-child(1) .mobile-sidebar__link { transition-delay: 0.08s; }
.mobile-sidebar.is-open .mobile-sidebar__links li:nth-child(2) .mobile-sidebar__link { transition-delay: 0.12s; }
.mobile-sidebar.is-open .mobile-sidebar__links li:nth-child(3) .mobile-sidebar__link { transition-delay: 0.16s; }
.mobile-sidebar.is-open .mobile-sidebar__links li:nth-child(4) .mobile-sidebar__link { transition-delay: 0.20s; }
.mobile-sidebar.is-open .mobile-sidebar__links li:nth-child(5) .mobile-sidebar__link { transition-delay: 0.24s; }
.mobile-sidebar.is-open .mobile-sidebar__links li:nth-child(6) .mobile-sidebar__link { transition-delay: 0.28s; }

.mobile-sidebar__link:hover,
.mobile-sidebar__link:focus-visible {
    color: var(--sidebar-orange-1);
    outline: none;
}

.mobile-sidebar__cards {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    overflow: hidden;
    pointer-events: none;
}

.mobile-sidebar__cards-row {
    position: absolute;
    left: 50%;
    bottom: -52px;
    width: 100%;
    max-width: 340px;
    height: 170px;
    transform: translateX(-50%);
}

.mobile-sidebar__card {
    position: absolute;
    border-radius: 14px;
    overflow: hidden;
    border: none;
    background: linear-gradient(
        180deg,
        var(--sidebar-orange-1) 0%,
        var(--sidebar-orange-2) 35%,
        var(--sidebar-orange-3) 70%,
        var(--sidebar-orange-4) 100%
    );
    box-shadow: 0 18px 32px -12px rgba(180, 50, 20, 0.45),
        0 8px 16px -6px rgba(140, 40, 10, 0.28),
        inset 0 1px 0 rgba(255, 220, 180, 0.45),
        inset 0 -3px 6px rgba(120, 20, 0, 0.35);
    transform: rotate(var(--sidebar-card-rot, 0deg));
    opacity: 0;
    transition: opacity 0.5s ease 0.15s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.mobile-sidebar.is-open .mobile-sidebar__card {
    opacity: 1;
}

.mobile-sidebar__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.25) 0%,
        transparent 30%,
        transparent 70%,
        rgba(100, 20, 0, 0.25) 100%
    );
    pointer-events: none;
    border-radius: inherit;
    z-index: 2;
}

.mobile-sidebar__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.mobile-sidebar__card.sidebar-card-1 {
    width: 58px;
    height: 80px;
    left: 4%;
    top: 30px;
    z-index: 1;
}

.mobile-sidebar__card.sidebar-card-2 {
    width: 70px;
    height: 96px;
    left: 20%;
    top: 20px;
    z-index: 2;
}

.mobile-sidebar__card.sidebar-card-3 {
    width: 84px;
    height: 114px;
    left: 50%;
    top: 8px;
    margin-left: -42px;
    z-index: 4;
}

.mobile-sidebar__card.sidebar-card-4 {
    width: 70px;
    height: 96px;
    left: auto;
    right: 20%;
    top: 20px;
    z-index: 3;
}

.mobile-sidebar__card.sidebar-card-5 {
    width: 58px;
    height: 80px;
    left: auto;
    right: 4%;
    top: 30px;
    z-index: 2;
}

body.mobile-sidebar-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .mobile-sidebar,
    .mobile-sidebar-backdrop {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:not(.site-motion-user-on) .mobile-sidebar,
    html:not(.site-motion-user-on) .mobile-sidebar-backdrop,
    html:not(.site-motion-user-on) .mobile-sidebar__link,
    html:not(.site-motion-user-on) .mobile-sidebar__card {
        transition: none !important;
    }

    html:not(.site-motion-user-on) .mobile-sidebar__link,
    html:not(.site-motion-user-on) .mobile-sidebar__card {
        transform: none !important;
        opacity: 1 !important;
    }
}
