header {
    margin-top: 10px;
}

header, main, footer {
    margin-left: auto;
    margin-right: auto;
}

.header-picture {
    background-image: url(/public/platforma/media/header.png);
    background-size: cover;
    padding: 10px;
    display: flex;
    align-items: flex-start;
}

.header-main {
    background-color: var(--colorMainDark);
    padding: 10px 20px;
    position: relative;
    color: var(--colorTextOnMainColor);
}

.header-main::before {
    content: "";
    background-image: url(/public/platforma/media/bg.png);
    background-size: cover;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.15;
}

.header-main__left, .header-main__right {
    position: relative;
    z-index: 2;
}

.header-nav {
    background-color: var(--bgColorPanel);
    padding: 10px 20px;
}

.header-nav a {
    display: block;
    color: var(--colorTextMain);
    cursor: pointer;
    padding: 5px 0;
}

main {
    margin-top: 10px;
}

.footer-buttons {
    display: flex;
}

.footer-buttons a {
    display: block;
    background-color: var(--colorMainDark);
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

.footer-buttons a:not(:last-child) {
    margin-right: 10px;
}

@media screen and (max-width: 879px) {
    .desktop {
        display: none!important;
    }

    header, main, footer {
        width: calc(100vw - 20px);
    }

    .header-picture {
        width: calc(100vw - 20px);
        height: calc((100vw - 20px) / 1.77);
        margin-bottom: 10px;
        justify-content: flex-end;
    }

    .header-main {
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-main h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .header-nav {
        display: none;
    }

    footer {
        position: fixed;
        width: 100%;
        left: 0;
        bottom: 0;
        background-color: var(--bgColorMain);
        padding: 10px;
    }

    main {
        padding-bottom: 70px;
    }
}

@media screen and (min-width: 880px) {
    .mobile {
        display: none!important;
    }

    header, main {
        width: 860px;
    }

    header {
        display: flex;
        justify-content: space-between;
    }

    .header-picture {
        width: 580px;
        height: 330px;
        justify-content: flex-end;
    }

    .header-info {
        width: 260px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .header-main h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .header-nav a.active, .header-nav a:hover, .header-nav a:active {
        color: var(--colorMain);
    }

    main {
        padding-bottom: 20px;
    }
}

.header-button {
    background-color: rgba(255,255,255,0.5);
    width: 40px;
    height: 40px;
    border-radius: var(--borderRadius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-button:hover {
    background-color: rgba(255,255,255,1);
}

.header-button:not(:last-child) {
    margin-right: 10px;
}

.footer-button.active {
    font-family: "Montserrat Bold", sans-serif;
}

.footer-button:not(.active) {
    color: rgba(255,255,255,0.7);
}