html, body {
    margin: 0;
    padding: 0;
}

body {
    color: #1D1D1D;
    background-color: #FBFBFB;
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-size: 20px;
    margin-top: 48px;
    --prime-color: #1D1D1D;
    --main-image: url("/img/remco_bg.png");
}

h1,h2,h3,h4,h5,h6 {
    margin-top: 0;
}

h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 24px;
}
h2 {
    font-size: 24px;
    font-weight: bold;
}
h3 {
    font-size: 20px;
    font-weight: bold;
}
h4 {
    font-size: 20px;
    font-weight: 300;
}
h5 {
    font-size: 20px;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: #1D1D1D;
}

.only-sm {
    display: block;
}

.info-block {
    background-color: #1D1D1D;
    color: #FBFBFB;
    padding: 32px 20px;
}

.info-block p {
    margin: 0;
}

.info-block h1:last-child {
    margin-bottom: 0;
}

section.content {
    padding: 32px 24px;
}

.five-block > article {
    display: grid;
    grid-template-areas:
    "a a"
    "b c";
    grid-template-columns: 1fr 64px;
    grid-gap: 12px 24px;
    padding: 18px 24px;
    font-size: 16px;
}

.five-block > article:nth-child(even) {
    background: #1D1D1D;
    color: #FBFBFB;
}

.five-block > article > * {
    margin: 0;
    align-items:center;
}

.five-block > article > h3 {
    grid-area: a;
}

.five-block > article > p {
    grid-area: b;
    align-self: center;
}

.five-block > article > div {
    grid-area: c;
}

.button {
    background-color: #1D1D1D;
    display: inline-block;
    text-align: center;
    font-size: 20px;
    padding: 12px;
    color: #FBFBFB;
    box-sizing: border-box;
    cursor: pointer;
}

.expander {
    cursor: pointer;
}

.expandable .expander.plus {
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.expandable .expander.plus:after {
    content: "+";
    display: block;
    text-align: center;
    flex: 0 0 75px;
    height: 75px;
    font-size: 64px;
    font-weight: 100;
    background: #434343;
}

.expandable.open .expander.plus:after {
    content: "−";
    background: none;
}

.expandable:not(.open) .more {
    display: none;
}

.dark {
    background-color: #1D1D1D;
    color: #FBFBFB;
}

.dark a {
    color: #FBFBFB;
}

@keyframes appearOpacity {
    0% {
        opacity: 0.45;
    }
    100% {
        opacity: 1;
    }
}


.first-screen {
    width: 100%;
    height: calc(100vh - 48px);
    display: grid;
    grid-template: "pic nav" "pic ." "info info";
    grid-template-columns: 0 100%;
    /*grid-template: "nav" "." "info";*/
    grid-template-rows: auto 1fr auto;
    align-items: stretch;
    color: #FBFBFB;
    position: relative;
    overflow: hidden;
}

.first-screen::before {
    content: '';
    background: #000;
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.first-screen.lg {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.00) 100%)
}

.first-screen > picture{
    grid-area: pic;
    position: relative;
}

.first-screen > img, .first-screen > picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    animation: .7s ease-in 1 appearOpacity;
}

.first-screen .info-block {
    grid-area: info;
}

main.project .first-screen .info-block{
    background: var(--prime-color);
}

.first-screen a.back{
    color: #FBFBFB;
    padding: 12px;
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    margin-top: 12px
}

.breadcrumbs {
    line-height: 36px;
    color: #DDDDDD;
    margin: 30px 20px;
    font-size: 16px;
}

.breadcrumbs a {
    color: #DDDDDD;
    font-weight: 300;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs a::after {
    content: '›';
    line-height: 36px;
    display: inline-block;
    margin: 0 12px;
}

.logo-block {
    padding: 32px 20px;
}

.logo-block aside {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.logo-block img {
    flex: 0 1 auto;
}


.dark-list {
    padding: 40px 20px;
}

.dark-list ul {
    margin: 0;
}

.dark-list li {
    list-style: var(--point-img);
    margin-bottom: 20px;
    font-size: 16px;
}

.dark-list li:last-child {
    margin-bottom: 0;
}


.visual-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.visual-block > div {
    display: flex;
    padding: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    background: #FFFFFF;
}

.visual-block img {
    display: block;
    flex: 0 0 82px;
    width: 82px;
    height: 68px;
    margin-right: 24px;
    object-fit: contain;
}

body > header {
    height: 48px;
    padding: 4px 20px;
    background: rgba(251, 251, 251, 1);
    position: fixed;
    top: 0;
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 100;
}


body > header nav a {
    padding: 0 12px;
    display: inline-block;
    border-left: 1px solid #DDDDDD;
}

@media screen and (max-width: 440px) {

    html[lang="uk"] body > header nav a:nth-child(1) {
        display: none;
    }

    html[lang="uk"] body > header nav a:nth-child(2) {
        border-left: none;
    }

    html[lang="en"] body > header nav a:nth-child(2) {
        display: none;
    }

    html[lang="pl"] body > header nav a:nth-child(3) {
        display: none;
    }
}

body > header nav a:first-child {
    border-left: none;
}


body > header img {
    height: 26px;
    width: auto;
}



#footer-img {
    position: relative;
    text-align: center;
    padding-bottom: 5px;
}

#footer-img img {
    width: 90vw;
    height: auto;
}

