* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

header {
    position: relative;
    background-color: #29a6dc;
    height: 100vh;
    overflow: hidden;
    max-width: 1920px;
    margin: 0 auto;
}

header > * {
    position: absolute;
}

header img {
    position: absolute;
    height: 50%;
    bottom: 0;
    right: 0;
}

header div.welcome {
    z-index: 1;
    top: 7%;
    left: 5%;
    right: 5%;
    font-family: "Saira Condensed", sans-serif;
    color: white;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

header h1 {
    margin-top: 29px;
    font-size: 18px;
}

header h2 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: normal;
}

header button {
    font-family: "Saira", sans-serif;
    font-weight: 300;
    line-height: 32px;
    padding: 0 20px;
    text-transform: uppercase;
    color: white;
    background-color: transparent;
    font-size: 12px;
    border: 2px solid white;
}

@media (orientation: landscape) {
    header img {
        height: 80%;
        bottom: 0;
        right: -5%;
    }

    header div.welcome {
        top: 20%;
        left: 3%;
        right: 44%;
    }

    header button {
        margin-top: 40px;
    }
}

@media (orientation: portrait) and (min-width: 320px) {
    header img {
        right: -80px;
        height: 60%;
    }
}

@media (orientation: portrait) and (min-width: 360px) {
    header div.welcome {
        margin-top: 20px;
    }

    header h1 {
        font-size: 22px
    }

    header h2 {
        font-size: 19px;
    }

    header button {
        margin-top: 40px;
        line-height: 45px;
        font-size: 15px;
    }

    header img {
        height: 50%;
        right: -20%;
    }
}

@media (orientation: landscape) and (min-width: 640px) {
    header h1 {
        font-size: 23px;
    }

    header h2 {
        font-size: 20px;
    }

    header button {
        font-size: 16px;
        line-height: 40px;
    }
}


@media (orientation: landscape) and (min-width: 768px) {
    header div.welcome {
        margin-top: 20px;
    }

    header div p {
        margin-bottom: 20px;
        font-size: 50px;
    }

    header h1 {
        font-size: 25px;
    }

    header h2 {
        font-size: 25px;
    }

    header button {
        margin-top: 20px;
        line-height: 65px;
        font-size: 20px;
    }

    header img {
        height: 95%;
        right: 0;
    }
}


@media (orientation: portrait) and (min-width: 768px) {
    header div.welcome {
        margin-top: 20px;
    }

    header div p {
        margin-bottom: 50px;
        font-size: 80px;
    }

    header h1 {
        font-size: 32px;
    }

    header h2 {
        font-size: 32px;
    }

    header button {
        margin-top: 60px;
        line-height: 75px;
        font-size: 25px;
    }

    header img {
        right: 0;
        height: 50%;
    }
}


@media (orientation: landscape) and (min-width: 1024px) {
    header img {
        height: 95%;
        right: -250px;
    }

    header div.welcome {
        top: 170px;
        left: 1%;
    }

    header div p {
        margin: 45px;
        font-size: 70px;
    }

    header h1 {
        font-size: 30px;
    }

    header h2 {
        font-size: 30px;
    }

    header button {
        cursor: pointer;
        transition: .3s;
        font-size: 30px;
        margin: 70px;
        line-height: 80px;
    }

    header button:hover {
        background-color: white;
        color: #111;
    }

}


@media (min-width: 1024px) and (orientation: portrait) {
    header button {
        cursor: pointer;
        transition: .3s;
    }

    header button:hover {
        background-color: white;
        color: #111;
    }

    header img {
        height: 60%;
        right: -70px
    }

}

@media (orientation: landscape) and (min-width: 1280px) {
    header div.welcome {
        text-align: left;
        left: 3%;
    }

    header div p {
        margin-left: 0;
        padding-top: 80px;
    }

    header h1 {
        font-size: 37px;
    }

    header h2 {
        font-size: 37px;
    }

    header button {
        margin-left: 0;
        border: 1px solid white;
    }

    header img {
        height: 97%;
        right: -250px;
    }
}


@media (orientation: landscape) and (min-width: 1600px) {
    header div.welcome {
        left: 8%;
    }

    header div p {
        font-size: 120px;
    }

    header h1 {
        margin-top: 40px;
        font-size: 60px;
    }

    header h2 {
        font-size: 60px;
    }

    header button {
        line-height: 90px;
    }

    header img {
        right: -8%;
        height: 90%;
    }
}


/* Sekcja 1 nasze cechy */

