.mobile-header-controls {
    display: none;
}

@media (max-width: 760px) {
    .topbar, .site-header .menu, .site-header .header-action {
        display: none;
    }

    .site-header .nav {
        position: relative;
        flex-direction: row;
        min-height: 62px;
        padding-block: 8px;
        gap: 12px;
    }

    .site-header .brand-image {
        width: clamp(130px, 42vw, 175px);
    }

    .mobile-header-controls {
        display: flex;
        flex: none;
        gap: 6px;
    }

    .mobile-header-control summary {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        list-style: none;
        border: 1px solid #493749;
        border-radius: 12px;
        background: #1c1320;
        color: #fff2fa;
        cursor: pointer;
    }

    .mobile-header-control summary::-webkit-details-marker {
        display: none;
    }

    .mobile-header-control summary svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }

    .mobile-header-control[open] summary {
        color: var(--pink);
        border-color: var(--pink);
    }

    .mobile-header-panel {
        position: absolute;
        inset: calc(100% + 7px) 0 auto;
        max-height: min(70vh, 400px);
        overflow-y: auto;
        padding: 10px;
        border: 1px solid #67435e;
        border-radius: 16px;
        background: linear-gradient(155deg, #27172a, #130e19);
        box-shadow: 0 12px 36px #000b;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 8px 12px;
        border-radius: 9px;
        color: #fff2fa;
        font-size: 15px;
        font-weight: 700;
    }

    .mobile-menu a[aria-current], .mobile-menu a:hover {
        background: #40263e;
        color: var(--peach);
    }

    .mobile-search {
        padding: 14px;
    }

    .mobile-search label {
        display: block;
        margin-bottom: 8px;
        color: var(--peach);
        font-size: 13px;
        font-weight: 700;
    }

    .mobile-search > div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .mobile-search input {
        width: 100%;
        min-width: 0;
        padding: 10px;
        border: 1px solid #76566d;
        border-radius: 10px;
        background: #150e19;
        color: #fff2fa;
        font-size: 16px;
    }

    .mobile-search button {
        padding-inline: 15px;
    }

    .mobile-header-controls :focus-visible {
        outline: 2px solid var(--pink);
        outline-offset: 2px;
    }
}
