@media(min-width:320px){
	.case-info .subtitle1-title {
		min-height: 38px;
		display: flex;
		align-items: end;
	}
    .case-content {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 16px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
    }
    .cases-list{
        gap: 32px 0px;
        margin-bottom: 24px;
    }
    .case-item{
        background-color: var(--background-light);
        overflow: hidden;
    }
    .case-content {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 16px;
    }
    .case-item a{
        color: inherit;
        text-decoration: none;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .case-item a:first-child:hover picture{
        transform: scale(1.3) translateY(-14px);
        transition: .4s;
    }
    .case-item.your-site a:first-child:hover picture{
        transform: none;
    }
	.case-item.your-site a {
		transition: background-color .4s, color .4s;
	}
	.case-item.your-site a:first-child:hover .case-type-item {
		background-color: #EFF4FB;
		border-color: #D7E1EC;
	}
	.case-item.your-site a:first-child:hover .case-type-item .case-type {
		color: #28313D;
	}
	.case-item.your-site a:first-child:hover .case-type-item .case-type::before {
		background-color: #28313D;
	}
    .case-item picture{
        transition: .4s;
    }    
    
    .case-info{
        position: relative;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }
    
    .thumb-block{
        padding: 34px 53px 0px;
        position: relative;
        background-color: #F8FAFD;
        overflow:hidden;
        display: flex;
        flex-grow: 1;
    }

    .thumb-block img{    
        display: block;
        width: 100%;
        object-fit: contain;
        height: 100%;
        box-shadow: 0px -6.39px 12.3px 0px #1E385521;
        border-radius:1.06px;
    }
    

    .type-list-wrapper {
        margin-bottom: 16px;
        position: relative;
        width: 100%;
        overflow: hidden;
    }
    
    .type-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin-right: -16px;
        margin-left: -16px;
        padding-left: 16px;
        padding-right: 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .type-list::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
        background: transparent;
    }
    
    .case-type-item {
        border: 1px solid #D7E1EC;
        border-radius: 100px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        height: fit-content;
        padding: 5px 8px 5px 16px;
        white-space: nowrap;
    }
    
    .case-type {
        font-family: Wix Madefor Text;
        font-weight: 400;
        font-size: 10px;
        line-height: 1.4;
        letter-spacing: 0.02;
    }
    
    .case-type::before {
        content: '';
        width: 3px;
        height: 3px;
        background-color: #28313D;
        border-radius: 50%;
        display: inline-block;
        position: relative;
        top: -3px;
        left: -7px;
    }
    .scroll-indicator-right {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, var(--background-light));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .type-list-wrapper:hover .scroll-indicator-right {
        opacity: 1;
    }
    
    .type-list .case-type-item {
        display: flex;
    }
    
    .case-info .subtitle1-title{
        margin-bottom: 12px;
        word-break: break-word;
    }
    
    .work-type{
        font-size: 12px;
        color: var(--text-light);
    }
    
    .case-more{
        width:42px;
        height: 42px;
        border-radius: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid var(--background-basic);
        transition: .4s;
        position: absolute;
        right: 16px;
        bottom: 16px;
    }
    
    .case-more::before{
        content: url('/assets/img/arrow-grey.svg');
    }
    
    .case-item:hover .case-more::before{
        transform: rotate(45deg);
        transition: .4s;
    }
    
    .case-item.your-site{
        color: var(--white);
        background: var(--main-basic);
    }
    
    .case-item.your-site .thumb-block{
        background: linear-gradient(180deg, #006FFF 0%, #004CB4 100%);
    }
    
    .case-item.your-site .case-type::before {
        background-color: var(--white);
    }
    
    .case-item.your-site .type-list {
        margin-right: 0;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .case-item.your-site .scroll-indicator-right {
        background: linear-gradient(to right, transparent, var(--main-basic));
    }
    
    .case-item.your-site .your-site--link{
        font-family: Wix Madefor Text;
        font-weight: 400;
        font-size: 14px;
        line-height: 1.2;
        letter-spacing: 0;
        text-align: right;
    }
    
    .case-item.your-site .your-site--link::after{
        margin-left: 9px;
        transform: scale(0.8);
        position: relative;
        top: 2px;
    }
    
    .case-item.your-site:hover .your-site--link::after{
        transform: rotate(56deg);
    }
    
    .all-cases{
        display: block;
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-light);
        border: 1px solid var(--background-basic);
        text-decoration: none;
        font-size: 14px;
        transition: .4s;
    }
    
    .all-cases:hover{
        background-color: var(--background-basic);
        color: var(--text-basic);
    }
    
    .all-cases:active{
        color: #6D737B;
    }
}

@media(min-width: 550px) {
    .cases-list {
        gap: 20px;
    }
}

@media(min-width:768px){
    .cases-list{
        gap: 20px;
    }
    
    .caption, .caption-p {
        font-size: 14px;
    }
    
    .case-item a:first-child:hover picture {
        transform: scale(1.2) translateY(-15px);
        transition: 0.4s;
    }
    
    .type-list {
        overflow-x: visible;
        margin-right: 0;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .type-list-wrapper {
        overflow: visible;
    }
    
    .scroll-indicator-right {
        display: none; 
    }
    
    .case-type-item {
        flex-shrink: 1;
    }
}

@media(min-width:1024px){
    .case-item a:first-child:hover picture {
        transform: scale(1.15) translateY(-17px);
        transition: 0.4s;
    }
    
    .case-more{
        display: none;
    }
}

@media (min-width: 1140px) {
    .case-info{
        gap: 38px;
    }
	.case-type-item .case-type  {
		font-weight: 400;
		font-size: 12px;
		line-height: 1.3;
		letter-spacing: 0;
	}
}

@media(min-width:1350px){
    .case-item a:first-child:hover picture {
        transform: scale(1.05) translateY(-9px);
        transition: 0.4s;
    }
}