:root {
    --green: #37BF83;
    --white: #FFFFFF;
    --light-gray: #161616;
    --gray: #121212;
    --black: #000000;
    --dark-green: #1B2B25;
    --silver: #F5F7FA;
    --yellow: #FDC200;
    --link-hover: #959595;

    --font-family-header: "Staatliches";
    --font-family-main: "Red Hat Display";
    --max-width: 1440px;
    --padding-x: 80px;
    --padding-x-tablet: 24px;
    --padding-x-mobile: 12px;
    --padding-y: 60px;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

header .btn__base {
    margin-left: 40px;
}

html {
    scroll-padding-top: 90px;
}

body {
    background: var(--gray);
    font-family: var(--font-family-main), sans-serif;
    color: var(--white);

    .container {
        max-width: var(--max-width);
        padding: var(--padding-y) var(--padding-x);
    }

    .container-fluid {
        padding: 0;
    }

    .section-header {
        max-width: var(--max-width);
        padding-right: var(--padding-x);
        padding-left: var(--padding-x);
        margin-left: auto;
        margin-right: auto;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h1 p,
    h2 p,
    h3 p,
    h4 p,
    h5 p {
        font-family: var(--font-family-header), sans-serif;
        margin-bottom: 0;
    }

    h1,
    h1 p {
        font-size: 64px;
        line-height: 75px;
    }

    h2,
    h2 p {
        font-size: 52px !important;
        line-height: 52px !important;
    }

    h3,
    h3 p {
        font-size: 32px !important;
        line-height: 40px !important;
    }

    h4,
    h4 p {
        font-size: 24px;
        line-height: 28px;
    }

    h5,
    h5 p {
        font-size: 18px !important;
        line-height: 20px !important;
    }

    p {
        font-size: 16px;
        line-height: 25px;
        margin: 0;
    }

    .lead-p p {
        font-size: 20px;
        line-height: 30px;
    }

    .text-1 {

        p,
        li {
            font-size: 14px;
            line-height: 20px;
        }
    }

    .text-2 {

        p,
        li {
            font-size: 12px;
            line-height: 15px;
        }
    }

    .text-3 {

        p,
        li {
            font-size: 8px;
            line-height: 12px;
        }
    }

    ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    a {
        color: var(--white);
        text-decoration: none;

        &:hover {
            color: var(--link-hover);
        }
    }

    .marker {
        color: var(--green);
    }

    .btn.btn__base {
        padding: 12px 40px;
        color: var(--white);
        font-size: 16px;
        font-weight: bold;
        line-height: 25px;
        border: unset;
        border-radius: 8px;
        background: linear-gradient(180deg, rgba(55, 191, 131, 1) 0%, rgba(41, 65, 56, 1) 100%);

        &:hover {
            box-shadow: inset 0 0 0 1px black, 0 4px 4px rgba(0, 0, 0, 0.25);
            transition: box-shadow 0.2s ease-in-out;
        }

        &.btn-2 {
            font-size: 12px;
            line-height: 20px;
        }
    }

    .swiper {
        .swiper-wrapper {
            height: unset;
        }

        .swiper-button-next,
        .swiper-button-prev {
            color: var(--white);

            &:after {
                font-size: 14px;
            }
        }
    }

    .swiper-pagination {
        .swiper-pagination-bullet {
            width: 15px;
            height: 15px;
            background: var(--white);
            opacity: 1;
            transition: all 0.3s linear;
            border-radius: 50%;

            &.swiper-pagination-bullet-active {
                width: 60px;
                background: var(--green);
                border-radius: 20px;
            }
        }
    }

    .form-container {
        min-width: 543px;
        background-color: rgb(255, 255, 255, 0.04);
        padding: 40px;
        border-radius: 8px;

        h3 {
            margin-bottom: 24px;
        }

        .form-wrapper {
            gap: 15px;
        }

        .form__group {
            gap: 24px;
        }

        .form-label {
            margin-bottom: 6px;
        }

        .form-control,
        .form-select {
            padding-top: 2px;
            padding-bottom: 2px;
        }

        input,
        option,
        textarea,
        select {
            color: rgb(255, 255, 255, 0.6);
            background-color: rgb(255, 255, 255, 0.04);
            border: 1px solid rgb(255, 255, 255, 0.2);
            border-radius: 4px;

            &::placeholder {
                color: rgb(255, 255, 255, 0.6);
                padding: 5px 0;
                font-size: 14px;
                line-height: 20px;
            }

            &:focus {
                box-shadow: 0 0 0 .15rem rgb(255, 255, 255, 0.2);
                border-color: var(--green);
                background-color: rgb(255, 255, 255, 0.04);
                color: rgb(255, 255, 255, 0.6);
            }
        }

        .form-check-input:checked {
            background-color: var(--green);
            border-color: var(--green);
        }

        .form-select {
            font-size: 14px;
        }

        textarea {
            min-height: 140px;
            resize: none;
        }

        select option {
            background-color: #242424;

            &:checked {
                background-color: var(--green);
                color: var(--white);
            }
        }

        label[for="consent"],
        label[for="contact-consent"] {
            display: inline;
        }
    }

    .ellipse {
        position: absolute;
        top: -265px;
        right: -450px;
        z-index: -1;
    }

    .shadow {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: #37BF83;
        background: linear-gradient(207deg, rgba(55, 191, 131, 0.5) 0%, rgba(27, 43, 37, 0.6) 30%, rgba(15, 18, 24, 0) 100%);
        z-index: -1;
    }
}

.bg-dark {
    background-color: #161616 !important;
}

header {
    background: rgb(64, 57, 57, 0.2);
    box-shadow: inset 0 -1px 0 0 var(--light-gray);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    &.active {
        background: #1B1919;
    }

    nav {
        &.active {
            background: #1B1919;

            .navbar-collapse {
                background: #1B1919;

                .navbar-nav {
                    background: #1B1919;
                }
            }
        }

        &.navbar {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 15px var(--padding-x);
        }

        .navbar-collapse {
            flex-grow: unset;

            .navbar-nav {
                gap: 60px;
            }
        }

        .nav-link {
            font-size: 16px;
            color: var(--white);
            padding: 0 !important;

            &.active {
                color: var(--green) !important;
            }

            &:focus {
                color: rgb(149, 149, 149);
            }
        }
    }
}

#hero {
    background-image: url("hero-ellipse.svg");
    background-repeat: no-repeat;
    background-size: contain;
    margin-top: 90px;

    .container {
        padding-top: 64px;
        padding-bottom: 87px;
        gap: 6px;
    }

    .shadow {
        opacity: 1;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .hero-container {
        .text {
            max-width: 513px;
            margin-top: 57px;

            h1 {
                margin-bottom: 8px;
            }
        }

        .area {
            padding: 24px;
            background-color: rgb(255, 255, 255, 0.04);
            border-radius: 8px;
            gap: 28px;

            .left,
            .right {
                gap: 28px;

                div {
                    padding-right: 30px;
                }

                .area__border {
                    border-right: 1px solid var(--white);

                    &:nth-last-of-type(1) {
                        border: none;
                    }
                }
            }

            .right {
                div:nth-last-of-type(1) {
                    padding-right: 0;
                }
            }

            img {
                margin-top: 8px;
                margin-bottom: 8px;
            }

            h5 {
                margin-bottom: 6px;
                white-space: nowrap;
            }
        }
    }

    .form-container {
        button {
            width: 180px;
            padding: 6px 28px;
            border-radius: 4px;
            margin-top: 33px;
        }
    }
}

#dlaczego-my {
    background-image: url("bg-waves.png");
    background-repeat: no-repeat;
    background-size: cover;

    h2:nth-last-of-type(1) {
        margin-bottom: 60px;
    }

    .about__container {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 24px;
        row-gap: 60px;
    }

    .about__item {
        position: relative;

        p {
            max-width: 411px;
            padding: 6px 36px 0 16px;
        }

        .about__item--body {
            min-height: 348px;
            min-width: 411px;
            position: relative;
            margin: 0 auto;
            padding-bottom: 40px;
            background-color: rgb(255,255,255,0.1);
        }

        .about__item--header {
            position: relative;

            &::after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                height: 1px;
                width: 100%;
                background: rgb(255, 255, 255, 0.3);
            }

            h3 {
                padding: 10px 16px;
            }
        }

        ul {
            padding: 0 26px 0 15px;

            li {
                margin-bottom: 2px;
                position: relative;
                padding: 0;
                padding-left: 19px;

                &:before {
                    content: "";
                    background: url("arrow_right.svg");
                    width: 7px;
                    height: 11px;
                    position: absolute;
                    top: 4px;
                    left: 0;
                }

                p {
                    padding: 0;
                    margin-left: 19px;
                }
            }

            &:nth-last-of-type(1) {
                padding-bottom: 46px;
            }
        }

        .about__item--img {
            position: absolute;
            bottom: 7px;
            left: 50%;
            transform: translateX(-50%);
        }
    }
}

