.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;
}

.mod-finder__search .awesomplete {
    width: 100%;
    max-width: calc(100% - 42px);
}

.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;
    }

    form.mod-finder {
        margin-top: 30px;
    }
}


.radicalform .form-group {
    margin-bottom: 10px;
}

.radicalform .form-group label {
    width: 100%;
}

.radicalform .form-group input,
.radicalform .form-group textarea {
    width: 100%;
}

.radicalform .zakonrf {
    margin-bottom: 10px;
}

.radicalform .zakonrf input {
    margin-right: 6px;
    vertical-align: middle;
    width: 16px;
    height: 16px;
}

.radicalform textarea {
    height: 90px;
}

.uk-animation-shake {
    animation-name: uk-shake;
}

.uk-form-danger,
.uk-form-danger:focus {
    color: #6c6d74;
    border-color: #e44e56 !important;
}

[class*=uk-animation-] {
    animation-duration: .5s;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
}

@keyframes uk-shake {

    0%,
    100% {
        transform: translateX(0)
    }

    10% {
        transform: translateX(-9px)
    }

    20% {
        transform: translateX(8px)
    }

    30% {
        transform: translateX(-7px)
    }

    40% {
        transform: translateX(6px)
    }

    50% {
        transform: translateX(-5px)
    }

    60% {
        transform: translateX(4px)
    }

    70% {
        transform: translateX(-3px)
    }

    80% {
        transform: translateX(2px)
    }

    90% {
        transform: translateX(-1px)
    }
}



/* Адаптив для блока "Ребусы по информатике" */
@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;
    }
}