/* CSS */
/* FONTY Z GOOGLE */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
/* 
 font-family: "Roboto", sans-serif;
 font-family: "Bitcount Prop Double Ink", system-ui;
 */

/* ZMIENNE */
:root {
    --kolor-bg: #F3F3F3;
    --kolor-jasny: #eee;
    --kolor-sredni: #999;
    --kolor-ciemny: #111;
    --kolor-zielony: #B3E726;
}


/* SELEKTORY GLOBALNE */
/* * {
    transition: 2s;
    box-sizing: border-box;
} */


html {
    scroll-behavior: smooth;
    font-size: 10px;
}

body {
    font-size: 1.6rem;
    font-family: "Space Mono", sans-serif;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Space Mono", system-ui;
}

h1 {
    font-size: clamp(13rem, 10vw, 20rem);
    position: relative;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 120%;
    padding-right: 12rem;

}

h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    width: 100%;
    padding: 3rem 0;

    background-color: var(--kolor-zielony);

    font-size: clamp(3rem, 8vw, 8.5rem);
    text-transform: uppercase;
    font-weight: bold;
}

h3 {
    font-size: 2.4rem;
}

p {
    font-size: 2.4rem;
    font-family: "Space Mono", sans-serif;
    line-height: normal;
    padding: 4rem;
}

.zawartosc {
    max-width: 1400px;
    width: 100%;
    /*padding: 2rem;*/

    display: flex;
    flex-wrap: wrap;
    /* pamętać zeby dopisać flex z flex-basis: flex 1 1 ->fb 300px */
}


/* NAWIGACJA MOBILE */

.burger {
    background-color: var(--kolor-ciemny);
    color: var(--kolor-jasny);

    position: fixed;
    right: 2rem;
    top: 2rem;

    font-size: 5rem;
    padding: 0 1rem 1rem;

    cursor: pointer;

    display: none;
}

.dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: white;
    display: none;

    padding: 4rem;
    border: 1px solid black;
}

.nakladka {
    position: fixed;
    top: 0;
    right: 0;

    width: 0;
    height: 100vh;
    overflow: hidden;

    background: var(--kolor-zielony);
    z-index: 5000;

    display: flex;
    justify-content: center;
    align-items: center;
}

.nakladka ol {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3rem;
}

.zamknijX {
    position: absolute;
    top: 2rem;
    right: 2rem;

    background-color: var(--kolor-jasny);
    font-size: 4rem;

    padding: .1rem 1rem 0;

    cursor: pointer;
}

.zamknijX:hover {
    background-color: var(--kolor-ciemny);
    color: var(--kolor-jasny);
}

/* NAWIGACJA DESTKOP */
.nav {
    width: auto;
    padding: 2rem;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;

    background: rgba(255, 255, 255, 0.60);

    text-align: right;
}

.nav:hover {
    background-color: var(--kolor-zielony);
}

.nav a {
    color: var(--black);
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 700;
}

nav a:hover {
    background-color: white;
    padding: 6px;
    transition: 1s;
}

nav .zawartosc {}

nav ol {}

nav ol li {}

nav ol li a {}

nav ol li a:hover {}

/* WSZYSTKIE SEKCJE */
section {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;

    overflow: hidden;
}

section .zawartosc {
    padding: 2rem;
}

/* POSZCZEGÓLNE SEKCJE */
.hero-bg {
    background:
        url("../img/Noise & Texture.png"),
        var(--kolor-jasny);

    background-size: cover;
    background-position: center;
}

#pierwsza {
    min-height: 100vh;
    background: transparent;
}

#pierwsza .zawartosc {
    max-width: 1400px;
    width: 100%;
    padding: 0 14vw;

    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
}

#pierwsza article {
    background-color: var(--kolor-dopelniajacy);
    flex: 1;
}

#pierwsza article:first-child {
    grid-column: 1 / 3;
    position: relative;

    padding-top: 8rem;
    padding-bottom: 4rem;
}

#pierwsza article:nth-child(2) {
    grid-column: 1 / 3;

    display: grid;
    grid-template-columns: 2fr 1fr;

    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