#footer-img::before {
    content: "";
    display: block;
    height: 20px;
    width: 100%;
    background: linear-gradient(90deg, #93C01F 0%, #E84E1B 48.5%, #35A8E0 100%);
    position: absolute;
    z-index: -1;
    bottom: 0;
}

#footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px 0;
    position: relative;
    gap: 12px;
    font-size: 16px;
    line-height: 20px;
}

#footer p {
    margin: 0;
}

.copyright {
    text-align: center;
    padding: 8px 0 40px;
    font-size: 12px;
    line-height: 28px;
}

section.projects {
    padding: 32px 0;
}

section.projects article {
    background: var(--prime-color);
    color: #FBFBFB;
    margin-bottom: 16px;
}

section.projects article img {
    width: 100%;
}

section.projects article h3 {
    padding: 12px 0;
    margin: 0;
    text-align: center;
}

section.projects article p {
    margin: 0 0 24px 0;
    font-size: 16px;
}

section.projects article main {
    padding: 20px;
}

section.projects article a {
    display: block;
    padding: 12px;
    text-align: center;
    background: #FBFBFB;
    transition: box-shadow .5s ease-in;
}

section.projects article a:hover {
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.40) inset;
}


section.projects article a:active {
    background: #1D1D1D;
    color: #FBFBFB;
}

/* //////////////////// desktop ////////////////////////////// */



@media screen and (min-width: 1024px) {

    h1 {
        font-size: 48px;
        font-weight: bold;
        margin-bottom: 24px;
    }
    h2 {
        font-size: 40px;
        font-weight: bold;
    }
    h3 {
        font-size: 24px;
        font-weight: bold;
    }
    h4 {
        font-size: 24px;
        font-weight: 300;
    }

    body {
        margin-top: 76px;
    }

    .only-sm {
        display: none;
    }

    .info-block {
        padding: 40px;
    }

    .five-block {
        display: flex;
    }

    .five-block > article {
        flex: 1 1 300px;
        padding: 12px 24px;
        text-align: center;
        height: 254px;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: inherit;
    }

    .five-block > article h3 {
        flex: 1 0 auto;
    }

    .five-block > article > img {
        flex: 0 0;
    }

    section.content {
        padding: 80px 72px;
    }

    /* header */

    body > header {
        height: 76px;
        padding: 0 72px;
        font-size: 20px;
        line-height: 48px;
    }

    body > header nav a {
        padding: 12px;
        line-height: 24px;
    }


    /* Footer */


    #footer-img {
        padding-bottom: 29px;
    }

    #footer-img::before {
        height: 64px;
    }

    #footer {
        flex-direction: row;
        justify-content: center;
        padding: 60px 72px;
    }

    #footer p {
        min-height: 40px;
    }

    #footer > img {
        position: absolute;
        left: 72px;
        top: 72px;
    }

    .copyright {
        padding: 40px 0;
        font-size: 20px;
        line-height: 28px;
    }


    .first-screen {
        height: calc(100vh - 76px);
        flex-direction: row;
        align-items: flex-end;
        justify-content: left;
        padding: 40px 72px;
        box-sizing: border-box;
    }

    .first-screen > picture {
        position: static;
    }


    .first-screen .info-block {
        max-width: 640px;
        box-sizing: border-box;
        font-size: 24px;
    }

    .first-screen a.back{
        margin-top: 40px
    }

    .breadcrumbs {
        font-size: 24px;
    }
    
    .project .first-screen .info-block h1 {
        margin: 0;
    }

    .logo-block {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 80px 72px;
    }

    .logo-block img {
        margin: 28px 36px;
        width: auto;
    }

    .logo-block > div {
        flex: 0 1 740px;
    }


    .dark-list {
        padding: 40px 72px;
        display: flex;
        background-image: var(--dark-list-bg);
        background-repeat: no-repeat;
        background-position-x: -60px;
        background-position-y: 120px;
        background-size: 500px;
        flex-wrap: wrap;
        gap: 40px;
    }

    .dark-list > div {
        flex: 1 1 60%;
        /*display: flex;*/
        /*justify-content: center;*/
    }

    .dark-list > div:nth-child(odd) {
        flex: 0 1 33%;
    }

    .dark-list ul {
        margin-top: 12px;
        max-width: 660px;
    }


    .visual-block {
        flex-direction: row;
        gap: 40px 85px;
        flex-wrap: wrap;
        justify-content: stretch;
        background: var(--recycling) center center no-repeat;
        background-size: 168px 168px;
    }

    .visual-block > div {
        flex: 1 0 34%;
        padding:  24px 40px;
        justify-content: space-around;
    }

    .visual-block p {
        margin: 0;
        flex: 0 1 340px;
    }

    section.projects {
        padding: 80px 72px;
    }

    section.projects > div {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
    }

    section.projects > div > article {
        width: calc(50% - 12px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

}

@media screen and (min-width: 1024px) {

    .xs {
        display: none;
    }
}

@media screen and (max-width: 1023px) {

    .md {
        display: none;
    }
}

@media screen and (max-width: 1250px) {

    #footer{
        justify-content: right;
    }
}