.benefits {
    width: 100%;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    text-align: center;
    background-color: #f8fbff;
}

.section-title {
    width: 100%;
    text-align: center;
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #222;
}

.benefits-container {
    width: 70%;
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.benefit-item-one,
.benefit-item-two,
.benefit-item-three,
.benefit-item-for {
    width: 20%;
    height: 200px;
    background: #fff; 
    padding: 20px;
    border-radius: 20px;
    box-shadow: -5px -5px 9px rgba(255, 255, 255, 0.45), 
                5px 5px 9px rgba(94, 104, 121, 0.3);
}

.benefit-image {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.benefit-text{
    font-size: 32px;
    font-weight: 600px;
    padding-bottom: 20px;
}

.benefit-subtitle{
    font-size: 18px;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.benefit-item-one,
.benefit-item-two,
.benefit-item-three,
.benefit-item-for {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.benefit-item-one.animate,
.benefit-item-two.animate,
.benefit-item-three.animate,
.benefit-item-for.animate {
    animation: fadeInUp 0.8s ease forwards;
}


@media (max-width: 1700px){
    .benefits-container{
        flex-wrap: wrap;
    }

    .benefit-item-one,
    .benefit-item-two,
    .benefit-item-three,
    .benefit-item-for {
    width: 350px;
    height: 200px;
    flex: 0 0 calc(30%); /* 50% ширины минус половина gap */
}

    .benefit-text{
        font-size: 24px;
    }

    .benefit-subtitle{
        font-size: 14px;
    }
}

/* Планшеты — до 1024px */
@media (max-width: 1024px) {
    .benefits-container {
        width: 90%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .benefit-item-one,
    .benefit-item-two,
    .benefit-item-three,
    .benefit-item-for {
        width: 45%;
        margin-bottom: 30px;
    }

    .benefit-text{
        font-size: 24px;
    }

    .benefit-subtitle{
        font-size: 14px;
    }
}

/* Смартфоны — до 768px */
@media (max-width: 768px) {
    .section-title {
        margin-bottom: 30px;
    }

    .benefit-item-one,
    .benefit-item-two,
    .benefit-item-three,
    .benefit-item-for {
        width: 90%;
        flex: 0 0 calc(100%);
        height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    .benefit-item h3 {
        font-size: 24px;
    }

    .benefit-item p {
        font-size: 16px;
    }

    .benefit-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .benefits-container{
        width: 80%;
    }

    .section-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .benefit-item-one,
    .benefit-item-two,
    .benefit-item-three,
    .benefit-item-for {
        width: 100%;
        height: 150px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .benefit-text{
        padding: 5px 0;
    }

    .benefit-item h3 {
        font-size: 16px;
        padding: 0;
        margin: 0;
    }

    .benefit-subtitle{
        width: 90%;
    }

    .benefit-item p {
        font-size: 14px;
    }

    .benefit-image {
        width: 45px;
        height: 45px;
    }
}