#uslugi {
    overflow: hidden;
    position: relative;

    .shadow {
        opacity: 0.1;
    }

    h2:nth-last-of-type(1) {
        margin-bottom: 60px;
    }

    .benefits__container {
        gap: 24px;
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits__item {
        min-height: 360px;
        border-radius: 8px;
        background-color: rgb(255, 255, 255, 0.04);
        padding: 21px 10px;

        img {
            margin-bottom: 21px;
        }
    }
}

#services {
    overflow: hidden;
    position: relative;

    .ellipse {
        top: 100px;
        left: -560px;
        opacity: 0.6;
    }

    .container {
        padding-bottom: 120px;
    }

    .section-header {
        h2 p:nth-last-of-type(1) {
            margin-bottom: 16px;
        }

        p:nth-last-of-type(1) {
            margin-bottom: 60px;
        }
    }

    .services-pagination {
        bottom: 60px;
    }

    .services--item {
        border-radius: 16px;
        background-color: rgb(255, 255, 255, 0.04);
        padding: 44px 80px;
        column-gap: 20px;

        .left {
            margin: auto;

            img {
                width: 100%;
                height: auto;
            }
        }

        .right {
            margin-top: 34px;
            width: 434px;

            h3 {
                margin-bottom: 4px;
            }

            li {
                position: relative;
                margin-left: 16px;

                &:before {
                    content: "";
                    background: url("arrow_right.svg");
                    width: 7px;
                    height: 11px;
                    position: absolute;
                    top: 4px;
                    left: -16px;
                }
            }

            .idea {
                margin-top: 28px;
                margin-bottom: 28px;
                gap: 26px;

                .idea--item {
                    min-width: 127px;
                    border-radius: 4px;
                    background-color: rgb(255, 255, 255, 0.04);
                    padding: 20px 6px;

                    h5 {
                        margin-top: 18px;
                        margin-bottom: 4px;
                        min-height: 40px;
                    }
                }
            }

            .buttons {
                gap: 12px;
            }

            .btn {
                padding: 6px 36px;
                border-radius: 4px;
            }
        }
    }
}

