/* ============================================================
   Автоперевод сайта (yatranslate v2.1.0) — фирменные стили
   ============================================================ */

.lang {
    position: relative;
    z-index: 10;
    text-align: center;
    perspective: 700px;
}

.ng-lang {
    margin: 0 14px 0 0;
    display: inline-block;
    vertical-align: middle;
}

.lang__link {
    cursor: pointer;
    transition: .3s all;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: 3px;
    padding: 4px;
}

.lang__img {
    width: 26px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
    font-size: 10px;
    display: block;
    transition: .3s all;
    box-shadow: 0 0 0 1px rgba(18, 41, 63, .16);
}

.lang__link_sub:hover {
    filter: drop-shadow(0 0 3px rgba(46, 139, 61, .55)) brightness(108%);
}

.lang__name {
    color: #737b84;
    font-size: 12px;
    line-height: 12px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.lang__link_sub {
    width: 100%;
    height: auto;
    position: relative;
    padding: 3px;
    margin-bottom: 2px;
}

.lang__list {
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-width: 42px;
    opacity: 0;
    visibility: hidden;
    transition: .3s all;
    transform: rotateX(-90deg);
    position: absolute;
    right: 0;
    left: auto;
    top: 100%;
    z-index: 10;
    line-height: 13px;
    padding: 5px;
    transform-origin: center top;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: 0 10px 26px rgba(18, 41, 63, .18);
    border: 1px solid rgba(18, 41, 63, .08);
}

.lang:hover .lang__list,
.lang.lang_open .lang__list {
    opacity: 1;
    visibility: visible;
    transform: rotateX(0);
}

.lang__link_select {
    align-items: flex-start;
    text-align: center;
    font-size: 0;
    border: 1px solid rgba(18, 41, 63, .12);
    background: #fff;
}

.lang__link_select:hover {
    border-color: #2e8b3d;
}

/* Тёмная шапка (старый вариант размещения в топ-баре) */
.top_bar .lang__link_select {
    background: transparent;
    border-color: rgba(255, 255, 255, .25);
}

.top_bar .lang__link_select:hover {
    border-color: #6fce85;
}

@media all and (max-width: 1199px) {
    .ng-lang { margin-right: 8px; }
    .lang__img { width: 23px; height: 15px; }
}
