/*Обнуление*/
*{
    padding: 0;
    margin: 0;
    border: 0;
}
*,*:before,*:after{
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
:focus,:active{outline: none;}
a:focus,a:active{outline: none;}

nav,footer,header,aside{display: block;}

html,body{
    height: 100%;
    width: 100%;
    line-height: 1;
    font-size: 16px;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-family: 'Open Sans', sans-serif;
}
button {
    outline: none;
    border: 0;
    background: transparent;
    font: inherit;
    font-family: 'Open Sans', sans-serif;
}
a {
    color: inherit;
}
input::-ms-clear{display: none;}
button{cursor: pointer;}
button::-moz-focus-inner {padding:0;border:0;}
a, a:visited{text-decoration: none;}
a:hover{text-decoration: none;}
ul li{list-style: none;}
img{vertical-align: top;}

h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight: 400;}
/*--------------------*/
.container{
    max-width: 1544px;
    margin: 0 auto;
    flex: 1 0 auto;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px 0 10px;
}
.field-item{
    position: relative;
    display: block;
    width: 100%;
}
.field-item input{
    position: relative;
    width: 100%;
    padding-top: 20px;
    margin-top: 12px;
}
.field-item select{
    position: relative;
    width: 100%;
    padding-top: 20px;
    margin-top: 12px;
}
.name-label{
    color: #949BA6 !important;
    font-size: 12px;
    font-weight: 400;
    position: absolute;
    padding-top: 21px;
    margin-left: -245px;
}
.name-label-select{
    margin-left: 8px;
}
.letter{
    padding: 6px 6px;
    background-color:rgba(245, 245, 255, 1);
    border-radius: 99px;
}
.menu{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-text{
    color: #1F2939;
    font-weight: 600;
    line-height: 20px;
}
.menu li{
    padding-bottom: 10px;
}
.menu li:hover{
    border-bottom: 2px solid #5243C2;
}
.phone{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.human{
    padding: 24px 24px;
    border-radius: 99px;
    background: url('../img/header.svg') 50% 50% no-repeat rgba(245, 245, 255, 1);
}
.call{
    color: #FF4D4F;
    font-weight: 600;
    line-height: 20px;
    background: url('../img/phone.svg') 5% 50% no-repeat rgba(255, 237, 237, 1);
    padding: 6px 12px 6px 28px;
    border-radius: 99px;
    transition-duration: 0.3s;
}
.call:hover{
    box-shadow: 3px 3px 3px 3px rgba(169, 169, 169, .4);
}
.num{
    color: #1F2939;
    font-weight: 600;
    line-height: 20px;
    transition-duration: 0.3s;
    padding-bottom: 5px;
}
.num:hover{
    border-bottom: 1px solid #1F2939;
}
.phone > *:not(:last-child){
    margin-right: 60px;
}
.menu > *:not(:last-child){
    margin-right: 60px;
}
/*main{
    display: flex;
    justify-content: space-between;
    overflow-x: hidden;
}*/
main{
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    overflow-x: hidden;
}
footer{
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 10px;
}
.left{
    margin-right: 500px;
}
.footer__flex__info{
    display: flex;
}
.date{
    color: #949BA6;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    margin-right: 8px;
}
.information{
    color: #5243C2;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
}
.information:hover{
    font-weight: 600;
}
.footer__flex__links{
    display: flex;
}
.footer__flex__links > *:not(:last-child) {
    margin-right: 8px;
}
.price{
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.sum{
    margin-top: 235px;
    padding-right: 10px;
}
.title{
    color: #1F2939;
    font-size: 72px;
    font-weight: 700;
    line-height: 80px;
    margin-top: 235px;
    padding-left: 10px;
}
select{
    appearance: none;
    background: url('../img/arrow-select.svg') no-repeat right;
    background-position-x: calc(100% - 8px);
}
.checkout-btn{
    border-radius: 99px;
    background:#5243C2;
    color: #F5F5FF;
    font-weight: 600;
    line-height: 20px;
    padding: 15px 60px;
    margin-left: 90px;
    text-align: center;
    font-size: 16px;
    transition-duration: 0.3s;
    z-index: 28;
}
.checkout-btn:hover{
    box-shadow: 3px 3px 3px 3px rgba(169, 169, 169, .4);
}
.subtitle{
    color: #1F2939;
    font-size: 36px;
    font-weight: 600;
    padding-bottom: 24px;
    border-bottom: 1px solid #F5F5FF;
    border-radius: 99px;
}
.dollars{
    color: #5243C2;
    font-size: 36px;
    font-weight: 800;
    align-self: center;

}
.gift{
    color:#1F2939;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-top: 16px;
    margin-bottom: 40px;
}
span{
    color: #FF4D4F;
}
.details{
    display: flex;
    justify-content: center;
    background-color: rgba(245, 245, 255, 1);
    border-radius: 99px;
    color: #1F2939;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    padding: 5px 30px;
}
.time{
    padding: 20px 44px;
    background: url('../img/time.svg') 0% 50% no-repeat;
}
.weight{
    padding: 20px 44px;
    background: url('../img/weight.svg') 0% 50% no-repeat;
}
.kcal{
    padding: 20px 44px;
    background: url('../img/kcal.svg') 0% 50% no-repeat;
}
.bun_bottom{
    margin-left: -40px;
}
.ingredients{
    margin: 71px 15px 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1F2939;
    text-align: center;
    font-weight: 600;
    line-height: 20px;
    flex-wrap: wrap;
}
.ing{
    border: 1px solid #F0F7FA;
    border-radius: 32px;
    padding: 24px 18px;

}
.calc {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
}
.minus{
    color: rgba(82, 67, 194, 1);
    padding: 6px 13px;
    background-color: rgba(245, 245, 255, 1);
    border-radius: 99px;
    font-size: 18px;
}
.plus{
    color: rgba(82, 67, 194, 1);
    padding: 6px 13px;
    background-color: rgba(245, 245, 255, 1);
    border-radius: 99px;
    font-size: 18px;
}
.amount{
    color: #1F2939;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 32px;
}
.size{
    width: 110px;
    height: 57px;
    padding-bottom: 10px;
}
.ketchup{
    color: #1F2939;
    font-size: 20px;
    font-weight: 600;
    line-height: 32px;
    background-color: inherit;
    margin-top: 69px;
    margin-left: 15px;

}
.ketchup:hover{
    font-weight: 800;
}
.red{
    color: #FF4D4F;
}
.burger{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-wrap: nowrap;
    background: url("../img/bg-2.svg");
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: bottom 71px right 56px;
    position: relative;
    padding: 0 20px;
    margin-top: -240px;
}

.burger_layer:not(:last-child){
    position: relative;
    top: 40px;
    left: 580px;
    transform: scale(3.4);
}
.burger_layer:nth-child(1){
    z-index: 23;
}
.burger_layer:nth-child(2){
    z-index: 22;
}
.burger_layer:nth-child(3){
    z-index: 21;
}
.burger_layer:nth-child(4){
    z-index: 20;
}
.burger_layer:nth-child(5){
    z-index: 19;
}
.burger_layer:nth-child(6){
    z-index: 18;
}
.burger_layer:nth-child(7){
    z-index: 17;
}
.burger_layer:nth-child(8){
    z-index:16;
}
.burger_layer:nth-child(9){
    z-index: 15;
}
.burger_layer:nth-child(10){
    z-index: 14;
}
.burger_layer:nth-child(11){
    z-index:13;
}
.burger_layer:nth-child(12){
    z-index:12 ;
}
.burger_layer:nth-child(13){
    z-index: 11;
}
.burger_layer:nth-child(14){
    z-index: 10;
}
.burger_layer:nth-child(15){
    z-index: 9;
}
.burger_layer:nth-child(16){
    z-index: 8;
}
.burger_layer:nth-child(17){
    z-index: 7;
}
.burger_layer:nth-child(18){
    z-index: 6;
}
.burger_layer:nth-child(19){
    z-index: 5;
}
.burger_layer:nth-child(20){
    z-index: 4;
}
.burger_layer:nth-child(21){
    z-index: 3;
}
.burger_layer:nth-child(22){
    z-index: 2;
}
.burger_layer:nth-child(23){
    z-index: 1;
}
.less-size{
    margin-bottom: -34px;
}
#less-size-cucumber{
    transform: scale(2.1);
    margin-bottom: -50px;
    left: 333px; /*350*/
    top: 10px;
    margin-top: -16px;
}
#less-size-salad{
    transform: scale(0.9);
    margin-bottom: -143px;
    left: -40px;/*-40*/
    top: -10px;
    margin-top: -47px;
}
.less-size-cheese{
    margin-bottom: -14px;
    top: 61px;
    padding-bottom: -40px;
}
.less-size-mayo{
    margin-bottom: -14px;
}
.card{
    z-index: 1000;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 608px;
    height: 296px;
    border: 1px solid #5243C2;
    border-radius: 16px ;
    margin-top: -155px;
    margin-left: -320px;
    background-color: #fff;
    display: none;
    visibility: hidden;
    opacity: 0;
}
.card__top{
    padding: 16px 16px;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #F5F5FF;
}
.card__title{
    color: #1F2939;
    font-size: 20px;
    font-weight: 600;
    padding-left: 35px;
    background: url('../img/checkout.svg') 2% 50% no-repeat;
}
.card__main{
    border-bottom: 2px solid #F5F5FF;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
}
input{
    padding: 16px 8px;
    border-radius: 16px;
    border: 1px solid #F5F5FF;
    color: #1F2939;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}
input:not(:last-child){
    text-indent: 30px;
}
.card__bottom{
    display: flex;
    justify-content: flex-end;
    margin-right: 16px;
}
.card__btn{
    margin-top: 7px;
    width: 120px;
    height: 52px;
    transition-duration: 0.3s;
}
.card__btn:hover{
    box-shadow: 3px 3px 3px 3px rgba(169, 169, 169, .4);
}
.btn-cancel{
    color: #5243C2;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    border-radius: 99px;
    background: #F5F5FF;
    margin-right: 16px;
}
.btn-accept{
    color: #F5F5FF;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    border-radius: 99px;
    background:  #5243C2;
}
.close{
    background: transparent;
    transform: scale(1.4);
    padding-right: 8px;
}
.name{
    background: url('../img/emoji-smile.svg') 4% 50% no-repeat;
    margin-top: 16px;
}
.address{
    margin-bottom: 16px;
    background: url('../img/card-shipping.svg') 4% 50% no-repeat;
}
.number{
    background: url('../img/card-phone.svg') 4% 50% no-repeat;
}

input::placeholder {
    color: #949BA6;
    font-size: 12px;
    font-weight: 400;
    padding-top: -4px;
    transform: translateY(-10px);
}
.time-checkout{
    height: 58px;
    padding: 16px 8px;
    border-radius: 16px;
    border: 1px solid #F5F5FF;
    color: #1F2939;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.dark{
    background: rgba(82, 67, 194, 0.90);
    background-size:cover;
    z-index: 99;
    position: fixed;
    display: block;
    width: 100%;
    height: 100%;
}
.burger-link{
    background: url('../img/adaptive-menu.svg') 50% 50% no-repeat rgba(245, 245, 255, 1);
    padding: 24px 24px;
    border-radius: 99px;
    display: none;
    position: relative;
    z-index: 98;
}
.toggle-btn{
    background: url('../img/close.svg') 50% 50% no-repeat rgba(245, 245, 255, 1);
}
.adaptive-block{
    display: none;
}
.adaptive-flex{
    display: flex;
    flex-direction: column;
    height: 600px;
    text-align: center;
    justify-content: space-between;
    margin-top: 30px;
}
.none-display {
    display: none !important;
}
.block-display{
    display: block;
}
.tel{
    color: #1F2939;
    font-weight: 600;
    line-height: 20px;
}
.adaptive-flex__second-column{
    display: flex;
    flex-direction: column;
}
.adaptive-flex__second-column > *:not(:last-child){
    padding-bottom: 60px;
}
.adaptive-flex__third-column > *:not(:last-child){
    padding-bottom: 15px;
}
.ketchup-img{
    z-index: 98;
    position: absolute;
    top: 60%;
    left: 50%;
    display: none;

}
.sure-element{
    display: none;
    position: absolute;
    top: 10%;
    left: 50%;
    z-index: 98;
    color:#1F2939;
    font-size: 20px;
    font-weight: 600;
    line-height: 32px;
    padding: 16px 16px 16px 42px;
    border-radius: 16px;
    background: url('../img/human-sure.svg') 4% 50% no-repeat #fff;
    box-shadow: 0 0.16604px 2.21381px 0px rgba(0, 0, 0, 0.01), 0px 0.39901px 5.32008px 0 rgba(0, 0, 0, 0.02), 0 0.75129px 10.01724px 0 rgba(0, 0, 0, 0.02), 0 1.34018px 17.86905px 0 rgba(0, 0, 0, 0.02), 0 2.50666px 33.42209px 0 rgba(0, 0, 0, 0.03), 0 6px 80px 0 rgba(0, 0, 0, 0.04);
}

.sure-element::after {
    content: '';
    position: absolute;
    left: 11px;
    bottom: 62px;
    border: 11px solid transparent;
    border-bottom: 12px solid white;
}
@media (max-width: 1500px) {
    .burger_layer:not(:last-child) {
    left: 120%;
    }
}

@media (max-width: 1200px) {
    .ingredients {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 10px;
    }

    main {
        justify-content: center;
    }

    .sum {
        margin-top: 71px;
    }

    .ketchup:hover {
        font-weight: 500;
    }

    .burger {
        background-size: 70%;
    }

    .ketchup-img {
        top: 48%;
        left: 50%;
    }
    #less-size-salad{
        left: -2px;
    }
}
@media (max-width: 1100px) {
    main{
        display: flex;
        overflow-x: hidden;
        flex-wrap: wrap;
    }
    .ketchup-img{
        top: 48%;
        left: 78%;
    }
    .bun_bottom{
        margin-left: 0;
    }
    .hide{
        display: none;
    }
    .human{
        display: none;
    }
    .burger-link{
        display: block;
    }
    .burger_layer:not(:last-child) {
        left: 580px;
    }
}

@media (max-width: 769px) {
    .hide{
        display: none;
}
    .human{
        display: none;
    }
    .burger-link{
        display: block;
    }

    .title{
        margin-top: 50px;
        font-size: 48px;
        opacity: 0;
    }
    .sum{
        margin-top: 10px;
    }
.subtitle{
    display: none;
}
.gift{
    display: none;
}
main{
    flex-direction: column;
    text-align: center;
}
.details{
    background-color: transparent;
    padding: 0;
    margin-top: 25px;
}
    .ingredients{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }
.ketchup{
    margin-top: 24px;
    padding: 12px 24px;
    background-color: rgba(255, 237, 237, 1);
    border-radius: 20px;
    font-weight: 400;
    line-height: 20px;

}
.adaptive-oz{
    border-radius: 19px;
    background: #FF4D4F;
    color: #fff;
    font-size: 12px;
    padding: 6px 7px;
    align-items: center;
}
    .burger_layer:not(:last-child) {
        top: 19px;
        left: 6px;
    }
    .card__main {
        padding-bottom: 16px;
        grid-template-columns: 1fr;
    }
    .card{
        height: 457px;
        width: 464px;
        margin-left: -230px;
        margin-top: -228px;
    }
    #less-size-cucumber {
        left: 11px;
        top: -9px;
    }
    .burger{
        height: 600px;
        background-size: 70%;
        background-position: center 50%;
    }
    .ketchup-img{
        top: 67%;
        left: 67%;
    }
}


