/* CSS для виджета услуг INTERIORI */
:root {
    --primary-color: #F3A623; /* Золотисто-желтый цвет */
    --dark-bg: #1e2124;
    --text-light: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
}

.services-section {
    width: 100%;
    margin: 0 auto;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.service-card {
    position: relative;
    overflow: hidden;
    height: 500px;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: all 0.3s ease;
    background-color: #000; /* Фон для изображений */
}

.service-card.service-card-animated:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.service-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет контейнер, сохраняя пропорции */
    object-position: center center; /* Центрирует изображение */
    transition: transform 0.5s ease;
    opacity: 0.9; /* Немного затемняем изображение для лучшей читаемости текста */
    min-width: 100%;
    min-height: 100%;
    display: block;
}

.service-card.service-card-animated:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2; /* Убедимся, что контент всегда поверх изображения */
    box-sizing: border-box; /* Для правильного расчета ширины с учетом паддингов */
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: var(--text-light);
}

.service-description {
    color: var(--text-secondary);
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.service-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--primary-color);
    width: fit-content;
}

.service-link:hover {
    color: var(--primary-color);
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1200px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        height: 400px;
    }
}