.language-choice {
    position: relative;
    z-index: 210;
    display: inline-block;
    float: right;
    margin: 5px 0 0 18px;
    color: #fff;
    text-align: left;
    vertical-align: middle;
}

.language-choice summary {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 5px;
    background: rgba(255, 255, 255, .08);
    color: inherit;
    font: 600 13px/1.2 Arial, sans-serif;
    cursor: pointer;
    list-style: none;
}

.language-choice summary::-webkit-details-marker {
    display: none;
}

.language-choice summary::after {
    width: 6px;
    height: 6px;
    margin-top: -3px;
    transform: rotate(45deg);
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
}

.language-choice[open] summary,
.language-choice summary:hover {
    background: rgba(255, 255, 255, .17);
}

.language-choice ul {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 142px;
    margin: 0;
    padding: 4px;
    border: 1px solid #dde6eb;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(24, 48, 66, .2);
    list-style: none;
}

.language-choice ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.language-choice a {
    display: block;
    padding: 8px 11px;
    border-radius: 4px;
    color: #183042;
    font: 500 14px/1.25 Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.language-choice a:hover,
.language-choice a:focus-visible,
.language-choice a[aria-current="page"] {
    background: #eaf1f5;
    color: #183042;
}

.language-choice summary:focus-visible,
.language-choice a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.language-choice-standalone {
    min-height: 51px;
    padding: 0 16px;
    background: #183042;
}

.header nav.menu > ul > li:nth-last-child(-n+3) > ul {
    right: 0;
    left: auto;
}

.header nav.menu > ul > li > ul > li:not(.two_line) > a {
    min-height: 1em;
    height: auto;
}

@media (min-width: 768px) and (max-width: 991px) {
    .header nav.menu > ul > li {
        padding-right: 8px;
        padding-left: 8px;
    }

    .header nav.menu > ul > li:first-child {
        padding-left: 0;
    }

    .header nav.menu > ul > li:last-child {
        display: list-item;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .header > .wrap > .row:first-child > .col-xs-4 img {
        max-width: 100%;
    }

    .header .search {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
    }

    .header .search .social-top {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    .header .search .social-top a {
        margin: 0;
    }

    .header .search .toggle {
        flex: 0 0 auto;
        margin: 0;
    }

    .language-choice {
        flex: 0 0 auto;
        float: none;
        margin: 0;
    }
}

@media (max-width: 380px) {
    .header .search,
    .header .search .social-top {
        gap: 5px;
    }

    .language-choice summary {
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (min-width: 992px) {
    .header nav.menu > ul.row {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .header nav.menu > ul > li {
        flex: 0 0 auto;
        padding-right: 10px;
        padding-left: 10px;
    }

    .header nav.menu > ul > li:first-child {
        padding-left: 0;
    }

    .header nav.menu > ul > li:last-child {
        padding-right: 0;
    }

    .header nav.menu > ul > li > a.sub i {
        position: static;
        margin-left: 0.4em;
    }
}
