html{
    scroll-behavior: smooth;
}

:root{
    --primary-color: #143917;
    --secondary-color: #9DC07E;
    --rubik-font: "Rubik", sans-serif;
}

*{
    margin: 0;
    padding: 0;
}

body{
    box-sizing: border-box;
    background: #F4ECD9;
    font-family: "Manrope", sans-serif;
    padding: 0px 10px;
}

.logo{
    width: 100%;
}

.container{
    max-width: 1440px;
    margin: auto;
}

main{
    background: #FFF6E2;
    border-radius: 60px;
    padding: 50px 20px;
    margin-top: 150px !important;
}

.title{
    color: var(--primary-color);
    font-size: 48px;
    font-weight: 500;
    font-family: var(--rubik-font);
}

.nav{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.nav a{
    font-size: 32px;
    font-weight: 400;
    font-family: var(--rubik-font);
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
}

.nav a:hover{
    color: var(--secondary-color);
}

button{
    cursor: pointer;
}

.default-button{
    background: var(--secondary-color);
    border: none;
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    padding: 25px 35px;
    transition: 0.3s;
}

.default-button:hover{
    background: var(--primary-color);
    color: var(--secondary-color);
}

@media (max-width: 1439px) {
    
    .container{
        max-width: 1024px;
    }

    .title{
        text-align: center;
    }

    .default-button{
        width: 100%;
        padding: 20px;
    }

}

@media (max-width: 1023px) {
    .container{
        max-width: 768px;
    }
}


@media (max-width: 767px) {
    .container{
        max-width: 450px;
    }

    .title{
        font-size: 32px;
    }
}

@media (max-width: 449px) {
    .container{
        max-width: 320px;
    }
    .nav a{
        font-size: 24px;
    }
    .default-button{
        font-size: 20px;
    }
}

/*HEADER-DESKTOP*/

.header-desktop{
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    z-index: 90;
    margin-right: 10px;
    width: 100%;
}

.header-desktop__inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: #FFF6E2;
    border-radius: 20px;
    padding: 15px 23px;
}

