@font-face {
    font-family: "Montserrat";
    src: url(../fonts/Montserrat.ttf);
}

body {
    font-family: Montserrat;
    margin: 0px;
}

header {
    position: fixed;
    display: flex;
    flex: content;
    justify-content: space-between;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.33);
    padding: 10px;
    z-index: 1;
}

#menu,
label {
    display: none;
}

header .list {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: space-around;

}

header .list button {
    background-color: wheat;
    transition: all 0.2s ease;
    margin: 15px auto auto;
    border-radius: 48%;
    border: 1px solid black;
    font-size: 15px;
}

header .list button:hover {
    color: rgba(58, 58, 58, 0.8);
    font-size: 19px;
}

header .list a {
    color: black;
    text-decoration: none;
    white-space: nowrap;
}

header .end_block .phone {
    margin: 15px auto 15px;
    color: white;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

header .end_block .phone a {
    color: white;
    text-decoration: none;
}

h1 {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    color: white;
}

main {
    padding: 125px 100px;
    background-image: url(../../static/images/backgrounds/other_pages.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

footer {
    background-color: rgb(80, 80, 80);
    padding: 20px;
}

footer .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

footer .container p,
footer .container a {
    margin: 0;
    align-self: center;
    color: rgb(200, 200, 200);
}

.vk img {
    border-radius: 50%;
}

@media (max-width: 1024px) {
    h1 {
        font-size: 30px;
    }

    p {
        font-size: 15px;
    }

    header {
        flex-wrap: wrap;
    }

    header .list {
        order: 1;
    }

    header .list button {
        font-size: 14px;
    }

    main {
        padding: 125px 20px 100px;
    }
}


@media (max-width: 934px) {
    main {
        padding: 200px 20px 100px;
    }
}

@media (max-width: 425px) {
    h1 {
        font-size: 25px;
    }

    p {
        font-size: 12px;
    }

    header {
        flex-wrap: wrap;
    }

    header .logo {
        width: 45%;
    }

    header .logo img {
        width: 100%;
    }

    header .list {
        display: none;
    }

    header label {
        padding: 5px;
        cursor: pointer;
        border-radius: 4px;
        display: inline-block;
        flex-shrink: 1;
        order: 1;
    }

    header label>img {
        width: 38px;
    }

    #menu:checked~label~.list {
        display: flex;
    }

    #menu:checked~.list {
        justify-content: space-between;
    }

    #menu:checked~.list>a {
        text-align: center;
        width: 50%;
    }

    header .end_block .phone {
        font-size: 12px;
    }

    #menu:checked~.list button {
        font-size: 13px;
    }

    main {
        padding: 125px 20px 100px;
    }

    body:has(header #menu:checked) main {
        padding: 300px 20px 125px;

    }
}