.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .8);
    padding: 20px;

    .modal__body {
        position: relative;

        .modal__header {
            position: absolute;
            top: 30px;
            right: 30px;
            display: flex;
            justify-content: end;

            img {
                cursor: pointer;
                transition: .2 ease;
                border-radius: 6px;

                &:hover {
                    opacity: .8;
                }
            }
        }

        .modal__content {
            margin-top: 20px;
            height: 93%;
            overflow-y: scroll;
        }
    }
}

.projects__modal {
    .modal__body {
        background-color: white;
        padding: 40px;
        border-radius: 24px;
        width: 1280px;
        height: 80vh;

        .modal__content {
            .projects-wrapper {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 20px;

                .project {
                    background-size: cover;
                    padding: 20px;
                    border-radius: 6px;
                    padding-top: 250px;
                    background-position: center center;

                    .main__info {
                        background-color: #F1F5F8CC;
                        backdrop-filter: blur(30px);
                        width: 100%;
                        border-radius: 6px;

                        p {
                            color: var(--text-primary-dark);
                            padding: 15px;
                            font-weight: 600;
                            text-align: center;
                        }
                    }

                    &:nth-child(1) {
                        background-image: url('../images/first_project.webp');
                    }

                    &:nth-child(2) {
                        background-image: url('../images/second_project.webp');
                    }

                    &:nth-child(3) {
                        background-image: url('../images/third_project.webp');
                    }

                    &:nth-child(4) {
                        background-image: url('../images/fourth_project.webp');
                    }

                    &:nth-child(5) {
                        background-image: url('../images/fifth_project.webp');
                    }

                    &:nth-child(6) {
                        background-image: url('../images/sixth_project.webp');
                    }

                    &:nth-child(7) {
                        background-image: url('../images/seventh_project.webp');
                    }
                }
            }
        }
    }
}

.application__modal {
    z-index: 1000;

    .modal__body {
        background-color: white;
        padding: 50px;
        border-radius: 24px;

        .modal__content {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 22px;
            align-items: center;

            form {
                display: flex;
                flex-direction: column;
                gap: 10px;

                h2 {
                    font-size: 34px;
                    font-weight: 400;
                }

                input {
                    border: 1px solid #E0E0E0;
                    padding: 12px 17px;
                    border-radius: 9px;
                    outline: none;
                    font-size: 16px;
                }

                p {
                    font-size: 16px;
                    color: #6B6B6B;
                }

                button {
                    width: 100%;
                }
            }

            img {
                width: 100%;
            }
        }
    }
}


