.reputation {
    margin-top: 100px;
    padding: 100px 0 71px 0;
    background-color: #0C3A31;
}

.reputation__title {
    max-width: 620px;
    margin-bottom: 17px;
}

.reputation__description {
    color: #FFF;
    max-width: 1014px;
    margin-bottom: 124px;
}

.reputation__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 20px;
    margin-bottom: 74px;
    position: relative;
}

.reputation__items::before {
    content: "";
    position: absolute;
    top: -43px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background-image: repeating-linear-gradient(-3deg, #416258, #416258 10px, transparent 10px, transparent 18px, #416258 18px), repeating-linear-gradient(87deg, #416258, #416258 10px, transparent 10px, transparent 18px, #416258 18px), repeating-linear-gradient(177deg, #416258, #416258 10px, transparent 10px, transparent 18px, #416258 18px), repeating-linear-gradient(267deg, #416258, #416258 10px, transparent 10px, transparent 18px, #416258 18px);
    background-size: 3px 100%, 100% 3px, 3px 100% , 100% 3px;
    background-position: 0 0, 0 0, 100% 0, 0 100%;
    background-repeat: no-repeat;
}

.reputation__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    background: #28594B;
    padding: 37px 20px 31px 20px;
}

.reputation__item-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #0C3A30;
    margin-bottom: 23px;
}

.reputation__item-title {
    color: #FFF;
    text-align: center;
    font-size: 23px;
    font-style: normal;
    font-weight: 700;
    line-height: 115%;
    margin-bottom: 12px;
}

.reputation__item-description {
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
    max-width: 220px;
}

.reputation__stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.reputation__stats::before {
    content: "";
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background-image: repeating-linear-gradient(-3deg, #416258, #416258 10px, transparent 10px, transparent 18px, #416258 18px), repeating-linear-gradient(87deg, #416258, #416258 10px, transparent 10px, transparent 18px, #416258 18px), repeating-linear-gradient(177deg, #416258, #416258 10px, transparent 10px, transparent 18px, #416258 18px), repeating-linear-gradient(267deg, #416258, #416258 10px, transparent 10px, transparent 18px, #416258 18px);
    background-size: 3px 100%, 100% 3px, 3px 100% , 100% 3px;
    background-position: 0 0, 0 0, 100% 0, 0 100%;
    background-repeat: no-repeat;
}

.reputation__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reputation__stat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: #CFFF45;
    margin-bottom: 66px;
}

.reputation__stat-value {
    color: #FFDA1E;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 115%;
    margin-bottom: 6px;
}

.reputation__stat-key {
    color: #B6C4C1;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
}

@media (max-width: 1100px) {
    .reputation {
        padding: 80px 0;
    }

    .reputation__description {
        margin-bottom: 100px;
    }

    .reputation__items {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 900px;
        margin: 0 auto 40px auto;
    }

    .reputation__item {
        padding: 20px;
    }

    .reputation__item-description {
        max-width: 100%;
    }

    .reputation__stats {
        max-width: 900px;
        margin: 0 auto;
    }
}

@media (max-width: 650px) {
    .reputation__items {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .reputation__title {
        text-align: center;
    }

    .reputation__description {
        text-align: center;
        margin-bottom: 40px;
    }

    .reputation__stats {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }

    .reputation__stats::before,
    .reputation__items::before {
        display: none;
    }

    .reputation__stat-icon {
        grid-area: stat-icon;
        margin-bottom: 0;
    }

    .reputation__stat-value {
        grid-area: stat-value;
        text-align: left;
    }

    .reputation__stat-key {
        grid-area: stat-key;
        text-align: left;
    }

    .reputation__stat {
        display: grid;
        grid-template-columns: 68px 1fr;
        grid-template-areas:
                "stat-icon stat-value"
                "stat-icon stat-key";
        text-align: left;
        width: fit-content;
        column-gap: 10px;
    }

    .reputation__stat + .reputation__stat {
        margin-top: 24px;
    }
}