*, html, body{
    padding: 0;
    margin: 0;
}
html, body{
    width: 100%;
    height: 100%;
    
}
body{
    background: rgb(177,19,19);
background: radial-gradient(circle, rgba(177,19,19,1) 0%, rgba(128,0,0,1) 73%);
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    z-index: 0;
}


#bodyglavnoy{
    width: 1200px;
    height: 600px;
   
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: -1;
    box-sizing: border-box;
    margin: -300px 0 0 -600px;
}
.box{
    position: absolute;
    
}
.p4{
   left: 310px;
    bottom: 20px; 
    z-index: 11;
}
.p5{
   left: 420px;
    bottom: 50px; 
    z-index: 9;
}
.p6{
   left: 630px;
    bottom: 38px; 
    z-index: 10;
}
.size4{
    width: 220px;
    height: 220px; 
}
.size5{
    width: 300px;
    height: 300px; 
}
.size6{
    width: 150px;
    height: 150px; 
}



/*Коробка с крышкой*/

.inboxes{
    position: relative;
    text-align: center;
    transition: 2s;
    cursor: pointer;
}
.box_v{
    position: relative;
    width: 90%;
    margin: 0 5%;
    z-index: 1;
    transition: 2s;
}
.box_n{
   position: relative; 
   width: 87%;
    margin: 0 6.5%;
   top: -19%;
    z-index: 0;
    transition: 2s;
     -webkit-filter: drop-shadow(5px 5px 8px #000);
     filter: drop-shadow(5px 5px 8px #000);
}
.inboxes:hover .box_v{
    top: -5px;
    animation: 1.2s ease-in-out 0s normal none running trambling-animation;
}
.inboxes:hover .box_n{
    -webkit-filter: drop-shadow(0px -32px 33px #fff);
     filter: drop-shadow(0px -32px 33px #fff);
}
.box_show1, .box_show3{
    width: 50px;
    height: 50px;
    position: absolute;
    z-index: 3;
    opacity: 0;
    overflow: hidden;
    transition: 1s;
    padding: 0;
    background: rgb(255,255,255);
    border-radius: 100%;
    border: 2px solid #191970;
    box-shadow:0px 0px 39px 23px rgba(255,255,255,0.71);
   -webkit-box-shadow:0px 0px 39px 23px rgba(255,255,255,0.71);
   -moz-box-shadow:0px 0px 39px 23px rgba(255,255,255,0.71);
    left: 50%;
    margin: 0 0 0 -25px;
}
.box_show1{
    top: 100px;
}
.box_show3{
    top: 70px;
}
.box_show1 p{
    font-size: 26px;
    font-family: 'Istok Web', sans-serif;
    color: rgb(177,19,19);
    text-align: center;
    padding: 5px 0 0 0;
}
.box_show3 p{
    font-size: 26px;
    font-family: 'Istok Web', sans-serif;
    color: rgb(177,19,19);
    text-align: center;
    padding: 7px 0 0 0;
}
.inboxes:hover .box_show1{
   opacity: 1;
   top: -130px;
}
.inboxes:hover .box_show2{
   opacity: 1;
}
.inboxes:hover .box_show3{
   opacity: 1;
   top: -50px;
}
.inboxes:hover .box_show4{
   opacity: 0;
   bottom: 200px;
}

@keyframes trambling-animation {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-5deg);
    }
    20%, 40% {
        transform: rotate(5deg);
    }
}
.box_show1:hover, .box_show3:hover{
    
    border: 2px solid #7B68EE;
}
.box_show1:hover p, .box_show3:hover p{
    color: #7B68EE;
    cursor: pointer;
}

.sign {
    position: relative;
    z-index: 1;
    top: 110px;
    font-family: 'PT Sans Narrow', sans-serif;
  font-size: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.sign__word {
  font-size: 2.6rem;
  text-align: center;
  line-height: 1;
  color: #fff;
  margin-bottom: 30px;
  
}

.sign__word1 {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1;
  color: #f5f5f5;
  
}





#box_window{
    width: 1200px;
    height: 600px;
    background: #fff;
    position: fixed;
    margin: -300px 0 0 -600px;
    z-index: 400;
    left: 50%;
    top: 50%;
    box-shadow:0px 0px 22px 8px rgba(255,255,255,0.56);
    -webkit-box-shadow:0px 0px 22px 8px rgba(255,255,255,0.56);
    -moz-box-shadow:0px 0px 22px 8px rgba(255,255,255,0.56);
    display: none;
}


.signS {
    position: relative;
    top: 110px;
    font-family: 'PT Sans Narrow', sans-serif;
  font-size: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.sign__wordS {
  font-size: 2.6rem;
  text-align: center;
  line-height: 1;
  color: rgb(177,19,19);
  margin-bottom: 30px;
 
}
.sign__word1S {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1;
  color: rgb(177,19,19);
  
}
.button_present, .fix1{
    text-align: center;
    width: 300px;
    height: auto;
    overflow: hidden;
    padding: 40px 0;
    background: rgb(177,19,19);
    border-radius: 25px;
    position: absolute;
    bottom: 100px;
    margin: 0 450px;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: 1s;
}

.button_present p{
    
    font-size: 1.1rem;
    text-align: center;
    line-height: 1;
    color: #fff;
    padding: 0 40px;
     transition: 1s;
     border: none;
     background: none;
}

.button_present:hover{
    background: #f5f5f5;
}
.button_present:hover p{
    color: rgb(177,19,19);
}

#boxForm{
    position: absolute;
    bottom: 80px;
    width: 600px;
    margin: 0 300px;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
    display: none;
}
input#boxInp{
    border: 2px solid rgb(177,19,19);
    font-size: 24px;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    box-sizing: border-box;
    margin: 0 0 0 10%;
}

 input#butSub{
     width: 300px;
     height: auto;
     border-radius: 25px;
     border: none;
     overflow: hidden;
     text-align: center;
     background: rgb(177,19,19);
     color: #fff;
     padding: 40px 0;
     margin: 50px 0 0 140px;
     font-size: 20px;
     cursor: pointer;
 }

 input#butSub:hover{
     color: rgb(177,19,19);
     background: #ccc;
 }


