/*     *****Media*****       */
@media screen and (max-width: 1440px) {
    .first-block__personimg {
        width: 45%;
        padding: 20px 0;
    }
    .first-block__infotext {
        width: 53%;
    }
    .first-block__infotext h4 {
        font-size: 60px;
        line-height: 60px;
    }
    .first-block__infotext h1 {
        font-size: 65px;
        line-height: 65px;
    }
    img.first-block__background3 {
        top: -7%;
        height: 100%;
    }
    @keyframes anim {
        0%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(1.2) skew(35deg,-5deg);
        }
        50%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(1.2) skew(20deg,-14deg);
        }
        100%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(1.2) skew(35deg,-5deg);
        }
    }
    span.nashi-prepodi__span1 {
        display: block;
    }
    span.nashi-prepodi__span22 {
        padding-left: 0;
    }
}

@media screen and (max-width: 1360px) {
    @keyframes anim {
        0%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(1.6) skew(35deg,-5deg);
        }
        50%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(1.6) skew(20deg,-14deg);
        }
        100%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(1.6) skew(35deg,-5deg);
        }
    }
    .priem__item p span {
        font-size: 70px;
        line-height: 70px;
    }
    .priem__item p {
        font-size: 20px;
        line-height: 24px;
    }

}

@media screen and (max-width: 1280px) {
    span.nashi-prepodi__span1 {
        font-size: 48px;
    }
    span.nashi-prepodi__span21 {
        font-size: 30px;
    }
    span.nashi-prepodi__span22 {
        font-size: 18px;
        line-height: 25px;
    }
    .trust__head {
        flex-direction: column;
    }
}
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 12%;
    }
    a.review-course {
        top: 15px;
        right: 12%;
    }

    .detail {
        margin-top: 40px;
    }
    .osnovatel-head__name-img .osnovatel-head__img{
        display: block;
    }
    .osnovatel-head__img{
        display: none;
    }
    .osnovatel-head__info {
        width: 100%;
        padding: 20px;
    }
    .osnovatel-head__name-img {
        display: flex;
    }
    .osnovatel-head__name {
        flex-direction: column;
    }
    .osnovatel-head__name h4,
    .osnovatel-head__info p{
        max-width: 100%;
    }
    .osnovatel-head__info > p {
        margin-top: 15px;
    }
    .osnovatel-body__items {
        flex-wrap: wrap;
    }
    .osnovatel-body__item {
        width: 33.333333%;
        margin-bottom: 15px;
    }
    .review h2 {
        font-size: 50px;
    }

}
@media screen and (max-width: 992px) {
    .container {
        padding: 0 6%;
    }
    a.review-course {
        right: 6%;
    }
    .first-block__info {
        flex-direction: column;
    }
    .first-block__infotext {
        width: 100%;
        margin-top: 30px;
    }
    .first-block__personimg {
        width: 100%;
        padding: 0 0 25px 0;
    }
    .first-block__personimg a {
        margin: 35px 0 0;
    }
    img.first-block__background2 {
        height: 100%;
    }
    .priem__item p {
        font-size: 16px;
        line-height: 20px;
    }
    .priem__item p span {
        font-size: 50px;
        line-height: 50px;
    }
    .perechislenie-wrapp {
        grid-template-columns: 1fr;
    }
    .osnovatel-wrapp h2 {
        font-size: 48px;
        line-height: 48px;
        margin-bottom: 30px;
    }
    .osnovatel-wrapp {
        padding: 65px 0 40px;
    }
    .info-ob-ivane {
        padding: 40px 0 20px;
    }
    .trust {
        padding: 25px 0;
    }
    .review {
        padding: 40px 0 50px;
    }
}
@media screen and (max-width: 768px) {
    .container {
        padding: 0 12%;
    }
    a.review-course {
        right: 12%;
    }
    .first-block__personimg-list {
        padding: 10px 20px;
    }
    .priem__wrapp {
        flex-direction: column;
    }
    .priem__item {
        width: 100%;
        border-bottom: 2px solid rgba(93, 48, 253, 0.7);
        border-right: none;
        padding: 20px 0;
    }
    .priem__wrapp.container {
        padding: 0;
    }
    .priem__item:last-child {
        border: none;
    }
    .priem__item p {
        max-width: 195px;
        margin: 0 auto;
    }
    .perechislenie-items__media{
        display: flex;
    }
    .perechislenie-items{
        display: none;
    }
    .perechislenie-wrapp {
        display: block;
    }
    .perechislenie-items__media .swiper-button-p,
    .perechislenie-items__media .swiper-button-n {
        position: unset;
    }
    .perechislenie-item p {
        font-size: 16px;
        line-height: 20px;
    }
    .perechislenie-item h4 {
        font-size: 30px;
        line-height: 30px;
    }
    .perechislenie-item {
        padding: 35px;
    }
    span.nashi-prepodi__span1 {
        font-size: 40px;
    }
    span.nashi-prepodi__span21 {
        font-size: 25px;
    }
    span.nashi-prepodi__span22 {
        font-size: 16px;
        line-height: 23px;
    }
    .perechislenie {
        padding: 40px 0 45px;
    }
    .nashi-prepodi {
        padding: 45px 0;
    }
    .nashi-prepodi span.swiper-pagination-bullet {
        min-width: 10px;
        max-width: 10px;
        width: 10px;
        height: 10px;
    }
    .section {
        padding: 40px 0;
    }
    .heading-h2 {
        font-size: 30px;
    }
    .osnovatel-head__name h4 {
        font-size: 48px;
        line-height: 48px;
    }
    .osnovatel-head__info p {
        font-size: 18px;
        line-height: 25px;
    }
    .info-ob-ivane__wrapp p {
        font-size: 16px;
        line-height: 22px;
    }
    .review__img {
        display: none;
    }
    .review__info > .review__img {
        display: flex;
        margin-bottom: 10px;
        align-items: center;
    }
    .review .swiper-slide {
        border-radius: 50px 0 50px 50px;
        padding: 20px;
    }
    /*.review__info {*/
    /*    padding: 10px 15px 18px 30px;*/
    /*}*/
    .review__info > .review__img img {
        /*display: block;*/
        max-width: 90px;
        overflow: hidden;
        border-radius: 50%;
        align-items: center;

    }
    .review__info h4 {
        font-size: 20px;
        margin-left: 0;
    }
    .trust__name h2 {
        font-size: 40px;
    }
    .trust-head__info p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .trust__block {
        padding: 30px 25px 0;
        border-radius: 40px;
    }
}
@media screen and (max-width: 640px) {
    .detail {
        margin-top: 30px;
    }
}
@media screen and (max-width: 567px) {
    .first-block__infotext h4 {
        font-size: 40px;
        line-height: 40px;
    }
    .first-block__infotext img {
        max-width: 60px;
        margin-bottom: 0;
    }
    .first-block__img {
        display: flex;
        align-items: center;
    }
    .first-block__infotext h4 {
        margin: 0;
        margin-left: 15px;
    }
    .first-block__info p {
        margin-top: 20px;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    .first-block__infotext h1 {
        margin-bottom: 20px;
    }
    .first-block__personimg a {
        font-size: 20px;
        line-height: 36px;
        padding: 5px 25px;
    }
    img.first-block__background3 {
        left: -45%;
    }
    @keyframes anim {
        0%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(2.6) skew(35deg,-5deg);
        }
        50%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(2.6) skew(20deg,-14deg);
        }
        100%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(2.6) skew(35deg,-5deg);
        }
    }
    .osnovatel-wrapp h2 {
        font-size: 40px;
        line-height: 40px;
    }
    .osnovatel-body__item {
        width: 50%;
    }
    .osnovatel-head__name h4 {
        font-size: 40px;
        line-height: 40px;
    }
    .osnovatel-head__info > p {
        font-size: 18px;
        line-height: 25px;
    }
    .osnovatel-head__img img {
        min-width: 140px;
        max-width: 140px;
    }
    .osnovatel-head__name {
        margin-top: 103px;
        margin-left: 10px;
        height: 200px;
    }
    .osnovatel-head__name-img {
        position: relative;
    }
    .osnovatel-head__name p {
        position: absolute;
        width: 100%;
        left: 0;
        top: 190px;
        font-size: 16px;
        line-height: 22px;
        text-align: center;
    }
    .osnovatel-body h4 {
        font-size: 40px;
        line-height: 50px;
        margin-left: 0;
    }
    a.review-course {
        position: unset;
        max-width: 185px;
    }
    .review__swiper {
        margin-top: 30px;
    }
    .review h2 {
        font-size: 40px;
    }
    .review__btn {
        padding: 0 0 0 0;
        position: absolute;
        top: 76px;
        right: 20px;
    }
    .review__info h4 {
        margin-bottom: 0;
    }
}
@media screen and (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    a.review-course {
        right: 20px;
    }
    .osnovatel-head__btns {
        flex-direction: column;
    }
    a.osnovatel-head__portfolio, a.osnovatel-head__podrobnee {
        max-width: initial;
        margin-right: 0;
        margin-bottom: 15px;
    }
    .info-ob-ivane__wrapp img {
        top: auto;
        bottom: 0;
        left: -40px;
    }
    @keyframes anim {
        0%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(2.6) skew(20deg,-5deg);
        }
        50%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(2.6) skew(-11deg,-5deg);
        }
        100%{
            transform: rotateX(0deg) rotateY(0deg) rotateZ(5deg) perspective(700px) scale(2.6) skew(20deg,-5deg);
        }
    }
}