.branches-section {
    border-radius: 40px;
    padding: 64px 64px 16px;
    margin: 5em 0;
    background-color: #f3f2f2;
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden
}

.branches-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: rgba(0,0,0,.25)
}

.branches-container {
    max-width: 1200px;
    margin: 15px auto;
    position: relative;
    z-index: 1
}

.branches-header-and-controls {
    display: grid;
    grid-template-columns: 420px 1fr;
    column-gap: 48px;
    align-items: end;
    margin-bottom: 32px
}

.branches-header {
    text-align: left;
    max-width: 420px;
    color: #fff
}

.branches-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.1
}

.branches-header p {
    font-size: 16px;
    color: rgba(255,255,255,.9);
    max-width: 380px
}

.branch-card,.branches-right {
    display: flex;
    flex-direction: column
}

.branches-right {
    overflow: visible;
    min-width: 0;
    position: relative;
    z-index: 1
}

.swiper-container.branches-carousel {
    width: 100%;
    overflow: visible;
    margin-left: 0;
    padding-left: 0
}

.branch-card {
    background-color: #fff;
    border-radius: 24px;
    padding: 34px 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    height: 100%
}

.branch-location {
    display: inline-block;
    font-weight: 600;
    color: var(--intraservis-blue);
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.2;
    pointer-events: none;
    cursor: default
}

.branch-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #111827;
    margin-top: auto
}

.branch-address .pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px
}

.branch-address .pin svg {
    width: 16px;
    height: 19px
}

.branch-address .address-lines {
    flex: 1;
    min-width: 0;
    width: 50%
}

.branch-address .address-title {
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
    color: #111827;
    font-weight: 500;
    max-width: 200px
}

.carousel-arrows-branches {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-10);
    margin-top: 16px
}

.carousel-arrows-branches .swiper-button-next.swiper-button-arrow,.carousel-arrows-branches .swiper-button-prev.swiper-button-arrow {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    cursor: pointer;
    border-radius: 50%;
    background-color: #f0f2f5;
    border: 1px solid transparent;
    color: #0ea5e9;
    transition: background-color .2s ease,border-color .2s ease,color .2s ease
}

.carousel-arrows-branches .swiper-button-next.swiper-button-arrow:hover,.carousel-arrows-branches .swiper-button-prev.swiper-button-arrow:hover {
    background-color: var(--soft-sand);
    border-color: #38bdf8;
    color: #38bdf8
}

.carousel-arrows-branches .swiper-button-next.swiper-button-arrow:active,.carousel-arrows-branches .swiper-button-prev.swiper-button-arrow:active {
    background-color: var(--intraservis-blue);
    border-color: #0284c7;
    color: #fff
}

.carousel-arrows-branches .swiper-button-next.swiper-button-arrow.swiper-button-disabled,.carousel-arrows-branches .swiper-button-prev.swiper-button-arrow.swiper-button-disabled {
    background-color: #f0f2f5;
    cursor: not-allowed;
    opacity: .6;
    color: #adb5bd
}

.carousel-arrows-branches .swiper-button-arrow:after {
    font-size: 20px
}

.swiper-button-arrow:hover {
    background-color: #f7f7f7
}

.swiper-button-arrow:after {
    font-size: 16px;
    font-weight: 900
}

.branches-section .branches-carousel .swiper-slide {
    transition: opacity .2s ease-in-out,visibility .2s ease-in-out;
    will-change: opacity,visibility
}

.branches-section .branches-carousel .swiper-slide.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto
}

.branches-section .branches-carousel .swiper-slide.is-hidden-left {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.branches-section .branches-carousel .swiper-slide.swiper-slide-active {
    opacity: 1!important;
    visibility: visible!important;
    pointer-events: auto!important
}

@media (max-width:1024px) {
    .branches-section {
        padding: 48px 48px 16px
    }

    .branches-header-and-controls {
        display: block
    }

    .branches-header {
        text-align: left;
        width: 100%;
        margin: 0 0 24px
    }

    .swiper-container.branches-carousel {
        width: 100%;
        overflow: hidden
    }
}

@media (max-width:768px) {
    .branches-section {
        padding: 24px 24px 16px;
        border-radius: 28px
    }

    .branches-header h2 {
        font-size: 32px
    }
}

@media (max-width:767.98px) {
    .branches-section .branches-carousel .swiper-wrapper {
        width: 100%
    }

    .branches-section .branches-carousel .swiper-slide {
        width: 100%!important;
        max-width: 100%!important;
        min-width: 100%!important;
        flex: 0 0 100%!important;
        box-sizing: border-box
    }
}

@media (min-width:768px) and (max-width:1279.98px) {
    .branches-section .branches-carousel {
        overflow: hidden;
        width: 100%
    }

    .branches-section .branches-carousel .swiper-wrapper {
        display: flex;
        transform: translate3d(0,0,0);
        width: 100%
    }

    .branches-section .branches-carousel .swiper-slide {
        width: calc(50% - 12px)!important;
        max-width: calc(50% - 12px)!important;
        min-width: calc(50% - 12px)!important;
        flex: 0 0 calc(50% - 12px)!important;
        box-sizing: border-box
    }
}

@media (min-width:1280px) {
    .branches-section .branches-carousel {
        overflow: visible
    }

    .branches-section .branches-carousel .swiper-slide {
        width: 380px!important;
        max-width: 380px!important;
        min-width: 380px!important;
        flex: 0 0 420px!important;
        box-sizing: border-box
    }
}