/* Уникальные классы и стили для services */
.services-container {
    width: 80%;
    max-width: 1200px;
    text-align: center;
    margin: 0 auto; /* Центрирование по горизонтали */
    padding: 20px; /* Добавим верхний и нижний отступы */
}

.services-title {
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(90deg, #007BFF, #00C6FF);
    -webkit-background-clip: text;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    animation: fadeIn 1s ease-in-out;
}

.services-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007BFF, #00C6FF);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-in-out;
}

.services-container:hover .services-title::after {
    transform: scaleX(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-item {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item img {
    width: 100%;
    height: 150px;
    border-radius: 16px 16px 0 0;
    display: block;
    transition: transform 0.3s ease;
}

.service-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    flex-grow: 1; /* Занимает оставшееся пространство */
}

.service-header {
    font-size: 18px;
    color: #007BFF;
    margin: 0;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-description {
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 10px;
    color: #000;
    text-align: center;
}

.service-item:hover .service-header {
    transform: translateY(-10px);
}

.service-item:hover .service-description {
    opacity: 1;
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}