:root {
    --red: #D62126;
    --blue: #202E64;
    --black-gray: #19191B;
    --mid-gray: #2C2C2C;
    --gray: #1E1E2080;
    --mid-light: #EDEEF0;
    --light: #9C9C9C;
    --szarawy: #F9F9F9;
    --1_1_gradient: linear-gradient(180deg, rgba(32, 46, 100, 0.3) 0%, rgba(32, 46, 100, 0.12) 100%);
    --1_2_gradient: linear-gradient(180deg, rgba(214, 33, 38, 0.08) 0%, rgba(224, 86, 136, 0.03) 100%);

    --font-family-main: "Exo";
    --max-width: 1440px;
    --padding-x: 80px;
    --padding-x-tablet: 24px;
    --padding-x-mobile: 12px;
    --padding-y: 80px;
}

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

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

body {
    font-family: var(--font-family-main), sans-serif;
    overflow-x: hidden;

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

    .container-fluid {
        padding: 0;
    }

    .section-header {
        h1 {
            margin: 8px 0;
        }

        p.text-3 {
            font-size: 12px;
            line-height: 15px;
        }

        .brick {
            margin-right: 8px;
        }

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

    p {
        color: var(--mid-gray);
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h1 p,
    h2 p,
    h3 p,
    h4 p,
    h5 p {
        margin-bottom: 0;
        font-weight: 600;
    }

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

    h2,
    h2 p {
        font-size: 42px;
        line-height: 46px;
    }

    h2.h1,
    h2.h1 p {
        font-size: 48px;
        line-height: 52px;
    }

    h2.heading,
    h2.heading p {
        font-size: 42px;
        line-height: 46px;

        .marker {
            font-weight: bold;
        }
    }

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

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

    h4.heading,
    h4.heading p {
        font-size: 20px;
        line-height: 28px;
    }

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

    h5.heading,
    h5.heading p {
        font-size: 16px;
        line-height: 18px;
    }

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

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

    .text-1 {
        font-size: 14px;
        line-height: 20px;

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

    .text-2 {
        font-size: 12px;
        line-height: 15px;

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

    .text-3 {
        font-size: 12px;
        line-height: 15px;

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

    .text-white {
        color: white;

        p {
            color: white;
        }
    }

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

    a {
        color: white;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
            color: white;
        }

        &.nav-link:focus {
            color: white;
        }
    }

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

    .text-mid-gray {
        color: var(--mid-gray);
    }

    .btn {
        padding: 9px 28px;
        color: white;
        font-size: 16px;
        font-weight: 600;
        line-height: 18px;
        border: unset;
        border-radius: 4px;
        background: var(--blue);

        &.btn-transparent {
            background: none;
            border: 1px solid black;
            padding: 8px 35px;

            a {
                color: black;
            }

            &:hover {
                background: red;
                color: white;
                border: none;
            }
        }

        &.btn-red {
            background: var(--red);

            &:hover {
                background: var(--blue) !important;

                a {
                    color: white !important;
                }
            }
        }

        &:hover {
            background: var(--red);
            transition: background 0.2s ease-in-out;
        }

        &:active {
            background: var(--red) !important;
        }

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

        span {
            margin-left: 12px;
            font-size: 12px;
            line-height: 12px;

            img {
                vertical-align: text-top;
            }
        }

        a:hover {
            text-decoration: none;
        }

        &.pulse {
            animation: pulse 1.5s infinite;

            &:hover {
                animation: none;
            }
        }

        &.hover-blue:hover {
            background: var(--blue) !important;

            a {
                color: white !important;
            }
        }


    }

    .swiper-button-prev,
    .swiper-button-next {
        .arrow--hover {
            display: none;
        }

        &:hover {
            .arrow {
                display: none;
            }

            .arrow--hover {
                display: block;
            }
        }

        &:after {
            content: unset;
        }
    }

    .logo {
        max-width: 301px;
        max-height: 47px;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    background: transparent;
    width: 100%;
    z-index: 20;

    .container-fluid {
        gap: 41px;
    }

    &.active {
        background: black;
    }

    nav.navbar {
        max-width: 1440px;
        padding: 28px 80px;
        margin: auto;

        .navbar-collapse {
            .nav-link {
                color: white;
                font-size: 16px;
                line-height: 18px;
                font-weight: 600;
                padding: 0;

                &.active,
                &:hover {
                    color: var(--red) !important;
                    text-decoration: none;
                }
            }
        }
    }

    img {
        width: 276px;
        height: 43px;
    }

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

.hero {
    .container {
        height: 700px;
        display: flex;
        align-items: flex-end;
    }

    .content {
        width: 100%;

        h1 {
            margin-bottom: 12px;
            font-weight: normal;

            .marker {
                font-weight: bold;
            }
        }

        p {
            margin-bottom: 12px;
        }
    }

    .left {
        width: 652px;

        div {
            max-width: 519px;
        }
    }

    .right {
        gap: 12px;
        max-width: 543px;
        align-items: center;
    }

    .element {
        background: white;
        box-shadow: 0 8px 24px 0 #00000026;
        border-radius: 4px;
        padding: 12px 12px 18px 12px;
        min-width: 163px;
        transition: all 0.3s linear;

        &:hover {
            transform: scale(1.02);
        }

        h5 {
            margin: 10px 0 12px;
        }

        img {
            width: 139px;
            height: 176px;
            object-fit: cover;
            aspect-ratio: 139/176;
        }

        &.center {
            min-width: 193px;
            min-height: 318px;

            img {
                width: 169px;
                height: 212px;
                object-fit: cover;
                aspect-ratio: 169/212;
            }
        }
    }
}

.slider {
    margin-bottom: 36px;

    .swiper-pagination {
        width: unset;
        left: 80px;
        bottom: 24px;

        .swiper-pagination-bullet {
            font-size: 18px;
            line-height: 20px;
            font-weight: 700;
            color: var(--light);
            border-bottom: 3px solid var(--light);
            width: unset;
            height: unset;
            border-radius: 0;
            background: unset;
            margin-right: 16px;
            opacity: 1;
        }

        .swiper-pagination-bullet-active {
            font-size: 24px;
            line-height: 28px;
            color: var(--red);
            border-color: var(--red);
        }
    }

    .section-header {
        max-width: 807px;
    }

    .swiper {
        margin-top: 24px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        position: unset;
        margin-top: 0;
        width: unset;
    }

    .swiper-button-prev {
        margin-right: 10px;
    }

    .left {
        img {
            width: 100%;
            max-width: 628px;
            height: 100%;
            object-fit: cover;
            aspect-ratio: 628/522;
        }
    }

    .right {
        background: var(--szarawy);
        padding: 40px 24px 40px 24px;
        max-width: 629px;

        .title {
            padding-right: 69px;
            margin-bottom: 22px;

            h2 {
                margin-bottom: 8px;
            }
        }

        .separator {
            width: 100%;
            max-width: 612px;
            height: 1px;
            background: var(--light);
        }

        .bullets {
            padding-right: 55px;
            grid-template-columns: repeat(2, 1fr);
            margin-top: 24px;
            row-gap: 12px;

            img {
                margin-right: 9px;
            }
        }

        .boxes {
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            margin-top: 39px;
            margin-bottom: 24px;

            .box {
                box-shadow: 0 8px 12px 0 #0000000D;
                padding: 10.5px 20px;
                border-radius: 12px;

                h5 {
                    padding: 16px 0 4px;
                }

                img {
                    width: 49px;
                    height: 49px;
                    object-fit: cover;
                }
            }
        }

        .buttons {
            gap: 24px;

            .btn {
                padding: 8px 28px;

                &.btn-transparent {
                    padding: 7px 35px;

                    &:hover {
                        border: 1px solid var(--red);
                    }
                }
            }
        }
    }
}

.solutions {
    .container {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .wrapper {
        padding: 40px 0;
        background: var(--szarawy);
    }

    .section-header {
        padding: 0 250px;
    }

    button {
        margin-top: 45px;
    }

    h2 {
        word-wrap: break-word;
    }
}

.for-who {
    .wrapper {
        gap: 79px;
        margin: 39px 110px 36px;
        grid-template-columns: repeat(3, 1fr);
    }

    .element {
        box-shadow: 0 8px 12px 0 #0000000D;
        border-radius: 8px;
        max-width: 301px;
        min-height: 356px;

        .image {
            padding: 47px 0;

            img {
                max-width: 100px;
                max-height: 99px;
            }
        }

        .image-red {
            display: none;
        }

        .content {
            padding: 0 18px;
        }

        h5 {
            margin-bottom: 4px;
        }

        &.red-box {
            background: var(--red);

            p,
            h5 {
                color: white;
            }

            .image-red {
                display: inline;
            }

            .image-white {
                display: none;
            }
        }
    }
}

.projects {
    .header-wrapper {
        gap: 36px;

        button {
            align-self: end;
            flex-shrink: 0;
            margin-bottom: 16px;
        }

        .section-header {
            max-width: 827px;
        }
    }

    .swiper-big {
        margin-top: 36px;
        margin-bottom: 36px;
        position: unset;

        .swiper-slide img {
            width: 100%;
            height: auto;
            max-height: 560px;
            object-fit: cover;
            border-radius: 8px;
            aspect-ratio: 1280/560;
        }

        .swiper-button-prev {
            bottom: 26px;
            left: 38px;
            top: unset;
        }

        .swiper-button-next {
            bottom: 26px;
            right: 38px;
            top: unset;
        }
    }

    .swiper-thumbs {
        width: 83%;

        .swiper-slide {
            cursor: pointer;

            img {
                width: 193px;
                height: auto;
                max-height: 100px;
                object-fit: cover;
                border-radius: 8px;
                aspect-ratio: 193/100;
            }
        }
    }
}

.contact {
    .container {
        padding-right: 60px;
        gap: 60px;
    }

    .section-header {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--light);
    }

    .contacts {
        margin-top: 69px;

        h4  {
            margin-bottom: 12px;
        }
    }

    .element {
        padding: 12px;
        border: 1px solid var(--light);
        border-radius: 8px;
        gap: 19px;
        margin-bottom: 12px;

        p,
        a {
            color: var(--mid-gray);
        }

        img {
            width: 82px;
            height: 82px;
            object-fit: cover;
        }
    }

    .element-left {
        gap: 19px;

        div {
            margin-top: 20px;

            p {
                color: var(--light);
            }
        }
    }

    .element-right {
        min-width: 174px;
    }

    .element.red-box {
        border-color: var(--red);
    }

    .form-container {
        background: var(--szarawy);
        padding: 42px 50px 30px 30px;
        max-width: 722px;

        button {
            margin-top: 24px;

            &:hover {
                color: white;
            }
        }

        .form__group {
            gap: 24px;
        }

        label {
            font-size: 16px;
            line-height: 18px;
            margin-bottom: 12px;
            margin-top: 24px;
            font-weight: 600;

            &.text-2 {
                font-size: 12px;
                line-height: 15px;
            }
        }

        input,
        option,
        textarea,
        select {
            padding: 11px 0 11px 20px;
            border-radius: 2px;
            background-color: white;
            border: 1px solid white;
            color: var(--light);
            font-size: 14px;
            line-height: 20px;

            &::placeholder {
                color: var(--light);
                font-size: 14px;
                line-height: 20px;
            }

            &:focus {
                border: 1px solid var(--red);
                box-shadow: none;
            }
        }

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

        textarea {
            min-height: 230px;
            resize: vertical;
            padding: 20px 10px 20px 20px;
        }

        select option {
            &:checked {
                background-color: var(--red);
                color: white;
            }
        }

        .square-checkbox {
            gap: 10px;
            display: flex;
            cursor: pointer;
            font-size: 12px;
            line-height: 16px;

            .custom-check {
                width: 20px;
                height: 20px;
                border: 1px solid black;
                border-radius: 2px;
                display: inline-block;
                position: relative;
                transition: all 0.2s linear;
                flex-shrink: 0;

                img {
                    opacity: 0;
                    transition: all 0.2s linear;
                }
            }

            input[type="checkbox"] {
                position: absolute;
                opacity: 0;
                pointer-events: none;

                &:checked + .custom-check {
                    background: var(--red);
                    border-color: var(--red);

                    img {
                        opacity: 1;
                        vertical-align: bottom;
                        margin-left: 2px;
                    }
                }
            }

            p {
                font-size: 12px;
                line-height: 15px;
                color: black;
            }
        }
    }
}

.showroom {
    .container {
        padding-top: 60px;
        gap: 83px;
    }

    .left {
        button {
            margin-top: 36px;
        }
    }

    .right {
        .swiper {
            max-width: 761px;
        }
        img {
            width: 544px;
            height: auto;
            max-height: 562px;
            object-fit: cover;
            border-radius: 8px;
            aspect-ratio: 544/562;
        }
    }

    .swiper-pagination {
        width: unset;
        bottom: -44px;
        right: 0;
        left: unset;

        .swiper-pagination-bullet {
            font-size: 18px;
            line-height: 20px;
            font-weight: 700;
            color: var(--light);
            border-bottom: 3px solid var(--light);
            width: unset;
            height: unset;
            border-radius: 0;
            background: unset;
            margin-right: 16px;
            opacity: 1;
        }

        .swiper-pagination-bullet-active {
            font-size: 24px;
            line-height: 28px;
            color: var(--red);
            border-color: var(--red);
        }
    }
}

footer {
    position: relative;

    .container {
        position: relative;
        z-index: 1;
        padding-top: 50px;
        padding-bottom: 0;
    }

    .footer-menu {
        flex-wrap: wrap;
        gap: 133px;
    }

    .footer-left {
        max-width: 300px;
        gap: 16px;
    }

    .footer-right {
        gap: 24px;
    }

    .footer-right__menu {
        width: 193px;

        p, a {
            font-size: 12px;
            line-height: 18px;
        }
    }

    .fb {
        transition: all 0.3s linear;

        &:hover {
            transform: scale(1.1);
        }
    }

    .copyright {
        margin-top: 40px;
        padding: 10px 0 10px;
        border-top: 1px solid var(--light);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 1399px) {
    header {
        .navbar-nav {
            gap: 16px;
        }

        &.opened {
            background: white;
        }
    }

    .showroom {
        .swiper-pagination {
            right: unset;
            left: 50%;
            transform: translate(-50%);
        }
    }
}

@media (max-width: 1199px) {
    header {
        .container-fluid {
            gap: 0;
        }

        &:has(.show, .collapsing) {
            background: black;
        }

        .navbar-collapse {
            background: black;
            margin-top: 20px;

            .navbar-nav {
                gap: 24px;
            }

            .btn {
                margin-top: 16px;
            }
        }
    }

    .for-who {
        .wrapper {
            gap: 36px;
            margin-left: 24px;
            margin-right: 24px;
        }
    }

    .projects {
        .header-wrapper {
            button {
                align-self: center;
            }
        }

        .swiper-thumbs {
            width: 70%;
        }
    }

    .contact {
        .container {
            padding-right: var(--padding-x);
            gap: 24px;
        }

        .contacts {
            margin-top: 24px;
        }

        .form-container {
            max-width: unset;
        }
    }

    .solutions {
        .section-header {
            padding: 0 100px;
        }
    }
}

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

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

    .hero {
        .container {
            height: 900px;
        }

        .content {
            gap: 36px;
        }

        .left {
            text-align: center;

            div {
                max-width: unset;
            }
        }
    }

    .slider {
        .swiper-slide {
            flex-direction: column;
            gap: 24px;
        }

        .left {
            img {
                max-width: unset;
            }
        }

        .right {
            padding-top: 24px;
            padding-right: 24px;
            max-width: unset;
        }

        .swiper-pagination {
            left: 48px;
            bottom: 0;
        }
    }

    .contact {
        .container {
            padding-right: var(--padding-x-tablet);
        }
    }

    .showroom {
        .container {
            gap: 36px;
            padding-bottom: 80px;
        }

        .right {
            img {
                width: 100%;
                max-height: unset;
            }
        }
    }

    .solutions {
        .section-header {
            padding: 0;

            h2.heading {
                font-size: 36px;
                line-height: 40px;
            }
        }
    }
}

@media (max-width: 900px) {
    .projects {
        .swiper-thumbs {
            width: 60%;
        }
    }
}

@media (max-width: 767px) {
    header {
        nav.navbar {
            padding: 28px var(--padding-x-mobile);
        }
    }

    .for-who {
        .wrapper {
            gap: 16px;
            margin-left: 0;
            margin-right: 0;
        }
    }

    .contact {
        .form-container {
            .form__group:nth-child(2) {
                gap: 0;
            }
        }
    }

    .hero {
        .left {
            width: unset;
        }
    }

    .slider {
        .right {
            .title {
                padding-right: 0;
            }
        }
    }
}

@media (max-width: 700px) {
    .projects {
        .swiper-thumbs {
            display: none;
        }

        .swiper-big {
            .swiper-button-prev {
                bottom: -60px;
                left: 50%;
                transform: translate(calc(-50% - 50px));
            }

            .swiper-button-next {
                bottom: -60px;
                right: 50%;
                transform: translate(calc(50% + 50px));
            }
        }
    }
}

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

    .hero {
        .right-wrapper {
            width: 100%;
        }

        .right {
            overflow-x: scroll;
            scroll-behavior: smooth;
            overscroll-behavior-y: none;
        }

        h1 p {
            font-size: 36px !important;
            line-height: 42px !important;
        }

        .left p {
            font-size: 18px;
            line-height: 24px;
        }
    }

    .slider {
        .right {
            .bullets,
            .boxes {
                grid-template-columns: repeat(1,1fr);
            }

            .buttons {
                flex-direction: column;
            }
        }

        .swiper-pagination {
            left: 12px;
        }
    }

    .for-who {
        .wrapper {
            grid-template-columns: repeat(1, 1fr);

            .element {
                max-width: unset;
            }
        }
    }

    footer {
        .footer-menu {
            gap: 48px;
        }

        .footer-left {
            max-width: unset;
        }

        .footer-right__menu {
            width: unset;
        }
    }

    .contact {
        .container {
            padding-right: var(--padding-x-mobile);
        }
    }
}

@media (max-width: 500px) {
    .contact {
        .element {
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .element-left {
            flex-direction: column;
            align-items: center;
            gap: 12px;

            div {
                margin-top: 0;
            }
        }

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

    .for-who {
        button.btn {
            font-size: 14px;
            padding-left: 0;
            padding-right: 0;
            width: 100%;
        }
    }
}

@media (max-width: 400px) {
    header {
        nav.navbar {
            .container-fluid {
                gap: 0;
            }

            img {
                width: 220px;
                height: auto;
            }
        }
    }
}

/* animations */
[data-animate] {
}

[data-animate].animate {
    opacity: 1;
    transform: none;
}

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fade-down"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(-40px);
}

[data-animate="fade-left"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateX(-40px);
}

[data-animate="fade-right"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="zoom-in"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(0.9);
}

[data-animate="flip-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: rotateX(60deg);
    transform-origin: bottom;
}

[data-animate="pulse-shadow"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    box-shadow: 0 0 0 0 rgba(55, 191, 131, 0.5);
}

[data-animate="pulse-shadow"].animate {
    animation: pulseBoxShadow 2.5s infinite ease-in-out;
}

@keyframes pulseBoxShadow {
    0% {
        box-shadow: 0 0 0 0 rgba(55, 191, 131, 0.5);
    }

    50% {
        box-shadow: 0 0 30px 20px rgba(27, 43, 37, 0.6);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 18, 24, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 var(--red);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}
