body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}



.wrapper {
    max-width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

.header {
    position: relative;
    background: #D2B837;
    padding: 15px 30px;
}

.header-wrap {
    display: flex;
    align-items: center;
}

#burger {
    position: absolute;
    left: -99999999px;
    opacity: 0;
    visibility: hidden;
}

.burger {
    display: block;
    height: 16px;
    width: 26px;
    position: relative;
    cursor: pointer;
}

.burger:before,
.burger:after {
    content: '';
}

.burger:before,
.burger span,
.burger:after {
    height: 2px;
    position: absolute;
    left: 0;
    right: 0;
    background: #000;
    border-radius: 2px;
}

.burger:before {
    top: 0;
}

.burger span {
    top: 7px;
}

.burger:after {
    bottom: 0px;
}

#burger:checked+.burger span {
    opacity: 0;
}

#burger:checked+.burger:before {
    transition: transform .3s ease-in-out;
    transform: rotate(45deg);
    top: 7px;
}

#burger:checked+.burger:after {
    transition: transform .3s ease-in-out;
    transform: rotate(-45deg);
    bottom: 7px;
}

#burger:checked~.nav-list {
    transition: opacity .3s case-in-out;
    opacity: 1;
    visibility: visible;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-list {
    display: block;
    list-style: none;
    margin: 0;
    padding-left: 0;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #D2B837;
    text-align: center;

    opacity: 0;
    visibility: hidden;
}

.nav-item {
    padding-bottom: 15px;
}

.nav-link {
    color: black;
    text-decoration: none;
}

.nav-link:hover {
    opacity: .7;
}

.content {
    display: flex;
    flex-grow: 1;

    flex-direction: column;
}

.aside {
    display: flex;
    min-width: 210px;
    width: 100%;
    padding: 10px;
    justify-content: center;
}

.aside-left {
    background: pink;

}

.aside-right {
    background: #9cb1c7;

}

.main {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

h1 {
    font-size: 16px;
}

.boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.box {
    height: 35vh;
    max-height: 450px;
    min-height: 250px;
    width: calc(30vw - 20px);
    max-width: 400px;
    min-width: 200px;
    margin-bottom: 10px;
    border: 2px solid grey;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.pict {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 8px solid #c798b9;
    margin-top: 15px;

}

h2 {
    font-size: 14px;
}

.about {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

p {
    font-size: 11px;
}

.btncontainer {
    height: auto;
    width: 100%;
}

.btn {
    height: 18px;
    width: 37px;
    background: #685274;
    color: white;
    border-radius: 25px;
    border-style: none;
    margin-bottom: 15px;
    text-align: center;
}

.btn:hover {
    transition: all .3s ease-in;
    opacity: .8;
    background-color: #86ec86;
    border: 2px solid #0e7f12;
}


.task3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;

}

.holder {
    display: flex;
    flex-wrap: wrap;
    height: 100px;
    width: 300px;
    border: 2px solid black;
    border-radius: 25px 25px 0px 0px;
    background: #0e7f12;

}

.holder>.item:first-child {
    background-color: #fd644d;
    order: 1;
    flex-grow: 1;
    border-radius: 25px 0px 0px 0px;
}

.holder>.item:last-child {
    background-color: #fda429;
    order: 2;
    flex-grow: 1;
    border-radius: 0px 25px 0px 0px;
}

.holder>.item:nth-child(3) {
    background-color: #663797;
    order: 3;
    height: 48px;
    width: 98px;
}

.holder>.item:nth-child(2) {
    background-color: #4983b2;
    order: 4;
    height: 48px;
    width: 99px;
}

.holder>.item:nth-child(4) {
    background-color: #0e7f12;
    order: 5;
    height: 48px;
    width: 99px;
}

.item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 100px;
    overflow: hidden;
}

.footer {
    background: #86ec86;
    padding: 10px;
    text-align: center;
}

@media(min-width: 1921px) {
    .boxes {
        justify-content: center;
    }

    .box {
        max-height: 600px;
        max-width: 450px;
    }

}






@media(min-width: 1024px) {
    .burger {
        display: none;
    }

    .nav-list {
        display: flex;
        align-items: center;

        opacity: 1;
        visibility: visible;
        position: static;
    }

    .nav-item {
        padding-bottom: 0;
    }

    .nav-item+.nav-item {
        padding-left: 15px;
    }

    .content {
        flex-direction: row;
    }

    .aside {
        max-width: 210px;
    }

    .aside-left {
        order: -1;
    }

    .pict {
        height: 120px;
        width: 120px;
    }

    .holder {
        height: 200px;
        width: 600px;
    }

    .holder>.item:nth-child(3) {
        height: 98px;
        width: 198px;
    }

    .holder>.item:nth-child(2) {
        height: 98px;
        width: 199px;
    }

    .holder>.item:nth-child(4) {
        height: 98px;
        width: 199px;
    }

    .item {
        height: 100px;
        width: 200px;
    }

    .box {
        margin: 10px 15px;
    }

    p {
        font-size: 12px;
    }

    .btn {
        height: 25px;
        width: 50px;
    }
}

@media(min-width: 768px) {
    .box {
        max-height: 350px;
        max-width: 250px;
    }

    .pict {
        height: 70px;
        width: 70px;
    }

    h2 {
        font-size: 14px;
    }

    .btn {
        height: 20px;
        width: 40px;
    }
}