.works-block .works.swiper {
    width: calc(100% - 780px);
    margin-left: auto;
    margin-right: auto;
    overflow: unset;
}
.works-block .works-holder {
    overflow: hidden;
}
.works-block .swiper-slide {
    border-radius: 30px;
    overflow: hidden;
}
.works-block .swiper-slide-active:before {
    display: none;
}
.works-item .works-gallery img {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: block;
    object-fit: cover;
    transition: 0.1s;
}
.works-item .works-gallery img:nth-child(1) {
    opacity: 1;
}
.works-item .gallery-holder {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
    position: relative;
}
.works-block .swiper-slide .gallery-holder {
    width: 360px;
    transition: 1s;
}
.works-block .swiper-slide-prev .gallery-holder {
    margin-left: auto;
}
.works-block .swiper-slide .gallery-holder {
    pointer-events: none;
}
.works-block .swiper-slide .gallery-holder:before {
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    background: rgba(0, 0, 0, 0.2);
    transition: 0.5s;
    z-index: 1;
    pointer-events: none;
}
.works-block .swiper-slide-active .gallery-holder:before {
    opacity: 0;
}
.works-block .swiper-slide-active .gallery-holder {
    pointer-events: all;
    width: 100%;
}
.works-item .works-gallery {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
}
.works-item .gallery-controls {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    opacity: 0;
    transition: 0.5s;
}
.works-block .swiper-slide-active .gallery-controls {
    opacity: 1;
}
.works-item .gallery-control {
    height: 100%;
    width: auto;
    flex-grow: 1;
    padding: 0px 3px 15px 3px;
    position: relative;
}
.works-item .gallery-control:before {
    content: "";
    width: calc(100% - 15px);
    height: 5px;
    border-radius: 100px;
    background: var(--head-primary);
    bottom: 30px;
    left: 7px;
    position: absolute;
    transition: 0.1s;
}
.works-item .gallery-control.active:before {
    background: var(--primary);
}
.works-item .gallery-control:first-child {
    padding-left: 25px;
}
.works-item .gallery-control:first-child:before {
    right: 10px;
    left: unset;
}
.works-item .gallery-control:first-child:before,
.works-item .gallery-control:last-child:before {
    width: calc(100% - 28px);
}
.works-item .gallery-control:last-child {
    padding-right: 25px;
}
.works-block .work-chars {
    display: none;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    transition: 0.5s;
    opacity: 0;
}
.works-block .swiper-slide-active .work-chars {
    opacity: 1;
    display: flex;
}
.works-block .char-value {
    font-weight: 400;
    font-size: 18px;
    line-height: 130%;
    color: var(--main-text-primary);
    padding: 17px 30px;
    border-radius: 100px;
    background: var(--background-fourthly);
}
.works-block .char-value:nth-child(1) {
    background-color: var(--primary);
}
.works-block .nav-wrapper {
    padding-right: 7px;
}

@media (max-width: 1400px) {
    .works-block .char-value {
        font-size: 14px;
        padding: 5px 8px;
    }
    .works-block .works-item {
        padding-bottom: 15px;
    }
    .works-item .gallery-control:before {
        bottom: 15px;
    }
    .works-block .works.swiper {
        width: calc(100% - 740px);
    }
}

@media (max-width: 1200px) {
    .works-block .works.swiper {
        width: 100%;
    }
    .works-block .swiper-slide .gallery-holder {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .works-block .nav-wrapper .btn {
        order: 2;
    }
}

@media (max-width: 498px) {
    .works-block .swiper-slide .gallery-holder {
        height: 300px;
    }
    .works-item .gallery-control:before {
        height: 3px;
    }
}

@media (max-width: 400px) {
    .works-block .nav-wrapper .btn {
        width: 100%;
    }
}