:root {
    --services-hover-transform-y: -5px;
    --services-hover-scale: 1;
}

.services-widget-section {
    position: relative;
    box-sizing: border-box;
}

.services-widget-section *,
.services-widget-section *::before,
.services-widget-section *::after {
    box-sizing: border-box;
}

.services-widget-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-widget-heading {
    margin: 0 0 12px;
    line-height: 1.2;
}

.services-widget-subtitle {
    margin: 0;
    line-height: 1.5;
    opacity: 0.85;
}

.services-widget-container {
    position: relative;
    margin: 0 auto;
}

.services-carousel-outer {
    position: relative;
}

.services-carousel-slider {
    width: 100%;
    padding: 5px 0 60px;
    overflow: hidden;
}

.services-carousel-slider .swiper-wrapper {
    align-items: stretch;
}

.services-carousel-slider .swiper-slide {
    height: auto;
    min-width: 0;
    flex-shrink: 0;
}

.services-carousel-slider .services-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
}

.services-carousel-slider .services-card-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.services-card-slide {
    height: 100%;
    display: flex;
}

.services-card-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    flex: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid;
}

.services-card-box:hover {
    transform: translateY(var(--services-hover-transform-y)) scale(var(--services-hover-scale));
}

.services-card-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
    margin-bottom: 20px;
}

.services-card-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.services-card-icon {
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.services-card-icon svg,
.services-card-icon img {
    width: 1em;
    height: 1em;
    display: block;
}

.services-card-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.services-card-body {
    flex-shrink: 0;
}

.services-card-title {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 16px;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.services-card-divider {
    width: 100%;
    height: 1px;
    margin-bottom: 16px;
}

.services-card-text {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    overflow-wrap: break-word;
}

/* Навигация карусели */
.services-carousel-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.services-carousel-nav .swiper-button-prev,
.services-carousel-nav .swiper-button-next {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    margin-top: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    transition: opacity 0.2s ease;
}

.services-carousel-nav .swiper-button-prev {
    left: -50px;
}

.services-carousel-nav .swiper-button-next {
    right: -50px;
}

.services-carousel-nav .swiper-button-prev::after,
.services-carousel-nav .swiper-button-next::after {
    color: inherit;
}

.services-slider-pagination {
    position: relative !important;
    text-align: center;
    margin-top: 20px;
    z-index: 10;
}

.services-slider-pagination .swiper-pagination-bullet {
    display: inline-block;
    margin: 0 4px;
    border-radius: 50%;
    cursor: pointer;
}

/* Адаптив */
@media (max-width: 768px) {
    .services-carousel-nav .swiper-button-prev {
        left: -25px;
    }

    .services-carousel-nav .swiper-button-next {
        right: -25px;
    }
}

@media (max-width: 576px) {
    .services-carousel-nav .swiper-button-prev {
        left: -10px;
    }

    .services-carousel-nav .swiper-button-next {
        right: -10px;
    }
}