#pierwsza article:nth-child(2) p {
    margin: 0;
    padding: 2rem 3rem;

    font-size: clamp(2.4rem, 3vw, 4rem);
    line-height: 1.5;

    border-right: 1px solid #111;
    border-right: 1px solid #111;
    background: transparent;
}

#pierwsza article:nth-child(2) p br {
    display: block;
}

.hero-text {
    margin: 0;
    padding: 0 !important;
}

.hero-text span {
    display: block;
    padding: 1.2rem 3rem;
    border-bottom: 1px solid #111;
}

.hero-text span:last-child {
    border-bottom: none;
}

.arrow {
    position: absolute;
    right: 0;
    bottom: 4rem;

    width: clamp(8rem, 12vw, 19.4rem);
    height: clamp(8rem, 12vw, 19.4rem);
}


#pierwsza article p {
    background-color: #e85d8e;
    font-size: 4rem;
}

.nakladka a {
    color: #111;
    text-decoration: none;
    font-size: clamp(3rem, 9vw, 5rem);
    font-weight: 700;
}

#druga {}

#druga.zawartosc {
    justify-content: center;
    align-items: stretch;
}

.sekcja-druga {
    font-size: clamp(3rem, 3vw, 4rem);
}

#druga p {
    padding: 5rem;
    max-width: 65%;
    text-transform: lowercase;
}

/* TRZECIA INFOGRAFIKA */
#trzecia {
    background-color: #F3F3F3;
}

#trzecia .zawartosc {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 200px 0px;
}

.cechy-center {
    background: url("../img/lines.png") no-repeat center;
    background-size: contain;

    width: 621px;
    height: 860px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: left;
    position: relative;
}

.cechy-center h3 {
    font-size: 8rem;
    font-weight: bold;
    text-align: center;
}

.subtitle-desktop {
    text-align: center;
}

.subtitle-mobile {
    display: none;
}

.box {
    border: 1px solid black;

    width: 250px;
    height: 280px;

    padding: 2rem 2.5rem;
    font-size: 1.5rem;
    position: absolute;
    text-align: left;
}

.box-1,
.box-2,
.box-3 {
    left: 0;
}

.box-1::before,
.box-2::before,
.box-3::before {
    content: "";
    position: absolute;
    width: 100px;
    aspect-ratio: 1/1;
    background-size: cover;
    left: -100px;
    top: 2rem;
}

.box-1::before {
    background-image: url("../img/image-wid.sia..png");
}

.box-2::before {
    background-image: url("../img/image-moc.typ..png");
}

.box-3::before {
    background-image: url("../img/image-wys.kon..png");
}

.box-4,
.box-5,
.box-6 {
    right: 0;
}

.box-4::after,
.box-5::after,
.box-6::after {
    content: "";
    position: absolute;
    width: 100px;
    aspect-ratio: 1/1;
    background-size: cover;
    right: -100px;
    top: 2rem;
}

.box-4::after {
    background-image: url("../img/image-sur.est..png");
}

.box-5::after {
    background-image: url("../img/image-ele.ui.png");
}

.box-6::after {
    background-image: url("../img/image-fun.p.for..png");
}

.green-box {
    background-color: greenyellow;
    bottom: -37.5%;
}

/* rozmieszczenie boxów */
.box-1 {
    top: -15%;
    left: -29%;
}

.box-2 {
    top: 35%;
    left: -48.5%;
}

.box-3 {
    bottom: -15%;
    left: -29%;
}

.box-4 {
    top: -15%;
    right: -29%;
}

.box-5 {
    top: 35%;
    right: -48.5%;
}

.box-6 {
    bottom: -15%;
    right: -29%;
}

.box h4 {
    color: black;
    font-size: 2.2rem;
    font-weight: bold;

    margin-bottom: 2.125rem;
}

.box p {
    font-size: 1.5rem;
    padding: 0;
}


/* CZWARTA */

#czwarta {
    padding-top: 20rem;
    background-color: var(--kolor-bg);
}

.card h3 {
    min-height: 55px;
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 3.5rem);
    font-weight: bold;

    text-transform: uppercase;
}

.card p {
    font-size: 1.5rem;
}

.card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    flex-wrap: wrap;
}

