/* ===== АНИМАЦИЯ ДЛЯ ФОТО В БЛОКЕ УСЛУГ ===== */

/* 1. Для самого фото — плавное увеличение при наведении */
.your-block img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    width: 100%;
}

.your-block img:hover {
    transform: scale(1.15); /* Увеличение на 15% */
}

/* 2. Для появления затемненного фона с текстом при наведении */
.your-block .service-item {
    position: relative;
    overflow: hidden;
}

.your-block .service-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 30, 50, 0.85);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.your-block .service-item:hover .overlay {
    opacity: 1;
}

/* Текст внутри фона */
.your-block .overlay h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.your-block .overlay p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 90%;
}