.comments {
    z-index: 2;
    position: relative;
    background: var(--light);
    padding: 39px 0 56px;
}

.comments:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    background: var(--main);
    width: calc(100% - 40px);
    max-width: 1116px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 7px;
}

.comments__title {
    color: var(--grey_light);
    font-size: 2.1875rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 45px;
}

.comments__list {
    z-index: 2;
    position: relative;
}

.comments__item {
    position: relative;
    margin-bottom: 38px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--grey);

}

.comments__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.comments__circle {
    position: relative;
    max-width: 58px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 9px;
}

.avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
}

.comments__name {
    color: var(--dark);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.04;
}

.comments__text {
    font-size: 1.375rem;
    line-height: 1.5;
}

.comments__item-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 23px 0 12px;
}

.comments__img {
    max-width: 434px;
}

.comments__date {
    color: var(--grey);
    font-size: 1.3125rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

@media screen and (max-width: 1024px) {
    .comments__container {
        padding: 0 15px;
    }

    .comments__list {
        padding: 50px 0 22px;
    }

    .comments__item-row {
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 15px;
        margin: 20px 0;
    }
}

@media screen and (max-width: 576px) {

    .comments__list {
        padding: 0;
    }

    .comments__item {
        margin-bottom: 22px;
        padding-left: 0;
    }

    .comments__title {
        font-size: 1.375rem;
        margin-bottom: 15px;
    }

    .comments__circle {
        max-width: 36px;
    }

    .comments__name {
        font-size: 1.0625rem;
        line-height: 1.1;
    }

    .comments__meta {
        margin-bottom: 19px;
    }

    .comments__text {
        font-size: 1.0625rem;
        line-height: 1.21;
    }

    .comments__date {
        font-size: 1rem;
        width: auto;
    }

    .comments__item-row {
        justify-content: flex-start;
        gap: 10px;
        margin: 18px 0 5px;
    }

    .comments__img {
        max-width: 240px;
    }
}