.about-cards__block {
    margin: 110px 20px 180px 20px;
}

.about-card__wrap {
    position: relative;
    display: block;
    width: auto;
    height: 100%;
}

.about-card__wrap:nth-child(1) {
    padding-bottom: 160px;
}

.about-card__wrap:nth-child(3) {
    margin-left: 160px;
}

.about-card__item {
    position: relative;
}

.about-card__wrap:nth-child(1) .about-card__item {
    max-width: 640px;
    padding: 20px 20px 70px 0;
}

.about-card__wrap:nth-child(2) .about-card__item {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 20px 0;
}

.about-card__wrap:nth-child(3) .about-card__item {
    display: flex;
    align-items: flex-end;
}

.about-card__wrap:nth-child(3) {
    padding: 55px 0 45px 0;
}

.about-card__image-wrap {
    overflow: hidden;
}

.about-card__wrap:nth-child(2) .about-card__image {
    position: relative;
    margin-left: 72px;
}

.about-card__text {
    max-width: 600px;
}

.about-card__wrap:nth-child(1) .about-card__text {
    max-width: 480px;
    margin: 51px 0 0 24px;
    padding: 15px 0;
    background: var(--background);
}

.about-card__wrap:nth-child(2) .about-card__text {
    position: relative;
    top: 0;
    bottom: 0;
    max-width: 650px;
    padding: 32px 30px 26px 60px;
    z-index: 1;
}

.about-card__wrap:nth-child(2) .about-card__text:before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    display: block;
    width: 100%;
    height: calc(100% + 40px);
    background: var(--elements-hover_bright);
    z-index: -1;    
}

.about-card__wrap:nth-child(3) .about-card__text {
    position: relative;
    max-width: 750px;
    height: fit-content;
    margin: 0 0 45px 50px;
    background: var(--background);
}

.about-card__wrap:nth-child(3) .about-card__description {
    padding: 30px 0;
}

.about-card__wrap:nth-child(3) .quote-text {
    max-width: 100%;
}

.about-card__wrap:nth-child(3) .quote-text:after {
    display: none;
}

.about-card__wrap:nth-child(3) .quote-text p {
    margin: 0;
}

/*  */
.about-card__border {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    height: 100%;
    width: 87%;
    z-index: -1;
}

.about-card__wrap:nth-child(2) .about-card__border {
    top: -20px;
    right: -20px;
    height: 90%;
    width: 93%;
}

.about-card__wrap:nth-child(3) .about-card__border {
    top: -90px;
    right: 84%;
    height: calc(100% + (90px * 2));
    width: 80%;
}

.card-border__line {
    border-width: 10px;
    width: 100%;
    height: 100%;
}
.card-border__line,
.about-card__wrap:nth-child(1) .about-card__border_left:before,
.about-card__wrap:nth-child(1) .about-card__border_left:after,
.about-card__wrap:nth-child(3) .about-card__border_right:before,
.about-card__wrap:nth-child(3) .about-card__border_right:after {
    content: '';
    position: absolute;
    display: block;
    /* width: 0; */
    /* height: 0; */
    border-style: solid;
    border-color: transparent;
    transition: all 0.4s linear 0s, border-width 0s;
    -webkit-transition: all 0.4s linear 0s, border-width 0s;
    -moz-transition: all 0.4s linear 0s, border-width 0s;
    -ms-transition: all 0.4s linear 0s, border-width 0s;
    -o-transition: all 0.4s linear 0s, border-width 0s;
}
.about-card__border_top {
    top: 0;
    left: 0;
    border-top-color: var(--elements-hover_bright);
}
.about-card__border_right {
    top: 0;
    right: 0;
    border-right-color: var(--elements-hover_bright);
}
.about-card__border_bottom {
    bottom: 0;
    right: 0;
    border-bottom-color: var(--elements-hover_bright);
}
.about-card__border_left {
    bottom: 0;
    left: 0;
    border-left-color: var(--elements-hover_bright);
}

.about-card__wrap:nth-child(1) .about-card__border_left,
.about-card__wrap:nth-child(3) .about-card__border_right {
    position: relative;
    border-width: 0;
    border-left-color: transparent;
    border-right-color: transparent;
}

.about-card__wrap:nth-child(1) .about-card__border_left:before,
.about-card__wrap:nth-child(1) .about-card__border_left:after,
.about-card__wrap:nth-child(3) .about-card__border_right:before,
.about-card__wrap:nth-child(3) .about-card__border_right:after {
    bottom: 0;
    border-width: 10px;
}

