.advantages-section {
    margin-top: 100px;
}

.advantages-section__title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.3;
    margin: 0 0 40px;
    color: #000;
}

.advantages-section__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.advantages-section__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 420px;
    min-width: 400px;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid rgba(235, 239, 255, 1);
    background: #fff;
    box-sizing: border-box;
    height: 100%;
}

.advantages-section__item:nth-child(-n+3) {
    height: 350px;
}

.advantages-section__item:nth-child(n+4) {
    height: 380px;
}

.advantages-section__item:nth-child(3n) {
    margin-right: 0;
}

.advantages-man__img,
.advantages-cup__img,
.advantages-paper__img,
.advantages-students__img,
.advantages-phone__img,
.advantages-why__img {
    object-fit: contain;
    display: block;
}

.advantages-man__img {
    width: 90px;
    height: 94px;
}

.advantages-cup__img {
    width: 103px;
    height: 110px;
}

.advantages-paper__img {
    width: 114px;
    height: 114px;
}

.advantages-students__img {
    width: 120px;
    height: 88px;
}

.advantages-phone__img {
    width: 100px;
    height: 124px;
}

.advantages-why__img {
    width: 176px;
    height: 97px;
}

.advantages-section__text,
.advantages-section__item>h3.advantages-section__title {
    font-family: "Montserrat", sans-serif;
}

.advantages-section__item>h3.advantages-section__title {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    margin: 0;
    color: #000;
}

.advantages-section__text-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
    flex: 1;
}

.advantages-section__text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
    text-align: center;
    color: #212529;
}

@media screen and (max-width: 1399px) {
    .advantages-section__list {
        grid-template-columns: repeat(2, calc(50% - 10px));
    }

    .advantages-section__item {
        max-width: 100%;
        width: 100%;
        min-width: 0;
        height: auto;
    }

    .advantages-section__item:nth-child(3),
    .advantages-section__item:nth-child(4) {
        height: auto;
    }
}

@media screen and (max-width: 991px) {
    .advantages-section__list {
        grid-template-columns: 100%;
        width: 100%;
    }

    .advantages-section__item {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: auto;
    }
}

@media screen and (max-width: 575px) {
    .advantages-section__title {
        font-size: 26px;
    }

    .advantages-section__item {
        min-width: 0;
        height: auto;
    }
}

@media screen and (max-width: 380px) {
    .advantages-section__text-wrap {
        gap: 5px;
    }

    .advantages-section__item {
        gap: 5px;
    }
}