/* Страница Свадьба в Горном */
/* Блок с карточками */
.card-item__wrap {
    position: relative;
    display: flex;
}

.card-item__wrap:nth-child(1) {
    margin-bottom: 52px;
}

.card-item__wrap:nth-child(2) {
    margin-bottom: 107px;
}

.card__item {
    display: inline-block;
    position: relative;
}

.card-item__wrap:nth-child(1) .card__item {
    padding-bottom: 52px;
}

.card-item__wrap:nth-child(2) .card__item {
    margin-left: auto;
    padding: 60px 0;
}

.card-item__wrap:nth-child(3) .card__item {
    margin-left: 10vw;
    padding: 80px 0;
}

.card-item__image {
    position: absolute;
    z-index: 2;
    overflow: hidden;
}

.card-item__wrap:nth-child(1) .card-item__image {
    bottom: 0;
    left: 0;
}

.card-item__wrap:nth-child(2) .card-item__image {
    right: 0;
    top: -250px;
}

.card-item__wrap:nth-child(3) .card-item__image {
    top: -210px;
}

.card-item__text {
    position: relative;
    max-width: 500px;
}

.card-item__wrap:nth-child(1) .card-item__text {
    position: relative;
    top: 0;
    max-width: 677px;
    margin-left: 380px;
    padding: 82px 67px 85px 115px;
}

.card-item__wrap:nth-child(1) .card-item__text:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: var(--elements-hover2);
    z-index: -1;    
}

.card-item__wrap:nth-child(2) .card-item__text,
.card-item__wrap:nth-child(3) .card-item__text {
    padding: 20px 0;
    background: var(--background);
}

.card-item__wrap:nth-child(2) .card-item__text {
    margin-right: 400px;
}

.card__item ul {
    margin-left: 45px;
}

.card__item li {
    padding: 0;
}

.card__item li:before {
    left: -20px;
}

/* Для анимации границ карточек */
.card-item__wrap:nth-child(2) .card-item__text-border,
.card-item__wrap:nth-child(3) .card-item__text-border {
    content: '';
    position: absolute;
    top: -60px;
    display: block;
    height: calc(100% + 120px);
    z-index: -1;
}

.card-item__wrap:nth-child(2) .text-border_item,
.card-item__wrap:nth-child(2) .card-item__text-border_left:before,
.card-item__wrap:nth-child(2) .card-item__text-border_left:after,
.card-item__wrap:nth-child(3) .text-border_item,
.card-item__wrap:nth-child(3) .card-item__text-border_right:before,
.card-item__wrap:nth-child(3) .card-item__text-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;
}

.card-item__wrap:nth-child(2) .card-item__text-border_top,
.card-item__wrap:nth-child(3) .card-item__text-border_top {
    top: 0;
    border-top-color: var(--elements-hover2);
}
.card-item__wrap:nth-child(2) .card-item__text-border_top {
    left: 0;
}
.card-item__wrap:nth-child(3) .card-item__text-border_top {
    right: 0;
}

.card-item__wrap:nth-child(2) .card-item__text-border_right,
.card-item__wrap:nth-child(3) .card-item__text-border_left {
    top: 0;
}
.card-item__wrap:nth-child(2) .card-item__text-border_right {
    right: 0;
    border-right-color: var(--elements-hover2);
}
.card-item__wrap:nth-child(3) .card-item__text-border_left {
    left: 0;
    border-left-color: var(--elements-hover2);
}

.card-item__wrap:nth-child(2) .card-item__text-border_bottom,
.card-item__wrap:nth-child(3) .card-item__text-border_bottom {
    bottom: 0;
    border-bottom-color: var(--elements-hover2);
}
.card-item__wrap:nth-child(2) .card-item__text-border_bottom {
    right: 0;
}
.card-item__wrap:nth-child(3) .card-item__text-border_bottom {
    left: 0;
}

