@font-face{
    font-family: "Pangolin-Regular";
    src: url(./fonts/Pangolin-Regular.woff);
    
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-image: url(./imgages/fon.png);
    background-repeat: repeat;
    min-width: 480px;
    font-family: sans-serif;
}
header{
    display: flex;
    justify-content: center;
    color: white;
    font-size: 40px;
    align-items: center;
    padding: 20px 0;
    width: 100%;
    background-color: #4EA1D7;
}

nav{
    display: flex;
    background-color: #8cc2e5;
    z-index: 1;
    width: 100%;
    position: sticky;
    top: 0;
}
main{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 30px 50px;
    width: 1200px;
}   
main p{
    font-size: 24px;
    text-align: justify;
    line-height: 1.5;
    padding: 20px 0;
    text-indent: 30px;
}
footer{
    display: flex;
    display: flex-direction: row;
    justify-content: center;
    padding: 20px 0;
    background-color: #4EA1D7;
    font-size: x-large;
    width: 100%;
}
footer>a:visited{
    color: white;
    text-decoration: underline;
}
footer>a{
    
    color: white;
    text-decoration: underline;
}
a{
    text-decoration: none;
    color: brown;
}
a:hover{
    text-decoration: underline;
}
h1{
    font-size: 36px;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 30px;
}
iframe{
    margin: 10px auto;
}
.logo{
   display: flex;
   justify-content: center;
   padding-top: 30px;
} 
.menu{
    padding: 10px 30px;
    display: flex;
    list-style-type: none;
    margin: 0 auto;
}
.menu>li{
    font-size: 24px;
    margin-right: 50px;
    cursor: pointer;
    font-weight: bold;
}
.menu li a{
    color: black;
}
.menu li:hover{
    color: white;  
}
.menu li a:hover{
    color: white;
    text-decoration: none;
}

.block-1{
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    font-size: 24px;
}

.block-1 h2 {
    text-align: center;
}
.block-1 ul li, .block-1 ol li{
    margin: 20px 25px;
}
.pic{
    display: block;
    width: 500px;
    float: left;
    margin-right: 20px;
}


.form{
    width:70%;
    height:440px;
    background:#e6e6e6;
    border-radius:8px;
    box-shadow:0 0 10px 2px  #78788c;
    margin:50px auto;
    padding:20px 30px;
    max-width:calc(100vw - 40px);
    box-sizing:border-box;
    font-family:'Montserrat',sans-serif;
    position:relative
}
.form h2{
    margin:10px 0;
    padding-bottom:10px;
    color:#78788c;
    border-bottom:3px solid #78788c
}
input{
    display: block;
    margin: 0 auto;
    width:70%;
    padding:10px;
    box-sizing:border-box;
    background:none;
    outline:none;
    resize:none;
    border:0;
    font-family:'Montserrat',sans-serif;
    transition:all .3s;
    border-bottom:2px solid #bebed2
}
input:focus{
    border-bottom:2px solid #78788c
}
button{
    display: block;
    margin: 30px auto;
    padding:8px 12px;
    font-family:'Montserrat',sans-serif;
    border:2px solid #78788c;
    background:0;color:#5a5a6e;
    cursor:pointer;
    transition:all .3s
}
button:hover{
    background:#78788c;
    color:#fff
}

@media screen and (max-width:1200px) {
    main{width: 960px;}
}
@media screen and (max-width:992px) {
    main{width: 720px;}
    main p, main ul, main ol{font-size: 18px;}
    main h1{font-size: 30px;}
    main h2{font-size: 24px;}
    .pic{margin:0 auto ;
        float: none;}
    .block-2 ul, .block-3 ul{
        grid-template-columns: 1fr;
    }
    .gallery ul{
        grid-template-columns: repeat(2, 1fr);
    }
    .location iframe{
        width: 300px;
        height: 150px;
    }
}
@media screen and (max-width:768px) {
    main{width: 540px;
            padding: 30px 0;}
    .menu>li{margin-right: 20px;}
    .menu{padding: 10px;}
    
}
@media screen and (max-width:576px) {
    main{width: 100%;
            padding: 30px;}
    .pic{width: 400px;}
    .menu>li{margin-right: 15px;
            font-size: 20px;}
    .submenu>li{margin: 30px 20px;}
    .gallery ul{
        grid-template-columns: 1fr;
    }
    .gallery li img:hover{
        transform: none
    }
    .location iframe{
        width: 250px;
        height: 120px;
    }
}
