a {
    outline: none;
    /* Убираем границу вокруг ссылок  */
}

.wa-stacktest * {
    box-sizing: border-box;
}

.wa-stacktest {
    align-self: stretch;
    overflow: hidden;
    padding: 1em;
    background: #F7F7F7;
    position: relative !important;
    margin: 0 auto;
    border: 1px solid #ddd;
}

.wa-stacktest h1 {
    text-align: center !important;
    margin-bottom: 2em !important;
    ;
}

.test-done-success {
    display: none;
}

.test-done-success h3 {
    text-align: center !important;
    color: green;
    font-size: 2em !important;
}

.test-done-success h4 {
    text-align: center !important;
    font-size: 1.5em !important;
}

.stacktest {
    width: 400px;
    margin: 0 auto;
    text-align: left;
    margin-bottom: 3em;
}

.stack {
    margin: 0 auto;
    position: relative;
    z-index: 1000;
    width: 320px;
    height: 250px;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.stack__item {
    background: transparent;
    height: 100%;
    width: 100%;
    border-radius: 4px;
    text-align: center;
    overflow: hidden;
    position: absolute;
    opacity: 1;
    display: flex;
    flex-direction: column;
    user-select: none;
    pointer-events: auto;
    padding: 3px !important;
}

.counttests {
    top: 0px;
    position: relative;
    font-size: 25px;
    color: #022463;
}

.img_reklama {

    top: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.sam-tests p#register-link {
    position: relative;
    top: -25px;
}

.countTestsValross {
    font-size: 75%;
    text-decoration: line-through;
    color: #cc0000;
}

.sam-tests {
    bottom: 0px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    left: 0;
    right: 0;
    text-align: center;
}

.ovosh_r {
    font-size: 15px;
    color: #1B497E;
    text-align: left;

}

.stack__item img {
    width: 100%;
    display: block;
    pointer-events: none;
}

.controlls {
    position: relative;
    width: 100%;
    margin: 5px 0 20px 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
}

.controlls-left {
    float: left;
}

.controlls-right {
    float: right;
}

.controlls-center {
    text-align: center;
}

.buttoon {
    border: none;
    background: none;
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 1.5em;
    width: 50px;
    height: 50px;
    z-index: 100;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.buttoon .fa {
    pointer-events: none;
}

.button--default {
    background: #333;
    border-radius: 3px;
    color: #fff;
    font-size: 0.95em;
    font-weight: bold;
    padding: 0.65em 2em;
    width: auto;
    height: auto;
}

.button--sonar,
.button--help {
    border-radius: 50%;
    background: #eeeeee;
}

.button--sonar::before {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    content: '';
    opacity: 0;
    pointer-events: none;
    border: 4px solid rgba(255, 255, 255, 0.5);
    margin: -40px 0 0 -40px;
    width: 70px;
    height: 70px;
}

.button--sonar.button--active::before {
    animation: anim-effect-sonar 0.3s ease-out forwards;
}

@-webkit-keyframes anim-effect-sonar {
    0% {
        opacity: 1;
        transform: scale3d(0.9, 0.9, 1);
    }

    to {
        opacity: 0;
        transform: scale3d(1.4, 1.4, 1);
    }
}

@keyframes anim-effect-sonar {
    0% {
        opacity: 1;
        transform: scale3d(0.9, 0.9, 1);
    }

    to {
        opacity: 0;
        transform: scale3d(1.4, 1.4, 1);
    }
}

.material-circle {
    width: 150vh;
    height: 150vh;
    margin: -75vh 0 0 -75vh;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    position: absolute;
    z-index: 0;
    transform: scale3d(0, 0, 1);
}

.material-circle--accept.material-circle--active {
    background: #81d47d;
}

.material-circle--reject.material-circle--active {
    background: #e66868;
}

.material-circle--active {
    animation: anim-effect-material 0.6s ease-out forwards;
}

@-webkit-keyframes anim-effect-material {
    0% {
        opacity: 1;
        transform: scale3d(0, 0, 1);
    }

    70% {
        opacity: 1;
        transform: scale3d(1.4, 1.4, 1);
    }

    100% {
        opacity: 0;
        transform: scale3d(1.4, 1.4, 1);
    }
}

@keyframes anim-effect-material {
    0% {
        opacity: 1;
        transform: scale3d(0, 0, 1);
    }

    70% {
        opacity: 1;
        transform: scale3d(1.4, 1.4, 1);
    }

    100% {
        opacity: 0;
        transform: scale3d(1.4, 1.4, 1);
    }
}

.buttoon:focus {
    outline: none;
}

.button--accept {
    background: #eee url('../images/znaji.png') center center no-repeat;
    width: 70px;
    border: 2px solid #ececec;
}

.button--reject {
    background: #eee url('../images/nozn.png') center center no-repeat;
    width: 70px;
    border: 2px solid #ececec;
}

.stacktest .button--help {
    background: #eee url('../images/perevert2.png') center center no-repeat !important;
}

.button--stop {
    background: url('../images/poll.back.png') center center no-repeat !important;


    width: 30px;
    height: 30px;
}

.schetchik {
    position: absolute;
    top: 30%;
    right: 7%;
    font-size: .8em;
    opacity: .5;
    color: #0d62c0;
}

.niz_schet {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-hidden {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
    color: transparent;
    display: block;
}

/* Animations */
.stack__item--reject,
.stack__item--accept {
    pointer-events: none;
}


.counter {
    position: relative;
    display: inline-block;
    left: 75%;
    top: -80px;
    width: 40px;
    cursor: pointer;
}

.counter svg {
    display: block;
    margin: 14px auto 0;
    fill: #022463;
    width: 40px;
    height: 40px;
}

.counter__number {
    text-align: center;
    position: absolute;
    background: #81D47D;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    bottom: -5px;
    right: -5px;
}

.counters {
    position: relative;
    display: inline-block;
    left: 5%;
    top: -80px;
    width: 40px;
    cursor: pointer;
}

.counters svg {
    display: block;
    margin: 14px auto 0;
    fill: #58785A;
    width: 40px;
    height: 40px;
}

.counters__number {
    text-align: center;
    position: absolute;
    background: #e66868;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    bottom: -5px;
    right: -5px;
}


/* ===========================
   StackTest Flip Joomla 6
   =========================== */

.stack__item {
    perspective: 1400px;
    position: absolute;
    width: 100%;
    min-height: 220px;
}

.za-flip-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
}

.za-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    transform-style: preserve-3d;
    transition: transform .45s ease;
    transform: rotateY(0deg);
}

.za-flip-container.zaclick .za-flipper {
    transform: rotateY(180deg);
}

.zafront,
.zaback {

    position: absolute;
    top: 0;
    left: 0;
    min-height: 220px;
    padding: .5em;
    width: 100%;
    height: 100%;
    /*box-shadow: 0 4px 18px rgba(0, 0, 0, .15);*/
    backface-visibility: hidden;
    overflow: hidden;
}

.zafront {
    transform: rotateY(0deg);
    z-index: 2;
    background: #cfffcb;
    border: 1px solid #8fd3c6;
}

.zaback {
    transform: rotateY(180deg);
    background: #ddd;
    border: 1px solid #aeaeae;
}

.za_photo {
    display: block;
    width: 100%;
    height: auto;
}

.uk-grid.item-row-0 {
    flex-basis: 23%;
}

.ucheba {}

.ucheba .zafront {
    justify-content: space-between;
    border: 1px solid #246AB2;
    background: #fff;
}

.ucheba .zaback {
    justify-content: space-between;
    background: #ddd;
    border: 1px solid #aeaeae;
}

#stack_slamet32 .za-flip-container,
#stack_slamet32 .zafront,
#stack_slamet32 .zaback {
    width: 100%;
    height: 250px;
}

