.recomendations-year-labels {
    padding: 5px 9px;
    z-index: 2;
}
.recomendations-year-label {
    display: inline-block;
    background: #686767;
    color: #fff;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 17px;
    margin-right: 8px;
    position: relative;
    width: 64px;
    box-sizing: border-box;
    cursor: pointer;
}
.recomendations-year-label.active {
    background: #153A83;
    height: 84px;
}
.recomendations-year-label.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background: #fff;
    width: 0;
    height: 0;
    border-left: 32px solid #153A83;
    border-right: 32px solid #153A83;
    border-bottom: 17px solid #fff;
}
.recomendations-list {
    border: 1px solid #B7B7B7;
    z-index: 1;
    margin-top: -60px;
    padding-top: 78px;
}
.recomendations-container {
    display: inline-block;
    width: 49%;
    margin-bottom: 43px;
    box-sizing: border-box;
    padding: 0 13px;
}
.recomendations-item {
    display: flex;
}
.recomendations-image {
    display: inline-block;
    width: 30%;
    text-align: center;
}
.recomendations-image img {
    width: 87%;
    box-shadow: 0px 0px 19px rgba(0,0,0,0.1);
}
.recomendations-text {
    display: inline-block;
    width: 66%;
}
.recomendations-title {
    color: #153A83;
    font-weight: 600;
    font-size: 17px;
    line-height: 20px;
    padding: 0 12px;
}
.recomendations-descr {
    padding: 12px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 400;
    background: url(/img/rec-bg.png) 4px 10px no-repeat;
}
.recomendations-popup {
    width: 80%;
    max-width: 800px;
}

.recomendations-popup .close:after {
    content: "×";
    position: absolute;
    right: -11px;
    top: -11px;
    width: 26px;
    height: 26px;
    border: 2px solid #333;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    cursor: pointer;
    box-sizing: border-box;
}

@media (max-width: 979px) {
    .recomendations-year-label.active {
        height: auto;
    }
    .recomendations-year-label.active:after {
        display: none;
    }
    .recomendations-year-label {
        margin-right: 12px;
        width: auto;
    }
    .recomendations-list {
        border: none;
    }
    .recomendations-year-labels {
        padding: 0;
        margin-top: -13px;
    }
    .recomendations-list {
        margin-top: -38px;
    }
    .recomendations-container {
        padding: 0;
        margin-left: -10px;
    }
    .recomendations-container:nth-child(2n) .recomendations-item {
        margin-left: 38px;
    }
    .recomendations-item {
        display: block;
    }
    .recomendations-text {
        display: block;
        width: 100%;
    }
    .recomendations-image {
        width: 154px;
        margin-bottom: 25px;
    }
    .recomendations-title {
        padding: 0 9px;
    }
    .recomendations-descr {
        padding-left:9px;
    }
}

@media (max-width: 767px) {
    .recomendations-container {
        width: 100%;
    }
    .recomendations-container:nth-child(2n) .recomendations-item {
        margin-left: auto;
    }
    .recomendations-year-labels {
        margin-top: 0;
        width: calc(100% + 10px);
    }
    .recomendations-year-label {
        padding: 6px 8px;
        margin-right: 9px;
        margin-bottom: 14px;
    }
    .recomendations-list {
        margin-top: -50px;
    }
    .recomendations-title {
        font-size: 15px;
    }
}