/* Компактный блок услуг на главной — отличается от карточек стран */

.home_services_widget {
    padding: 36px 0 28px;
    background: linear-gradient(180deg, rgba(171, 57, 127, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.home_services_container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.home_services_header {
    margin-bottom: 18px;
    text-align: left;
}

.home_services_title {
    margin: 0;
    color: #474f55;
    font-family: var(--site-font-family);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.home_services_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.home_service_item {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(33.333% - 8px);
    min-width: 220px;
    max-width: calc(33.333% - 8px);
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.home_service_item.home_service_item_loading {
    filter: blur(10px);
    opacity: 0;
    transform: translate3d(0, 24px, 0);
}

.home_service_item.home_service_item_loading.is_loaded {
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.home_service_link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 76px;
    padding: 8px 12px 8px 8px;
    box-sizing: border-box;
    border: 1px solid rgba(171, 57, 127, 0.14);
    border-radius: 14px;
    background: #fff;
    color: #2f2f35;
    font-family: var(--site-font-family);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home_service_link:hover {
    border-color: rgba(171, 57, 127, 0.35);
    box-shadow: 0 8px 20px rgba(171, 57, 127, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.home_service_thumb {
    display: block;
    width: 60px;
    height: 60px;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 60px;
    overflow: hidden;
    border-radius: 10px;
    background: #f4f0f3;
}

.home_service_thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.home_service_link:hover .home_service_thumb img {
    transform: scale(1.06);
}

.home_service_thumb_placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(171, 57, 127, 0.12), rgba(228, 112, 127, 0.18));
}

.home_service_body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    min-width: 0;
}

.home_service_title {
    display: -webkit-box;
    overflow: hidden;
    color: #2f2f35;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.home_service_link:hover .home_service_title {
    color: var(--primary-color);
}

.home_service_arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 22px;
    border-radius: 50%;
    background: rgba(171, 57, 127, 0.08);
    color: var(--primary-color);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.home_service_link:hover .home_service_arrow {
    transform: translateX(2px);
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 991px) {
    .home_service_item {
        flex-basis: calc(50% - 6px);
        max-width: calc(50% - 6px);
    }
}

@media (max-width: 575px) {
    .home_services_widget {
        padding: 28px 0 20px;
    }

    .home_services_container {
        padding: 0 16px;
    }

    .home_services_title {
        font-size: 20px;
    }

    .home_services_grid {
        gap: 8px;
    }

    .home_service_item {
        flex-basis: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .home_service_link {
        min-height: 68px;
    }

    .home_service_thumb {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
}