.ucheba img.za_photo {
    height: auto;
    width: 100%;
}

.ucheba .za_vopros {
    font-size: 1em;
    text-align: left;
    background: #eee;
    padding: .5em 1em;
    color: #022463;
    margin-bottom: 1em;
    width: 100%;
}

.ucheba .za_otwet {
    text-align: left;
    font-size: 1em;
    padding: .5em 1em;
    background: #93f18e;
    margin-bottom: 1em;
}

.za_komentat {
    text-align: left;
}

.ucheba .za_komentat {
    text-align: left;
    overflow-y: scroll;
    font-size: 0.9em;
    padding: 3em 1em 1em;
    border: 1px solid #96c9a8;
    position: relative;
}

.ucheba .za_komentat:before {

    content: 'Пояснение';
    font-size: 0.8em;
    color: green;
    letter-spacing: 1px;
    position: absolute;
    right: 2em;
    top: 1em;
    border-bottom: 1px solid green;
}

.stacktest-button {
    cursor: pointer;
    outline: none;
    font-size: 14px;
    padding: 8px 20px;
    margin-top: 10px;
    margin-bottom: -5px !important;
    background: #2d7ed1;
    border-radius: 2px;
    border: 3px solid #2d7ed1;
    font-weight: bold;
    position: relative;
    transition: all 0.3s;
    color: #fff;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background: green;
    border-radius: 8px;
}

.stacktest-button:after {
    content: '';
    position: absolute;
    z-index: -1;
    transition: all 0.3s;
}