.about-card__wrap:nth-child(1) .about-card__border_left:before,
.about-card__wrap:nth-child(1) .about-card__border_left:after {
    border-left-color: var(--elements-hover_bright);
}

.about-card__wrap:nth-child(3) .about-card__border_right:before,
.about-card__wrap:nth-child(3) .about-card__border_right:after {
    right: 0;
    border-right-color: var(--elements-hover_bright);
}

.about-card__wrap:nth-child(1) .about-card__border_left:before {
    height: 80%;
    bottom: 20%;
}

.about-card__wrap:nth-child(1) .about-card__border_left:after,
.about-card__wrap:nth-child(3) .about-card__border_right:after {
    height: 15%;
    bottom: 0;
}

.about-card__wrap:nth-child(3) .about-card__border_right:before {
    height: 50%;
    bottom: 50%;
}

.about-card__wrap:nth-child(3) .about-card__border_right:after {
    height: 50%;
    bottom: 0;
}

.about-card__wrap:nth-child(3) .about-card__border_top {
    right: 0;
    left: auto;
}

.about-card__wrap:nth-child(3) .about-card__border_left {
    top: 0;
    bottom: auto;
}

.about-card__wrap:nth-child(3) .about-card__border_bottom {
    right: auto;
    left: 0;
}

/*  */
.about-slider {
    margin-bottom: 136px;
}

.about-slider__title {
    text-align: center;
    margin-bottom: 57px;
}

.about-slider__title .h2 {
    margin-bottom: 0;
}
/*  */

.about__page .contact-form {
    margin-bottom: 90px;
}












@media(min-width: 1921px) {
    .about-slider__title {
        margin-bottom: 85px;
    }
}

@media(max-width: 1799px) {
    .about-card__wrap:nth-child(1) .about-card__item {
        width: 42%;
    }
    .about-card__wrap:nth-child(1) .about-card__text {
        max-width: 80%;
    }
    .about-card__wrap:nth-child(2) .about-card__item {
        width: 47%;
    }
    .about-card__wrap:nth-child(1) {
        padding-bottom: 14%;
    }
    .about-card__wrap:nth-child(2) .about-card__text {
        width: 90%;
    }
    .about-card__wrap:nth-child(3) .about-card__image-wrap {
        max-width: 400px;
    }
    .about-card__wrap:nth-child(3) .about-card__text {
        margin: 0 0 20px 50px;
    }
    .about-card__wrap:nth-child(3) .about-card__border {
        top: -60px;
        width: 70%;
        height: calc(100% + (60px * 2));
    }
}
@media(max-width: 1599px) {
    .about-cards__block {
        margin-bottom: 130px;
    }
    .about-card__wrap:nth-child(1) {
        padding-bottom: 19%;
    }
    .about-card__wrap:nth-child(2) .about-card__text {
        padding: 20px 30px 15px 50px;
    }
    .about-card__wrap:nth-child(3) {
        margin-left: 5%;
    }
    .about-card__wrap:nth-child(3) .about-card__text {
        max-width: 650px;
        margin: 0 0 20px 30px;
    }
    .about-card__wrap:nth-child(3) .about-card__description {
        padding: 10px 0;
    }
    .about-card__wrap:nth-child(3) .about-card__border {
        width: 75%;
    }
}
@media(max-width: 1399px) {
    .about-card__wrap:nth-child(1) .about-card__item {
        padding: 20px 20px 40px 0;
    }
    .about-card__wrap:nth-child(1) .about-card__text {
        margin: 30px 0 0 24px;
    }
}
@media(max-width: 1199px) {
    .about-card__wrap:nth-child(1) {
        padding-bottom: 27%;
    }
    .about-card__wrap:nth-child(1) .about-card__item {
        width: 44%;
    }
    .about-card__wrap:nth-child(2) .about-card__item {
        width: 49%;
    }
    .about-slider {
        margin-bottom: 100px;
    }
    .about-slider__title {
        margin-bottom: 40px;
    }
}
@media(max-width: 1024px) {
    .about__page .top__block {
        margin-bottom: 40px;
    }
}
@media(max-width: 990px) {
    .about-cards__block {
        margin: 60px 0 80px 0;
    }
    .about-card__wrap:nth-child(1) {
        margin-bottom: 70px;
        padding-bottom: 0;
    }
    .about-card__wrap:nth-child(1) .about-card__item {
        width: 70%;
    }
    .about-card__wrap:nth-child(2) .about-card__item {
        position: relative;
        width: 80%;
        margin: 0 20px 70px auto;
    }
    .about-card__wrap:nth-child(3) {
        margin: 0;
        padding: 0 0 20px 0;
    }
    .about-card__wrap:nth-child(3) .about-card__border {
        top: -40px;
        width: 80%;
        height: calc(100% + (40px * 2));
    }
}
@media(max-width: 767px) {
    .about-cards__block {
        margin: 60px 0;
    }
    .about-card__wrap:nth-child(1) .about-card__item,
    .about-card__wrap:nth-child(2) .about-card__item {
        width: 100%;
        max-width: 450px;
    }
    .about-card__wrap:nth-child(2) .about-card__text {
        padding: 10px 20px 5px 35px;
    }
    .about-card__wrap:nth-child(3) .about-card__text {
        max-width: 500px;
        margin: 0 0 20px 15px;
    }
}
@media(max-width: 574px) {
    .about-cards__block {
        margin: 40px 0;
    }
    .about-card__wrap:nth-child(1),
    .about-card__wrap:nth-child(2) {
        margin-bottom: 50px;
    }
    .about-card__wrap:nth-child(1) .about-card__item {
        padding: 20px 20px 30px 0;
    }
    .about-card__wrap:nth-child(1) .about-card__text {
        margin: 20px 0 0 24px;
        padding: 5px 0;
    }
    .about-card__wrap:nth-child(2) .about-card__item {
        padding-right: 20px;
        margin: 0;
    }
    .about-card__wrap:nth-child(3) .about-card__item {
        flex-direction: column;
        max-width: 450px;
        padding: 20px 0 30px 0;
    }
    .about-card__wrap:nth-child(3) .about-card__image-wrap {
        max-width: calc(100% - 20px);
        margin-left: auto;
    }
    .about-card__wrap:nth-child(3) .about-card__text {
        position: initial;
        max-width: 84%;
        margin: 20px 0 0 auto;
    }
    .about-card__wrap:nth-child(3) .about-card__border {
        width: 87%;
        height: 100%;
        top: 0;
        right: auto;
        left: 0;
    }
    .about-card__wrap:nth-child(3) .quote-text {
        padding-right: 0;
    }
    .about-slider {
        margin-bottom: 60px;
    }
    .about__page .contact-form {
        margin-bottom: 30px;
    }
    
}
@media(max-width: 374px) {

}



