.popular {
    padding: 32px 0;
}

.popular__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 5px;
}

.popular__title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

.popular__nav {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}



.popular__nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}





.popular__nav-btn {
    width: 49px;
    height: 49px;
    border: none;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.25);
    background: #fff;
}

.popular__nav-btn::before {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 19px;
    height: 19px;
}

.popular__nav-btn--prev::before {
    content: url(../../img/popular/prev.svg)
}

.popular__nav-btn--next::before {
    content: url(../../img/popular/next.svg)
}

.popular__nav--mobile {
    display: none;
}

.popular__slider {
    padding: 30px 12px;
}

/* Loading skeleton row */
.popular__slider-skeleton {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 26px;
    margin-top: 38px;
}

/* State blocks */
.popular__state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 20px;
    text-align: center;
    font-size: 16px;
    color: #989fb8;
}

.popular__state--error {
    color: #ed3953;
}

.popular__state p {
    margin: 0;
}

.popular__state button {
    padding: 10px 24px;
    border-radius: 45px;
    border: none;
    background: linear-gradient(90deg, #ed3953 0%, #a1171b 100%);
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.popular__state button:hover {
    opacity: 0.9;
}




@keyframes popular-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Mobile */
@media (max-width: 900px) {
    .popular__slider-skeleton {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .event-item--skeleton .event-item__media {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 900px) {
    .popular {
        padding: 20px 0;
    }

    .popular__nav--desktop {
        display: none;
    }

    .popular__nav--mobile {
        display: flex;
        justify-content: center;
        margin-top: 24px;
    }

    .popular__head {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 14px;
    }

    .popular__title {
        font-size: 15px;
        text-align: center;
        display: block;
    }

    .popular__nav {
        order: 3;
        /* ÑÑ‚Ñ€ÐµÐ»ÐºÐ¸ Ð¿Ð¾ÑÐ»Ðµ ÑÐ»Ð°Ð¹Ð´ÐµÑ€Ð° */
        width: 100%;
        justify-content: center;
        margin-top: 14px;
    }

    .popular__nav-btn {
        width: 39px;
        height: 39px;
        border: none;
        border-radius: 50%;
        position: relative;
        box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.25);
        background: #fff;
    }

    .popular__slider {
        order: 2;
        padding: 10px 6px;
    }

    .popular__head .popular__nav {}
}