.card-item__wrap:nth-child(2) .card-item__text-border_left,
.card-item__wrap:nth-child(3) .card-item__text-border_right {
    position: relative;
    bottom: 0;
    height: 100%;
    border: none;
}
.card-item__wrap:nth-child(2) .card-item__text-border_left {
    left: 0;
}
.card-item__wrap:nth-child(2) .card-item__text-border_right {
    right: 0;
}
.card-item__wrap:nth-child(2) .card-item__text-border_left:before,
.card-item__wrap:nth-child(2) .card-item__text-border_left:after {
    left: 0;
    border-left-color: var(--elements-hover2);
}
.card-item__wrap:nth-child(3) .card-item__text-border_right:before,
.card-item__wrap:nth-child(3) .card-item__text-border_right:after {
    right: 0;
    border-right-color: var(--elements-hover2);
}
.card-item__wrap:nth-child(2) .card-item__text-border_left:before,
.card-item__wrap:nth-child(3) .card-item__text-border_right:before {
    bottom: 50%;
}
.card-item__wrap:nth-child(2) .card-item__text-border_left:after,
.card-item__wrap:nth-child(3) .card-item__text-border_right:after {
    bottom: 0;
}

.card-item__wrap:nth-child(2) .card-item__text-border {    
    left: 160px;
    width: 100%;
}

.card-item__wrap:nth-child(3) .card-item__text-border {
    left: -370px;
    width: calc(100% + 130px);
}
/* Для анимации границ карточек - end*/

.card-item__wrap:nth-child(3) .card-item__text {
    max-width: 640px;
    margin-left: 500px;
}

.card-item__svg {
    position: absolute;
}
 
.card-item__wrap:nth-child(1) .card-item__svg {
    top: -60px;
    right: 0;
}
 
.card-item__wrap:nth-child(2) .card-item__svg {
    top: 50px;
    left: 0;
}
 
.card-item__wrap:nth-child(3) .card-item__svg {
    top: 70px;
    right: 0;
}
/* Блок с карточками - end  */

/* Блок с видео  */
.video-block__wrap {
    margin-bottom: 130px;
}

.video-block__title {
    text-align: center;
    font-family: 'PT Serif', sans-serif;
}

.video__image,
.create-story {
    max-width: 1320px;
    width: 80%;
    margin: auto;
}

.video__image {
    line-height: 0;
}
/* Блок с видео - end  */
/* Блок Создаем Сказку Наяву  */
.create-story {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.create-story__text-wrap {
    position: relative;
    padding: 90px 80px;
}

.create-story__text-wrap:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 120%;
    height: 100%;
    background-color: var(--elements-hover2);
    z-index: -1;
}

.create-story__text {
    max-width: 770px;
}
/* Блок Создаем Сказку Наяву - end  */

.altai__page .gallery {
    margin-bottom: 110px;
}

.altai__page .contact-form {
    margin-bottom: 110px;
}

/* Страница Свадьба в Горном - end */

@media(max-width: 1799px) {
    .card-item__wrap:nth-child(1) .card-item__text {
        max-width: 650px;
        margin-left: 380px;
    }

    .card-item__wrap:nth-child(2) {
        margin-bottom: 100px;
    }

    .card-item__wrap:nth-child(3) .card__item {
        margin-left: 0;
    }

    .create-story__text-wrap {
        padding: 70px 75px;
    }

    .create-story__text-wrap:before {
        width: 125%;
    }

    .create-story__text {
        max-width: 650px;
    }
}

@media(max-width: 1599px) {
    .card-item__wrap:nth-child(1) {
        margin-bottom: 100px;
    }

    .card-item__wrap:nth-child(2) .card-item__image {
        top: -80px;
    }

    .card-item__wrap:nth-child(2) .card-item__text {
        margin-right: 420px;
    }

    .card-item__wrap:nth-child(3) .card-item__image {
        top: -50px;
        max-width: 370px;
    }

    .card-item__wrap:nth-child(3) .card-item__text {
        margin-left: 440px;
    }

    .card-item__wrap:nth-child(3) .card-item__svg {
        top: 0;
        right: -95px;
    }

    .video__image, 
    .create-story {
        width: 90%;
    }

    .create-story__text {
        max-width: 630px;
    }

}