/* Настройки анимаций для отдельных элементов */
.quote__description.animated {
    animation-delay: 0.6s;
}
/*  */
.animateCardItem.animated .about-card__text:before,
.animateCardItem.animated .about-card__image img,
.animateCardItem.animated .about-card__description {
    animation: 0.8s ease-in-out both 0.3s;
    -webkit-animation: 0.8s ease-in-out both 0.3s;
    transform-origin: 0 0;
}

.animateCardItem.animated .about-card__text:before {
    animation-name: animateCardItemBG;
    animation-delay: 0.6s;
}

@keyframes animateCardItemBG {
   0% {
       transform: scaleY(0);
       -webkit-transform: scaleY(0);
       -moz-transform: scaleY(0);
       -ms-transform: scaleY(0);
       -o-transform: scaleY(0);
    }
   100% {
    transform: scaleY(1);
    -webkit-transform: scaleY(1);
    -moz-transform: scaleY(1);
    -ms-transform: scaleY(1);
    -o-transform: scaleY(1);
    }
}

.about-card__wrap:nth-child(1) .animateCardItem.animated .about-card__image img,
.about-card__wrap:nth-child(3) .animateCardItem.animated .about-card__image img {
    animation-name: animateCardItemImageToRight;
    animation-duration: 0.8s;
}

@keyframes animateCardItemImageToRight {
    0% {
       transform: translateX(-100%);
       -webkit-transform: translateX(-100%);
       -moz-transform: translateX(-100%);
       -ms-transform: translateX(-100%);
       -o-transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
    }
}

.about-card__wrap:nth-child(2) .animateCardItem.animated .about-card__image img {
    animation-name: animateCardItemImageToLeft;
    animation-delay: 0.4s;
    animation-duration: 0.6s;
}

@keyframes animateCardItemImageToLeft {
    0% {
       transform: translateX(100%);
       -webkit-transform: translateX(100%);
       -moz-transform: translateX(100%);
       -ms-transform: translateX(100%);
       -o-transform: translateX(100%);
}
    100% {
        transform: translateY(0);
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
}
}

.animateCardItem.wow .about-card__description {
    visibility: hidden;
}

