#works-block {
    padding: 40px 0px;
}
#works-block .works-item{
    box-sizing: border-box;
    display: flex;
    height: auto;
}
#works-block .img{
    position: relative;
    width: 50%;
    max-height: 700px;
}
#works-block .img::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 40px; */
    /* height: 40px; */
    /* border-radius: 50%; */
    /* background-color: var(--background); */
    /* color: var(--primary); */
    /* font-size: 24px; */
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17Z' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 21L14.95 14.95' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: clamp(2.5rem, 2.25rem + 1.25vw, 3.75rem);
    height: clamp(2.5rem, 2.25rem + 1.25vw, 3.75rem);
}
#works-block .img::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    border-radius: 10px;
}
#works-block .img:hover::before,#works-block .img:hover::after{
    opacity: 1;
}
#works-block .img img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
#works-block .right-side{
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 80px 100px;
    padding-bottom: 280px;
    background: white;
    position: relative;
    padding-right: 244px;
}
#works-block .nav__holder{
    position: absolute;
    height: 166px;
    background: var(--text);
    width: 50%;
    bottom: 0;
    right: 0;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;z-index: 12;
}
#works-block .buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
#works-block .swiper-button-prev,
#works-block .swiper-button-next{
    display: flex;
    gap: 5px;
    align-items: center;
    width: unset !important;
    height: unset !important;
    background: unset !important;
    position: static;
}
#works-block .swiper-button-disabled {
    opacity: 0.6 !important;
}
#works-block .swiper-button-prev p,
#works-block .swiper-button-next p{
    font-size: 16px;
    font-weight: 700;
    line-height: 150%;
    color: white;
    transition: 0.3s;
}
#works-block .swiper-button-prev:hover p,
#works-block .swiper-button-next:hover p {
    color: var(--main);
}
#works-block .swiper-button-prev path,
#works-block .swiper-button-next path {
    transition: 0.3s;
    stroke: white;
}
#works-block .swiper-button-prev:hover path,
#works-block .swiper-button-next:hover path {
    stroke: var(--main);
}
#works-block .progressbar{
    width: 100%;
    height: 2px;
    background: #5F5F66;
}
#works-block .swiper-scrollbar-drag{
    background: var(--main);
}
#works-block .name{
    font-size: 24px;
    font-weight: 700;
    line-height: 130%;
    margin-bottom: 30px;
    position: relative;
}
#works-block .name:before{
    content: "";
    width: 5px;
    height: 100%;
    top: 0;
    left: -20px;
    background: var(--main);
    position: absolute;
}
#works-block .list-title{
    font-size: 16px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 15px;
}
#works-block .list{
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#works-block .list-item{
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    color: var(--lText);
    padding-left: 18px;
    position: relative;
}
#works-block .list-item.hidden {
    display: none;
}
#works-block .list-item:before{
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    top: 9px;
    left: 0;
    background: var(--main);
    border-radius: 50%;
}
#works-block .buttons-holder{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
}
#works-block .link{
    display: flex;
    align-items: center;
    gap: 10px;
}
#works-block .link .icon{
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main);
    border-radius: 2px;
    transition: 0.3s;
}
#works-block .link p {
    font-size: 16px;
    font-weight: 700;
    line-height: 150%;
    transition: 0.3s;
}
#works-block .link:hover .icon{
    background: var(--hover);
}
#works-block .link:hover p{
    color: var(--hover);
}
@media (max-width: 1600px) {
    #works-block .right-side {
        padding: 30px;
        padding-bottom: 180px;
    }
}
@media (max-width: 1200px) {
    #works-block .list-item {
        font-size: 12px;
    }
    #works-block .nav__holder {
        height: 100px;
        padding: 15px 30px;
    }
    #works-block .right-side {
        padding-bottom: 120px;
    }
    #works-block .name {
        font-size: 20px;
        margin-bottom: 20px;
    }
    #works-block .btn {
        padding: 10px 15px;
    }
    #works-block .list-item:before {
        top: 4px;
    }
    #works-block .img {
        max-height: 600px;
    }
}
@media (max-width: 996px) {
    #works-block .works-item {
        flex-direction: column;
    }
    #works-block .right-side {
        width: 100%;
    }
    #works-block .img {
        width: 100%;
    }
    #works-block .nav__holder {
        width: 100%;
    }
    #works-block .img {
        max-height: 500px;
    }
    #works-block {
        padding: 30px 0px;
    }
}

@media (max-width: 768px) {
    #works-block .img {
        max-height: 400px;
    }
}
@media (max-width: 600px) {
    #works-block {
        padding: 40px 0px;
    }
    #works-block .img {
        max-height: 350px;
    }
}
@media (max-width: 498px) {
    #works-block .swiper-button-prev p,
    #works-block .swiper-button-next p {
        display: none;
    }
    #works-block .buttons-holder {
        flex-direction: column;
    }
    #works-block .list-item {
        padding-left: 0px;
    }
    #works-block .list-item:before {
        top: 3px;
        left: -15px;
    }
    #works-block .img {
        max-height: 300px;
    }
}

@media (max-width: 400px) {
    #works-block .right-side {
        padding-bottom: 60px;
    }
}