@font-face {
    font-family: wda;
    src: url(wda.ttf) format('truetype');
    font-weight: 400;
    font-display: fallback;
    font-style: normal
}

body {
    background-color: #f2f2f2;
    font-family: wda;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #3f74b5;
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

header h1 {
    margin: 0;
}

header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    padding: 10px 20px;
}


header nav a:hover {
      text-decoration: revert;
}



main {
}

main h2 {
    margin: 0;
    padding-top: 50px;
    font-size: 34px;
}

main p {
    text-align: justify;
    max-width: 900px;
    margin-top: 20px;
    font-size: 22px;
    line-height: 33px;
}

main img {
    height: 200px;
    margin-top: 20px;
}

footer {
    background-color: #3f51b5;
    color: white;
    text-align: center;
    padding: 10px;
}

footer p {
    margin: 0;
}

.oglav {
   display: flex;
    flex-direction: column;
    list-style: none;
    background: white;
    width: 500px;
    padding-left: 5%;
    padding-bottom: 50px;
    font-size: 23px;
    border-radius: 30px;
}

.oglav a {
    color: #474747;
    line-height: 30px;
}

.oglav a:hover {
        color: #000000;
    text-decoration: none;
}


.kusok {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.popa {
    color: white;
}

@media (max-width: 720px) {
    header {
        flex-direction: column;
    }

    header h1 {
        text-align: center;
        font-size: 55px;
    }

    header nav {
        text-align: center;
    }

    header nav ul {
        display: flex;
        list-style: none;
        font-size: 36px;
        padding: 20px;
        flex-direction: column;
    }

    header nav a {
        font-size: 40px;
    }
	
	

    main p {
        text-align: left;
        max-width: 600px;
        margin-top: 20px;
        font-size: 35px;
        line-height: 45px;
    }

    main h2 {
        margin: 0;
        font-size: 40px;
        margin-top: 80px;
        margin-bottom: 20px;
    }

    .kusok {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

.oglav {
width: 90%;
    padding-left: 5%;
    font-size: 30px;
}



    footer {
        font-size: 40px;
    }
}
