.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Стили для последних двух карточек, чтобы они были по центру */
.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
    grid-column: span 1;
}

/* Центрирование карточек во втором ряду */
.services-row-2 {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

/* Полностью переработанный блок преимуществ */
.benefits-section {
    padding: 80px 0;
    background-color: var(--background-light);
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: 0;
}

.benefits-container {
    position: relative;
    z-index: 1;
}

.benefits-header {
    text-align: center;
    margin-bottom: 50px;
}

.benefits-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.benefits-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.benefits-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.benefit-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    width: calc(33.333% - 20px);
    max-width: 350px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.benefit-card:hover::before {
    width: 10px;
}

.benefit-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.benefit-icon {
    font-size: 2rem;
}

.benefit-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.benefit-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1199.98px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-row-2 {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-card {
        width: calc(50% - 15px);
    }
}

@media (max-width: 767.98px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        width: 100%;
        max-width: 100%;
    }
}
