/* main block - the first block on the main page */
section.main-block{
    position: relative;
    height: 100dvh
}

section.main-block .img-container{
    position: absolute;
    height: 100dvh;
    width: 100dvw;
    overflow: hidden
}
section.main-block .img-container img {
    animation: zoomIn 8s ease forwards
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
        z-index: -1
    }
    100% {
        transform: scale(1.1);
        z-index: -1
    }
}

section.main-block .container{
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0 var(--size-2) var(--size-3) var(--size-2)
}
section.main-block .content{
    z-index: 1;
    position: relative;
    width: fit-content
}
section.main-block .subtitle{
    font-family: var(--heading-font);
    font-size: 2.8rem;
    line-height: 1.1;
    text-align: right;
    margin-bottom: 15px;
    color: var(--white)
}
section.main-block h1 + p{
    margin-top: -25px;
    color: var(--white)
}
.call{
    position: fixed;
    z-index: 3;
    right: var(--size-2);
    bottom: var(--size-2);
    /*pointer-events: none;*/
    /*opacity: 0;*/
    /*transition: opacity 0.5s;*/
}
/*.call.show {*/
/*    pointer-events: auto;*/
/*    opacity: 1;*/
/*}*/
.call img{
    height: 65px;
    animation: trin 2s infinite linear;
    cursor: pointer
}
@keyframes trin {

    from {
        transform:rotate3d(0, 0, 1, 0deg);
    }
    20%, 32%, 44%, 56%, 68% {
        transform: rotate3d(0, 0, 1, 0deg);
    }
    23%, 35%, 47%, 59%, 71% {
        transform: rotate3d(0,0,1,10deg);
    }
    26%, 38%, 50%, 62%, 74% {
        transform: rotate3d(0,0,1,0deg);
    }
    29%, 41%, 53%, 65%, 77% {
        transform: rotate3d(0,0,1,-10deg);
    }
    80% {
        transform:rotate3d(0, 0, 1, 0deg);
    }

}


/* end of main block */

/* about */

section.about .btn{
    margin-top: var(--size-2)
}
section.about .img-container{
    height: 655px;
    position: relative
}
section.about .img-container .circular-text{
    position: absolute;
    width: 180px;
    height: 180px;
    top: -85px;
    right: -85px;
    animation: rotate 10s linear infinite
}
@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }
    50% {
        transform: rotate(180deg)
    }
    100% {
        transform: rotate(360deg)
    }
}

/* end of about */

/* advantages */
section.advantages{
    position: relative;
    background-color: var(--main-color);
    color: var(--white);
    padding: var(--section-distance) 0;
    overflow: hidden;
    margin-top: -72px;
    z-index: -1
}
section.advantages:before{
    content: '';
    background: url('/wp-content/themes/olenaweb/assets/img/dots-pattern.svg') no-repeat;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.15
}
.advantages__content{
    position: relative
}
.counter-item:not(:first-child){
    padding-left: var(--size-2);
    border-left: 2px solid var(--pale-main)
}
.counter-item__number, .counter-item__number + span{
    display: inline-block;
    font-family: var(--decor-font);
    font-weight: 600;
    font-size: 6rem;
    line-height: 1
}
.counter-item__text{
    font-weight: 600;
    font-size: 2.4rem
}
.counter-item__text + p{
    color: var(--pale-main)
}
/* end of advantages */

/* services */

.services-slider{
    margin-top: var(--size-2)
}
.services-slider .item{
    padding: var(--size-2);
    border: 2px solid var(--brown);
    border-radius: var(--border-radius)
}
.services-slider .item h3{
    line-height: 1
}
.services-slider .item p{
    color: var(--main-color);
    margin-top: var(--size-1)
}
.services-slider .item >img{
    height: 260px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: var(--size-1)
}
.services-slider .item .btn{
    margin-top: var(--size-2)
}
/* end of services */

