.expertise{
    display: flex;
    max-width: 1440px;
    margin: auto;
    box-sizing: border-box;
    padding: 8.333vw 2.778vw 4.444vw 2.778vw;
    justify-content: center;
}

.expertise_background{
    display: flex;
    position: absolute;
    background: url(../items/backgrounds/badgesbg.svg);
    width: 100vw;
    max-width: 1440px;
    height: 25vw;
    max-height: 360px;
    background-size: 100%;
    z-index: 0;
    left: 50%;
    transform: translateX(-50%);
}

.expertise_container{
    display: flex;
    flex-direction: column;
    gap: 6.667vw;
}

.expertise_title{
    font-size: 2.708vw;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.027vw;
    width: 30.069vw;
    max-width: 433px;
    align-self: center;
}

.expertise_box{
    display: flex;
    flex-direction: column;
    gap: 0.833vw;
    width: 71.597vw;
    max-width: 1031px;
    align-items: center;
}

.expertise_row{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.expertise_square{
    display: flex;
    border-radius: 0.833vw;
    padding: 1.667vw;
    width: 14.028vw;
    height: 14.028vw;
    max-width: 202px;
    max-height: 202px;
}

.square_text{
    font-size: 1.111vw;
    font-weight: 700;
    border: 0.069vw solid #D9DADB;
    color: #545454;
}

.square_red{
    border-color: #BA282D;
}

.expertise_photo_mobile{
    display: none;
}

@media screen and (max-width: 768px) {
    .expertise{
        padding: 72px 16px;
        justify-content: initial;
    }

    .expertise_background{
        background-image: url(../items/backgrounds/badgesbg_mobile.svg);
        height: 200px;
    }

    .expertise_container{
        gap: 56px;
    }

    .expertise_title{
        font-size: 31px;
        letter-spacing: -0.31px;
        width: auto;
        max-width: none;
        z-index: 2;
    }

    .expertise_box{
        flex-direction: column;
        padding: 0;
        justify-content: initial;
        gap: 12px;
        width: auto;
    }

    .expertise_row{
        flex-direction: column;
        gap: 12px;
        width: auto;
    }

    .expertise_square{
        border-radius: 12px;
        padding: 24px;
        width: auto;
        max-width: none;
        height: auto;
        max-height: none;
    }

    .square_text{
        font-size: 16px;
        border-width: 1px;
    }

    .expertise_photo_mobile{
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .photo_row{
        display: flex;
        gap: 20px;
        width: 100%;
    }

    .photo_mobile{
        display: flex;
        border-radius: 12px;
        width: 100%;
        background-color: #fff;
        padding: 46px 5px;
        justify-content: center;
    }

    .photo_mobile img{
        width: 100%;
    }
}

@media screen and (min-width: 1440px) {
    .expertise{
        padding: 120px 40px 64px 40px;
    }
    
    .expertise_container{
        gap: 96px;
    }

    .expertise_title{
        font-size: 39px;
        letter-spacing: -0.39px;
    }

    .expertise_box{
        gap: 12px;
    }

    .expertise_square{
        border-radius: 12px;
        padding: 24px;
    }

    .square_text{
        font-size: 16px;
        border-width: 1px;
    }
}