@font-face{
    font-family: Myriad Pro;
    src: url(fonts/MyriadPro-Regular.ttf);
    font-weight: 400;
}

@font-face{
    font-family: Myriad Pro;
    src: url(fonts/MyriadPro-Bold.ttf);
    font-weight: 600;
}

@font-face{
    font-family: TTWellingtons;
    src: url(fonts/TTWellingtons-Regular.ttf);
    font-weight: 400;
}

@font-face{
    font-family: TTWellingtons;
    src: url(fonts/TTWellingtons-Medium.ttf);
    font-weight: 500;
}

@font-face{
    font-family: TTWellingtons;
    src: url(fonts/TTWellingtons-DemiBold.ttf);
    font-weight: 600;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

.wrapper{
    overflow: hidden;
    position: relative;
}

body{
    background-color: #0c0c0c;
    font-family: Montserrat;
    font-weight: 400;
    color: #fff;
}

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

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

header{
    padding: 20px 0;
}

.section_title{
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section_description{
    font-size: 36px;
    margin-bottom: 80px;
}

/* Header */
header .header__logo img{
    max-width: 120px;
}

header nav ul{
    list-style: none;
    display: flex;
    gap: 0 80px;
    align-items: center;
}

header nav ul a{
    font-family: Myriad Pro;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: .3s all ease;
}

header nav ul a:hover{
    color: #d7a913;
}

header .header__contacts{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px 0;
}

header .header__contacts .phone__number{
    font-size: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0 10px;
}

header .header__contacts .phone__number img{
    max-height: 25px;
}


/* Hero */

.hero .hero__big_image{
    max-width: 900px;
    position: absolute;
    right: -300px;
    top: 210px;
    animation-name: rotate;
    animation-duration: 30s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    z-index: 4;
}

.hero .container{
    padding: 160px 0 480px 0;
    position: relative;
}

.hero .hero__title{
    font-size: 100px;
    font-weight: 900;
    margin-bottom: 60px;
}

.hero .hero__description{
    font-size: 24px;
    margin-bottom: 30px;
}

.hero .hero__action a{
    display: inline-block;
    padding: 20px 35px;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    background-color: #d7a913;
}

.hero .hero__images img{
    position: absolute;
}

.hero__images .onion_1{
    left: 410px;
    top: -30px;
    max-width: 110px;
}

.hero__images .onion_2{
    right: 100px;
    top: -30px;
    max-width: 110px;
    z-index: 3;
}

.hero__images .pomidor{
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    max-width: 100px;
}

.hero__images .kartofel{
    left: 280px;
    bottom: 130px;
    max-width: 240px;
}


/* Sales Section */
.sales{
    margin-bottom: 130px;
}
.sales .row{
    align-items: stretch;
}
.sales .sale_item{
    flex: 0 0 auto;
    width: calc(33.3333% - 30px);
    font-size: 28px;
    font-weight: 800;
    color: #d7a913;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px 0;
}

.sales .sale_item img{
    width: 100%;
    border-radius: 10px;
}

.sales .sale_item.yellow{
    background-color: #d7a913;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 287px;
    border-radius: 10px;
}

/* Menu */
.menu {
    margin-bottom: 130px;
}

.menu .row{
    align-items: stretch;
    gap: 105px 0;
}

.menu .menu_item{
    flex: 0 0 auto;
    width: calc(33.3333% - 70px);
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
}

.menu .menu_item .menu_image img{
    width: 100%;
    height: 365px;
    object-fit: cover;
}

.menu .menu_item .menu_about{
    padding: 50px 40px 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 365px);
}

.menu_about .menu_name{
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 40px;
}

.menu_about .menu_description{
    font-size: 20px;
    margin-bottom: 30px;
}

.menu_about .menu_types{
    display: flex;
    flex-direction: column;
    gap: 10px 0;
    font-size: 18px;
    margin-bottom: 30px;
}

.menu_about .menu_types label input{
    display: none;
}

.menu_about .menu_types label{
    display: flex;
    align-items: center;
    gap: 0 10px;
    cursor: pointer;
}

.menu_types label .checkbox{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid #d7a913;
    position: relative;
    transition: .3s all ease;
}

.menu_types label:hover .checkbox,
.menu_types label input:checked ~ .checkbox{
    box-shadow: 0 0 10px #d7a913;
}
.menu_types label input:checked ~ .checkbox::before{
    opacity: 1;
}

.menu_types label .checkbox::before{
    content: '';
    display: block;
    height: 12px;
    width: 12px;
    background-color: #d7a913;
    border-radius: 50%;
    opacity: 0;
}

.menu_types label .with_image{
    display: flex;
    align-items: center;
    gap: 0 3px;
}

.menu_types label .with_image img{
    max-width: 17px;
}

.menu_about .menu_price{
    text-align: right;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

.menu_about .menu_action{
    display: flex;
    justify-content: center;
}

.menu_about .menu_action .button{
    font-size: 24px;
    text-transform: uppercase;
    color: #fff;
    background-color: #d7a913;
    border-radius: 30px;
    text-decoration: none;
    padding: 20px 30px;
    transition: .3s all ease;
}

.menu_about .menu_action .button:hover{
    background-color: #7bb442;
}

/* Nabors */
.nabors .section_title{
    margin-bottom: 100px;
}

/* About */
.about{
    margin-bottom: 130px;
}
.about .about_header{
    display: flex;
}

.about .about_header a{
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    background-color: #0c0c0c;
    text-decoration: none;
    color: #fff;
    display: block;
    padding: 40px 0;
    border-radius: 15px 15px 0 0;
    transition: .3s all ease;
}

.about .about_header a:hover{
    background-color: #d7a91371;
}

.about .about_header a.active{
    background-color: #d7a913;
    color: #000;
}

.about .about_body .about_body_item{
    background-color: #d7a913;
    padding: 40px 0 200px 100px;
    display: none;
    color: #000;
    font-size: 22px;
    line-height: 36px;
    border-radius: 15px;
    overflow: hidden;
}

.about .about_body .about_body_item:first-child{
    border-radius: 0 15px 15px 15px;
}

.about .about_body .about_body_item:last-child{
    border-radius: 15px 0 15px 15px;
}

.about .about_body .about_body_item.active{
    display: block;
}

.about .about_body .about_body_item#delivery{
    background-image: url(images/deilvery_img.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: right center;
}

.about_body .about_body_item p{
    margin-bottom: 20px;
}

.about_body .about_body_item span{
    font-weight: bold;
}

.about_body .about_body_item a{
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/* Footer */
footer{
    padding-bottom: 30px;
    font-family: TTWellingtons;
}

footer .row{
    align-items: flex-start;
}

.footer_left{
    flex: 0 0 auto;
    width: 45%;
}

.footer_left .footer_logo {
    margin-bottom: 30px;
}
.footer_left .footer_logo a{
    display: flex;
    align-items: center;
    gap: 0 15px;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
}

.footer_left .footer_logo img{
    max-width: 120px;
}

.footer_left .footer_about{
    font-size: 14px;
}

.footer_left .footer_about p{
    margin-bottom: 20px;
}

.footer_right{
    display: flex;
    flex: 0 0 auto;
    width: 55%;
    gap: 0 70px;
    padding-top: 40px;
}

.footer_right .footer_navigation ul{
    display: flex;
    list-style: none;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 40px;
}

.footer_right .footer_navigation ul a{
    font-size: 20px;
    text-decoration: none;
    color: #fff;
}

.footer_right .footer_navigation ul a:hover{
    color: #d7a913;
}

.footer_right .footer_navigation p{
    font-size: 13px;
}

.footer_right .footer_navigation p a{
    color: #d7a913;
    text-decoration: none;
}

.footer_right .footer_contacts .reglament{
    font-size: 20px;
    margin-bottom: 20px;
}

.footer_contacts .contact_item{
    margin-bottom: 15px;
    font-size: 18px;
}

.footer_contacts .contact_item a{
    text-decoration: none;
    color: #fff;
}

.footer_contacts .contact_item a:hover{
    color: #d7a913;
}

.menu_toggler{
    display: none;
}

@keyframes rotate{
    from{
        transform: rotate(0);
    }
    to{
        transform: rotate(360deg);
    }
}


@media (max-width: 1600px){
    .container{
        max-width: 1320px;
    }

    .menu .menu_item{
        width: calc(33.3333% - 30px);
    }

    .menu_about .menu_name{
        font-size: 26px;
    }

    .menu .menu_item .menu_image img{
        height: 290px;
    }

    .menu .menu_item .menu_about{
        height: calc(100% - 290px);
    }

    footer br{
        display: none;
    }
}

@media (max-width: 1400px){
    .container{
        max-width: 1170px;
    }

    header nav ul a{
        font-size: 18px;
    }

    .hero .hero__big_image{
        max-width: 700px;
        right: -150px;
    }

    .hero .hero__title{
        font-size: 80px;
    }

    .sales .sale_item{
        font-size: 24px;
    }

    .section_title{
        font-size: 56px;
    }

    .menu .menu_item .menu_about{
        padding: 30px;
    }

    .menu_about .menu_name{
        font-size: 24px;
    }

    .menu_about .menu_action .button{
        font-size: 20px;
        padding: 15px 30px;
    }

    .about .about_body .about_body_item{
        font-size: 20px;
        padding: 70px;
    }

    .about_body .about_body_item:first-child p:first-child{
        max-width: 70%;
    }
}

.cart_modal_opener{
    position: fixed;
    right: 60px;
    top: 120px;
    height: 70px;
    width: 70px;
    background-color: rgba(255,255,255,.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 17px;
    z-index: 10;
    border-radius: 50%;
    transition: .3s all ease;
}

.cart_modal_opener.added{
    transform: scale(1.2);
}

.cart_modal_opener img{
    width: 100%;
}

.cart_modal_opener .products_count{
    height: 25px;
    width: 25px;
    background-color: red;
    color: #fff;
    position: absolute;
    right: 0;
    bottom: -5px;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart_modal_opener .products_sum{
    position: absolute;
    padding: 10px 0;
    background-color: #292929;
    font-size: 15px;
    box-sizing: border-box;
    transform: translateX(0) translateY(-50%);
    top: 50%;
    right: calc(100% + 10px);
    border-radius: 3px;
    transition: .3s all ease;
    display: inline-block;
    color: #fff;
    width: 95px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
}

.cart_modal_opener .products_sum::after{
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: solid transparent;
    border-width: 7px;
    top: 50%;
    right: -13px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    border-left-color: #292929;
}

.cart_modal_opener:hover .products_sum{
    opacity: 1;
    visibility: visible;
}

.modal{
    position: fixed;
    background-color: rgba(0,0,0,.5);
    display: flex;
    justify-content: end;
    z-index: 20;
    height: 100vh;
    width: 100vw;
    top: 0;
    right: 0;
    transition: .3s all ease;
    opacity: 0;
    visibility: hidden;
    z-index: 101;
}

.modal.show{
    opacity: 1;
    visibility: visible;
}


.modal .modal_content{
    background-color: #fff;
    max-width: 560px;
    width: 100%;
    height: 100%;
    padding: 40px;
    color: #000;
    position: absolute;
    top: 0;
    right: -100%;
    transition: .3s all ease;
    overflow: auto;
}

.modal.show .modal_content{
    right: 0;
}

.modal_body .modal_close{
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 4;
}

.modal_body .modal_title{
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.modal_body .cart_products .product_item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin-bottom: 20px;
    gap: 0 10px;
}



.modal_body .cart_products .product_image img{
    width: 70px;
    height: 70px;
    background-size: cover;
    border-radius: 7px;
}

.modal_body .cart_products .product_name{
    width: 120px;
}

.modal_body .cart_products .product_name a{
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.modal_body .cart_products .product_count{
    display: flex;
    gap: 0 5px;
}

.modal_body .cart_products .product_sum{
    text-align: center;
}

.modal_body .cart_products .product_count span{
    font-size: 20px;
    display: flex;
    height: 21px;
    width: 21px;
    border: 1px solid #000;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    line-height: 0;
    cursor: pointer;
    opacity: 0.5;
}

.modal_body .cart_products .product_delete{
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: end;
    opacity: 0.5;
    cursor: pointer;
}

.modal_body .cart_products .product_delete img{
    width: 20px;
}

.modal_body .cart_products .product_item:hover .product_count span,
.modal_body .cart_products .product_item:hover .product_delete{
    opacity: 1;
}

.modal_body .cart_products .product_count input{
    max-width: 30px;
}

.modal_body .total_sum{
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 40px;
}

.modal_body .checkout_btn{
    display: block;
    text-align: center;
    color: #fff;
    background-color: #d7a913;
    padding: 20px 0;
    text-decoration: none;
    border-radius: 35px;
    font-weight: 600;
    font-size: 19px;
    border: none;
}

.modal_body .politics{
    color: #0c0c0c;
    text-align: center;
    text-decoration: none;
}

.modal_body .checkout_btn:hover{
    background-color: #7bb442;
}

.modal.checkout_modal .modal_content{
    width: 100%;
    max-width: 100%;
}

.modal.checkout_modal .modal_header{
    position: absolute;
    top: 0;
    left: -40px;
    width: calc(100% + 80px) !important;
    padding: 15px !important;
}

.modal.checkout_modal .modal_header .modal_title{
    margin-bottom: 0;
    padding-left: 80px;
    padding-bottom: 20px;
}

.modal.checkout_modal .modal_body{
    display: flex;
    padding-top: 60px;
}

.modal.checkout_modal .modal_body > div{
    flex: 0 0 auto;
    width: 50%;
    padding: 30px;
}

.modal.checkout_modal .modal_cart .cart_block{
    position: sticky;
    top: 0;
}

.modal.checkout_modal .modal_form form{
    display: flex;
    flex-direction: column;
    gap: 15px 0;
}

.modal.checkout_modal .modal_form form label{
    display: flex;
    flex-direction: column;
}

.modal.checkout_modal .modal_form form label span{
    margin-bottom: 10px;
}

.modal.checkout_modal .modal_form form label input,
.modal.checkout_modal .modal_form form label select{
    height: 50px;
    padding: 0 20px;
    border: 1px solid #292929;
}

.modal.checkout_modal .modal_form form label input.error,
.modal.checkout_modal .modal_form form label select.error{
    border-color: red;
}

.error{
    color: red;
}

.modal_body .checkout_btn.disabled{
    background-color: #ccc;
    color: #1f1f1f;
}


@media (max-width: 1200px){
    .container{
        max-width: 738px;
    }

    .menu_toggler{
        display: flex;
        width: 50px;
        height: 50px;
        justify-content: center;
        align-items: center;
        border: 2px solid #fff;
        border-radius: 50%;
        position: fixed;
        top: 25px;
        right: 15px;
        z-index: 100;
        background-color: #000;
    }

    .menu_toggler span{
        height: 2px;
        width: 27px;
        flex: 0 0 auto;
        background-color: #fff;
        position: absolute;
        left: 0;
        right: 0;
        margin: auto;
        transition: .3s all ease;
    }

    .menu_toggler span:nth-child(1){
        top: 14px;
    }

    .menu_toggler span:nth-child(2){
        top: 22px;
    }

    .menu_toggler span:nth-child(3){
        top: 30px;
    }

    .menu_toggler.opened span:nth-child(1){
        top: 22px;
        transform: rotate(45deg);
    }

    .menu_toggler.opened span:nth-child(2){
        width: 0;
    }

    .menu_toggler.opened span:nth-child(3){
        top: 22px;
        transform: rotate(-45deg);
    }

    .hero__images .onion_1{
        left: 100px;
        top: 30px;
    }

    .hero .hero__big_image{
        max-width: 450px;
    }

    .hero .hero__description{
        max-width: 70%;
    }

    header nav ul{
        position: fixed;
        width: 100%;
        height: 100vh;
        max-width: 280px;
        background-color: #fff;
        left: -100%;
        top: 0;
        flex-direction: column;
        z-index: 10;
        padding: 30px;
        align-items: flex-start;
        gap: 10px 0;
        transition: .3s all ease;
    }

    header nav ul.show{
        left: 0;
    }

    header nav ul a{
        color: #000;
        font-size: 24px;
    }

    .hero .container{
        padding: 150px 0 250px 0;
    }

    .hero .hero__title{
        font-size: 60px;
    }

    .hero__images .kartofel{
        left: 300px;
        bottom: 30px;
    }

    .hero__images .pomidor{
        top: -200px;
        right: -150px;
    }

    .sales .row{
        gap: 30px 0;
    }

    .sales .sale_item{
        width: calc(50% - 20px);
    }

    .sales .sale_item.yellow{
        height: 205px;
    }

    .menu{
        margin-bottom: 60px;
    }

    .menu .row{
        gap: 40px 0;
    }

    .menu .menu_item{
        width: calc(50% - 20px);
    }

    .nabors .section_title{
        margin-bottom: 50px;
    }

    .about .about_body .about_body_item{
        font-size: 18px;
        padding: 40px;
    }

    .footer_left,
    .footer_right{
        width: 100%;
    }
    
}

@media (max-width: 768px){
    .container{
        max-width: 480px;
        width: 100%;
        padding: 0 15px;
    }

    header .header__logo img{
        max-width: 70px;
    }

    header .row{
        justify-content: flex-start;
        gap: 0 10px;
    }
    header .header__contacts{
        align-items: center;
    }
    header .header__contacts .work__time{
        font-size: 14px;
    }
    header .header__contacts .phone__number{
        font-size: 20px;
    }

    .hero .container{
        padding: 100px 15px 150px 15px;
    }

    .hero .hero__title{
        font-size: 48px;
        margin-bottom: 30px;
    }

    .hero .hero__big_image{
        display: none;
    }

    .hero__images .onion_1{
        left: 15px;
        top: 0;
        max-width: 75px;
    }

    .hero__images .onion_2{
        right: 0;
    }

    .hero__images .pomidor{
        max-width: 80px;
        top: -180px;
        right: -300px;
    }

    .hero__images .kartofel{
        left: auto;
        right: 0;
        max-width: 130px;
        bottom: 100px;
    }

    .hero .hero__action a{
        padding: 15px 25px;
        font-size: 20px;
    }

    .sales .sale_item{
        width: 100%;
    }

    .section_title{
        font-size: 40px;
    }

    .section_description{
        font-size: 26px;
        margin-bottom: 30px;
    }

    .menu .menu_item{
        width: 100%;
    }

    .menu .menu_item .menu_about{
        padding: 15px 15px 30px 15px;
    }

    .about .about_header{
        flex-wrap: wrap;
    }

    .about .about_header a{
        flex: 0 0 auto;
        width: 100%;
        padding: 20px;
        border-radius: 8px !important;
    }

    .about .about_body .about_body_item{
        font-size: 16px;
        padding: 20px;
        border-radius: 15px !important;
    }

    .about .about_body .about_body_item#delivery{
        background-size: 150px;
        background-position: right bottom;
    }

    .about .about_body .about_body_item br{
        display: none;
    }

    .about_body .about_body_item p{
        margin-bottom: 10px;
        line-height: 24px;
    }

    .about_body .about_body_item:first-child p:first-child{
        max-width: 100%;
    }

    .footer_left .footer_logo img{
        max-width: 100px;
    }

    .footer_right{
        padding-top: 0;
        flex-direction: column;
    }

    .footer_right .footer_navigation ul{
        flex-direction: column;
        gap: 10px 0;
        margin-bottom: 20px;
    }

    .modal .modal_content{
        padding: 15px;
    }

    .modal.checkout_modal .modal_body{
        flex-direction: column-reverse;
        padding-top: 80px;
    }

    .modal.checkout_modal .modal_body > div{
        width: 100%;
        padding: 0;
    }

    .modal.checkout_modal .modal_cart .cart_block{
        position: static;
    }
    .modal.checkout_modal .modal_header .modal_title{
        padding-left: 40px;
        padding-bottom: 15px;
    }

    .cart_modal_opener{
        right: 15px;
        top: auto;
        bottom: 60px;
        height: 50px;
        width: 50px;
        padding: 10px;
    }
}