/* =========================================
   ЭТЛ ПРОТОН — КАТЕГОРИИ УСЛУГ
   ========================================= */

/* Заголовки категорий */

.proton-services-heading {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #02599d;
    margin: 0 0 15px;
}

.proton-services-intro {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 25px;
}

.proton-services-breadcrumb {
    font-size: 12px;
    color: #888;
    margin: 0 0 18px;
}

.proton-services-breadcrumb a {
    color: #02599d;
    text-decoration: none;
}

/* Карточки услуг */

.proton-service-card {
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
    width: calc(33.333% - 16px);
    height: 300px;
    margin: 0 6px 24px;
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
    transition: transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease;
}

.proton-service-card:hover {
    transform: translateY(-4px);
    border-color: #b7cde0;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.proton-service-card > a {
    display: block;
    flex-shrink: 0;
}

/* Изображения */

.proton-service-image {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #f0f3f6;
}

.proton-service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

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

/* Информация об услуге */

.proton-service-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 18px;
    box-sizing: border-box;
}

.proton-service-title {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 12px;
    overflow-wrap: break-word;
}

.proton-service-title a {
    color: #02599d;
    text-decoration: none;
}

.proton-service-title a:hover {
    color: #013e6e;
}

/* Ссылка подробнее */

.proton-service-more {
    margin-top: auto;
    flex-shrink: 0;
}

.proton-service-more a {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #02599d;
    text-decoration: none;
}

.proton-service-more a:hover {
    text-decoration: underline;
}

/* Адаптация */

@media (max-width: 768px) {
    .proton-service-card {
        width: calc(50% - 16px);
    }
}

@media (max-width: 480px) {
    .proton-service-card {
        width: 100%;
        height: auto;
        min-height: 300px;
        margin: 0 0 20px;
    }

    .proton-service-info {
        min-height: 130px;
    }

    .proton-services-heading {
        font-size: 24px;
    }
}