.stacktest-button:hover,
.stacktest-button:active {
    border: 3px solid #2d7ed1;
    color: #2d7ed1;
    background: none;
}

.playtoggle {
    position: relative;
    z-index: 125;
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #EEEEEE;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.6s;
}

.playtoggle:before {
    content: "";
    position: relative;
    z-index: 5;
    border-radius: 50%;
    background: #EEEEEE;
    /* top: 5em; */
    /* left: 5em; */
    width: 50px;
    height: 50px;
}

.playtoggle:after {
    content: "";
    transition: all 0.3s linear;
    width: 0;
    height: 0;
    position: absolute;
    z-index: 5;
    top: 14px;
    left: 18px;
    border-top: 10px solid transparent;
    border-left: 19px solid rgba(78, 195, 19, 1);
    border-bottom: 11px solid transparent;
}

.playtoggle.playing:after {
    content: "";
    transition: all 0.3s linear;
    position: absolute;
    z-index: 5;
    top: 15px;
    left: 16px;
    width: 7px;
    height: 20px;
    border-style: solid;
    border-color: rgba(78, 195, 19, 1);
    border-width: 0 6px;
    background: transparent none repeat scroll 0% 0%;
}

.za-content-stacktests {
    display: flex;
    -ms-flex-align: end;
    align-items: flex-end;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    margin: 20px;
}

.za-stacktests-cell {
    flex-basis: 270px;
}

.info_verh {
    position: absolute;
    left: 2em;
    top: 2em;
    padding: 1em;
    background: #eaffc8;
    width: 25%;
    color: #16416B;
}

.text_left span,
.info_basic span {

    font-weight: bold;
}

.info_niz {
    position: absolute;
    right: 2em;
    bottom: 2em;
    padding: 1em;
    background: #d7efff;
    width: 25%;
    line-height: 2;
    color: #16416B;
}

img.know_dont {
    height: 30px;
    vertical-align: middle;
    border: 1px solid #ddd;
}

svg.info-svg {
    position: absolute;
    top: 0;
    right: 0;
    left: 24%;
    fill: #81d47d;
    stroke-width: 6;
    stroke: #054ea2;
    width: 50px;
    transform: rotate(13deg) translate(1em, .8em);
    z-index: 11;
    height: 50px;
}

svg.ask-svg {
    position: absolute;
    bottom: 0;
    right: 24%;
    fill: #1abff3;
    stroke-width: 1;
    stroke: #054ea2;
    width: 50px;
    height: 50px;
    transform: rotate(13deg) translate(-1.5em, -.2em);
    z-index: 11;
}

svg.basket_info {
    display: inline-block;
    fill: #022463;
    width: 40px;
    height: 40px;
    position: relative;
}

@media screen and (max-width: 460px) {
    .stacktest {
        width: 360px !important;
    }

    .counter {
        left: 70%;
    }

    .buttoon {
        margin: 0 0.1em;
    }

    .stacktest ul {
        margin: 0 !important;
    }

    .controlls {
        width: 95%;
        margin: 2em 0 0 0;
    }

    .text_left .info_verh {
        display: block;
        transform: translatey(-100vh);
        position: fixed;
        right: 0;
        left: 3%;
        top: 0;
        height: auto;
        width: 94%;
        pointer-events: auto;
        padding-top: 1em;
        transition: transform 450ms ease;
        overflow: hidden;
        z-index: 11;
    }

    .text_left.open_mod .info_verh {
        transform: translatey(0);
    }

    svg.info-svg {
        position: absolute;
        top: .5em;
        right: 1.5em;
        left: auto;
    }

    .info_basic .info_niz {
        display: block;
        transform: translatey(100%);
        position: fixed;
        right: 0;
        left: 3%;
        bottom: 0;
        height: auto;
        width: 94%;
        pointer-events: auto;
        padding-top: 1em;
        transition: transform 450ms ease;
        overflow: hidden;
        z-index: 1111;
    }

    .info_basic.open_modniz .info_niz {
        transform: translatey(0%);
    }

    svg.ask-svg {
        position: absolute;
        bottom: 0;
        right: 0;

    }
}

