/* main block - the first block on the main page */
.main-block{
    position: relative;
    width: 100dvw;
    height: 100dvh
}
.pt-header{
    padding-top: 98px
}
.main-block .content >div{
    height: calc(100dvh - 98px);
    overflow: hidden;
    padding-bottom: var(--size-2)
}
.large-img .img-container{
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1
}
.large-img .img-container img{
    object-position: top
}
.main-block .small-imgs{
    display: flex;
    gap: var(--size-2)
}
.small-imgs .img-container{
    max-width: calc((100% - (var(--size-2) * 3)) / 4);
    cursor: pointer;
    border: 3px solid transparent;
    flex: 1;
    aspect-ratio: 1 / 1;
    transition: 0.3s;
    overflow: hidden
}

.small-imgs .img-container:hover{
    border-color: var(--primary-color)
}

.small-imgs .img-container.active{
    border-color: var(--primary-color)
}

/* анімація */

.large-img img {
    transition: transform 1.5s cubic-bezier(.4, 0, .2, 1);
}

.large-img img.switching {
    transform: translateX(-15px);
}

.small-imgs .img-container {
    cursor: pointer;
    transition: transform 1s ease
}

.small-imgs .img-container.active {
    transform: translateY(-12px)
}

/* завершення анімації */

.text-and-small-imgs{
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}
.text-and-small-imgs .text{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20%
}
.main-block .text .btn{
    margin-top: var(--size-2)
}

/* end of main block */



/* about */

.about .subtitle + p{
    margin-top: var(--size-2)
}
.about .advantages{
    display: flex;
    width: 57%;
    gap: var(--size-2);
    margin: var(--size-3) 0 var(--size-3) auto
}
.about .media .img-container, .about .media .video-wrapper,
.about .media .video-wrapper video
{
    height: 550px
}

.about .media .btn{
    margin: -84px auto 0;
    position: relative
}

/* end of about */

.testimonials .content{
    display: flex
}
.testimonials .content >div{
    width: 50%
}
.testimonials-slider .img-container{
    height: 150px;
    width: 348px
}
.testimonials-slider .text, .testimonials-slider .author{
    margin-top: var(--size-2);
}
.testimonials-slider .text p{
    color: var(--white)
}
.testimonials-slider .author{
    color: var(--gray)
}

.our-partners .infinite-slider{
    margin-top: var(--size-3)
}
.our-partners h2, .our-partners h2 + p{
    text-align: center
}
.our-partners h2 + p{
    width: 50%;
    margin-left: auto;
    margin-right: auto
}

.contacts{
    background-image: url('../img/contacts-bg.png');
    position: relative;
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover
}
.contacts .overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(
        to bottom,
        #111111 0%,
        rgba(17, 17, 17, 0) 100%
    )
}
.contacts .content{
    position: relative
}
.contacts .subtitle{
    width: fit-content;
    margin: 0 auto
}
.contacts .subtitle + p{
    width: 50%;
    text-align: center;
    margin: 0 auto;
    margin-top: var(--size-1)
}
.contact-form{
    padding: calc(var(--section-distance) * 2) 0
}
.contact-form input, .contact-form textarea{
    background: linear-gradient(to right, #ffffff1a, transparent);
    height: 60px;
    border-radius: 30px;
    border: none;
    width: 100%;
    padding-left: var(--size-2);
    padding-right: var(--size-2);
    color: var(--white);
    font-family: var(--main-font)
}
.contact-form input::placeholder, .contact-form textarea::placeholder{
    color: var(--gray);
    letter-spacing: px;
    text-transform: uppercase
}
.contact-form textarea{
    padding-top: var(--size-1);
    height: 130px;
    resize: none
}
.contact-form input:not(:first-child), .contact-form textarea:not(:first-child){
    margin-top: var(--size-1)
}
.contact-form .btn{
    margin: var(--size-3) auto 0
}
.contact-form .btn {
    margin: var(--size-2) auto 0
}