/* how we work */
.how-we-work{
    margin-bottom: calc(270px + var(--section-distance))
}
.steps{
    display: flex;
    justify-content: center;
    margin: 180px 0 270px;
    position: relative
}
.steps-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 270px;
    text-align: center;
    position: absolute
}
.steps-item img{
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--brown);
    object-fit: cover;
    margin-bottom: var(--size-1)
}
.steps-item h3{
    line-height: 1
}
.steps-item p{
    margin-top: 4px
}
.step-1{
    left: 26px;
    top: -38px
}
.step-2{
    left: 462px;
    top: -143px
}
.step-3{
    left: 820px;
    top: -20px
}
.step-4{
    left: 825px;
    top: 430px;
    max-width: 387px
}
.step-5{
    left: 478px;
    top: 584px
}
.step-6{
    max-width: 452px;
    left: 0;
    top: 837px
}
.step-7{
    left: 590px;
    top: 1070px
}
.pale-title{
    position: absolute;
    left: -80px;
    top: 329px
}


/* end of how we work */


/* projects */
.projects{
    padding: var(--section-distance) 0;
    background-color: var(--main-color);
    color: var(--white)
}
.projects-slider{
    /*margin-top: var(--size-2);*/
    width: 90% !important;
    margin: var(--size-2) auto 0
}
.projects-slider .item{
    border-radius: var(--border-radius);
    border: 6px solid var(--light-yellow);
    overflow: hidden
}
.projects-slider .item .img-container{
    position: relative
}
.projects-slider .item .img-container img{
    height: 655px
}
.projects-slider .item .text{
    position: absolute;
    top: var(--size-2);
    left: var(--size-2);
    background: #75614c87;
    padding: var(--size-2);
    max-width: 485px
}
.projects-slider .item .sale.text{
    background: #F44336;
    transform: rotate(-45deg);
    top: 55px;
    left: -108px;
    padding: 12px 120px;
    text-align: center;
    width: 430px;
    height: 100px
}
.projects-slider .item .sale-text{
    position: absolute;
    bottom: 0;
    color: var(--white);
    width: 100%;
    padding: var(--size-1) 15%;
    text-align: center
}
.projects-slider .item .text h3{
    color: var(--white)
}
.projects-slider .item .sale.text h3{
    line-height: 1.4
}
.projects-slider .item .text p{
    color: var(--pale-main);
    font-weight: 600
}
.projects-slider .item .sale.text p{
    font-family: var(--heading-font)
}
.projects-slider .item .btn{
    position: absolute;
    bottom: var(--size-3)
}
.projects-slider .item .testimonial{
    position: absolute;
    width: fit-content;
    height: fit-content;
    background: var(--light-yellow);
    max-width: 320px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    padding: var(--size-1);
    right: var(--size-2)
}
.projects-slider .item .testimonial > img{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    margin-top: -47px;
    align-self: center
}
.projects-slider .item .testimonial .name{
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--main-color);
    margin-top: var(--size-1)
}
.projects-slider .item .testimonial .name + p{
    font-size: 1.4rem;
    text-transform: none;
    color: var(--brown);
    line-height: 1.4
}
.projects .prev, .projects .next{
    color: var(--white)
}
.projects .prev div, .projects .next div{
    background: var(--white)
}
.projects .container{
    position: relative
}
.projects .decor-left, .projects .decor-right{
    width: 76px;
    height: calc(100% + var(--section-distance) * 2);
    position: absolute;
    top: -96px;
    background: url('../img/embroidery-pattern.svg');
    background-repeat: repeat;
    background-size: 76px
}
.projects .decor-left{
    /* left: -68px */
    left: 12px
}
.projects .decor-right{
    /* right: -68px */
    right: 12px
}

/* end of projects */

.contact{
    position: relative;
    padding-bottom: calc(327.5px + var(--section-distance))
}
.contact form >p{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--size-2);
    margin: var(--size-2) 0 0
}
.wpcf7 form.sent .wpcf7-response-output{
    border: none;
    margin: 15px 0 0;
    padding: 0
}
.wpcf7-not-valid-tip{
    margin-top: 5px
}
.contact form >p >span{
    width: 100%
}
.contact__media{
    position: absolute;
    width: 100%;
    left: 0;
    margin-top: var(--section-distance)
}
.contact form input[type="submit"]{
    width: 100%
}
.contact form input[type="submit"]:hover{
    cursor: pointer
}
.contact__text .img-container{
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 6px solid var(--main-color)
}

iframe{
    width: 100%;
    height: 327.5px
}