#portfolio {
    overflow: hidden;
    position: relative;

    .ellipse {
        top: 650px;
        left: -560px;
    }

    .section-header {
        h2 p:nth-last-of-type(1) {
            margin-bottom: 16px;
        }

        p:nth-last-of-type(1) {
            margin-bottom: 60px;
        }
    }

    .container {
        margin-bottom: 60px;
    }

    .services-pagination {
        bottom: 60px;
    }

    .portfolio--item {
        padding: 0 80px;
        column-gap: 20px;

        .left {
            margin: auto;

            img {
                width: 100%;
                height: auto;
            }
        }

        .right {
            margin-top: 34px;
            width: 458px;

            img {
                margin-bottom: 30px;
                max-width: 120px;
                height: auto;
                max-height: 60px;
            }

            h3 {
                margin-bottom: 4px;
            }

            .tasks {
                row-gap: 10px;
                column-gap: 12px;
                margin-bottom: 30px;

                h5 {
                    padding: 8px 16px;
                    border: 1px solid var(--white);
                    border-radius: 16px;
                }
            }

            .effects {
                margin-bottom: 30px;
                gap: 28px;
                border-radius: 8px;
                background-color: rgb(255, 255, 255, 0.04);
                padding: 14px 24px;

                .effect--item {
                    border-right: 1px solid var(--white);
                    padding: 6px 24px 6px 0;

                    &:nth-last-of-type(1) {
                        border: none;
                        padding-right: 0;
                    }

                    .top {
                        gap: 6px;

                        h5 {
                            margin-top: 0;
                            padding-top: 14px;
                        }
                    }

                    h3 {
                        margin-bottom: 0;
                        white-space: nowrap;
                    }

                    h5 {
                        margin-top: 6px;
                        padding: 0;
                    }
                }
            }

            h5 {
                padding-top: 30px;
                padding-bottom: 4px;
            }

            .buttons {
                gap: 12px;

                .btn:nth-child(1) {
                    padding: 6px 35px;
                    border-radius: 4px;
                }

                .btn:nth-child(2) {
                    padding: 6px 64px;
                    border-radius: 4px;
                }
            }
        }
    }
}