.header-desktop__nav{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.header-desktop__social{
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__social-item{
    width: 50px;
    height: 50px;
    transition: 0.3s;
}

.header__social-item:hover{
    transform: scale(1.1);
}

@media (max-width: 1439px) {
    
    .header-desktop{
        display: none;
    }

}

/*MOBILE*/

.header-mobile{
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    z-index: 90;
    margin-right: 10px;
    display: none;
    width: 100%;
}

.header-mobile__inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #FFF6E2;
    border-radius: 20px;
}

.header-mobile__collapse{
    background: url(img/ui/Menu.svg);
    border: none;
    width: 60px;
    height: 60px;
}

.header-mobile__dropdown{
    display: none;
    background: #FFF6E2;
    padding: 25px 20px;
    margin-top: -20px;
}

.header-mobile__nav{
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0px;
    border-radius: 0px 20px 0px 20px;
    text-align: center;
}

.header-mobile__social{
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 1439px) {
    .header-mobile{
        display: block;
    }
}

@media (max-width: 449px){
    .header__logo{
        width: 70%;
    }
    .header-mobile__inner a{
        width: 100%;
    }
}

/*HERO*/

.hero__container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero__left{
    display: grid;
    gap: 5px;
    width: 682px;
}

.hero__title span{
    color: var(--secondary-color);
    font-weight: 600;
}

.hero__subtitle{
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 500;
}

.hero__subtitle span{
    color: var(--secondary-color);
    font-weight: 700;
}

.hero__subtitle img{
    width: 32px;
    height: 32px;
}

.hero__main-text{
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
}

.hero__button{
    width: fit-content;
    margin-top: 10px;
}

.hero__adaptive{
    display: none;
    position: relative;
    height: 640px;
    width: 680px;
    margin: auto;
}

.hero__right{
    position: relative;
    width: 689px;
    height: 821px;
}

.hero__img{
    position: absolute;
    width: 378px;
    height: 589px;
    object-fit: cover;
    border-radius: 4px;
}

.hero__img--first{
    top: 0;
    left: 107px;
    z-index: 0;
    object-position: -170px;
}

.hero__img--second{
    top: 159px;
    right: 0;
    z-index: 1;
    box-shadow: -46px -8px 24px -9px 
              rgba(0, 0, 0, 0.25);
}

.hero__img--third{
    left: 0px;
    bottom: 0px;
    z-index: 2;
    box-shadow: 23px -17px 14px -15px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1439px) {
    
    .hero__container{
        display: grid;
        justify-content: center;
    }

    .hero__img{
        width: 278px;
        height: 439px;
    }

    .hero__img--first{
        top: 0;
        left: 195px;
        object-position: -170px;
    }

    .hero__img--second{
        top: 132px;
        right: 108px;
    }

    .hero__img--third{
        top: 170px;
        left: 65px;
    }

    .hero__adaptive{
        display: block;
        
    }

    .hero__left{
        width: 100%;
    }

    .hero__right{
        display: none;
    }

    .hero__main-text{
        font-size: 20px;
    }
    
    .hero__subtitle{
        display: none;
    }

    .hero__button{
        width: 100%;
    }

}

@media (max-width: 767px) {
    .hero__img{
        width: 190px;
        height: 296px;
    }

    .hero__img--first{
        top: 25px;
        left: 65px;
        object-position: -80px;
    }

    .hero__img--second{
        top: 125px;
        right: 48px;
    }

    .hero__img--third{
        top: 150px;
        left: 50px;
    }

    .hero__adaptive{
        width: 100%;
        height: 475px;
    }
}

@media (max-width: 449px) {
    
    .hero__img--first{
        top: 25px;
        left: 65px;
        z-index: 0;
        object-position: -80px;
    }

    .hero__img--second{
        top: 115px;
        right: 0px;
    }

    .hero__img--third{
        top: 165px;
        left: 0px;
    }
}

/*WORK*/

.work{
    margin-top: 50px;
}

.work__title{
    text-align: center;
}

.slick-track{
    margin-top: 30px;
}

.work__slider-item{
    width: 662px;
    height: 432px;
    margin-top: 0px;
    opacity: 0.5;
    transition: 0.3s;
}

.work__slider-item.slick-current{
    transform: scale(1.05);
    margin: 0px 50px;
    opacity: 1;
}

.work__slider-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.work__button-container{
    display: flex;
    justify-content: center;
}

.work__inner{
    overflow: hidden;
}


.work .slick-dotted.slick-slider{
    margin-bottom: 25px;
}

.work__pagination{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    margin-top: 10px;
}

.work__dots{
    position: relative;
    margin-top: -10px;
}

.work__button-container{
    margin-top: 20px;
}

.work .slick-list{
    overflow: unset;
}

@media (max-width:767px) {
    .work__slider-item{
        width: 383px;
        height: 255px;
    }
}

/*PRICE*/

.price{
    margin-top: 50px;
}

.price__title{
    text-align: center;
}

.price__column{
    width: 1002px;
    display: grid;
    gap: 25px;
    margin: 0 auto;
    margin-top: 25px;
}

.price__item{
    background: var(--secondary-color);
    border-radius: 25px;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.price__item-inner{
    display: flex;
    align-items: center;
    gap: 25px;
}

.price__item-icon{
    width: 100px;
    height: 100px;
}

.price__item-title{
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
}

.price__amount{
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.price__button-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
}

@media (max-width:1023px) {
    
    .price__column{
        width: 100%;
    }

    .price__item-title{
        font-size: 20px;
    }

    .price__amount{
        font-size: 24px;
    }

    .price__item-icon{
        width: 42px;
        height: 42px;
    }


}

@media (max-width: 449px) {
    
    .price__item{
        flex-wrap: wrap;
        justify-content: center;
    }

    .price__item-title{
        text-align: center;
    }

    .price__item-inner{
        flex-wrap: wrap;
        justify-content: center;
        gap: 0px !important;
    }
    
    .price__item-icon{
        width: 100%;
        height: 50px;
    }

}

/*REVIEWS*/

.reviews{
    margin-top: 50px;
}

.reviews__title{
    text-align: center;
}

.reviews__item{
    background: var(--secondary-color);
    display: flex !important;
    position: relative;
    padding: 20px;
    border-radius: 20px;
    width: 581px; 
    margin: 0px 100px;   
}

.reviews__ui-element{
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1;
}

.reviews__item-user{
    margin-left: 10px;
}

.reviews__item-name{
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.reviews__item-stars{
    display: flex;
    align-items: center;
    gap: 1px;
}

.reviews__item-stars img{
    width: 10px;
    height: 10px;
}

.reviews__text{
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 16px;
    width: 347px;
}

.reviews__avatar-container{
    height: 100%;
}

.reviews__pagination{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    margin-top: 10px;
}

@media (max-width: 1439px) {
    .reviews__item{
        margin: 0px 50px;
    }
}

@media (max-width: 767px) {
    .reviews__text{
        width: 300px;
    }
    .reviews__item{
        width: 410px;
    }

    .price__item-inner{
        gap: 10px;
    }
}

@media (max-width: 449px) {
    
    .reviews__text{
        width: 210px;
    }
    
    .reviews__item{
        width: 270px;
    }

    .reviews__ui-element{
        display: none !important;
    }
}

/*CONTACT*/

.contact{
    margin-top: 50px;
}

.contact__title{
    text-align: center;
}

.contact__form{
    display: grid;
    
    margin: auto;
    margin-top: 25px;
    width: 916px;
    gap: 25px;
}

.contact__form input, .contact__form select{
    font-size: 32px;
    font-weight: 500;
    font-family: "Manrope", sans-serif;
    color: black;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    padding: 8px 25px;
    transition: 0.3s;
}

.contact__form input::placeholder{
    font-size: 32px;
    font-weight: 500;
    font-family: "Manrope", sans-serif;
    color: #7B7979;
}

.contact__form input:focus{
    border: 1px solid var(--secondary-color);
}

.contact__button{
    width: 394px;
    margin: auto;
}

#contact__select{
    appearance: none;
}

#contact__select option{
    font-size: 24px;
}

@media (max-width: 1439px) {
    .contact__button{
        width: 100%;
    }
}

@media (max-width: 1023px) {
    
    .contact__form{
        width: 100%;
    }

}

@media (max-width: 767px) {
    
    .contact__form{
        display: flex;
        flex-wrap: wrap;
    }

    .contact__form input, .contact__form select{
        font-size: 24px;
    }

    .contact__form input::placeholder{
        font-size: 24px;
    }

    .contact__form input, .contact__form select{
        width: 100%;
    }
}

/*POPUP*/

.popup{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
}

.popup__overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 10000px;
    height: 10000px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    transform: translate(-50%, -50%);
}

