/* Секция услуг */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.services-subtitle {
    font-size: 1.1rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

/* Сетка 2x2 на десктопах */
.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две колонки */
    gap: 2rem;
    padding: 0;
}

.service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.15) 100%);
    transition: all 0.4s ease;
}

.service-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Иконка без кружка */
.service-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1); /* Делаем иконку белой */
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: white;
    font-weight: 700;
}

.service-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.service-button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.service-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Эффекты при наведении */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card:hover .service-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.service-card:hover .service-content {
    transform: translateY(0);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-container {
    animation: fadeInUp 0.8s ease forwards;
}

/* Адаптивность */
@media (max-width: 992px) {
    .services-section {
        padding: 4rem 1.25rem;
    }
    
    .services-container {
        gap: 1.5rem;
    }
    
    .service-card {
        height: 360px;
    }
}

/* Мобильная версия - одна колонка */
@media (max-width: 768px) {
    .services-section {
        padding: 3rem 1rem;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-container {
        grid-template-columns: 1fr; /* Одна колонка */
        max-width: 500px; /* Уже чем на десктопе */
        margin: 0 auto;
        gap: 1.5rem;
    }
    
    .service-card {
        height: 320px;
        border-radius: 14px;
    }
    
    .service-content {
        padding: 1.75rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1.2rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        height: 280px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .services-title {
        font-size: 1.8rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
    }
}