.hero-card {
    padding-bottom: 210px;
}

.category-panel {
    position: absolute;
    z-index: 5;
    right: 24px;
    bottom: 18px;
    left: 24px;
    min-height: 146px;
    padding: 19px 20px 17px;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
    border: 1px solid rgba(231, 233, 240, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 17px 40px rgba(50, 65, 106, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.category-item {
    min-width: 0;
    padding: 2px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 17px;
    color: inherit;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.category-item:hover,
.category-item:focus-visible {
    background: rgba(248, 249, 255, 0.94);
    box-shadow: 0 9px 21px rgba(65, 79, 122, 0.07);
    transform: translateY(-3px);
}

.category-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 9px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: var(--category-background);
    color: var(--category-color);
}

.category-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-item strong {
    color: #1d2943;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
}

.category-item small {
    margin-top: 6px;
    color: #6f7a93;
    font-size: 0.7rem;
    line-height: 1.25;
}

.category-home {
    --category-color: #21bcb4;
    --category-background: rgba(37, 195, 184, 0.09);
}

.category-tech {
    --category-color: #3378ee;
    --category-background: rgba(64, 126, 239, 0.09);
}

.category-baby {
    --category-color: #f15d89;
    --category-background: rgba(244, 104, 146, 0.09);
}

.category-beauty {
    --category-color: #885ae5;
    --category-background: rgba(139, 93, 229, 0.09);
}

.category-auto {
    --category-color: #f48a19;
    --category-background: rgba(244, 143, 33, 0.1);
}

.category-pets {
    --category-color: #18bfc0;
    --category-background: rgba(36, 194, 193, 0.1);
}

.category-kitchen {
    --category-color: #dda615;
    --category-background: rgba(230, 178, 39, 0.1);
}

.category-office {
    --category-color: #2388cf;
    --category-background: rgba(39, 139, 208, 0.09);
}

@media (max-width: 1050px) {
    .hero-card {
        padding-bottom: 220px;
    }

    .category-panel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-height: auto;
    }

    .category-item:nth-child(n + 5) {
        display: none;
    }
}

@media (max-width: 800px) {
    .hero-card {
        padding-bottom: 218px;
    }

    .category-panel {
        right: 14px;
        bottom: 14px;
        left: 14px;
        padding: 16px 10px;
        gap: 5px;
    }

    .category-icon {
        width: 54px;
        height: 54px;
    }

    .category-icon svg {
        width: 31px;
        height: 31px;
    }

    .category-item small {
        display: none;
    }
}

@media (max-width: 560px) {
    .hero-card {
        padding-bottom: 190px;
    }

    .category-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-item:nth-child(4) {
        display: none;
    }

    .category-item strong {
        font-size: 0.75rem;
    }
}