.card article {
    border: 1px solid #000;
    padding: 12px;
    background: #f3f3f3;
}

.card img {
    padding: 1rem;
}

#piata {}

.inspiracje-row {
    min-height: 170px;
    padding: 35px 14vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    border-bottom: 1px solid #bbb;
    background-color: var(--kolor-bg);
}

.inspiracje-right {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 100px;
}

@media (max-width: 600px) {

    .inspiracje-right p {
        opacity: 0;
    }

    .inspiracje-right .visit-btn {
        opacity: 1;
    }

}

.visit-btn {
    position: absolute;
    right: 0;

    opacity: 0;
    pointer-events: none;

    padding: 2rem 5rem;

    border: 4px solid var(--kolor-zielony);

    color: black;
    text-decoration: none;
    font-size: 2.4rem;
    font-weight: 700;

    transition: all .3s;
}

.inspiracje-row:hover {
    background-color: white;
}

.inspiracje-row h3 {
    font-size: clamp(1.8rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 130%;
}

.inspiracje-row p {
    font-size: 1.5rem;
    transition: .3s;
}

.inspiracje-row:hover .inspiracje-right p {
    opacity: 0;
}

.inspiracje-row:hover .visit-btn {
    opacity: 1;
    pointer-events: auto;
}

.visit-btn:hover {
    background-color: var(--kolor-zielony);
}

/*SZOSTA */

#motywy {
    background-image: url('../img/Noise\ &\ Texture.png');
}

#motywy-container {
    min-height: 150vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.5fr 1.5fr 1.5fr;
    flex: 1;

    border-left: 1px solid #999;
    border-top: 1px solid #999;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
}

.motywy-item {
    display: flex;
    flex-direction: row;
    border-left: 1px solid #999;
    border-top: 1px solid #999;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
}

.motywy-item-komponent {
    flex: 1;
    position: relative;
}

.motywy-item p {
    padding: 0;
}

.border-left {
    border-left: 1px solid #999;
}


.text-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0px 6px;
}

.text-vertical-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 10px 0px;
}

