.clients-section {
    max-width: 1250px !important;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 80px;
}

.clients__container {
    display: flex;
    flex-direction: column;
    gap: 52px;
}

.section-title {
    font-size: 30px;
    font-weight: 600;
    line-height: 120%;
    margin: 0 !important;
    color: rgba(39, 39, 39, 1);
    text-align: center;
}

.clients__box-slider {
    position: relative;
}

/* Исправления для слайдов */
.clients-swiper {
    width: 100%;
    overflow: hidden;
}

.swiper-slide {
    height: auto; /* Важно для выравнивания */
}

.client__card {
    width: 100%;
    height: 100%;
    aspect-ratio: 300 / 200; 
    background-color: rgba(240, 245, 250, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 5px;
    box-sizing: border-box; 
}

.client-logo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Навигация */
.clients-section .swiper-button-next,
.clients-section .swiper-button-prev {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6CB53F;
}

.clients-section .swiper-button-next:after,
.clients-section .swiper-button-prev:after {
    content: "";
    mask: url("data:image/svg+xml;charset=UTF-8,%3csvg width='8' height='14' viewBox='0 0 8 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.440918 0.406738L6.44092 6.90674L0.440918 13.4067' stroke='white' stroke-width='1.2'/%3e%3c/svg%3e") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3csvg width='8' height='14' viewBox='0 0 8 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.440918 0.406738L6.44092 6.90674L0.440918 13.4067' stroke='white' stroke-width='1.2'/%3e%3c/svg%3e") center/contain no-repeat;
    width: 13px;
    height: 13px;
    mask-size: 7px 13px;
    background-color: rgba(255, 255, 255, 1);
}

.clients-section .swiper-button-next,
.clients-section .swiper-button-prev {
    position: absolute;
    top: 50%;
    margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
    z-index: 10;
    cursor: pointer;
}

.clients-section .swiper-pagination-bullet {
    border: 2px solid;
    width: 12px;
    height: 12px;
    background-color: #0000e800;
    color: rgba(108, 181, 63, 1);
    opacity: 1;
    transition: .3s linear;
}

.clients-section .swiper-pagination-bullet-active {
    background-color: rgba(108, 181, 63, 1);
}

.clients-section .swiper-button-prev::after {
    transform: rotate(180deg);
}

.clients-section .swiper-button-next {
    right: -50px !important;
}

.clients-section .swiper-button-prev {
    left: -50px !important;
}

.clients-section .swiper-pagination {
    display: none;
    position: absolute;
    text-align: center;
    transition: .3s opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}

/* Стили для пагинации клиентского слайдера как в category-products */
.clients-section .swiper-pagination {
    display: none;
    position: absolute;
    text-align: center;
    transition: .3s opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
    bottom: 0 !important;
    width: 100%;
}

.clients-section .swiper-pagination-bullet {
    border: 3px solid;
    width: 14px;
    height: 14px;
    background-color: rgba(108, 181, 63, 1);
    color: rgba(108, 181, 63, 1);
    opacity: 1;
    transition: .3s linear;
    display: inline-block;
    margin: 0 4px;
    border-radius: 50%;
}

.clients-section .swiper-pagination-bullet-active {
    background-color: rgb(255, 255, 255);
    opacity: 1;
}

@media (max-width: 1200px) {
    .clients-section .swiper-button-next {
        right: -34px !important;
    }

    .clients-section .swiper-button-prev {
        left: -34px !important; 
    }
}

@media (max-width: 768px) {
    .clients-swiper {
        padding-bottom: 40px;
    }

    .clients-section .swiper-pagination {
        bottom: 0 !important;
        display: block;
    }
    .client__card {
        aspect-ratio: 200 / 150; 
        padding: 15px;
    }
	
	.clients-section {
		margin-top: 40px;
		padding: 0 40px;
	}

	.section-title{
		font-size: 24px;
	}
	
	.clients__container {
		gap: 20px;
	}

}

@media (max-width: 480px) {
    .client__card {
        aspect-ratio: 180 / 120; 
        padding: 10px;
    }
}

/* SV staging 2026-10-12: prevent client carousel nav clipping in middle widths.
 * Only this block; don't change product/carousel wrappers or body overflow.
 * At 769..1309px, -34/-50px navigation offsets extend beyond 20px section inset.
 * Keep 4px space from each viewport edge on narrow tablet widths.
 */
@media (min-width: 769px) and (max-width: 1309px) {
    body.home .clients-section .swiper-button-next.clients-next {
        right: -16px !important;
    }
    body.home .clients-section .swiper-button-prev.clients-prev {
        left: -16px !important;
    }
}


/* SilaVolt staging 2026-10-13: unified BELOW-slider clients controls.
   Scoped to clients-section; overrides legacy negative side offsets. */
.clients-section .clients-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 16px auto 0;
    min-height: 32px;
    position: relative;
}
.clients-section .clients-controls .clients-prev,
.clients-section .clients-controls .clients-next {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #6cb53f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}
.clients-section .clients-controls .clients-prev:after,
.clients-section .clients-controls .clients-next:after {
    font-size: 0;
}
.clients-section .clients-controls .clients-pagination {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    transform: none !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: auto !important;
    min-width: 22px;
    max-width: min(65vw, 420px);
    overflow: visible;
    flex: 0 1 auto;
    z-index: 1;
}
.clients-section .clients-controls .clients-pagination .swiper-pagination-bullet {
    margin: 0 4px !important;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}
.clients-section .clients-controls .clients-prev.swiper-button-disabled,
.clients-section .clients-controls .clients-next.swiper-button-disabled {
    opacity: .4;
    cursor: default;
}
/* Previous mobile layout reserved 40px INSIDE Swiper for pagination.
   Controls now follow Swiper, so remove that artificial blank band. */
@media (max-width: 768px) {
    .clients-section .clients-swiper { padding-bottom: 0; }
}


/* SV / 24sputnik.ru / 2026-10-13 / V6 pagination correction.
   Use Swiper's native dynamic bullets instead of flex layout.
   Dynamic pagination MUST clip extra bullets and keep their inline left offsets.
   Scoped exclusively to the clients carousel. */
.clients-section .clients-controls {
    max-width: 100%;
    box-sizing: border-box;
    gap: 12px;
}
.clients-section .clients-controls .clients-pagination.swiper-pagination-bullets-dynamic,
.clients-section .clients-controls .clients-pagination {
    display: block !important;
    position: relative !important;
    flex: 0 0 104px;
    width: 104px !important;
    min-width: 0;
    max-width: 104px;
    height: 20px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden !important;
    text-align: center;
    transform: none !important;
    box-sizing: border-box;
}
.clients-section .clients-controls .clients-pagination .swiper-pagination-bullet {
    display: inline-block !important;
    vertical-align: middle;
    position: relative;
    flex: none;
    width: 12px;
    height: 12px;
    margin: 0 4px !important;
    padding: 0;
    box-sizing: border-box;
    border: 2px solid #6cb53f;
    border-radius: 50%;
    background: #dedede;
    opacity: 1;
}
.clients-section .clients-controls .clients-pagination .swiper-pagination-bullet-active {
    background: #6cb53f;
}
/* Preserve Swiper's dynamic scale/opacity classes and inline left offsets. */
.clients-section .clients-controls .clients-pagination .swiper-pagination-bullet-active-prev,
.clients-section .clients-controls .clients-pagination .swiper-pagination-bullet-active-next {
    opacity: 1;
}


/* SilaVolt staging / V7: unified 9px fixed-size bullet window, matching products.
   Old dynamic bullet CSS remains inert: JS uses dynamicBullets:false. */
.clients-section .clients-controls {
    gap: 14px;
    margin-top: 16px;
    min-height: 44px;
    max-width: 100%;
    box-sizing: border-box;
}
.clients-section .clients-controls .clients-prev,
.clients-section .clients-controls .clients-next {
    flex: 0 0 36px;
    width: 36px; height: 36px; min-width: 36px; min-height: 36px;
    border-radius: 3px;
    touch-action: manipulation;
}
.clients-section .clients-controls .clients-pagination,
.clients-section .clients-controls .clients-pagination.swiper-pagination-bullets-dynamic {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    min-width: 0;
    max-width: min(56vw, 240px);
    height: auto; min-height: 24px;
    flex: 0 1 auto;
    display: flex !important;
    align-items: center; justify-content: center;
    gap: 5px;
    overflow: hidden !important;
    white-space: nowrap;
    transform: none !important;
    margin: 0 !important;
    line-height: normal;
}
.clients-section .clients-controls .clients-pagination .swiper-pagination-bullet {
    display: none !important;
    position: static !important;
    flex: 0 0 9px;
    width: 9px !important; height: 9px !important; min-width: 9px;
    margin: 0 !important;
    padding: 0;
    border: 0 !important;
    border-radius: 50%;
    background: #bfc3c7;
    opacity: 1 !important;
    transform: none !important;
    transition: background-color .15s ease;
}
.clients-section .clients-controls .clients-pagination .swiper-pagination-bullet.sv-clients-bullet-visible {
    display: inline-block !important;
}
.clients-section .clients-controls .clients-pagination .swiper-pagination-bullet-active {
    background: #6cb53f !important;
}
.clients-section .clients-controls .clients-pagination .swiper-pagination-bullet:focus-visible,
.clients-section .clients-controls .clients-prev:focus-visible,
.clients-section .clients-controls .clients-next:focus-visible {
    outline: 2px solid #272727; outline-offset: 3px;
}