.animateCardItem.animated .about-card__description {
    visibility: visible;
    animation-name: animateUp;
    animation-delay: 1s;
}

.animateCardItem.wow .card-border__line,
.animateCardItem.wow .about-card__border_left:before,
.animateCardItem.wow .about-card__border_left:after,
.animateCardItem.wow .about-card__border_right:before,
.animateCardItem.wow .about-card__border_right:after {
    width: 0;
    height: 0;
    border-width: 0;
}

.about-card__wrap:nth-child(1) .animateCardItem.wow .about-card__border_left,
.about-card__wrap:nth-child(3) .animateCardItem.wow .about-card__border_right {
    border-width: 0;
}

.animateCardItem.animated .card-border__line,
.animateCardItem.animated .about-card__border_left:before,
.animateCardItem.animated .about-card__border_left:after,
.animateCardItem.animated .about-card__border_right:before,
.animateCardItem.animated .about-card__border_right:after {
    border-width: 10px;
}

.animateCardItem.animated .card-border__line {
    width: 100%;
    height: 100%;
}
.animateCardItem.animated .about-card__border_left:before,
.animateCardItem.animated .about-card__border_left:after,
.animateCardItem.animated .about-card__border_right:before,
.animateCardItem.animated .about-card__border_right:after {
    width: 100%;    
}

.about-card__wrap:nth-child(1) .animateCardItem.animated .about-card__border_left:before {
    height: 80%;
}

.about-card__wrap:nth-child(1) .animateCardItem.animated .about-card__border_left:after {
    height: 15%;
}

.about-card__wrap:nth-child(1) .animateCardItem.animated .about-card__border_left:before {
    transition-delay: 0.4s;
}
.about-card__wrap:nth-child(1) .animateCardItem.animated .about-card__border_top {
    transition-delay: 0.8s;
}
.about-card__wrap:nth-child(1) .animateCardItem.animated .about-card__border_right {
    transition-delay: 1.2s;
}
.about-card__wrap:nth-child(1) .animateCardItem.animated .about-card__border_bottom {
    transition-delay: 1.6s;
}
.about-card__wrap:nth-child(1) .animateCardItem.animated .about-card__border_left:after {
    transition-delay: 2s;
}

/*  */

.about-card__wrap:nth-child(2) .animateCardItem.animated .about-card__border_left {
    transition-delay: 0.4s;
}
.about-card__wrap:nth-child(2) .animateCardItem.animated .about-card__border_top {
    transition-delay: 0.8s;
}
.about-card__wrap:nth-child(2) .animateCardItem.animated .about-card__border_right {
    transition-delay: 1.2s;
}
.about-card__wrap:nth-child(2) .animateCardItem.animated .about-card__border_bottom {
    transition-delay: 1.6s;
}

/*  */

.about-card__wrap:nth-child(3) .animateCardItem.animated .about-card__border_right:before,
.about-card__wrap:nth-child(3) .animateCardItem.animated .about-card__border_right:after {
    height: 50%;
}
.about-card__wrap:nth-child(3) .animateCardItem.animated .about-card__border_right:before {
    transition-delay: 0.4s;
}
.about-card__wrap:nth-child(3) .animateCardItem.animated .about-card__border_top {
    transition-delay: 0.8s;
}
.about-card__wrap:nth-child(3) .animateCardItem.animated .about-card__border_left {
    transition-delay: 1.2s;
}
.about-card__wrap:nth-child(3) .animateCardItem.animated .about-card__border_bottom {
    transition-delay: 1.6s;
}
.about-card__wrap:nth-child(3) .animateCardItem.animated .about-card__border_right:after {
    transition-delay: 2s;
}
/* .animateCardItem.animated .card-item__text-border_top {
    transition-delay: 0.8s;
}

.card-item__wrap:nth-child(2).animateCardItem.animated .card-item__text-border_right,
.card-item__wrap:nth-child(3).animateCardItem.animated .card-item__text-border_left {
    transition-delay: 1.2s;
}

.animateCardItem.animated .card-item__text-border_bottom {
    transition-delay: 1.6s;
}

.card-item__wrap:nth-child(2).animateCardItem.animated  .card-item__text-border_left:before,
.card-item__wrap:nth-child(3).animateCardItem.animated  .card-item__text-border_right:before {
    transition-delay: 0.4s;
}

.card-item__wrap:nth-child(2).animateCardItem.animated  .card-item__text-border_left:after,
.card-item__wrap:nth-child(3).animateCardItem.animated  .card-item__text-border_right:after {
    transition-delay: 2s;
} */
/*  */