@media (max-width: 480px) {
    .phone > *:not(:last-child) {
        margin-right: 10px;
    }
    .menu > *:not(:last-child) {
        margin-right: 10px;
    }
    .ingredients{
        grid-template-columns: 1fr 1fr;
    }
    .bun_bottom{
        width: 70% !important;
    }
    footer{
        display: block;
    }
.wrapper{
    overflow-x: hidden;
}
    footer{
        display: grid;
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .footer__flex__links {
        padding-top: 15px;
        justify-content: center;
    }
    .price {
        justify-content: center;
        flex-direction: column;
        margin-top: 0;
    }
    .checkout-btn {
        margin: auto;
    }
    .dollars{
        padding-bottom: 10px;
    }
    #less-size-cucumber {
        left: 11px;
        margin-top: 2px;
    }
    #less-size-salad {
        transform: scale(2.9);
        margin-bottom: 19px;
        top: 50px;
    }
    .time{
        margin-left: 30px;
    }
    .card{
        width: 286px;
        margin-left: -143px;
    }
    .burger_layer img{
        width: 20%;
    }
    .burger{
        height: 378px;
    }
    .ketchup-img {
        top: 46%;
        left: 70%;
        width: 30%;
    }
    .wrapper{
        overflow-y: hidden;
    }
}

@media (max-width: 320px) {
    .burger{
        height: 273px;
        overflow-x: hidden;
    }
    .ketchup-img {
        top: 35%;
        left: 70%;
        width: 30%;
    }
    .sure-element{
        left: 40%;
    }
    .details{
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        justify-content: center;
    }
    .details > *{
        background-position: 32% 50%;
        margin: 0 0 0 30px;
        padding: 20px 44px 20px 60px;
    }
    .ingredients{
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
    }
    .less-size-tomato{
        margin-bottom: -14px;
    }
    #less-size-cucumber{
        margin-top: 11px;
        left: 7px;
    }
    .less-size-onion{
        margin-bottom: -27px;
    }
    .less-size-cheese{
        top: 33px !important;
        left: 0 !important;
    }
    #less-size-salad{
        margin-bottom: 25px;
    }
    .burger_layer:not(:last-child) {
        top: 19px;
        left: 0;
    }
}