#boxForm a{
    color: rgb(177,19,19);
     padding: 0;
     margin: 0;
     font-size: 20px;
     text-decoration: none;
     text-align: center;
}





@media (min-width: 500px) and (max-width: 1199px){
    #bodyglavnoy{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    box-sizing: border-box;
    margin: 0;
}

.p4{
   left: 225px;
    bottom: 50px; 
    z-index: 11;
}
.p5{
   left: 100px;
    bottom: 50px; 
    z-index: 9;
}
.p6{
   left: 80px;
    bottom: 60px; 
    z-index: 10;
}
.size4{
    width: 120px;
    height: 120px; 
}
.size5{
    width: 200px;
    height: 200px; 
}
.size6{
    width: 80px;
    height: 80px; 
}




.sign, .signS {
    top: 50px;
}

#box_window{
    width: 100%;
    height: 100%;
    background: #fff;
    position: fixed;
    margin: 0;
    z-index: 400;
    left: 0;
    top: 0;
    box-shadow: none;
    display: none;
    overflow-y: auto;
}



.button_present, .fix1{
    text-align: center;
    width: 300px;
    height: auto;
    overflow: hidden;
    padding: 40px 0;
    background: rgb(177,19,19);
    border-radius: 25px;
    position: absolute;
    bottom: 30px;
    margin: 0 auto;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: 1s;
}

.button_present p{
    
    font-size: 1.1rem;
    text-align: center;
    line-height: 1;
    color: #fff;
    padding: 0 40px;
     transition: 1s;
     border: none;
     background: none;
}

.button_present:hover{
    background: #f5f5f5;
}
.button_present:hover p{
    color: rgb(177,19,19);
}

#boxForm{
    position: absolute;
    bottom: 80px;
    width: 100%;
    margin: 0;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
    display: none;
}
input#boxInp{
    border: 2px solid rgb(177,19,19);
    font-size: 24px;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    box-sizing: border-box;
    margin: 0 0 0 10%;
}

 input#butSub{
     width: 300px;
     height: auto;
     border-radius: 25px;
     border: none;
     overflow: hidden;
     text-align: center;
     background: rgb(177,19,19);
     color: #fff;
     padding: 40px 0;
     margin: 50px 0 0 140px;
     font-size: 20px;
     cursor: pointer;
 }

 input#butSub:hover{
     color: rgb(177,19,19);
     background: #ccc;
 }


#boxForm a{
    color: rgb(177,19,19);
     padding: 0;
     margin: 0;
     font-size: 20px;
     text-decoration: none;
     text-align: center;
}


}


@media (min-width: 300px) and (max-width: 499px){
    #bodyglavnoy{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    box-sizing: border-box;
    margin: 0;
}

.p4{
   left: 175px;
    bottom: 50px; 
    z-index: 11;
}
.p5{
   left: 50px;
    bottom: 50px; 
    z-index: 9;
}
.p6{
   left: 30px;
    bottom: 60px; 
    z-index: 10;
}
.size4{
    width: 120px;
    height: 120px; 
}
.size5{
    width: 200px;
    height: 200px; 
}
.size6{
    width: 80px;
    height: 80px; 
}




.sign, .signS {
    top: 50px;
}

#box_window{
    width: 100%;
    height: 100%;
    background: #fff;
    position: fixed;
    margin: 0;
    z-index: 400;
    left: 0;
    top: 0;
    box-shadow: none;
    display: none;
    overflow-y: auto;
}



.button_present, .fix1{
    text-align: center;
    width: 80%;
    height: auto;
    overflow: hidden;
    padding: 40px 0;
    background: rgb(177,19,19);
    border-radius: 25px;
    position: absolute;
    bottom: 30px;
    margin: 0 0 40px 10%;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: 1s;
}

.button_present p{
    
    font-size: 1.1rem;
    text-align: center;
    line-height: 1;
    color: #fff;
    padding: 0 40px;
     transition: 1s;
     border: none;
     background: none;
}

.button_present:hover{
    background: #f5f5f5;
}
.button_present:hover p{
    color: rgb(177,19,19);
}

#boxForm{
    position: absolute;
    bottom: 80px;
    width: 100%;
    margin: 0;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
    display: none;
}
input#boxInp{
    border: 2px solid rgb(177,19,19);
    font-size: 24px;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    box-sizing: border-box;
    margin: 0 0 0 10%;
}

 input#butSub{
     width: 80%;
     height: auto;
     border-radius: 25px;
     border: none;
     overflow: hidden;
     text-align: center;
     background: rgb(177,19,19);
     color: #fff;
     padding: 40px 0;
     margin: 50px 0 0 10%;
     font-size: 20px;
     cursor: pointer;
 }

 input#butSub:hover{
     color: rgb(177,19,19);
     background: #ccc;
 }


#boxForm a{
    color: rgb(177,19,19);
     padding: 0;
     margin: 0;
     font-size: 20px;
     text-decoration: none;
     text-align: center;
}


}