@media(max-width: 1399px) {
    .card-item__wrap:nth-child(1) .card-item__text {
        margin-left: 300px;
        padding: 60px 40px 60px 90px;
    }
    .card-item__wrap:nth-child(1) .card-item__image {
        max-width: 350px;
    }
    .card-item__wrap:nth-child(1) .card-item__svg {
        right: -35px;
    }
    .card-item__wrap:nth-child(1) .card-item__svg svg {
        max-width: 120px;
    }  
    .card-item__wrap:nth-child(2) .card-item__text-border, 
    .card-item__wrap:nth-child(3) .card-item__text-border {
        top: -50px;
        height: calc(100% + 100px);
    }
    .card-item__wrap:nth-child(2) .card__item,
    .card-item__wrap:nth-child(3) .card__item {
        padding: 50px 0;
    }
    .card-item__wrap:nth-child(2) .card-item__text {
        margin-right: 350px;
    }
    .card-item__wrap:nth-child(2) .card-item__image {
        max-width: 300px;
    }
    .card-item__wrap:nth-child(3) .card-item__text {
        margin-left: 400px;
    }
    .card-item__wrap:nth-child(3) .card-item__text-border {
        left: -300px;
        width: calc(90%);
    }
    .card-item__wrap:nth-child(3) .card-item__image {
        top: -50px;
        max-width: 300px;
    }
    .card-item__wrap:nth-child(3) .card-item__svg {
        top: -170px;
        right: -60px;
    }
    .card-item__wrap:nth-child(3) .card-item__svg svg {
        max-width: 180px;
    }
    .video__image,
    .create-story {
        width: 100%;
    }
}
@media(max-width: 1207px) {
    .card-item__wrap:nth-child(2) .text-border_item,
    .card-item__wrap:nth-child(3) .text-border_item,
    .card-item__wrap:nth-child(2) .card-item__text-border_left:before,
    .card-item__wrap:nth-child(2) .card-item__text-border_left:after,
    .card-item__wrap:nth-child(3) .card-item__text-border_right:before,
    .card-item__wrap:nth-child(3) .card-item__text-border_right:after {
        border-width: 10px;
    }

    .card-item__wrap:nth-child(2) .text-border_item,
    .card-item__wrap:nth-child(3) .text-border_item {
        width: 100%;
        height: 100%;
    }

    .card-item__wrap:nth-child(2) .card-item__text-border_left:before,
    .card-item__wrap:nth-child(2) .card-item__text-border_left:after,
    .card-item__wrap:nth-child(3) .card-item__text-border_right:before,
    .card-item__wrap:nth-child(3) .card-item__text-border_right:after {
        width: 100%;
        height: 50%;
    }
}
@media(max-width: 1199px) {

    .card-item__wrap:nth-child(3) .card-item__text-border {
        left: -330px;
        width: calc(110%);
    }
    .create-story__text-wrap {
        padding: 60px 40px;
    }
    .create-story__text {
        max-width: 485px;
    }
}

@media(max-width: 1024px) {
    .card__item {
        display: block;
        width: 100%;
    }
    .card-item__wrap:nth-child(1) .card-item__image {
        transform: translateY(50%);
    }
    .card-item__wrap:nth-child(1) .card__item {
        padding-bottom: 0;
    }
    .card-item__wrap:nth-child(1) .card-item__image {
        bottom: 50%;
        left: -30px;
        max-width: 50%;
    }
    .card-item__wrap:nth-child(1) .card-item__text {
        max-width: 67%;
        margin-left: auto;
        padding: 9% 6% 9% 15%;
    }
    .card-item__wrap:nth-child(1),
    .card-item__wrap:nth-child(2) {
        margin-bottom: 130px;
    }
    .card-item__wrap:nth-child(2) .card__item {
        max-width: 870px;
        margin-left: 60px;
        padding: 45px 0;
    }
    .card-item__wrap:nth-child(2) .card-item__image {
        top: -60px;
        right: -30px;
        max-width: 40%;
    }
    .card-item__wrap:nth-child(2) .card-item__text {
        max-width: 57%;
        margin-right: auto;
    }
    .card-item__wrap:nth-child(2) .card-item__text-border {
        left: 70px;
        width: 115%;
    }
    .card-item__wrap:nth-child(3) .card-item__image {
        top: -40px;
        left: -30px;
        max-width: 40%;
    }
    .card-item__wrap:nth-child(3) .card-item__text {
        max-width: 54%;
        margin-left: auto;
        margin-right: 20px;
    }
    .video-block__wrap {
        margin-bottom: 90px;
    }
    .altai__page .contact-form, 
    .altai__page .gallery {
        margin-bottom: 90px;
    }
    .create-story__text-wrap {
        max-width: 74%;
        padding: 60px 60px 60px 40px;
    }
    .create-story__text-wrap:before {
        width: 117%;
    }
    .create-story__text {
        max-width: 100%;
    }
}