#effect {
    .container {
        height: 160px;
        background-image: url("bg-waves.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        border-radius: 48px;

        .btn {
            padding: 12px 86px;
            border-radius: 4px;
        }
    }
}

#opinie {
    background-image: url("bg-waves.png");
    background-repeat: no-repeat;
    background-size: cover;

    .section-header {
        padding-top: 60px;

        h2 p:nth-last-of-type(1) {
            margin-bottom: 16px;
        }

        p:nth-last-of-type(1) {
            margin-bottom: 60px;
        }
    }

    .container {
        padding-left: 100px;
        padding-right: 100px;
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;

        .item {
            border-radius: 16px;
            background: rgb(255, 255, 255, 0.1);
            padding: 18px 24px;
            min-height: 250px;

            .company {
                gap: 24px;
                margin-bottom: 12px;

                p {
                    margin-top: 0;
                }

                img {
                    max-width: 120px;
                    height: auto;
                    max-height: 55px;
                }
            }

            .rate {
                h4 {
                    margin-left: 6px;
                }
            }

            p {
                padding-right: 61px;
                margin-top: 12px;
            }

            .quote {
                position: absolute;
                top: 12px;
                right: 24px;
            }
        }
    }
}

#kontakt {
    overflow: hidden;
    position: relative;
    padding-top: 64px;

    .ellipse-2 {
        top: 700px;
        left: -560px;
    }

    .section-header {
        h2 p:nth-last-of-type(1) {
            margin-bottom: 16px;
        }

        p:nth-last-of-type(1) {
            margin-bottom: 60px;
        }
    }

    .wrapper {
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 0 var(--padding-x) 64px;
    }

    .container {
        background-color: rgb(255, 255, 255, 0.04);
        border-radius: 16px;
        padding: 30px;
        gap: 65px;
    }

    .image {
        p:nth-child(1) {
            margin-bottom: 4px;
        }

        img {
            max-width: 554px;
        }

        div.quote {
            position: absolute;
            bottom: 48px;
            padding: 0 63px 0 25px;
        }
    }

    .form-container {
        background-color: unset;
        padding: 44px 0 44px 52px;

        button {
            width: 100%;
            padding: 6px 28px;
            border-radius: 4px;
            margin-top: 28px;
        }

        h3 {
            margin-bottom: 4px;
        }

        p {
            margin-bottom: 24px;
        }
    }
}

footer {
    min-height: 472px;
    background-image: url("Footer.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    .footer__links p {
        line-height: 18px;
    }

    .footer__links {
        margin-bottom: 43px;
        gap: 24px;
        font-size: 12px;

        .footer__links--menu {
            gap: 24px;

            h4 {
                margin-bottom: 8px;
            }

            div {
                width: 193px;
            }

            p {
                font-size: 12px;
            }
        }

        .btn.btn__base {
            padding: 8px 18px;
        }
    }

    .footer__bottom {
        padding-top: 15px;
        padding-bottom: 15px;
        border-top: 1px solid rgb(255, 255, 255, 0.2);

        .footer__media {
            gap: 20px;

            a:hover {
                scale: 1.1;
                transition: scale 0.2s linear;
            }
        }
    }
}

@media (max-width: 1399px) {
    #dlaczego-my {
        .about__container {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    #kontakt {
        .image {
            img {
                width: 100%;
            }
        }
    }
}

@media (max-width: 1350px) {
    #portfolio {
        .portfolio--item {
            .right {
                .effects {
                    padding-left: 16px;
                    padding-right: 16px;

                    .effect--item {
                        padding-right: 16px;
                    }
                }
            }
        }
    }
}

@media (max-width: 1300px) {
    header nav .navbar-collapse .navbar-nav {
        gap: 20px;
    }

    #hero {
        .container {
            gap: 48px;
        }

        .hero-container {
            .area {
                h5 {
                    white-space: unset;
                }
            }
        }
    }

    #portfolio .portfolio--item {
        padding: 0 35px;
    }
}

@media (max-width: 1199px) {
    #hero {
        .hero-container {
            .text {
                margin: 0 auto 24px;
            }
        }
    }

    #hero,
    #kontakt {
        .form-container {
            min-width: unset;
        }
    }

    #services {
        .services--item {
            .right {
                width: unset;
            }
        }
    }

    #portfolio {
        .swiper-pagination {
            bottom: -20px;
        }

        .portfolio--item {
            .right {
                width: unset;

                .buttons {
                    padding-bottom: 30px;
                }
            }
        }
    }

    #opinie {
        .container {
            .item {
                .company {
                    width: 50%;
                }

                p {
                    padding-right: 0;
                }
            }
        }
    }

    #kontakt {
        .form-container {
            padding: 0;
        }

        .image div.quote {
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            padding: 0;
        }
    }
}

