#sp-component #sp-page-builder .sppb-row-container {
    max-width: 1140px !important;
}

.spoiler-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-style: normal;
    border-radius: 8px;
    padding: 5px 20px;
}

.spoiler-wrapper.open .spoiler-content {
    padding: 14px 15px 8px 15px;
    margin-top: -9px;
    z-index: 0;
    position: relative;
}

.rebusy .spoiler-wrapper {
    padding: 0 10px;
}

.rebusy img {
    max-height: 140px;
}

.spoiler-header {
    position: relative;
    z-index: 1;
}

.leftgalery ul li {
    margin-bottom: 1rem;
}

.leftgalery ul li img {
    padding: 20px;
}

@media (max-width: 1199px) {
    .sp-megamenu-parent>li>a,
    .sp-megamenu-parent>li>span {
        padding: 0 9px;
    }
}

@media (max-width: 767px) {
    .block .sppb-row-column:not(:last-child) {
        margin-bottom: 1rem;
    }

    .block .sppb-row-column .sppb-addon-content {
        display: flex;
        flex-direction: column;
    }
}



/* Адаптив для блока "Ребусы по информатике" */
@media (max-width: 767px) {

    .rebusy,
    .rebusy thead,
    .rebusy tbody,
    .rebusy th,
    .rebusy td,
    .rebusy tr {
        display: block;
    }

    .rebusy thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .rebusy tr {
        margin-bottom: 20px;
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 8px;
        background: #f9f9f9;
    }

    .rebusy td {
        display: flex;
        gap: 1rem;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 8px 0;
        border: none;
        width: 100%;
        flex-direction: column;
    }

    .rebusy td img,
    .rebusy td button,
    .rebusy td div {
        margin: 0 auto;
    }
}