/**
 * 
 * Тема : 
 * 
 *
 * 
 */


#iblock-services {
    
}

#iblock-banner + #iblock-services {
    position: relative; z-index: 40;
    margin-top: -30vw;
}

#iblock-services .container {
    display: -ms-flexbox;
    display: flex;

    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

#iblock-services .item {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 510px) {
    #iblock-banner + #iblock-services {
        margin-top: -13rem;
    }
}

@media (min-width: 768px) {
    #iblock-banner + #iblock-services {
        margin-top: -17rem;
    }
}

@media (min-width: 992px) {
    #iblock-services .item {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    #iblock-banner + #iblock-services {
        margin-top: -14rem;
    }
}

@media (min-width: 1200px) {
    #iblock-banner + #iblock-services {
        margin-top: -17rem;
    }
}

/*
 * -----------------------------------------------------------------------------
 *
 * .
 *
 * -----------------------------------------------------------------------------
 */

#iblock-services .link {
    position: relative;
    display: block;
    
    height: 250px;
    
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
    
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /*
    background-size: 100% auto;
    transition: background-size .3s ease;
    */
}

/*
#iblock-services .link:hover {
    background-size: 110% auto;
}
*/

#iblock-services .link::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    bottom: 0; right: 0;
    
    background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 40%);
}

@media (min-width: 992px) {
    
    #iblock-services .item:nth-of-type(3) .link,
    #iblock-services .item:nth-of-type(4) .link {
        border-left: none;
    }
    
    #iblock-services .item .link {
        height: 220px;
    }
    
    /*
    #iblock-services .link {
        height: 220px;
        background-size: auto 110%;
    }
    
    #iblock-services .link:hover {
        background-size: auto 120%;
    }
    */
}

@media (min-width: 1200px) {
    #iblock-services .item .link {
        height: 250px;
    }
}

#iblock-services .title {
    position: absolute; z-index: 20;
    left: 25px; bottom: 25px;
    right: 70px;
    
    line-height: 1.1;
    
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

#iblock-services .btn-more {
    position: absolute; z-index: 20;
    right: 25px; bottom: 25px;
    
    width: 36px; height: 36px;
    border: 2px solid #fff;
    
    background-image: url(/_images/icon-arrow-white.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 18px auto;
}

/*
 * -----------------------------------------------------------------------------
 *
 * .
 *
 * -----------------------------------------------------------------------------
 */

#iblock-services .item-banner {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    
    position: relative;
    
    margin-bottom: 1rem;
    
    overflow: hidden;
}

#iblock-services .item-banner:before {
    content: "";
    
    position: absolute; z-index: 10;
    top: 0; left: -200px;

    width: 200px;
    height: 100%;

    background-image: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0) 70%
        );

    animation: shine 3s linear infinite;
}

#iblock-services .item-banner .link {
    height: 0;
    padding: 0;
    padding-bottom: 33.3333%;
    
    border-bottom: 2px solid #fff;
    
    background-image: url(/_images/banner/banner-quadbike-02m-min.jpg);
    background-position: center center;
    background-size: cover;
}

#iblock-services .item-banner .btn-more {
    right: 25px;
    animation: more 1.5s ease infinite;
}

#iblock-services .item-banner .title {
    font-family: 'Bitter', serif;
    font-weight: 800;
    
    font-size: 22px;
}

@media (min-width: 412px) {
    #iblock-services .item-banner .title {
        font-size: 26px;
    }
}

@media (min-width: 480px) {
    #iblock-services .item-banner .title {
        font-size: 32px;
    }
}

@media (min-width: 768px) {
    #iblock-services .item-banner .link {
        padding-bottom: 140px;
        background-image: url(/_images/banner/banner-quadbike-02d-min.jpg);
    }
}

/*
 * -----------------------------------------------------------------------------
 *
 * .
 *
 * -----------------------------------------------------------------------------
 */

@keyframes shine {
    0% {
        left: -200px;
    }
    12% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes more {
    0% {
        right: 25px;
    }
    20% {
        right: 15px;
    }
    80% {
        right: 25px;
    }
    100% {
        right: 25px;
    }
}