.text-vertical-bottom p {
    margin: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.motywy-item-komponent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.motyw-imperfekcja {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.imperfekcja-title {
    grid-column: 1 / 3;
    border-bottom: 1px solid #999;
}

.imperfekcja-title h5 {
    margin: 0;
    font-size: clamp(5rem, 7vw, 10rem);
    font-weight: 400;
    line-height: 0.9;
    text-align: center;
    overflow-wrap: break-word;
    text-align: left;
}

.imperfekcja-text {
    position: relative;
    border-right: 1px solid #999;
}

.brak-dekoracji {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

.siatka {
    position: absolute;
    bottom: 0;
    right: 0;

    margin: 0;

    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.imperfekcja-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blad-komponent {
    width: 50%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blad {
    margin-top: auto;
}


.text-kontrast {
    font-size: clamp(2rem, 7vw, 7rem);
    overflow-wrap: break-word;
}

.border-left {
    grid-column: 2;
    grid-row: 3 / 2;
}


.motyw-system {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
}

.system {
    font-size: clamp(2rem, 7vw, 5rem);
    overflow-wrap: break-word;
}

/*FOOTER*/
footer h2 {
    background-color: white;
    font-size: clamp(5rem, 15vw, 14rem);
    text-align: center;
    margin: 6rem 0rem;
}

footer p {
    font-size: 1.5rem;
    padding: 1rem 1.25rem;

}


/* Tablet i inne */
@media (max-width: 1200px) {

    .cechy-center {
        transform: scale(0.85);
        transform-origin: center;
    }

    .imperfekcja-title h5 {
        font-size: 5.5rem;
    }

}

/* @media (max-width: 1000px) {

    .cechy-center {
        transform: scale(0.70);
        transform-origin: center;
    }

} */

@media (max-width: 900px) {
    .imperfekcja-title h5 {
        font-size: 4rem;
    }
}

/* Smartfon <600px */
@media (max-width: 600px) {

    /*SEKCJA 1*/


    #pierwsza {
        overflow: hidden;
    }

    #pierwsza .zawartosc {
        padding: 0 2rem;
        width: 100%;
        overflow: hidden;
    }

    #pierwsza article:first-child {
        padding-top: 12rem;
        padding-bottom: 3rem;
        overflow: hidden;
    }

    h1 {
        font-size: clamp(5rem, 28vw, 12rem);
        line-height: 1.15;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .arrow {
        width: 12rem;
        height: 12rem;
        right: 1rem;
    }

    #pierwsza article:nth-child(2) {
        display: block;
        border-top: 1px solid #111;
        border-bottom: 1px solid #111;
    }

    #pierwsza article:nth-child(2) p {
        padding: 0;
        font-size: clamp(2.4rem, 8vw, 4rem);
        border-right: none;
    }

    #pierwsza article:nth-child(2) p br {
        display: block;
    }

    #pierwsza article:nth-child(2) p {
        line-height: 1.8;
    }

    .nav {
        display: none;
    }

    .burger {
        display: block;
        z-index: 4000;
        background-color: var(--kolor-zielony);
        color: #111;
    }

    .nakladka {
        visibility: visible;
    }

    section {
        padding: 0rem 0;
        /* zerujemy paddingi po bokach, zeby zawartosci dochodzily do krawedzi ekranu smartfonu */
    }

    /*SEKCJA 2 - WHAT IS BRUTALIZM*/
    .sekcja-druga {
        font-size: 3rem;
        padding: 1.25rem;
    }

    #druga p {
        padding: 1.75rem;
        max-width: 80%;
    }

    /*SEKCJA 3 - CECHY*/
    #trzecia {}

    #trzecia .zawartosc {
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;

        margin: 0;
        padding: 0px 0 70px 40px;
    }

    .cechy-center {
        background: none;
        width: max-content;
        min-width: max-content;
        height: auto;
        transform: none;

        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 35px;

        position: relative;
        padding-top: 120px;
    }

    .cechy-center h3 {
        display: none;
    }

    .subtitle-mobile {
        display: block;
        text-align: center;
    }

    .subtitle-desktop {
        display: none;
    }

    .box,
    .green-box {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;

        width: 330px;
        height: 430px;
        flex: 0 0 330px;
    }

    .box h4 {
        font-size: 2.6rem;
        line-height: 1.3;
        margin-bottom: 20px;
        text-align: left;
    }

    .box p {
        font-size: 2.5rem;
        line-height: 1.55;
        text-transform: lowercase;
        padding: 0;
    }

    .green-box {
        order: 4;
        height: 430px;
        padding: 25px;
        background-color: greenyellow;
    }

    .box-4 {
        order: 5;
    }

    .box-5 {
        order: 6;
    }

    .box-6 {
        order: 7;
    }

    .box::before,
    .box::after {
        width: 110px;
        height: 110px;
        top: -110px;
        left: 0;
        z-index: 10;
    }


    /*SEKCJA 4 - TYPY*/
    .card {
        padding: 25px 14px;
        grid-template-columns: 1fr;
        gap: 18px;
        justify-content: center;
    }

    .card h3 {
        font-size: 4rem;
    }


    /*SEKCJA 6 - MOTYWY*/
    #motywy-container {
        min-height: 250vh;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows:
            1fr 1fr 2fr 2fr 3fr 3fr;
        flex: 1;
        width: 100%;
    }

    .motywy-item p {
        font-size: 1.75rem;
    }

    .imperfekcja-title h5 {
        font-size: 6rem;
        text-align: center;
    }

    p.text-kontrast {
        font-size: 5rem;
    }

    p.system {
        font-size: 5rem;
    }

    .footer h2 {
        font-size: 6rem;
    }

    /* tu tylko konieczne selektory i ich właściwości */
}

@media (min-width: 601px) {
    .nakladka {
        visibility: hidden;
    }
}

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

.text-align-right {
    text-align: right;
}

.border-bottom {
    border-bottom: 1px solid #999;
}

.border-right {
    border-right: 1px solid #999;
}

.max-size-image {
    width: 100%;
    height: 100%;
}

.display-flex {
    display: flex;
}

.margin-auto {
    margin: 0 auto;
}

/*KONIEC STYLÓW SMARTFON <600px */