.shops-mainpage {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 15px 0;
    box-sizing: border-box;
}

@media (min-width: 1280px) {
    .shops-mainpage {
        padding: 0 50px 0;
    }
}

@media (min-width: 1440px) {
    .shops-mainpage {
        padding: 0;
    }
}

.shops-mainpage__title {
    padding-bottom: 40px;
}

.shops-mainpage__title .h4,
.shops-mainpage__title h2 {
    margin: 0;
    font-weight: 800;
    font-size: 1.5em;
    line-height: 1.25em;
    color: #3E3E3E;
}

.shops-mainpage__row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 60px;
}

@media (min-width: 900px) {
    .shops-mainpage__row {
        flex-direction: row;
        align-items: stretch;
        gap: 30px;
    }
}

.shops-mainpage__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .shops-mainpage__info {
        width: 34%;
        max-width: 360px;
    }
}

.shops-mainpage__logo {
    margin-bottom: 24px;
}

.shops-mainpage__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.shops-mainpage__logo--ezoo img {
    width: 220px;
}

.shops-mainpage__logo--market img {
    width: 200px;
}

.shops-mainpage__text {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 22px;
    color: #3E3E3E;
}

.shops-mainpage__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
    padding: 0 24px;
    border-radius: 30px;
    background-color: #FEC40E;
    color: #3E3E3E;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.15s ease-out;
}

.shops-mainpage__button:hover {
    background-color: #FFA90A;
}

.shops-mainpage__gallery {
    display: flex;
    gap: 16px;
    height: 220px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    cursor: grab;
    align-items: stretch;
    scrollbar-width: thin;
    scrollbar-color: rgba(62, 62, 62, 0.45) transparent;
}

@media (min-width: 601px) {
    .shops-mainpage__gallery {
        height: 280px;
    }
}

@media (min-width: 900px) {
    .shops-mainpage__gallery {
        flex: 1;
    }
}

.shops-mainpage__row.is-dragging,
.shops-mainpage__gallery.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.shops-mainpage__gallery::-webkit-scrollbar,
.shops-mainpage__row::-webkit-scrollbar {
    height: 4px;
}

.shops-mainpage__gallery::-webkit-scrollbar-track,
.shops-mainpage__row::-webkit-scrollbar-track {
    background: transparent;
}

.shops-mainpage__gallery::-webkit-scrollbar-thumb,
.shops-mainpage__row::-webkit-scrollbar-thumb {
    background: rgba(62, 62, 62, 0.4);
    border-radius: 4px;
}

.shops-mainpage__card {
    flex: 0 0 auto;
    width: 260px;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background-color: #fff;
}

@media (min-width: 601px) {
    .shops-mainpage__card {
        width: 320px;
    }
}

.shops-mainpage__card--empty {
    background-color: #fff;
}

.shops-mainpage__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 899px) {
    .shops-mainpage__row {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        height: 280px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
        scrollbar-width: thin;
        scrollbar-color: rgba(62, 62, 62, 0.45) transparent;
    }

    .shops-mainpage__gallery {
        display: contents;
        height: auto;
        overflow: visible;
        cursor: inherit;
    }

    .shops-mainpage__info {
        flex: 0 0 180px;
        width: 180px;
        height: 100%;
        padding: 20px;
        border-radius: 20px;
        background: #f7f7f7;
    }

    .shops-mainpage__logo {
        margin-bottom: 16px;
    }

    .shops-mainpage__logo--ezoo img {
        width: 160px;
    }

    .shops-mainpage__logo--market img {
        width: 140px;
    }

    .shops-mainpage__text {
        flex: 1 1 auto;
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.35;
    }

    .shops-mainpage__button {
        flex-shrink: 0;
        min-width: 0;
        width: 100%;
        height: 44px;
        padding: 0 16px;
        font-size: 12px;
    }

    .shops-mainpage__card {
        width: 260px;
        height: 100%;
    }
}
