  :root {
            --primary-dark: #2C3748;
            --transition-speed: 0.4s;
            --bs-border-radius: 0;
        }

        body {
            position: inherit;
        }

        .btn-outline-secondary {
            --bs-btn-border-color: #D7DBDD;
        }

        .tab-content-item {
            display: none;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
            flex-direction: column;
            justify-content: space-between;
            height: 600px;
        }

        .tab-content-item.active {
            display: flex;
            opacity: 1;
            transform: translateY(0);
        }

        .tab-header {
            cursor: pointer;
            transition: all 0.3s ease;
            border-left: 4px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .tab-header:hover {
            background-color: rgba(44, 55, 72, 0.05);
        }

        .tab-header.active {
            color: white !important;
            background: #2C3748;
        }

        .tab-header.active h4 {
            color: white !important;
        }

        .tab-number {
            position: absolute;
            right: 20px;
            opacity: 0.7;
            font-size: 14px;
        }

        .image-container {
            position: relative;
            overflow: hidden;
        }

        .tab-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.8s ease;
            display: none;
        }

        .tab-image.active {
            display: block;
        }

        .tab-image:hover {
            transform: scale(1.05);
        }

        .service-btn {
            height: 48px;
            padding: 8px 24px;
            transition: all 0.3s ease;
            border: 1px solid #D7DBDD;
                width: 100%;
                margin: 20px 0 40px;
        }

        .service-btn:hover {
            background-color: var(--primary-dark);
            color: white !important;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .service-btn:hover .arrow-icon {
            background: white !important;
        }

        .arrow-icon {
            transition: background 0.3s ease;
        }

        .fade-in {
            animation: fadeIn 0.6s ease forwards;
        }

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

        .section-container {
            overflow: hidden;
        }

        .service-description {
            font-size: 15px;
            line-height: 22.50px;
        }

        .service-btn-text {
            font-size: 18px;
            line-height: 19.80px;
        }

        .services-header-text {
            font-size: 15px;
            line-height: 16.50px;
            opacity: 0.3;
        }

        .tab-title {
            font-size: 20px;
            line-height: 24px;
        }







        /**/

         /* === ПК: центральная картинка === */
.service-tabs-block .image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-tabs-block .tab-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
}

.service-tabs-block .tab-image.active {
    opacity: 1;
    visibility: visible;
}
a.service-btn {
    display: inline-flex;
    align-items: center;
}
.service-tabs-block a.service-btn img{
    width: 16px;
}
/* === Мобильный аккордеон (фото + текст внутри) === */
@media (max-width: 991.98px) {

    /* прячем левую и центральную колонки на мобилке */
    .service-tabs-block .col-md-4.p-5,
    .service-tabs-block .col-md-4.bg-white.border-end {
        display: none !important;
    }

    /* чтобы правая колонка растянулась на всю ширину */
    .service-tabs-block .col-md-4.bg-white.d-flex.flex-column {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .service-tabs-block .tab-toggle-icon {
        width: 16px;
        height: 16px;
        border-right: 2px solid #111;
        border-bottom: 2px solid #111;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
                min-width: 16px;
        min-height: 16px;
    }

    .service-tabs-block .tab-header.active .tab-toggle-icon {
        transform: rotate(-135deg);
    }

    .service-tabs-block .tab-body-mobile {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .service-tabs-block .tab-body-mobile.open {
        max-height: 1200px; /* подстрой под контент */
    }

    .service-tabs-block .tab-body-mobile img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
        margin-top: 1rem;
        margin-bottom: 1.25rem;
               
    }

    .service-tabs-block .tab-body-mobile .service-description {
        margin-bottom: 1rem;
    }
}

/* на десктопе мобильные тела не нужны */
@media (min-width: 992px) {
    .service-tabs-block .tab-body-mobile {
        display: none;
    }
}