/* Главная страница */
body {
    background: var(--background_main);    
}

.preloader__text {
    stroke-dasharray: 0 2000;
}

.preloader__animate .preloader__text {
    animation: preloaderAnimateText 2.3s linear 0s both;
    -webkit-animation: preloaderAnimateText 2.3s linear 0s both;
}

@keyframes preloaderAnimateText {
    0% {
        stroke-dasharray: 0 2000;
    }
    85% {
        stroke-width: 1;
    }
    90% {
        stroke-dasharray: 1800 200;
    }
    95% {
        stroke-dasharray: 2000 0;
        stroke-width: 10;
    }
    100% {
        stroke-dasharray: 2000 0;
        stroke-width: 10;
    }
}

.preloader__moon,
.preloader__svg:after {
    opacity: 0;
    
}

.preloader__animate .preloader__moon,
.preloader__animate .preloader__svg:after {
    opacity: 1;
    transition: 0.8s ease-in-out 1.8s;
    -webkit-transition: 0.8s ease-in-out 1.8s;
    -moz-transition: 0.8s ease-in-out 1.8s;
    -ms-transition: 0.8s ease-in-out 1.8s;
    -o-transition: 0.8s ease-in-out 1.8s;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    background: var(--background_main);
}
/* 
.main__header-wrap,
.main__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.animate-width__line {
    position: absolute;
    width: 100%;
    height: 100px;
    background: var(--white);
    transition: 0s 2.2s;
    -webkit-transition: 0s 2.2s;
    -moz-transition: 0s 2.2s;
    -ms-transition: 0s 2.2s;
    -o-transition: 0s 2.2s;
}

.animate-width__line-top {
    top: 0;
}

.animate-width__line-bottom {
    bottom: 0;
}

.main__header p {
    margin: 0;
}

.header__phone a {
    font-weight: 700;
} */

.main__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(100vh - 200px);
    min-height: 100%;
    padding-left: 100px;
    background: var(--background_main);
}

.main__text {
    width: 40%;
    margin: 0 110px 0 90px;
}

.main__title {
    max-width: 520px;
    margin-bottom: 14px;
}

.main__subtitle {
    max-width: 390px;
    margin-bottom: 48px;
}

.main__link-events {
    display: inline-block;
    padding: 0 41px 0 0;
    color: var(--main-text);
    overflow: hidden;
}

.main__link-events:hover {
    color: var(--main-text);
}

.main__link-events span {
    display: inline-block;
    position: relative;
    font-weight: 700;
    transition: 0.4s ease-in-out;
    -webkit-transition: 0.4s ease-in-out;
    -moz-transition: 0.4s ease-in-out;
    -ms-transition: 0.4s ease-in-out;
    -o-transition: 0.4s ease-in-out;
}

.main__link-events:hover span {
    transform: translateX(41px);
    -webkit-transform: translateX(41px);
    -moz-transform: translateX(41px);
    -ms-transform: translateX(41px);
    -o-transform: translateX(41px);
}

.main__link-events span:before,
.main__link-events span:after {
    content: '';
    position: absolute;
    top: 60%;
    width: 27px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

.main__link-events span:before {
    left: -41px;
    height: 1px;
    background: var(--main-text);
}

.main__link-events span:after {
    right: -41px;
    height: 8px;
    background: url(/images/svg/arrow.svg) no-repeat;
}

.main__slider {
    width: 60%;
    flex-shrink: 0;
    height: 100%;
}

/* Слайдер на главной */
.swiper-container.loading + .main__slider-button {
    opacity: 0;
}

.main__slider-button {
    position: absolute;
    bottom: calc(50% - 15px);
    right: 100px;
    display: flex;
    align-items: center;
    opacity: 1;
    z-index: 1;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.swiper-arrow__next:hover path,
.swiper-arrow__prev:hover path {
    fill: var(--main-text);
}
/* Слайдер на главной - end */
/* Главная страница - end */

/* Медиазапросы */

@media (max-width: 1920px) {
    .main__text {
        width: 35%;
        margin: 0 4% 0 3%;
    }

    .main__slider {
        width: 65%;
    }
}

@media (max-width: 1280px) {

    .main__content {
        min-height: calc(100vh - 160px);
        /* padding-left: 80px; */
        padding-left: 0;
    }

    .main__slider-button {
        right: 80px;
    }
}

@media (max-width: 1024px) {
    .main__content {
        flex-direction: column;
        height: 100%;
    }

    .main__text {
        width: 80%;        
        margin:  auto;
        padding: 40px 20px 30px 20px;
        /* margin: 0 4% 0 3%; */
    }

    .main__subtitle {
        max-width: 460px;
        margin-bottom: 20px;
    }

    .main__slider {
        width: 100%;
        /* height: 60%; */
        min-height: 450px;
        height: calc(100vw / 1.5);
    }
}

@media (max-width: 767px) {

    .main__content {
        padding-left: 0;
    }

    .main__text {
        width: 100%;
        margin: 15px 0 0 0;
        padding: 30px 20px 20px 20px;
    }

    .main__subtitle {
        margin-bottom: 15px;
    }

    .main__slider {
        min-height: 45vh;
    }

    .main__slider-button {
        right: 20px;
    }

    .swiper-arrow__next, 
    .swiper-arrow__prev {
        width: 45px;
    }
}


@media (max-width: 575px) {

    .main__content {
        min-height: calc(100vh - 140px);
    }

    .main__text {
        padding: 20px 20px 15px 20px;
    }
}

@media (max-width: 375px) {
    .main__text {
        margin: 0;    
    }
}

@media (max-width: 330px) {   
}


/* Настройки анимаций для отдельных элементов */
 /*  */ 
 .main__slider.animated {
    animation-delay: 0s;
    animation-duration: 2.8s;
    animation-timing-function: cubic-bezier(0.77, 0.1, 0.15, 1);
 }
 
 .menu.animated {    
    animation-delay: 0.8s;
    animation-duration: 1.1s;
 }
 
 .footer__instagram.animated {
    animation-delay: 0.7s;
 }
 
 .main-header__logo.animated {
    animation-delay: 1s;
 }
 
 .header__phone p.animated,
 .main__slider-button.animated {
    animation-delay: 1.8s;
 }
 
 h1.animated,
 h1 .animateUpText.animated  {
    animation-delay: 1.5s;
 }
 
 .main__subtitle p.animated,
 .main__subtitle p .animateUpText.animated {
    animation-delay: 2s;
 }
 
 .main__link-events.animated {
    animation-delay: 2.2s;    
 }
 
 /* Медиа для анимаций */
 @media(max-width: 767px) {
    .main-header__logo.animated,
    .footer__instagram.animated,
    .main__slider-button.animated {
        animation-delay: 0.2s;
    }
 
    .main__slider.animated {
        animation-delay: 0.4s;
    }
 
    h1.animated,
    h1 .animateUpText.animated  {
        animation-delay: 0.6s;
    }
 
    .main__subtitle p.animated,
    .main__subtitle p .animateUpText.animated {
        animation-delay: 0.8s;
    }
    
    .main__link-events.animated {
        animation-delay: 1s;    
    }
 }