@media screen and (max-width: 1024px) {
    :root {
        --desktop-gap: 50px;
    }
    #partners .simgholder {
        height: 250px;
    }

    h3 {
        font-size: 20px!important;
    }

    #peoples > h3 {
        margin: 50px;
    }

    #ethics h3, #mission .sub-block div {
        font-size: 20px;
        line-height: unset;
    }

    #ethics h4 {
        margin-top: 75px;
    }

    #partners .pcard {
        min-width: 250px;
    }
    aside {
        padding-top: 0;
    }
    footer ul {
        white-space: normal;
    }
}

@media screen and (max-width: 920px) {
    h1 {
        width: 80%;
        font-size: 32px
    }

    #peoples .cards .scard {
        width: 33%;
        margin: 0;
    }
    #ethics .division {
        height: unset;
        flex-direction: column;
    }
    #ethics .division a:not(:last-of-type) {
        margin-right: 0;
        margin-bottom: 100px;
        margin-left: 0;
        margin-right: 0;
    }
    #peoples .partner .singleimage {
        padding: 75px;
        padding-left: 50px;
    }
    #peoples .partner .singleimage img {
        width: auto;
    }
    .partner aside p {
        font-size: 14px;
    }
    aside {
        padding-left: 0;
    }
}

@media screen and (max-width: 840px) {
    #menu {
        display: none;
    }
    #ham {
        display: flex;
    }
    #ethics .division a {
        width: 50%;
   }
}

@media screen and (max-width: 780px) {
    h1 {
        font-size: 24px
    }
    #peoples .cards {
        flex-direction: column;
        padding: 0 50px;
    }
    #peoples .cards .scard {
        width: 100%;
        margin: 0;
    }
    #peoples .cards .scard:not(:last-of-type) {
        margin-bottom: 50px;
    }
    #mission .main-block h3 {
        margin-bottom: 0;
    }

    footer {
        flex-wrap: wrap;
        padding: 75px var(--desktop-gap);
    }
    footer .footlogo, footer .sitemap, footer .contacts {
        width: 100%;
        margin-bottom: 50px;
    }
    footer .contacts {
        margin-bottom: 0!important;
        width: 100%
    }
}

@media screen and (max-width: 640px) {
    h1 {
        font-size: 24px
    }
    #peoples .cards {
        padding: 0;
    }
    #mission .main-block {
        padding: 25px;
    }
    #mission .main-block, #mission .sub-block {
        text-align: left;
    }
    .icon-scroll {
        bottom: 25px;
      }
      :root {
        --desktop-gap: 25px;
    }
    #offmenu ul a {
        font-size: 12px;
    }
    #offmenu span p:first-of-type {
        margin-right: 12.5px;
    }
    #offmenu ul a:not(:last-of-type) {
        margin-right: 12.5px;
    }
    #offmenu ul a:last-of-type {
        padding-right: 12.5px;
        border-right: 1px solid #323B63;
        margin-right: 12.5px;
    }
}

@media screen and (max-width: 450px) {
    h1 {
        width: 90%;
    }
    #top {
        border: 10px solid white;
    }
    #peoples > h3 {
        margin: 25px 0;
    }
    #partners .pcard {
        min-width: 380px;
        }
    #ethics {
        margin-bottom: 0;
    }
    #ham {
        transform: scale(0.7);
    }
    #offmenu ul {
        margin: 0 10px;
    }
    .icon-scroll {
        bottom: 5px;
    }
    :root {
        --desktop-gap: 17.5px;
    }
}

@media screen and (max-width: 350px) {
    #ham {
        display: none;
    }
    #top nav {
        justify-content: center;
    }
}