.features {
    max-width: 1600px;
    margin: 50px auto 0;
    padding: 5%;
    text-align: center;
}

.features h1 {
    font-family: 'Saira Condensed', sans-serif;
    font-size: 26px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.features h2 {
    font-family: 'Saira Condensed', sans-serif;
    font-size: 22px;
    text-transform: uppercase;
}

.features p {
    font-family: 'Saira', sans-serif;
    font-size: 12px;
    font-weight: 300;
    margin: 20px 0;

}



.features img {
    width: 100%;
    margin: 5px 0;
    max-width: 375px;
}

@media (min-width: 360px) {
    .features h1 {
        font-size: 28px;
    }

    .features h2 {
        font-size: 24px;
    }

    .features p {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .features h1 {
        font-size: 36px;
    }

    .features h2 {
        font-size: 28px;
    }

    .features p {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    .features {
        margin-top: 50px;
        padding: 5% 2%;
        text-align: center;
    }

    .feature {
        float: left;
        width: 33%;
        padding: 20px;
    }

    .features h1 {
        font-size: 36px;
    }

    .features h2 {
        font-size: 18px;
    }

    .features p {
        font-size: 16px;
        line-height: 120%;
    }
}

@media (min-width: 1366px) {
    .features h1 {
        font-size: 50px;
    }

    .features h2 {
        font-size: 22px
    }

    .features p {
        font-size: 22px;
        line-height: 140%;
    }
}

@media (min-width: 1600px) {
    .feature {
        padding: 20px 40px;
    }

    .features h1 {
        font-size: 60px
    }

    features h2 {
        font-size: 36px
    }

    features p {
        font-size: 21px;
        line-height: 140%;
    }
}

.portfolio {
    background-color: black;
    padding: 10px 0 30px;
}

.portfolio h1 {
    font-size: 28px;
    font-family: 'Saira Condensed', sans-serif;
    text-transform: uppercase;
    color: white;
    text-align: center;
    padding: 10px 20px;
    margin-bottom: 15px;
}

.portfolio .web img {
    width: 100%;
}

.portfolio .about {
    color: white;
    font-family: 'Saira', sans-serif;
    font-weight: normal;
    padding: 10px 20px 15px 0px;
    text-align: left;
}

.portfolio .about h2 {
    font-size: 18px;
    border-bottom: 2px solid white;
    margin-bottom: 12px;
    padding-bottom: 6px;
    text-indent: 20px;
}

.portfolio .about p {
    font-size: 12px;
    padding-left: 20px;
}

.portfolio .project {
    max-width: 1400px;
    margin: 0 auto 20px;
}

.portfolio .project:nth-of-type(odd) {
    background-color: orangered;
}

.portfolio .project:nth-of-type(even) {
    background-color: blue;
}

@media (min-width: 375px) and (orientation: portrait) {
    .portfolio .about h2 {
        font-size: 25px;
    }

    .portfolio .about p {
        font-size: 20px;
    }
}

@media (min-width: 667px) and (orientation: landscape) {
    .portfolio .about h2 {
        font-size: 28px;
    }

    .portfolio .about p {
        font-size: 15px;
    }
}

@media (min-width: 736px) and (orientation: landscape) {
    .portfolio .about h2 {
        font-size: 30px
    }

    .portfolio .about p {
        font-size: 18px;
    }
}

@media (min-width: 768px) and (orientation: landscape) {
    .portfolio h1 {
        font-size: 36px;
    }

    .portfolio .about h2 {
        font-size: 33px;
        text-indent: 40px;
    }

    .portfolio .about p {
        font-size: 18px;
        padding-left: 40px;
    }

    .portfolio .project {
        margin-bottom: 40px;
    }
}

@media (min-width: 768px) and (orientation: portrait) {
    .portfolio h1 {
        font-size: 36px;
    }

    .portfolio .about h2 {
        font-size: 33px;
        text-indent: 40px;
    }

    .portfolio .about p {
        font-size: 28px;
        padding-left: 40px;
    }

    .portfolio .project {
        margin-bottom: 40px;
    }
}


@media (min-width: 1024px) and (orientation: portrait) {
    .portfolio .about h2 {
        padding-top: 20px;
        font-size: 35px;
    }

    .portfolio .about p {
        padding-top: 20px;
        font-size: 30px;
    }
}

@media (min-width: 1024px) and (orientation: landscape) {
    .portfolio .about p {
        font-size: 25px;
    }
}

@media (min-width: 1366px) {
    .portfolio .about p {
        font-size: 30px;
    }
}

@media (orientation: landscape) {

    .web,
    .about {
        width: 50%;
        float: left;
    }

    .web img {
        display: block;
    }

    .portfolio .project:nth-of-type(even) .web {
        float: right;
    }

    .portfolio .project:nth-of-type(even) .about {
        padding-right: 0;
    }

    .portfolio .project:nth-of-type(even) .about h2 {
        text-indent: 0;
        margin-left: 40px;
    }

    .portfolio .project:nth-of-type(even) .about p {
        padding: 0 20px 0 40px
    }

}

@media (orientation: landscape) and (min-width: 1400px) {
    .portfolio h1 {
        font-size: 60px;
        padding: 30px;
    }

    .portfolio .about h2 {
        padding-top: 50px;
        margin-bottom: 30px;
    }

    .portfolio .about p {
        font-size: 18px;
        line-height: 2;
    }

    .portfolio .project {
        margin-bottom: 40px;
    }
}


/* sekcja slogan */
.slogan {
    text-align: center;
    background-image: url(../images/motto.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white
}

.slogan h1 {
    font-family: 'Saira Condensed', sans-serif;
    font-size: 26px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.slogan p {
    font-family: 'Saira', sans-serif;
    font-size: 18px;
}

.slogan p.author {
    margin-top: 20px;
    font-size: 11px;
}

.slogan .bg {
    background-color: rgba(0, 63, 114, 0.5);
    padding: 30px 10px;
}

@media (orientation: portrait) {
    .slogan p {
        padding: 20px 20px 0 20px;
        ;
    }
}

@media (orientation: landscape) {
    .slogan p {
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 768px) {
    .slogan .bg {
        padding: 50px 10px;
        background-color: rgba(0, 63, 114, 0.5);
    }

    .slogan h1 {
        font-size: 48px;
        margin-bottom: 35px;
    }

    .slogan p {
        font-size: 26px;
        width: 60%;
        margin: 0 auto;
    }

    .slogan p.author {
        margin-top: 40px;
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    .slogan .bg {
        padding: 80px 10px;
    }

    .slogan h1 {
        font-size: 60px;
        margin-bottom: 55px;
    }

    .slogan p {
        font-size: 40px;
        width: 50%;
    }

    .slogan p.author {
        margin-top: 40px;
        font-size: 26px;
    }
}

/* sekcja hobby */

.hobby {
    max-width: 1920px;
    margin: 0 auto;
}

.hobby .item {
    height: 25vh;
    background-position: center;
    background-repeat: no-repeat;
}

.hobby .item:nth-of-type(1) {
    background-image: url(../images/hobby1.jpg);
}

.hobby .item:nth-of-type(2) {
    background-image: url(../images/hobby2.jpg);
}

.hobby .item:nth-of-type(3) {
    background-image: url(../images/hobby3.jpg);
}

.hobby .item:nth-of-type(4) {
    background-image: url(../images/hobby4.jpg);
}


.hobby h1 {
    font-family: 'Saira Condensed', sans-serif;
    padding: 20px 12px;
    text-align: center;
    font-size: 36px;
    text-transform: uppercase;
}

.hobby .item p {
    font-family: 'Saira', sans-serif;
    color: white;
    text-align: center;
    /*    line-height: 25vh;*/
    text-shadow: 0 0 4px black;
    background-color: rgba(0, 0, 0, .5);
    font-size: 20px;
    padding: 5px 0;
}

@media (min-width: 320px) {
    .hobby h1 {
        font-size: 20px
    }
}

@media (min-width: 533px) {
    .hobby .item {
        float: left;
        width: 50%;
        height: 40vh;
    }

    .hobby .item p {
        font-size: 15px;
    }
}

@media (min-width: 768px) and (orientation: landscape) {
    .hobby h1 {
        font-size: 20px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .hobby .item p {
        font-size: 15px;
        padding: 15px 0;
        line-height: 2vh
    }
}

@media (min-width: 768px) and (orientation: portrait) {
    .hobby h1 {
        font-size: 35px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .hobby .item p {
        font-size: 30px;
        padding: 15px 0;
        line-height: 2vh
    }
}

@media (min-width: 1024px) and (orientation: landscape) {
    .hobby h1 {
        font-size: 35px;
    }

    .hobby .item p {
        padding: 0;
        line-height: 25vh;
        opacity: 0;
        transition: 1s;
        cursor: default;
        font-size: 35px;
    }

    .hobby .item:hover p {
        opacity: 1;
    }

    .hobby .item {
        background-size: 100%;
        height: 25vh;
        transition: 1s;
    }

    .hobby .item:hover {
        background-size: 130%;
    }
}

@media (min-width: 1024px) and (orientation: portrait) {
    .hobby h1 {
        font-size: 35px;
    }

    .hobby .item p {
        padding: 0;
        line-height: 25vh;
        opacity: 0;
        transition: 1s;
        cursor: default;
        font-size: 35px;
    }
}

.hobby .item:hover p {
    opacity: 1;
}

.hobby .item {
    background-size: 100%;
    height: 25vh;
    transition: 1s;
}

.hobby .item:hover {
    background-size: 130%;
}
}

@media (min-width: 1600px) {
    .hobby h1 {
        font-size: 60px;
        margin-top: 50px;
        margin-bottom: 45px;
    }

    .hobby .item p {
        font-size: 40px;
    }
}

/* sekcja contact */

.contact {
    background-color: #000;
    padding: 30px 20px;
}

.contact h1 {
    font-family: 'Saira Condensed', sans-serif;
    font-size: 26px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.contact .wrap {
    padding-top: 20px;
    max-width: 1024px;
    margin: 0 auto;
}

.contact input,
.contact button,
.contact textarea {
    width: 100%;
    margin-bottom: 25px;
    font-family: 'Saira', sans-serif;
    font-size: 12px;
    padding: 5px;
}

.contact input {
    height: 36px;
}

.contact textarea {
    height: 120px;
    ;
}

.contact button {
    font-size: 14px;
    line-height: 40px;
    background-color: black;
    color: white;
    border: 2px solid white;
}

.contact .socials {
    padding-top: 30px;
    font-size: 0;
}

.contact .social {
    padding: 10px 0;
    color: white;
    font-family: 'Saira Condensed', sans-serif;
}

.contact .socials img {
    float: left;
}

.contact .social span {
    line-height: 72px;
    padding-left: 20px;
    float: left;
    font-size: 16px;
}

@media (min-width: 533px) {
    .contact .social {
        display: inline-block;
        width: 50%;
    }

    .contact button {
        font-size: 30px;
    }

    .contact .social span {
        font-size: 25px;
    }

    .contact input {
        font-size: 25px;
    }

    .contact textarea {
        font-size: 25px;
    }
}

@media (min-width: 1024px) and (orientation: landscape) {
    .contact h1 {
        font-size: 60px;
        padding: 30px 0;
    }

    .wrap form {
        margin-top: 10px
    }

    .contact .social span {
        font-size: 30px;
    }

    .contact form,
    .contact .socials {
        float: left;
        width: 50%;
        padding: 0 20px;
    }

    .contact .social {
        display: block;
        width: 80%;
        margin: 0 0 0 100px;
    }

    .contact input,
    .contact button,
    .contact textarea {
        margin-bottom: 35px;
        margin-left: 30px;
    }


    .contact input {
        height: 40px;
        font-size: 30px;
    }

    .contact textarea {
        height: 180px;
        font-size: 30px;
    }

    .contact button {
        font-size: 30px;
        line-height: 50px;
        transition: .3s;
        cursor: pointer;
    }

    .contact button:hover {
        color: black;
        background-color: white;
    }

}

@media (min-width: 1024px) and (orientation: portrait) {
    .contact h1 {
        font-size: 60px;
        padding: 30px 0;
    }

    .contact .social span {
        font-size: 30px;
    }

    .contact form,
    .contact .socials {
        float: left;
        width: 50%;
        padding: 0 20px;
    }

    .contact .social {
        display: block;
        width: 80%;
        margin: 0 auto;
    }

    .contact input,
    .contact button,
    .contact textarea {
        margin-top: 10px;
        margin-bottom: 45px;
    }


    .contact input {
        height: 60px;
        font-size: 30px;
    }

    .contact textarea {
        height: 220px;
        font-size: 30px;
    }

    .contact button {
        margin-left: 210px;
        font-size: 30px;
        line-height: 70px;
        transition: .3s;
        cursor: pointer;
    }

    .contact button:hover {
        color: black;
        background-color: white;
    }
}


footer {
    background-color: #29a6dc;
    color: white;
    font-family: 'Saira', sans-serif;
    font-size: 20px;
    text-align: center;
    line-height: 80px;
}

@media (min-width: 533px) {
    footer {
        font-size: 30px;
    }
}

@media (min-width: 1024px) {
    footer {
        font-size: 30px;
    }
}