@media (max-width: 1100px) {
    header nav .btn__base {
        margin-top: 30px;
    }

    #uslugi {
        .benefits__container {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

@media (max-width: 1024px) {
    #dlaczego-my .about__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {


    header .btn__base {
        margin-left: 0;
    }

    .navbar-nav {
        margin-top: 20px;
    }

    body {
        .container {
            padding: 40px var(--padding-x-tablet);
        }

        .section-header {
            padding-right: var(--padding-x-tablet);
            padding-left: var(--padding-x-tablet);
        }

        header {
            nav {
                &.navbar {
                    padding: 15px var(--padding-x-tablet);
                }
            }
        }

        #opinie .container {
            padding-right: var(--padding-x-tablet);
            padding-left: var(--padding-x-tablet);
            gap: 24px;
        }

        #kontakt .wrapper {
            padding: 40px var(--padding-x-tablet);
        }
    }
}

@media (max-width: 900px) {
    #dlaczego-my {
        .about__container {
            grid-template-columns: repeat(1, 1fr);
        }
    }
}

@media (max-width: 767px) {
    #hero {
        .hero-container {
            .area {
                justify-content: center;
            }

            .left,
            .right {
                display: grid !important;
                grid-template-columns: repeat(2, 1fr);
                margin: 0 auto;

                div {
                    width: 200px;
                    text-align: center;
                }

                .area__border {
                    &:nth-child(even) {
                        border: none;
                        padding-right: 0;
                    }
                }
            }

            .left .area__border:nth-last-of-type(1) {
                border: none;
                padding-right: 0;
            }
        }
    }

    #hero,
    #kontakt {
        .form-container .form__group {
            gap: 15px;
        }
    }

    #dlaczego-my .about__container {
        grid-template-columns: 1fr;
    }

    #uslugi {
        .benefits__container {
            grid-template-columns: repeat(1, 1fr);
        }
    }

    #services {
        .services--item {
            padding-top: 0;
            padding-bottom: 24px;

            .right {
                margin-top: 24px;
            }
        }
    }

    #opinie .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    body {
        .container {
            padding: 40px var(--padding-x-mobile);
        }

        .section-header {
            padding-right: var(--padding-x-mobile);
            padding-left: var(--padding-x-mobile);
        }

        header {
            nav {
                &.navbar {
                    padding: 15px var(--padding-x-mobile);
                }
            }
        }

        #hero {
            .hero-container {

                .left,
                .right {
                    div {
                        width: 120px;
                    }
                }
            }
        }

        #services {
            .services--item {
                padding-left: 40px;
                padding-right: 40px;

                .right {
                    .idea {
                        .idea--item {
                            padding: 6px;

                            h5 {
                                min-height: unset;
                            }
                        }

                        p {
                            margin-bottom: 0;
                        }
                    }
                }
            }
        }

        #portfolio {
            .portfolio--item {
                padding-left: 40px;
                padding-right: 40px;

                .right {
                    .effects {
                        .effect--item {
                            border-right: none;
                            padding: 0;
                            align-items: center;

                            &:nth-last-of-type(1) {
                                padding: 0;
                            }

                            h5 {
                                text-align: center;
                            }
                        }
                    }

                    .buttons {
                        padding-bottom: 30px;
                    }
                }
            }
        }

        #kontakt {
            .wrapper {
                padding: 0 var(--padding-x-mobile) 40px;
            }

            .quote {
                width: 100%;
            }
        }

        #effect {
            .container {
                h2 {
                    text-align: center;
                    margin-bottom: 20px;
                }

                .btn {
                    width: 100%;
                    padding-right: 36px;
                    padding-left: 36px;
                }
            }
        }

        footer {
            .footer__bottom {
                gap: 12px;
            }

            .footer__media {
                gap: 10px;
            }
        }
    }
}

@media (max-width: 450px) {
    #dlaczego-my {
        .about__item {
            ul {
                padding: 0 15px 12px 15px;

                &:nth-last-of-type(1) {
                    padding-bottom: 40px;
                }
            }

            .about__item--header {
                &::after {
                    width: 100%;
                }
            }

            .about__item--body {
                min-width: unset;
            }
        }
    }
}

header,
.navbar-dark ul {
    background: #161616;
}
