*{
    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%;
	font-size: 100%;
	line-height: 1;
	font-size: 14px;
	-ms-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}
input,button,textarea{font-family: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;}
body{
    animation-name: hidden;
    animation-duration: 5s;
}

.main{
    margin: 0 auto;
    max-width: 360px;
}
.container{
    display: flex;
    flex-direction: column;
    align-items: center;

    background: #FAFAFA;
}
#red{
    
    border-radius: 0px;
    max-height: 251px;
    height: 251px;
    padding: 50px 30px 0px 30px;
  
}
.block_red{
    background: linear-gradient(107.38deg, #FF0A2D 1.06%, #950015 100%);
    animation-name: top_block;
    animation-duration: 1s;
}
.block h1{
    font-family: Montserrat;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 37px;
    letter-spacing: 0em;
    text-align: left;
    color: #ffffff;    
    margin-bottom: 10px;
}
.block h2{
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0em;
    text-align: left;
    color: #ffffff;    
}
#photo{
    width: 320px;
    height: 120px;   
    background: #FFFFFF;
    box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 0 auto;
    display: flex;
    margin-top: -60px;
    align-items: center;
    margin-bottom: 20px;
    }
#photo h2{
    color: #000;
    margin-bottom: 5px;
}
#photo h3{
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0em;
    text-align: left;
    color:#000;
}
#photo img{
    width: 80px;
    height: 80px;
    margin: 20px;
}
#grid{
    /* display: grid;
    gap: 10px;
    width: 320px;
    padding: 20px;*/
   
    grid-template-rows: 65px 65px 65px; 
    grid-template-areas: "top-button top-button"
                            "button1 button2"
                            "button3 button4";
}
.block_grid{
    display: grid;
    gap: 10px;
    width: 320px;
    padding: 20px;
    margin-bottom: 20px;
    grid-template-rows: repeat(4,40px);
    background: #ffffff;
    /*grid-template-rows: 65px 65px 65px;
     grid-template-areas: "top-button top-button"
                            "button1 button2"
                            "button3 button4"; */
}
/* #grid .block-item{
    display: flex;
    flex-direction: column;   
    align-items: center;
    justify-content: center;
    border-radius: 5px;
   
} */
.block_grid .block_item {
    display: flex;
    flex-direction: column;   
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: linear-gradient(180deg, #F2F4FB 0%, #EDF1FF 100%);
}
.block_grid .block_item a{
    display: flex;
    flex-direction: column;   
    align-items: center;
    justify-content: center;
}
.block_grid .block_item,.block_grid .block_item p,.block_grid .block_item a, .block:last-child .block_item{
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 22px;
    letter-spacing: 0em;
    text-align: center;
}
.block_grid .block_item a{
    color: #000;
}

#grid .block_item p{
    font-family: Montserrat;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0em;
    text-align: center;
    color:#FFFFFF; 
}
#telega{
    grid-area: top-button;
    background: linear-gradient(180deg, #38AFE2 0%, #2081C7 93.75%);
   
}
#telega:hover{
    box-shadow: 0px 4px 20px#38AFE2;
    
}
#mesaga{
    grid-area: button1;
    background: linear-gradient(180deg, #007FFF 0%, #0062C6 100%);
}
#mesaga:hover{
    box-shadow: 0px 4px 20px #007FFF;
}
#whatsaap{
    grid-area: button2;
    background: linear-gradient(0deg, #2CB742 0%, #0AE32D 100%);

}
#whatsaap:hover{
    box-shadow: 0px 4px 20px #2CB742 ;
}

#viber{
    grid-area: button3;
    background: linear-gradient(180deg, #8F00FF 0%, #7B519C 100%);
}
#viber:hover{
    box-shadow: 0px 4px 20px #8F00FF ;
}
#insta{
    grid-area: button4;
    background: linear-gradient(180deg, #FF0069 -11.25%, #7D0080 100%);
}
#insta:hover{
    box-shadow: 0px 4px 20px #FF0069 ;
}
.block_grid .block_item:hover{
    /* box-shadow: 0px 4px 20px #EDF1FF ; */
    box-shadow: 0px 4px 30px#EDF1FF;
    transform: scale(1.1);
}
.block:last-child{
    width: 320px;
    height: 60px;
    background: #FFFFFF;
    box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.block:last-child .block_item{
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.block:last-child .block_item img{
    margin-right: 5px;
}
.block:last-child .block_item a{
    color:red;
}


@keyframes top_block{
    0%{
        opacity: 0;
        transform: translateY(-100px);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes bottom_block{
    0%{
        opacity: 0;
        transform: translateY(400px);        
    }
    100%{
        opacity: 1;
        transform: translateY(0);        
    }
}
@keyframes hidden{
    0%{
        overflow: hidden;
    }
    100%{
        overflow: auto;
    }
}
.bottom_block{
    animation-name: bottom_block;
    animation-duration: 1s;
}
.block_grid .block_item{
    cursor: pointer;
    transition: all 0.5s ease; 
}

@media (max-width: 500px){
    #red{
        width: 100vw;
    }
}