@media(max-width: 990px) {
    .card-item__wrap:nth-child(1) {
        margin-bottom: 120px;
    }
    .card-item__wrap:nth-child(1) .card-item__text {
        max-width: 62%;
    }
    .card-item__wrap:nth-child(2) {
        margin-bottom: 110px;
    }
    .card-item__wrap:nth-child(2) .card-item__image {
        top: -40px;
        max-width: 47%;
    }
    .card-item__wrap:nth-child(2) .card-item__text {
        max-width: 46%;
    }
    .card-item__wrap:nth-child(2) .card-item__text-border {
        width: 125%;
        top: -37px;
        height: calc(100% + 80px);
    }
    .card-item__wrap:nth-child(3) .card-item__image {
        top: -30px;
        max-width: 40%;
    }
    .card-item__wrap:nth-child(3) .card-item__text {
        max-width: 53%;
    }
    .card-item__wrap:nth-child(3) .card-item__text-border {
        top: -25px;
        height: calc(100% + 50px);
        left: -290px;
        width: 110%;
    }
    .video-block__wrap,
    .altai__page .gallery,
    .altai__page .contact-form {
        margin-bottom: 80px;
    }
    .create-story__text-wrap {
        max-width: 71%;
        padding: 50px 80px 50px 40px;
    }
    .create-story__text-wrap:before {
        width: 119%;
    }
}

@media(max-width: 767px) {
    .card-item__wrap:nth-child(1) {
        margin-bottom: 50px;
    }
    .card-item__wrap:nth-child(1) .card__item {
        padding-bottom: 0;
    }
    .card-item__wrap:nth-child(1) .card-item__image {
        display: none;
    }
    .card-item__wrap:nth-child(1) .card-item__image:after,
    .card-item__wrap:nth-child(2) .card-item__image:after,
    .card-item__wrap:nth-child(3) .card-item__image:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.6);
    }
    .card-item__wrap:nth-child(1) .card-item__text {
        max-width: 100%;
        padding: 11% 10% 9% 10%;
    }
    .card-item__wrap:nth-child(2) {
        margin-bottom: 50px;
        padding-top: 40px;
    }
    .card-item__wrap:nth-child(2) .card__item {
        width: 100%;
        margin-right: auto;
        padding: 40px 0;
    }
    .card-item__wrap:nth-child(2) .card-item__image {
        top: -40px;
        max-width: 50%;
    }
    .card-item__wrap:nth-child(2) .card-item__text-border {
        top: -40px;
        height: calc(100% + 80px);
    }
    .card-item__wrap:nth-child(2) .card-item__image,
    .card-item__wrap:nth-child(3) .card-item__image {
        z-index: -1;
    }
    .card-item__wrap:nth-child(2) .card-item__text,
    .card-item__wrap:nth-child(3) .card-item__text {
        max-width: 100%;
        margin: auto;
        padding: 20px 60px;
        background: transparent;
    }
    .card-item__wrap:nth-child(2) .card-item__text-border,
    .card-item__wrap:nth-child(3) .card-item__text-border {
        left: 0;
        width: 100%;
        background: rgba(252, 251, 248, 0.7);
    }
    .card-item__wrap:nth-child(3) {
        padding-top: 40px;
    }
    .card-item__wrap:nth-child(3) .card-item__image {
        top: -40px;
        max-width: 60%;
    }
    .card-item__wrap:nth-child(3) .card-item__title h2 {
        margin-bottom: 25px;
    }
    .video-block__wrap, 
    .altai__page .gallery, 
    .altai__page .contact-form {
        margin-bottom: 50px;
    }
    .create-story {
        flex-direction: column;
        background: var(--elements-hover2);
        padding-top: 30px;
    }
    .create-story__title {
        text-align: center;
    }
    .create-story__text-wrap {
        max-width: 100%;
        padding: 10px 55px 40px;
    }
    .create-story__text-wrap:before {
        display: none;
        /* top: auto;
        bottom: 0;
        width: 100%;
        height: 115%; */
    }
    .create-story__text p {
        font-size: 13px;
    }
}