.popup__inner{
    background: #FFF6E2;
    padding: 25px 30px;
    position: relative;
    z-index: 99;
    border-radius: 30px;
}

.popup__close{
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
}

.popup__title{
    text-align: center;
}

.popup__form{
    display: grid;
    margin: auto;
    margin-top: 25px;
    width: 100%;
    gap: 25px;
}

.popup__form input::placeholder{
    font-size: 32px;
    font-weight: 500;
    font-family: "Manrope", sans-serif;
    color: #7B7979;
}

.popup__form input:focus{
    border: 1px solid var(--secondary-color);
}

.popup__button{
    width: 394px;
    margin: auto;
}

#popup__select{
    appearance: none;
}

#popup__select option{
    font-size: 24px;
}

.popup__form input, .popup__form select{
    font-size: 32px;
    font-weight: 500;
    font-family: "Manrope", sans-serif;
    color: black;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    padding: 8px 25px;
    transition: 0.3s;
}

@media (max-width: 1023px) {
    .popup__form{
        display: flex;
        flex-wrap: wrap;
    }

    .popup__form input, .popup__form select{
        font-size: 24px;
    }

    .popup__form input::placeholder{
        font-size: 24px;
    }

    .popup__form input, .popup__form select{
        width: 100%;
    }

    .popup__title{
        font-size: 32px;
    }
}

/*FOOTER*/

.footer{
    margin-top: 50px;
}

.footer__container{
    padding: 20px;
    background: #FFF6E2;
    border-radius: 20px 20px 0px 0px;
}

.footer__upper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #F4ECD9;
}

.footer__lower{
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.footer__contacts{
    display: flex;
    gap: 30px;
}

.footer__contacts img{
    width: 24px;
    height: 24px;
}

.footer__contacts a{
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.3s;
}

.footer__contacts a:hover{
    color: var(--secondary-color);
}

.footer__email{
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer__phone{
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer__copyright p{
    font-size: 16px;
    color: #A49F93;
}

.footer__nav{
    width: unset;
}

@media (max-width: 1439px) {
    
    .footer__nav{
        width: 100%;
    }

    .footer__link{
        font-size: 24px !important;
    }

}

@media (max-width: 1023px) {
    
    .footer__upper{
        justify-content: center;
    }

    .footer__nav{
        display: none;
    }
}

@media (max-width: 767px) {
    
    .footer__lower, .footer__contacts{
        display: grid;
        justify-content: center;
        gap: 10px;
    }

    .footer__phone, .footer__email{
        justify-content: center;
    }
}

/*SLICK*/


.slick-dots li button:before{
    width: 13px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 30px;
    transition: 0.3s;
}

.slick-dots li{
    width: 13px;
    height: 6px;
}

.slick-dots li button{
    width: 13px;
    height: 6px;
}

.slick-dots li.slick-active button{
    width: 50px;
    height: 6px;    
}

.slick-dots li.slick-active{
    width: 50px;
    height: 6px;
}

.slick-dots li.slick-active button:before{
    width: 50px;
    height: 6px;
    background: var(--primary-color);    
}


.slick-arrow{
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    transform: none !important;
}

.slick-next:before{
    content: '' !important;
}

.slick-next{
    position: static;
    background-image: url(img/ui/right.png);
}

.slick-prev:before{
    content: '' !important;
    
}

.slick-prev{
    position: static;
    background-image: url(img/ui/left.png);
}

.slick-dots{
    position: static;
}
