
@import "../var";
@import "./product-detail";
@import "./product-design";

.__product-features {
    display: flex;
    dl {
        flex: 1;
        text-align: center;
        border-right: 1px solid rgba(0, 0, 0, 0.5);
        padding: to-rem(5px) to-rem(15px);
        box-sizing: border-box;
        margin-bottom: to-rem(20px);
        &:last-child {
            border-right: 0;
        }


        dt {
            margin-bottom: 1em;
            font-weight: 500;
            line-height: 1.15;
        }
        dd {
            strong {
                display: block;
                font-weight: 700;
                line-height: 1.2;
            }
            small {
                margin-top: .5em;
                font-weight: 500;
                line-height: 1;
                display: block;
            }
        }
    }

    @media screen and (max-width: $breakpoint-tablet) {
        flex-wrap: wrap;
        dl {
            width: 25%;
            flex: auto;
            &:nth-child(4n) {
                border-right: 0;
            }
            &:last-child {
                border-right: 0;
            }

        }
    }

    @media screen and (max-width: $breakpoint-mobile) {
        flex-wrap: wrap;
        dl {
            width: 50%;
            flex: auto;
            &:nth-child(2n) {
                border-right: 0;
            }
            &:last-child {
                border-right: 0;
            }

        }
    }
}



.__differentiations {
    .__d-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        @media screen and (max-width: $breakpoint-mobile) {
            grid-template-columns: 1fr;
            article {
                order: 2;
            }
            [data-type="img"] {
                order: 1;
            }
        }
    }
    article {
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #020202;
        padding: min(200px, 20vw) to-rem(40px);
        .__img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;

            background: #fff;
            opacity: .15;
            img {
                @include fullsize;
                object-fit: contain;
            }
        }

        h3 {
            position: relative;
            font-weight: 500;
            text-align: center;
            margin-bottom: 1em;

            &:after {
                height: 1px;
                background: #fff;
                opacity: .6;
                width: 1em;
                margin: .5em auto 0;
                content: '';
                display: block;
            }

            &.__noline {
                &:after {
                    display: none;
                }

                margin-bottom: 0;
            }
        }

        p {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: .5em;
            position: relative;
            z-index: 2;
            .__arrow {
                img {
                    display: block;
                    width: 2em;
                }
            }
        }

        .__value {
            font-weight: 700;
            position: relative;
            z-index: 2;
            .__down {
                position: absolute;
                bottom: 0;
                right: 0;
                transform: translate(50%);
                z-index: -1;
                img {
                    display: block;
                    width: 2em;
                }
            }
        }

        ul {
            margin-top: 2em;
            text-align: center;
        }
    }

    article.__diagram {
        padding: 0;
        .__img {
            opacity: 1;
            position: relative;
            img {
                height: auto;
                position: relative;
            }
        }
    }
}




.__diff-evtol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: to-rem(80px);
    margin: 0 auto;
    max-width: 1680px;

    @media screen and (max-width: $breakpoint-mobile) {
        grid-template-columns: 1fr;
    }
    ul {
        li {
            font-weight: 500;
            &+li {
                margin-top: 2.4em;
            }
        }
    }
    img {
        display: block;
        width: 100%;
    }
}

#productDesign {
    .__title-area {
        margin: 0 auto;
        max-width: 1180px;
    }

    .__img {
        img {
            display: block;
            max-width: 100%;
            margin: 0 auto;
        }
    }
    .__img1 {
        margin: 0 auto;
        max-width: 1760px;
        position: relative;
        .__awards {
            width: 16vw;
            max-width: 100px;
            position: absolute;
            right: 0%;
            top: 0%;
            transform: translateY(-50%);
        }
    }
}

.__use-cases {
    article {
        //min-height: 100vh;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow: hidden;
        background: #020202;
        &:nth-child(even) {
            .__img {
                order: 2;
            }
            .__desc {
                order: 1;
            }
        }
        .__img {
            overflow: hidden;
            img {
                display: block;
                width: 100%;
                //height: 100%;
                //min-height: 100vh;
                object-fit: cover;
                //margin-top: -100vh;
            }

        }
        .__desc {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            img {
                display: none;
                width: 100%;
            }
            .__txt {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                text-align: center;
                padding: to-rem(60px) $calc-gutter;
            }

            h3 {
                margin-bottom: 1em !important;
            }

            h3,
            p {
                margin: 0 auto;
                max-width: to-rem(640px);
            }
        }

        @media screen and (max-width: $breakpoint-mobile) {
            grid-template-columns: 1fr;
            height: auto;
            min-height: initial;
            .__img {
                display: none;
            }
            .__desc {
                img {
                    display: block;
                    margin-bottom: to-rem(40px);
                }
                .__txt {
                    padding: to-rem(40px) $calc-gutter to-rem(80px);
                }
            }
        }
    }
}