@media(max-width: 574px) {
    .card-item__wrap:nth-child(2) .card__item,
    .card-item__wrap:nth-child(3) .card__item {
        width: calc(100% - 20px);
    }
    .card-item__wrap:nth-child(2) .card-item__image,
    .card-item__wrap:nth-child(3) .card-item__image {
        max-width: 70%;
    }
    .card-item__wrap:nth-child(2) .card-item__text, 
    .card-item__wrap:nth-child(3) .card-item__text {
        padding: 20px 40px;
    }
    .card-item__wrap:nth-child(2) .card__item {
        margin-left: 0;
    }
    .card-item__wrap:nth-child(3) .card__item {
        margin-left: auto;
    }
    .create-story__text-wrap:before {
        height: 110%;
    }
    .create-story__text-wrap {
        padding: 10px 40px 30px;
    }
}
@media(max-width: 360px) {
    .create-story__text-wrap {
        padding: 10px 25px 30px;
    }
}

/* Настройки анимаций для отдельных элементов */
/*  */
.animateCardItem.animated .card-item__text:before,
.animateCardItem.animated .card-item__image img,
.animateCardItem.animated .card-item__title,
.animateCardItem.animated .card-item__desctiption .splitLine {
    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 .card-item__text:before {
    animation-name: animateCardItemBG;
}

@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);
    }
}

.card-item__wrap:nth-child(1).animateCardItem.animated .card-item__image img,
.card-item__wrap:nth-child(3).animateCardItem.animated .card-item__image img {
    animation-name: animateCardItemImageToRight;
    animation-delay: 0.4s;
    animation-duration: 0.6s;
}

@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);
    }
}

.card-item__wrap:nth-child(2).animateCardItem.animated .card-item__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 .card-item__title,
.animateCardItem.wow .card-item__desctiption .splitLine {
    visibility: hidden;
}

.animateCardItem.animated .card-item__title {
    visibility: visible;
    animation-name: animateUpText;
}

.animateCardItem.animated .card-item__desctiption .splitLine {
    visibility: visible;
    animation-name: animateUp;
}

.animateCardItem.animated .card-item__title {
    animation-delay: 0.8s;
}

.animateCardItem.animated .card-item__desctiption .splitLine {
    animation-delay: 1s;
}

.animateCardItem.wow .text-border_item,
.animateCardItem.wow .card-item__text-border_left:before,
.animateCardItem.wow .card-item__text-border_left:after,
.animateCardItem.wow .card-item__text-border_right:before,
.animateCardItem.wow .card-item__text-border_right:after {
    width: 0;
    height: 0;
}

.animateCardItem.animated .text-border_item,
.animateCardItem.animated .card-item__text-border_left:before,
.animateCardItem.animated .card-item__text-border_left:after,
.animateCardItem.animated .card-item__text-border_right:before,
.animateCardItem.animated .card-item__text-border_right:after {
    border-width: 10px;
}

.animateCardItem.animated .text-border_item {
    width: 100%;
    height: 100%;
}

.animateCardItem.animated .card-item__text-border_left:before,
.animateCardItem.animated .card-item__text-border_left:after,
.animateCardItem.animated .card-item__text-border_right:before,
.animateCardItem.animated .card-item__text-border_right:after {
    width: 100%;
    height: 50%;
}

.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;
}

.animateCardItem.wow li:before {
    opacity: 0;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}
.animateCardItem.animated li:before {
    opacity: 1;
    transition-delay: 1.5s;
}
/*  */