.products__modal {
    .modal__body {
        background-color: white;
        padding: 40px;
        border-radius: 24px;
        max-width: 1540px;
        height: 76vh;

        .modal__content {
            height: 98%;

            .product__content {
                .top__block {
                    width: 100%;
                    display: flex;
                    gap: 2%;

                    .left__side {
                        display: flex;
                        flex-direction: column;
                        gap: 25px;
                        width: 40%;

                        video {
                            width: 100%;
                            height: 300px;
                            object-fit: cover;
                        }

                        .description__block {
                            display: flex;
                            flex-direction: column;
                            gap: 12px;

                            h3 {
                                font-size: 28px;
                                font-weight: 500;
                            }

                            p,
                            b {
                                color: #596A8B;
                            }
                        }

                        .buttons {
                            display: flex;
                            gap: 8px;

                            button {
                                font-size: 16px;
                                align-items: center;
                            }
                        }

                        iframe {
                            border-radius: 10px;
                            width: 100%;
                            height: 350px;
                        }

                    }

                    .right__side {
                        width: 58%;
                        display: flex;
                        flex-direction: column;
                        gap: 20px;

                        h2 {
                            font-size: 28px;
                            font-weight: 500;
                        }

                        .advantages {
                            display: flex;
                            flex-direction: column;
                            gap: 25px;

                            .advantage {
                                display: flex;
                                gap: 14px;
                                align-items: start;

                                img {
                                    margin-top: 7px;
                                }

                                div {
                                    display: flex;
                                    flex-direction: column;
                                    gap: 5px;

                                    h3 {
                                        font-size: 20px;
                                    }

                                    p {
                                        color: #6B6B6B;
                                    }
                                }
                            }
                        }

                        .images {
                            display: flex;
                            gap: 15px;
                            width: 100%;
                            overflow-x: scroll;

                            img {
                                height: 140px;
                                object-fit: cover;
                                border-radius: 6px;
                            }
                        }

                        .second__description {
                            display: flex;
                            flex-direction: column;
                            gap: 20px;

                            p {
                                font-size: 16px;
                            }

                            ul {
                                margin-top: -10px;
                                margin-left: 15px;
                            }
                        }
                    }
                }

                .table__block {
                    margin-top: 45px;
                    overflow-x: scroll;

                    .body {
                        width: 100%;
                        display: flex;
                        flex-direction: column;

                        .row {
                            display: grid;
                            grid-template-columns: repeat(9, 11.11%);

                            p {
                                font-size: 14px;
                                font-weight: 400;
                                padding: 20px;
                                background: #F1F5F8;
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                text-align: center;

                                &:nth-child(even) {
                                    border-left: 1px solid rgba(37, 45, 53, 0.1);
                                    border-right: 1px solid rgba(37, 45, 53, 0.1);
                                }

                                &:nth-child(2) {
                                    border-left: none;
                                }
                            }

                            b {
                                font-size: 16px;
                                font-weight: 500;
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                text-align: center;
                                padding: 20px;
                                background: #F5F8FA;


                                &:nth-child(even) {
                                    border-left: 1px solid rgba(37, 45, 53, 0.1);
                                    border-right: 1px solid rgba(37, 45, 53, 0.1);
                                }

                                &:nth-child(2) {
                                    border-left: none;
                                }

                                &:nth-child(1) {
                                    margin-right: 10px;
                                }
                            }

                            &:nth-child(1) {
                                margin-bottom: 10px;

                                p {
                                    &:nth-child(1) {
                                        margin-right: 10px;
                                    }
                                }
                            }

                            &:nth-child(even) {
                                b {
                                    background-color: #F2F5F7;

                                    &:nth-child(1) {
                                        background-color: #ebeef0;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

#plate__modal {
    .modal__content {
        .product__content {
            .top__block {
                .left__side {
                    .description__block {
                        div {
                            h4 {
                                color: #C00000;
                                font-size: 20px;
                                margin-top: 5px;
                            }
                        }

                        ul {
                            color: #596A8B;
                            font-style: italic;
                            font-size: 16px;
                        }
                    }
                }

                .right__side {

                    .usages {
                        width: 70%;
                        display: grid;
                        grid-template-columns: 40% 60%;
                        gap: 10px;

                        .usage {
                            display: flex;
                            gap: 7px;
                            font-size: 16px;
                            align-items: center;
                        }
                    }
                }
            }

            .table__block {
                .body {
                    .row {
                        display: grid;
                        grid-template-columns: repeat(8, 12.5%);

                        &:nth-child(1) {
                            grid-template-columns: 12.5% 12.5% 37.5% repeat(3, 12.5%);
                        }

                        b {
                            font-size: 14px !important;
                        }

                        .flexed {
                            display: flex;
                            flex-direction: column;
                            padding: 0;

                            p {
                                width: 100%;
                                border: 1px solid rgba(37, 45, 53, 0.1);
                                margin-right: 0 !important;
                                background: #F5F8FA;
                                font-size: 16px;
                                font-weight: 500;
                                font-size: 14px !important;
                            }

                            div {
                                display: flex;
                            }
                        }
                    }

                    .double {
                        grid-template-columns: repeat(5, 11.11%) 22.22% repeat(2, 11.11%);
                    }

                }
            }
        }
    }
}

#tray__modal {
    .modal__content {
        .product__content {
            .top__block {
                .right__side {
                    .usages {
                        display: flex;
                        flex-direction: column;
                        gap: 8px;

                        .usage {
                            display: flex;
                            gap: 7px;
                            font-size: 16px;
                            align-items: center;
                        }
                    }
                }
            }

            .table__block {
                .body {
                    .row {
                        display: grid;
                        grid-template-columns: repeat(9, 11.11%);

                        &:nth-child(1) {
                            grid-template-columns: 11.11% 11.11% 33.33% repeat(4, 11.11%);
                        }

                        b {
                            font-size: 14px !important;
                        }

                        .flexed {
                            display: flex;
                            flex-direction: column;
                            padding: 0;

                            p {
                                width: 100%;
                                border: 1px solid rgba(37, 45, 53, 0.1);
                                margin-right: 0 !important;
                                background: #F5F8FA;
                                font-size: 16px;
                                font-weight: 500;
                                font-size: 14px !important;
                            }

                            div {
                                display: flex;
                            }
                        }
                    }

                    .double {
                        grid-template-columns: repeat(5, 11.11%) 22.22% repeat(2, 11.11%);
                    }

                }
            }
        }
    }
}

#block__modal {
    .modal__content {
        .product__content {
            .top__block {
                .right__side {

                    .usages {
                        width: 70%;
                        display: grid;
                        grid-template-columns: 40% 60%;
                        gap: 10px;

                        .usage {
                            display: flex;
                            gap: 7px;
                            font-size: 16px;
                            align-items: center;
                        }
                    }

                    .second__description {
                        p {
                            color: #596A8B;
                        }
                    }
                }
            }

            .table__block {
                .body {
                    .row {
                        display: grid;
                        grid-template-columns: repeat(9, 11.11%);

                        &:nth-child(1) {
                            grid-template-columns: 11.11% 11.11% 33.33% repeat(4, 11.11%);
                        }

                        b {
                            font-size: 14px !important;
                        }

                        .flexed {
                            display: flex;
                            flex-direction: column;
                            padding: 0;

                            p {
                                width: 100%;
                                border: 1px solid rgba(37, 45, 53, 0.1);
                                margin-right: 0 !important;
                                background: #F5F8FA;
                                font-size: 16px;
                                font-weight: 500;
                                font-size: 14px !important;
                            }

                            div {
                                display: flex;
                            }
                        }
                    }

                    .double {
                        grid-template-columns: repeat(5, 11.11%) 22.22% repeat(2, 11.11%);
                    }

                }
            }
        }
    }
}

#road__plate__modal {
    .modal__content {
        .product__content {
            .top__block {
                .left__side {
                    .description__block {
                        div {
                            h4 {
                                color: #C00000;
                                font-size: 20px;
                                margin-top: 5px;
                            }
                        }

                        ul {
                            color: #596A8B;
                            font-style: italic;
                            font-size: 16px;

                            li {
                                margin-left: 20px !important;
                            }
                        }
                    }
                }

                .right__side {

                    .usages {
                        display: flex;
                        flex-direction: column;
                        gap: 10px;

                        .usage {
                            display: flex;
                            gap: 7px;
                            font-size: 16px;
                            align-items: center;
                        }
                    }
                }
            }

            .table__block {
                .body {
                    .row {
                        display: grid;
                        grid-template-columns: repeat(9, 11.11%);

                        &:nth-child(1) {
                            grid-template-columns: 11.11% 11.11% 33.33% repeat(4, 11.11%);
                        }

                        b {
                            font-size: 14px !important;
                        }

                        .flexed {
                            display: flex;
                            flex-direction: column;
                            padding: 0;

                            p {
                                width: 100%;
                                border: 1px solid rgba(37, 45, 53, 0.1);
                                margin-right: 0 !important;
                                background: #F5F8FA;
                                font-size: 16px;
                                font-weight: 500;
                                font-size: 14px !important;
                            }

                            div {
                                display: flex;
                            }
                        }
                    }

                    .double {
                        grid-template-columns: repeat(5, 11.11%) 22.22% repeat(2, 11.11%);
                    }

                }
            }
        }
    }
}

.menu__modal {
    align-items: start;
    justify-content: start;
    padding: 0;

    .modal__body {
        width: 100%;
        background-color: white;

        header {
            width: 100%;
            background-color: white;
            padding-bottom: 0;
        }

        .modal__content {
            padding: 0 20px;

            .sections {
                display: flex;
                flex-direction: column;
                gap: 12px;
                padding-bottom: 20px;

                div {
                    display: flex;
                    flex-direction: column;

                    p {
                        font-size: 13px;
                        color: #A3A2AB;
                    }

                    .section__info {
                        display: flex;
                        flex-direction: column;

                        a {
                            color: var(--text-primary-dark);
                            font-size: 20px;
                            font-weight: 500;
                        }

                        ul {
                            list-style-type: none;
                        }
                    }
                }
            }
        }
    }
}

.galery__modal {
    .modal__body {
        background-color: white;
        padding: 20px;
        border-radius: 10px;

        .modal__header {
            right: 20px;
            top: 20px;
        }

        .modal__content {

            .galery {
                img {
                    width: 100%;
                }

                .buttons {
                    display: flex;
                    gap: 10px;
                    justify-content: center;

                    button {
                        transform: translate(0, 0);

                        &:nth-child(1) {
                            img {
                                rotate: 180deg;
                            }
                        }
                    }
                }
            }
        }
    }
}

.thanks__modal {
    z-index: 2000;

    .modal__body {
        background-color: white;
        border-radius: 10px;
        padding: 20px;

        .modal__content {
            margin-top: 0px;

            h2 {
                color: var(--text-primary-dark);
                font-size: 40px;
            }

            p {
                color: var(--text-primary-dark);
                font-size: 22px;
            }
        }
    }
}