.main-gyms {
    margin-top: 45px;
    padding-top: 45px;
    /*border-top: 1px solid rgba(151, 151, 151, 0.32);*/
}

.main-gyms__title {
    font-size: 32px;
    line-height: 1.35;
    font-weight: 700;
    color: black;
    margin: 0 0 9px;
    padding: 0;
}

.main-gyms__descr {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
    margin: 0 0 15px;
    padding: 0;
}

.main-gyms__container {
    position: relative;
}

.main-gyms__list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.main-gyms__item {
    display: flex;
    position: relative;
    flex: 1 0 25%;
    max-width: 25%;
    height: 300px;
    overflow: hidden;
    transition: opacity .275s ease-in;
}

.main-gyms__wrap {
    position: relative;
    display: flex;
    color: #000;
    text-decoration: none;
    overflow: hidden;
    height: 100%;
    width: 100%;
    cursor: pointer;
    transition: .275s ease-in;
}

.main-gyms__wrap:hover {
    opacity: 0.85;
}

.main-gyms__wrap:hover ~ .main-gyms__content {
    transform: translateY(0);
    opacity: 1;
}

.main-gyms__wrap:hover .main-gyms__name {
    opacity: 0;
}

.main-gyms__content {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    transform: translateY(100%);
    transition: .275s ease-in;
    pointer-events: none;
    opacity: 0;
    padding: 23px 16px 16px;
}

.main-gyms__overlay {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(360deg, #203446 0%, rgba(32, 52, 70, 0.0001) 100%);
}

.main-gyms__img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.main-gyms__name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.36;
    text-align: center;
    padding-top: 100px;
    background: linear-gradient(360deg, #203446 0%, rgba(32, 52, 70, 0.0001) 100%);
    transition: .275s ease-in;
}

.main-gyms__header {
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.36;
    text-align: center;
    margin-bottom: 13px;
}

.main-gyms__text {
    font-size: 12px;
    line-height: 1.42;
    color: white;
}

@media only screen and (max-width: 1400px) {
    .main-gyms__item {
        flex: 1 0 33.33333%;
        max-width: 33.3333%;
    }
}

@media only screen and (max-width: 992px) {
    .main-gyms__item {
        flex: 1 0 50%;
        max-width: 50%;
    }
}

@media only screen and (max-width: 576px) {
    .main-gyms__item {
        flex: 1 0 100%;
        max-width: 100%;
    }
}