@media screen and (max-width: 380px) {
    .stacktest {
        width: 320px !important;
    }

    .counter {
        left: 68%;
    }

    /*.stack {	width: 300px !important;	height: 200px !important;}*/
    .buttoon {
        margin: 0 0.1em;
    }

    .counttests {
        font-size: 20px;
    }

    .schetchik {
        right: 5%;
        left: auto;
    }

    @-webkit-keyframes slametReject {
        40% {
            -webkit-animation-timing-function: cubic-bezier(0.4, 1, 0.3, 1);
            animation-timing-function: cubic-bezier(0.4, 1, 0.3, 1);
            -webkit-transform: translate3d(0, 20%, 0) scale3d(1.1, 1.1, 1);
            transform: translate3d(0, 20%, 0) scale3d(1.1, 1.1, 1);
        }

        80% {
            opacity: 1;
            -webkit-transform: translate3d(-120px, -280px, 0) scale3d(0.1, 0.1, 1);
            transform: translate3d(-80px, -220px, 0) scale3d(0.1, 0.1, 1);
        }

        100% {
            opacity: 0;
            -webkit-transform: translate3d(-160px, -250px, 0) scale3d(0.05, 0.05, 1);
            transform: translate3d(-120px, -210px, 0) scale3d(0.05, 0.05, 1);
        }
    }

    @keyframes slametReject {
        40% {
            -webkit-animation-timing-function: cubic-bezier(0.4, 1, 0.3, 1);
            animation-timing-function: cubic-bezier(0.4, 1, 0.3, 1);
            -webkit-transform: translate3d(0, 20%, 0) scale3d(1.1, 1.1, 1);
            transform: translate3d(0, 20%, 0) scale3d(1.1, 1.1, 1);
        }

        80% {
            opacity: 1;
            -webkit-transform: translate3d(-120px, -280px, 0) scale3d(0.1, 0.1, 1);
            transform: translate3d(-80px, -220px, 0) scale3d(0.1, 0.1, 1);
        }

        100% {
            opacity: 0;
            -webkit-transform: translate3d(-160px, -250px, 0) scale3d(0.05, 0.05, 1);
            transform: translate3d(-120px, -210px, 0) scale3d(0.05, 0.05, 1);
        }
    }


    @-webkit-keyframes slametAccept {
        40% {
            -webkit-animation-timing-function: cubic-bezier(0.4, 1, 0.3, 1);
            animation-timing-function: cubic-bezier(0.4, 1, 0.3, 1);
            -webkit-transform: translate3d(0, 20%, 0) scale3d(1.1, 1.1, 1);
            transform: translate3d(0, 20%, 0) scale3d(1.1, 1.1, 1);
        }

        80% {
            opacity: 1;
            -webkit-transform: translate3d(100px, -280px, 0) scale3d(0.1, 0.1, 1);
            transform: translate3d(80px, -220px, 0) scale3d(0.1, 0.1, 1);
        }

        100% {
            opacity: 0;
            -webkit-transform: translate3d(160px, -250px, 0) scale3d(0.05, 0.05, 1);
            transform: translate3d(120px, -210px, 0) scale3d(0.05, 0.05, 1);
        }
    }

    @keyframes slametAccept {
        40% {
            -webkit-animation-timing-function: cubic-bezier(0.4, 1, 0.3, 1);
            animation-timing-function: cubic-bezier(0.4, 1, 0.3, 1);
            -webkit-transform: translate3d(0, 20%, 0) scale3d(1.1, 1.1, 1);
            transform: translate3d(0, 20%, 0) scale3d(1.1, 1.1, 1);
        }

        80% {
            opacity: 1;
            -webkit-transform: translate3d(100px, -280px, 0) scale3d(0.1, 0.1, 1);
            transform: translate3d(80px, -220px, 0) scale3d(0.1, 0.1, 1);
        }

        100% {
            opacity: 0;
            -webkit-transform: translate3d(160px, -250px, 0) scale3d(0.05, 0.05, 1);
            transform: translate3d(120px, -210px, 0) scale3d(0.05, 0.05, 1);
        }
    }
}

@media screen and (max-width: 360px) {
    .counter {
        left: 65%;
    }

    .counters {
        left: 0;
    }
}

@media screen and (max-width: 325px) {
    .stacktest {
        width: 300px !important;
    }

    .counter {
        left: 66%;
    }

    .stack {
        width: 270px !important;
    }

    .buttoon {
        margin: 0;
    }
}

.full_app {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================
   FINISH
========================== */

.stacktest-finish {

    display: none;

    position: absolute;

    inset: 0;

    background: rgba(255, 255, 255, .92);

    z-index: 500;

    justify-content: center;

    align-items: center;

}

.stacktest-finish.show {

    display: flex;

}

.stacktest-finish-box {

    width: 360px;

    background: #fff;

    border-radius: 12px;

    padding: 30px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .18);

    text-align: center;

}

.stacktest-finish-row {

    display: flex;

    justify-content: space-between;

    margin: 14px 0;

    font-size: 18px;

}

.stacktest-finish-buttons {

    margin-top: 30px;

}

.buttoon {
    transition: .18s;
}

.buttoon:hover {
    transform: scale(1.08);
}

.buttoon:active {
    transform: scale(.95);
}