#categories{
    padding-bottom: 50px;
}
a.categories-item .circle{
    width: 200px;
    aspect-ratio: 1;
    border-width: 4px;
    border-color: var(--middle-gray);
    transition: background-color .3s;
}

a.categories-item:nth-child(1) img,
a.categories-item:nth-child(6) img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    max-height: unset !important;
}

a.categories-item .circle.with-half{
    padding-bottom: 100%;;
    border-width: 0;
}
a.categories-item .half-circle{
    border-bottom-left-radius: 300px;
    border-bottom-right-radius: 300px;
    width: 100%;
    height: 50%;
    border-color: var(--dark-red);
    transform: rotate(-45deg);
    transform-origin: top center;
    top: 50%;
    transition: transform 0.3s;
}
a.categories-item:hover .half-circle{
    transform: rotate(135deg);
}
a.categories-item .categories-image + strong{
    color: #000;
    font-size: 17px;
    margin-top: 16px;
    margin-bottom: 4px;
    position: relative;
}
a.categories-item span {
    text-decoration: underline;
}
a.categories-item .categories-image + strong:after{
    content: ''; 
    display: block;
    height: 2px;
    width: 0;
    position: absolute;
    left: 0;
    bottom: -5px;
    background-color: #c23939;
    transition: width .3s;
}

a.categories-item .half-circle + strong{
    color: #fff;
    font-size: 1.375em;
}

#categories .title {
    font-size: 55px;
    margin-top: 50px;
    margin-bottom: 6px;
}
#categories .subt {
    font-size: 35px;
    line-height: 42.5px;
}

#categories .button {
    margin-top: 53px;
    padding: 0 33px;
    height: 52px;
    line-height: 52px;
    font-size: 17px;
}

#categories .swiper-padding{
    margin-top: 63px;
    padding: 0 50px;
    --content-width: 1268px;
}

#categories .swiper-button-prev {
    left: 4px;
    transform: scale(-1);
}

#categories .swiper-button-next {
    right: 2px;
}

#categories .swiper-button-next,
#categories .swiper-button-prev {
    background-image: url('../../images/swiper-arrow.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 10px;
    height: 22.5px;
    top: calc(50% + -10px);
}
#categories .swiper-button-next::after,
#categories .swiper-button-prev::after {
    display: none;
}

@media screen and (max-width: 767px ) {
    .categories-image{
        position: relative;
    }
    .categories-image img{
        max-width: 100%; 
    }
}

@media screen and (max-width: 567px ) {
    #categories {
        padding-bottom: 0;
    }
    #categories .title {
        margin-top: 44px;
        font-size: 37.5px;
        line-height: 38px;
    }
    #categories .subt {
        font-size: 21px;
        line-height: 25px;
    }
    #categories .button {
        height: 50px;
        line-height: 50px;
        font-size: 17px;
        margin-top: 25px;
    }
    #categories .swiper-padding {
        padding-right: 0;
        margin-top: 18px;
        padding: 0 37px;
    }
    #categories .swiper-button-next,
    #categories .swiper-button-prev {
        top: calc(50% + -5px);
    }
    #categories .swiper-button-prev {
        left: 13px;
    }
    #categories .swiper-button-next {
        right: 15px;
    }
    a.categories-item {
        height: 210px;
        padding: 17px 0;
    }
    a.categories-item .categories-image + strong {
        font-size: 15px;
        height: 36px;
        line-height: 1;
        margin-top: 10px;
    }
    a.categories-item span {
        font-size: 17px;
        height: 50px;
        line-height: 50px;
        padding: 0 22px;
    }
    a.categories-item .categories-image + strong span {
        top: unset;
        left: -8px;
        right: 10px;
        bottom: 3px;
    }
    .categories-image img {
        max-height: 27vw;
    }
}

@media screen and (max-width: 360px ) {
    .categories-image img {
        max-height: 30vw;
    }
    .categories-image {
        height:67vw;
    }
    a.categories-item .circle {
        height:200px;
        max-height:200px;
        width:200px;
    }
}