main {
    width: 100%;
    height: 100%;
    background-color: var(--main);
    overflow: hidden;
    font-weight: bold;
    color: var(--white);
    text-align: center;
    /* add this line */
}

/* 섹션 1 */

.wrap {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: scrolling 20s linear infinite;
    margin: 124px 0;
}

.text {
    letter-spacing: 0;
    font-size: 24px;
    position: relative;
    padding: 13px 0;
    width: 100%;
    white-space: nowrap;
    margin-right: 188px;
}

@keyframes scrolling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.wrap::before {
    content: '';
    background-color: var(--white);
    width: 100%;
    position: absolute;
    height: 2px;
    top: 0;
    left: 0;
}

.wrap::after {
    content: '';
    background-color: var(--white);
    width: 100%;
    position: absolute;
    height: 2px;
    bottom: 0;
    left: 0;
}

.circle {
    position: relative;
    padding: 1%;
}

.circle::after {
    content: '';
    background-color: var(--white);
    width: 5px;
    height: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
}

.sec1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sec1 .imgBox:first-child {
    margin-bottom: 90px;
}

.sec1 .imgBox {
    margin: 0 10%;
}

.imgBox >img {
    width: 100%;
    height: 100%;
}

/* 섹션 2 */

.sec2 {
    margin: 0 1%;
}

.sec2 .textBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: end;
    justify-items: center;
    padding: 55px 0;
    row-gap: 55px;
}

.card .imgBox {
    text-align: center;
    max-width: 200px;
    max-height: 200px;
    margin: 0 auto;
}

.card p {
    font-size: 28px;
    border: 2px solid;
    /*padding: 0 50px;*/
    border-radius: 28.42px;
    line-height: 50px;
    font-weight: 400;
    width: 430px;
    background-color: var(--main);
    z-index: 3;
    position: relative;
}


.sec2 .sec1 {
    margin: 180px auto;
}

/* 섹션 3 */

.sec3 {
    background-color: #f7f8f8;
    color: var(--main);
}

.normal {
    font-weight: 400;
}

.cont {
    display: flex;
    flex-direction: column;
    padding: 160px 10%;
    align-items: center;

}

.num {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
}

.num span {
    color: var(--white);
    background: var(--main);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 50px;
    font-family: 'Montserrat';
}

.num p {
    font-size: 56px;
}

.num p.normal {
    font-size: 42px;
}

.images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
}

.images .imgBox > img {
    object-fit: contain;
}


.sec3 .textBox {
    background-color: var(--white);
    font-size: 28px;
    letter-spacing: -2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 10%;
    margin-top: 82px;
}

.textBox ~ p {
    font-size: 24px;
    letter-spacing: -2px;
    padding: 28px 0 0;
}

/* 섹션 4 */


.sec4 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sec4 p {
    font-size: 56px;
    letter-spacing: -2px;
    margin: 104px 10%;
}

.sec4 .imgBox {
    margin: 104px 10%;
}

@media screen and (max-width: 1085px) {
    .sec3 .textBox {
        font-size: 24px;
    }
}

@media screen and (max-width: 920px) {
    .sec3 .textBox p {
        display: flex;
        flex-wrap: wrap;
        white-space: nowrap;
        align-items: center;
        justify-content: center;
    }
}

@media screen and (max-width: 890px) {
.card p {
    font-size: 26px;
    line-height: 48px;
    }
}

@media screen and (max-width: 832px) {
    .card p {
        font-size: 24px;
        line-height: 46px;
        padding: 0 46px;
    }
}

@media screen and (max-width: 765px) {
    .card p {
        font-size: 22px;
        line-height: 44px;
        padding: 0 44px;
    }
    .sec2 .textBox {
        font-size: 52px;
    }

    .cont {
        padding: 80px 10%;
    }

    .sec4 p {
        margin: 50px 10%;
    }

    .sec4 .imgBox {
        margin: 50px 10%;
    }
}

@media screen and (max-width: 702px) {
    .cards {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
        padding: 50px 0;
        row-gap: 50px;
    }
    .sec2 .textBox {
        font-size: 50px;
    }
}

@media screen and (max-width: 640px) {
    .sec3 .textBox {
        font-size: 24px;
        padding: 40px 5%;
    }
}



@media screen and (max-width: 585px) {
    .sec2 .textBox {
        font-size: 40px;
    }
}

@media screen and (max-width: 560px) {
    .sec3 .textBox {
        font-size: 22px;
        padding: 40px 5%;
    }

    .num p {
        font-size: 50px;
    }

    .num p.normal {
        font-size: 38px;
    }
}

@media screen and (max-width: 500px) {
    .sec3 .textBox {
        font-size: 20px;
        padding: 40px 3%;
    }

    .num p {
        font-size: 48px;
    }

    .num p.normal {
        font-size: 32px;
    }
}

@media screen and (max-width: 460px) {
    .sec2 .textBox {
        font-size: 36px;
    }
}

@media screen and (max-width: 430px) {
    .sec3 .textBox {
        font-size: 20px;
        padding: 40px 3%;
    }

    .num p {
        font-size: 42px;
    }

    .num p.normal {
        font-size: 28px;
    }
}


@media screen and (max-width: 410px) {
    .card p {
        font-size: 20px;
        line-height: 40px;
        padding: 0 40px;
    }

    .sec2 .textBox {
        font-size: 32px;
    }
}

@media screen and (max-width: 375px) {

    .num p {
        font-size: 38px;
        text-align: center;
    }

    .num p.normal {
        font-size: 26px;
    }
}

@media screen and (max-width: 355px) {
    .card p {
        font-size: 20px;
        line-height: 40px;
        padding: 0 36px;
    }

    .sec2 .textBox {
        font-size: 28px;
    }
}

@media screen and (max-width: 330px) {
    .card p {
        font-size: 18px;
        line-height: 40px;
        padding: 0 24px;
    }

    .sec2 .textBox {
        font-size: 26px;
    }

    .card .imgBox , .cont .imgBox {
        display: none;
    }

    .sec2 {
        text-align: center;
    }

    .sec3 .textBox p {
        white-space: wrap;
        align-items: center;
        text-align: center;
    }
}