:root {
    --padding-block: 0 8%;
}

.terms_title {
    margin: 0;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: max-content;
    font-size: 32px;
    font-weight: 300;
    padding: var( --padding-block);
    padding-top: 30px;
}

.terms_comment {
    font-size: 20px;
    font-weight: 200;
    margin: 0;
    margin-bottom: 10px;
    color: var(--main-color);
    padding: var( --padding-block);
}

.terms_block {
    border-top: 1px solid var(--main-color);
}

/*.terms_div {
    background: linear-gradient(-180deg, rgba(23,23,23,0.9) 15%, rgba(23,23,23,0.3) 55%), url('/static/public/avif/terms/terms_block.avif');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    margin-bottom: 50px;
    border-top: 1px solid var(--main-color);
    border-bottom: 1px solid var(--main-color);
    display: flex;
}*/

.terms {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: start;
    flex-wrap: wrap;
    padding: var( --padding-block);
    padding-top: 20px;
    padding-bottom: 20px;
}

.terms_card {
    width: calc(100% / 3 - 40px / 3);
    margin-inline-end: 20px;
    border-radius: 10px;
    border: 1px solid var(--main-color);
    background-color: rgb(0, 0, 0, 0.6);
    display: flex;
    flex-direction: row;
    justify-content: start;
    flex-wrap: nowrap;
    padding: 3%;
    margin-bottom: 30px;
    min-height: 270px;
    align-items: center;
}

.terms_card:nth-child(3n+3) {
    margin-inline-end: 0;
}

.terms_card:nth-child(4n+4), .terms_card:nth-child(5n+5),  .terms_card:nth-child(6n+6) {
    margin-bottom: 0;
}

.term_icon {
    width: 70px;
    margin-inline-end: 30px;
}

.term_title {
    margin: 0;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: max-content;
    white-space: breking-space;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 10px;
}

.term_comment {
    margin: 0;
    font-size: 24px;
    font-weight: 200;
    color: var(--main-color);
}


@media only screen and (max-width: 1440px) {
    :root {
        --padding-block: 0 3%;
    }

    .term_comment {
        font-size: 22px;
    }
}

@media only screen and (max-width: 1240px) {
    /*.terms {
        padding-top: 50px;
        padding-bottom: 50px;
    }*/

    .terms_card {
        width: calc(100% / 2 - 20px / 2);
    }

    .terms_card:nth-child(3n+3) {
        margin-inline-end: 20px;
    }

    .terms_card:nth-child(2n+2) {
        margin-inline-end: 0;
        margin-bottom: 30px;
    }

    .terms_card:nth-child(5n+5) {
        margin-bottom: 0;
    }

    .term_title {
        width: unset;
    }
}

@media only screen and (max-width: 720px) {
    .terms_title {
        width: unset;
    }

    /*.terms {
        padding-top: 30px;
        padding-bottom: 30px;
    }*/

    .terms_card {
        width: 100%;
        margin-inline-end: 0!important;
        margin-bottom: 20px!important;
    }

    .terms_card:last-child {
        margin-bottom: 0px!important;
    }
}

