body {
    font-family: 'Open Sans', sans-serif;
    background: #e8e8e8;
    color: #3e3e3e;
}

.bundle-grammar #block-minlang-content,
.bundle-grammar #block-minlang-content * {
    font-family: "Noto Serif", serif;
}

.bundle-grammar #block-minlang-content h1,
.bundle-grammar #block-minlang-content h2,
.bundle-grammar #block-minlang-content h3,
.bundle-grammar #block-minlang-content h4,
.bundle-grammar #block-minlang-content h5,
.bundle-grammar #block-minlang-content h6 {
    font-family: 'Roboto Slab', serif; outline: none; font-weight: bold;
}


h1,h2,h3,h4,h5,h6 { font-family: 'Roboto Slab', serif; outline: none; font-weight: bold; }

h1 {
    font-size: 32px;
    margin-bottom: 30px;
    line-height: 36px;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3,
.content h3 { font-size: 21px; color: #555; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }

h6 { font-size:16px;  }

h2 {
    margin: 20px 0 10px 0 !important;
    padding: 0;
}

h2.short-cover-title {
    margin-top: 0 !important;
}

h3 {
    margin: 20px 0 10px 0 !important;
    padding: 0;
}

h4 {
    margin: 20px 0 10px 0 !important;
    padding: 0;
}

h5 {
    margin: 20px 0 10px 0 !important;
    padding: 0;
}

.sc-header { margin-top: 0 !important; }

p { margin: 0 0 20px 0; }

img { vertical-align: middle; }

#main ul,
#main ol {
    margin-left: 2em;
    margin-bottom: 2em;
    margin-top: 1em;
}
#main ul { list-style: disc outside; }

#main ul.tabs {
    margin: 0 -10px !important;
    list-style: none;
}

header {
    background: #fff; 
}


#page a {
    text-decoration: none;
    color: inherit;
    box-shadow: inset 0 -1px #268e6c;
    transition: 0.4s;
}
#page a:hover { color: #268e6c; }
.navbar-menu { background: rgba(245,245,245,.7); }

#content { position: relative; }

article:after {
    clear: both;
    display: block;
    content: '';
}

footer {background: #292929; padding: 35px 10px; clear: both;}
.footer-text { padding: 0 10px; color: #aaa; max-width: 1290px; margin: 0 auto; }

@media screen and (max-width: 1086px) {
    .bd-tabs { display: none; }
}

@media screen and (min-width: 768px) {
#content {
    padding-top: 30px;
    max-width: 90rem;
    padding-right: 30px;
    padding-left: 30px;
}
}

#about-block {
    position: relative;
    min-height: 1px;
    padding: 15px;
    border-top: solid 4px #300571;
    -webkit-box-shadow: 0 4px 6px -5px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.1);
    box-shadow: 0 4px 6px -5px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.1);
    max-width: 700px;
    background: #fff;
    float: left;
    margin-right: 15px;
    margin-bottom: 15px;

}

#langs-block { 
    width: 300px; 
    background: #fff; 
    padding: 15px; 
    -webkit-box-shadow: 0 4px 6px -5px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.1);
    box-shadow: 0 4px 6px -5px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.1); 
    font-size: 12px;
    float: left;
}
.lang-item { 
    margin: 5px 0; 
    padding: 5px 0; 
    border-bottom: solid 1px #dbdbdb; 
}
.lang-item:last-child { border: none; }
.lang-col { display: inline-block; width: 20px; height: 20px; float: left; margin-right: 10px; border-radius: 50% }
.col-n1 { background: #FFE500; }
.col-n2 { background: #FF4100; }
.col-n3 { background: #00B25C; }
.col-n4 { background: #4F10AD; }
.col-n5 { background: #A69500; }
.col-n6 { background: #A62A00; }
.col-n7 { background: #00733C; }
.col-n8 { background: #300571; }
.col-n9 { background: #FFF173; }
.col-n10 { background: #FF9773; }
.col-n11 { background: #61D89F; }
.col-n12 { background: #966BD6; }
.col-n13 { background: #BFB130; }
.col-n14 { background: #4D2982; }

/*
FFE500  BFB130  A69500  FFEC40  FFF173
FF4100  BF5530  A62A00  FF7140  FF9773
00B25C  218555  00733C  36D88A  61D89F
4F10AD  4D2982  300571  7F44D6  966BD6
*/

/* base colors */

.col-1-info { background: #FFB500; } /* желтый */
.col-2-info { background: #3F8FD2; } /* Голубой */
.col-3-info { background: #FF7A00; } /* оранжевый */
.col-4-info { background: #A62A00; } /* красный */
.col-5-info { background: #00733C ; } /* зеленый темный */
.col-6-info { background: #BF5530; } /* терракотовый */
.col-7-info { background: #00B25C; } /* светло-зеленый */
.col-8-info { background: #1F6B75; } /* сине-зеленый */
.col-9-info{ background: #043C6B; } /* синий */
.col-10-info { background: #4D2982; } /* фиолетовый */
.col-11-info { background: #777; } /* серый */


.fams > div:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    float: left;
    margin-right: 10px;
    border-radius: 50%;
}

.col-1:before { background: #FFB500; } /* желтый */
.col-2:before { background: #3F8FD2; } /* Голубой */
.col-3:before { background: #FF7A00; } /* оранжевый */
.col-4:before { background: #A62A00; } /* красный */
.col-5:before { background: #00733C ; } /* зеленый темный */
.col-6:before { background: #BF5530; } /* терракотовый */
.col-7:before { background: #00B25C; } /* светло-зеленый */
.col-8:before { background: #1F6B75; } /* сине-зеленый */
.col-9:before { background: #043C6B; } /* синий */
.col-10:before { background: #4D2982; } /* фиолетовый */
.col-11:before { background: #777; } /* серый */
.fam { font-weight: bold; margin: 20px 0; display: block; }
.subfam { font-style: italic; font-weight: bold; margin: 20px 0 5px 0; display: block;  }


.lang-desc { color: #999; font-size: 12px; }

.language-list-level-2 { padding-left: 50px; }

@media only screen and (max-width: 600px) { 
    .language-list-level-2 { padding-left: 20px; }
}
.language-list-level-3 {  }


#map { 
    height: 300px; 
    width: 100%;
    margin: 15px 0;
}

.frontpage #map { 
    height: 500px; 
}

a.leaflet-popup-close-button { box-shadow: none !important; }

.leaflet-popup-content h3 { padding-top: 0 !important; font-size: 14px; /*padding-left: 25px;*/ }

.leaflet-popup-content p:before { content: inherit !important;
} 

.leaflet-popup-content p.c1:before,
.leaflet-popup-content p.c2:before,
.leaflet-popup-content p.c3:before,
.leaflet-popup-content p.c4:before,
.leaflet-popup-content p.c5:before {
    content: '' !important;
}

/* new */
header { 
    box-shadow: 0 1px 6px 0 rgba(32,33,36,0.28);
    position: relative;
    
}

#f-h-line-wrap { 
    /*box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.55);*/
    box-shadow: 0 1px 6px 0 rgba(32,33,36,0.28);
    position: relative;
    z-index: 9;
}

@media only screen and (max-width: 600px) {
    #f-h-line-wrap {
        position: fixed;
        background: #fff;
        /* height: 54px; */
        z-index: 9;
        right: 0;
        left: 0;
        top: 0;
    }
    #minlang-cover { margin-top: 65px; }
}



#f-h-line {
    padding: 10px;
    max-width: 1060px; /* max-width: 960px; */
    margin: 0 auto;
}
#f-h-line:after { clear: both; content: ''; display: block; }
#logo img { height: 55px; float: left; margin-top: 10px; }
#sitename { float: left; padding-left: 10px; }
#sitename a { text-decoration: none; color: #333; font-family: 'Roboto Slab', serif; }
#sitename .minlang { display: block; font-size: 30px; text-transform: uppercase; }
#sitename .iling-ran { display: block; font-size: 18px; color: #777; }

#lang-switch { float: right; margin-top: 10px; }
#lang-switch a {
    display: block;
    margin-bottom: 5px;
}
#lang-switch img { height: 14px; }

@media only screen and (max-width: 600px) {
    #logo img { height: 32px; }
    #sitename .minlang { font-size: 20px; text-transform: none; }
    #sitename .iling-ran { font-size: 10px; }    
}
@media only screen and (max-width: 950px) {
    #lang-switch { 
        margin-top: 0;
        position: absolute;
        top: 16px;
        right: 54px;
    }
    #lang-switch img { height: 14px; }
    #lang-switch a { margin-bottom: 0; display: inline-block; margin-left: 10px; }
}

@media only screen and (max-width: 600px) {
    #lang-switch { 
        margin-top: 0;
        position: absolute;
        top: 5px;
        right: 50px;
    }
    #lang-switch img { height: 10px; }
    #lang-switch a { margin-bottom: 0; display: block; margin-left: 0; }
}

#minlang-cover {
    position: relative;
}



@media only screen and (max-width: 600px) {
    #minlang-cover img.desktop { display: none; }
    #minlang-cover img.mobile { display:block; }
    #minlang-cover { display: none; }
    .frontpage #minlang-cover {
        display: block;
    }
    #page { margin-top: 65px !important; }
    .frontpage #page { margin-top: 0px !important;  }
}

#minlang-cover img.desktop { display: inline-block; }
#minlang-cover img.mobile { display: none; }
@media only screen and (max-width: 600px) {
    #minlang-cover img.desktop { display: none; }
    #minlang-cover img.mobile { display:block; }
}

#minlang-cover picture {

}

#minlang-cover picture source {

}

#minlang-cover picture img {
    width: 100%;
    height: auto
}


#page {
    max-width: 1060px; /* max-width: 960px; */
    margin: 0 auto;
    min-height: 100vh;
}
#page:after {
    clear: both;
    display: block;
    content: '';
}

@media only screen and (max-width: 1400px) {
    .active-nav #page { float: right; }
}
@media only screen and (max-width: 1200px) {
    .active-nav #page { max-width: 800px; }
}
@media only screen and (max-width: 1000px) {
    .active-nav #page { float: none; }
}

#page {
    margin-top: 0px;
    -webkit-box-shadow: 0 4px 6px -5px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.1);
    box-shadow: 0 4px 6px -5px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.1);
    background-color: #fff;
    padding: 25px 100px;
}

@media only screen and (max-width: 960px) {
    #page {
        padding: 25px 20px;
    }
}

@media only screen and (max-width: 600px) {
    #page {
        padding: 10px 20px;
    }
}

#nav { 
    max-width: 960px;
    margin: 0 auto;
}

@media only screen and (min-width: 600px) {
    nav.sticky { 
        max-width: inherit !important;
        position: fixed;
        z-index: 500;
        top: 0;
        background: #fff;
        left: 0;
        right: 0;
        box-shadow: 0 1px 6px 0 rgba(32,33,36,0.28);
    }
}

#nav a { text-decoration: none; color: #333; display: inline-block; }
#nav ul,
#nav li { list-style: none; }

#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav ul li { margin-right: 1px; display: inline-block; }

#nav ul:after {
    clear: both;
    display: block;
    content: '';
}

#nav a { 
    padding-left: 5px; 
    padding-right: 5px;
    height: 22px;
    display: inline-block;
    line-height: 24px;
}

@media only screen and (min-width: 950px) {
    #nav ul {
        text-align: center;
    }
    #nav a { 
        height: 44px;
        display: block;
        line-height: 22px;
        padding: 10px;
    }
    #nav a.is-active {
        border-bottom: solid 2px #268e6c;
    }
}

/* nzvbar */

#nav-btn { float: right; cursor: pointer; display: none; }

@media (max-width: 950px) and (min-width: 0px) {
    #nav-btn { display: block; }
    #nav-btn {
        z-index: 999;
        position: fixed;
        right: 0px;
        top: 8px;
        background: rgba(255,255,255,0.7);
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
        padding-top: 10px;
    }
}

.bar1, .bar2, .bar3 {
    width: 24px;
    height: 2px;
    background-color: #444;
    margin: 4px 0;
    transition: 0.4s;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-6px, 3px);
    transform: rotate(-45deg) translate(-6px, 3px);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-6px, -3px);
    transform: rotate(45deg) translate(-6px, -3px);
    /* rotate(-45deg) scaleX(1.414) scaleY(.333); */
}

@media (max-width: 950px) and (min-width: 0px) {
    #nav {
        float: none;
        width: inherit;
        display: none;
    }
}

@media (max-width: 950px) and (min-width: 0px) {

    #nav.active { 
        position: fixed; 
        top:0; 
        right:0; 
        bottom: 0; 
        width: 248px; 
        transition: 0.4s; 
        z-index: 700; 
        display: block !important;
        padding: 70px 20px;
        background: #fff;
    } 

    #nav.active #block-minlang-main-menu li { 
        display: block; 
        text-align: right;
        float: none;
        margin-right: -10px;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: solid 2px #eeeeee;
    }

    #nav.active #block-minlang-main-menu li:last-child { border-bottom: none; }

    #nav.active #block-minlang-main-menu li a {
        display: block;
        clear: both;
    }

    #nav.active #block-minlang-main-menu li a {
        -webkit-transition: all 0.2s ease-out;
        transition: all 0.2s ease-out;
        letter-spacing: 1px;
        text-transform: uppercase;
    }


    #nav.active #block-minlang-main-menu li a:hover, 
    #nav.active #block-minlang-main-menu li a.is-active:after {
        color: #268e6c;
    }

    #nav.active #block-minlang-main-menu li a:hover { 
        border-radius: 6px;
    }

    body.mainmenu-open {
        overflow: hidden !important;
    }
    .mainmenu-open:before {
        opacity: 1 !important;
        visibility: visible !important;
    }

    body:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(47,55,61,0.9);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        -webkit-transition: all 0.5s ease-in-out;
        transition: all 0.5s ease-in-out;
    }

    body.popup-open {
        overflow: hidden !important;
        transition: all 0.5s ease-in-out;
    }


}


/* edit */

#block-minlang-local-tasks { 
    position: fixed;
    background: rgba(240,234,60,0.7);
    right: 0;
    bottom: 114px;
    z-index: 100;
    padding: 5px 10px;
    border-radius: 20px 0 0 20px;
}

#block-minlang-local-tasks > ul a { font-size: 12px; color: #555 !important; box-shadow: none !important; }
#block-minlang-local-tasks > ul li { border-bottom: solid 1px #777; }
#block-minlang-local-tasks > ul li:last-child { border: none; }
#block-minlang-local-tasks > ul a:hover { text-decoration: none; color: #000 !important; }

/* news */

#block-minlang-content .views-field-field-data time {
    font-size: 1rem;
    margin: 10px 0;
    display: block;
    position: relative;
    color: #444;
    text-align: center;
}

#block-minlang-content .views-field-field-data time:before, 
#block-minlang-content .views-field-field-data time:after {
    border-top-color: #eeeeee !important;
}

#block-minlang-content .views-field-field-data time:before, 
#block-minlang-content .views-field-field-data time:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    width: calc(50% - 6rem);
    border-top: solid 2px;
}

#block-minlang-content .views-field-field-data time:before {
    left: 0;
}
#block-minlang-content .views-field-field-data time:after {
    right: 0;
}

.cover-wrap { margin-bottom: 20px !important; }
.text-wrap { margin-bottom: 10px; }

.cover-wrap img {
    width: 90%;
    margin: 0 auto;
    display: block;
    -moz-transition: -moz-transform 0.2s ease-out;
    -webkit-transition: -webkit-transform 0.2s ease-out;
    -ms-transition: -ms-transform 0.2s ease-out;
    transition: transform 0.2s ease-out;
    border:solid 1px #f5f1ee;
}
.cover-wrap { overflow: hidden; width: 90%; margin: 0 auto; }
.cover-wrap:hover img {
    -moz-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* front  page */

.lead-text { line-height: 30px; font-size: 20px; text-align: center; font-style: italic;  }

.read-more {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    -moz-transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    -webkit-transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    -ms-transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    background-color: transparent;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(160, 160, 160, 0.3) !important;
    color: #444 !important;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    height: 4.8125em;
    letter-spacing: 0.25em;
    line-height: 4.8125em;
    padding: 0 2.5em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    display: block;
    margin: 0 auto;
}

.read-more:hover {
    box-shadow: inset 0 0 0 1px rgba(38, 142, 108, 0.7) !important;
}

/* page language */

.section-title {  }
.paragraph--type--audio .section-title,
.paragraph--type--photos .section-title,
.paragraph--type--files .section-title,
.paragraph--type--video .section-title,
.node--type--text > .section-title { 
    background-repeat: no-repeat;
    background-position: 0px 5px;
    padding-left: 30px;
}
.paragraph--type--audio .section-title { background-image: url(../img/icons/icon-group-audio_24x24.png); }
.paragraph--type--photos .section-title { background-image: url(../img/icons/icon-group-images_24x24.png); }
.paragraph--type--files .section-title { background-image: url(../img/icons/icon-group-files_24x24.png); }
.paragraph--type--video .section-title,
.node--type--text > .section-title { background-image: url(../img/icons/icon-group-video_24x24.png); }

.metadata,
.audio-desc,
.video-desc,
.text-metadata {
    background: #dbdbdb;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
}

.text-metadata .default-field-label { 
	color: #363636;
    font-weight: 700;
    display: inline;
}
.text-metadata .default-field-label + div { display: inline; }

.text-metadata .default-field-label:after {
	content: ':';
	display: inline;
}

.text-metadata .body .default-field-label:after {
	content: '' !important;
}

.meta_decryption,
.meta-records,
.meta-morph-analys {
	margin-top: 10px;
    padding-top: 10px;
    border-top: solid 1px #888;
}
.base-meta > strong,
.meta_decryption > strong,
.meta-records > strong,
.meta-morph-analys > strong {
	margin-bottom: 5px;
	display: block;
	font-style: italic;
}

.metadata > div > div { display: inline-block; }
.metadata > div > div {
    display: inline-block;
}

body.udmurt .metadata > div > div {
    display: inline;
    padding-right: inherit;
}
.metadata > div > div:last-child { font-weight: bold; font-style: normal; letter-spacing: 1px; width: inherit; display: inline; }

.field_areal,
.field_language_transmission { margin-top: 10px; }

.metadata {
    background-color: rgba(38, 142, 108,0.7);
}

.text-metadata .field_text_lang div div { display: inline; }
.text-metadata .field_text_lang div div:after { 
	content: ', ';
	display: inline;
}
.text-metadata .field_text_lang div div:last-child:after {
	content: '' !important;
}

.genealogy > div > div:first-child { 
    font-weight: bold;
    font-size: 24px;
    margin: 20px 0 10px 0 !important;
    padding: 0px;
    font-family: 'Roboto Slab', serif;
}

.paragraph { margin-top: 20px; }
.images-wrap a { overflow: hidden; display: block; width: 246px; height: 246px; float: left; margin: 0 10px 10px 0; }
.images-wrap img { width: 100%; height:100%; }
.images-wrap { margin-right: -10px; }
.images-wrap:after { clear: both; display: block; content: ''; }

.paragraph.paragraph--type--langssubgroup {
    margin: 20px 0;
}

.images-wrap a:hover img {
    -moz-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

#page table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

#page table:not(:last-child) { margin-bottom: 1.5rem; }

#page table td { 
    padding: 5px 10px 5px 10px;
        border-width: 1px;
        border: 1px solid #dbdbdb;
        vertical-align: top;
}

#page table tbody tr:not(.is-selected):nth-child(even) {
    background-color: #fafafa;
}

.wrap-text { margin: 10px 0; }
.editor-wrap table,
table.bordered { border: solid 1px #ccc; width: 100%; margin: 10px 0; }
.editor-wrap table td,
table.bordered td { padding: 5px !important; font-size: 14px; border: solid 1px #ccc; }

a.l-item { display: block; box-shadow: none !important; }

a.l-item .lang-name { box-shadow: inset 0 -1px #268e6c; }
.mejs__container { margin-bottom: 20px;  }
.mejs__container video { height: 100%; }

.youtube-container { margin-bottom: 20px; }

.leaflet-top, .leaflet-bottom {
    z-index: 400 !important;
}
.unfolding-text {
    transition: height 500ms;
    overflow: hidden;
}
.short-info {
    border-left: solid 4px #dbdbdb;
    padding-left: 20px;
    margin-bottom: 10px;
}
.short-info > h2 { margin-top: 0 !important; }

.link-less,
.link-more { 
    font-size: 14px; 
    margin-left: 16px; 
    box-shadow: none !important; 
    color: #268e6c !important; 
}

/* custom icons */

.custom-icon {
    background: gray;
    border:5px solid rgba(255,255,255,0.5);
    color:blue;
    font-weight:bold;
    text-align:center;
    border-radius:50%;
    line-height:30px;
}

/* owl */

.images-carousel-caption {
    position: absolute;
    z-index: 10;
    bottom: 32px;
    background: rgba(0, 0, 0, 0.7) !important;
    color: #fff;
    right: 0;
    left: 0;
    padding-top: 5px;
    padding-bottom: 5px;
}
.images-carousel-caption {
    text-align: center;
    font-size: 14px !important;
    line-height: 14px !important;
    padding-left: 10px;
    padding-right: 10px;
}

.owl-dots .owl-dot.active span, 
.owl-dots .owl-dot:hover span {
    background: rgb(38, 142, 108) !important;
}

.owl-nav .owl-prev:hover, 
.owl-nav .owl-next:hover {
    background: rgba(38, 142, 108,1) !important;
    color: #fff;
    text-decoration: none;
}

.carousel-item { background: #f5f5f5; }
.carousel-item img { margin: 0 auto; text-align: center; }

.carousel-item  a { float: none !important; margin: 0 auto !important; width: 350px; height: 350px; }

/* page-nav */

#left-bar-butt {
    display: block;
    cursor: pointer;
    position: fixed;
    z-index: 600;
    line-height: 42px;
    padding: 0 15px 0 5px;
    white-space: nowrap;
    background: rgba(38, 142, 108,1);
    color: #fff;
    height: 42px;
    right: 42px;
    font-size: 18px;
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -webkit-transform-origin: 100% 0;
    -moz-transform-origin: 100% 0;
    -ms-transform-origin: 100% 0;
    -o-transform-origin: 100% 0;
    transform-origin: 100% 0;
}

#page-nav {
    position: fixed;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    left: 0;
    top: 0;
    border-right: 1px solid #aaa;
    background-color: #fff;
    box-shadow: -1px 0 5px 2px rgba(0, 0, 0, 0.3333);
    width: 270px;
    z-index: 501;
    padding-left: 34px;
    padding-right: 10px;
}

#page-nav ul li a { 
    box-shadow: none;
    border-bottom: solid 1px #e4e4e4;
    display: block;
    font-size: 14px;
    margin: 0;
    padding: 10px 0;
}

#page-nav ul ul>li>a { padding-left: 20px; font-size: 12px; }
#page-nav ul ul ul>li>a { padding-left: 40px; font-size: 12px; }

#close { 
    cursor: pointer;
    background: rgba(38, 142, 108,1);
    color: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 24px;
    line-height: 34px;
}
#close span { 
    color: #fff;
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    display: block;
    margin-top: 50px;
}

#page-nav::-webkit-scrollbar-thumb {
    background-color: #268e6c;
}

#page-nav::-webkit-scrollbar {
    width: 3px;
    background-color: #f5f5f5;
}

#left-bar-butt { top: 50%; margin-top: -75px; }
#sidebar { display: none; }

#sidebar.active { display: block !important; }

.small-label { font-size: 14px; padding-left: 10px; font-style: italic; }

.tocify-item.active>a { color: #268e6c !important; font-weight: bold; }
.tocify-item.active a:hover {  }

.article-content h2 { color: rgba(38, 142, 108,1); }

@media (max-width: 500px) and (min-width: 0px) {
    .file { 
        display: inline-block;
    }
    .file:before {

    }
    .mejs__container.mediaelementjs.mejs__audio { width: 100% !important; }
}

#page .article-content  a {
    word-break: break-word;
}

#nav-button {
    position: fixed;
    left: 0;
    background-color: rgba(38, 142, 108,0.9);
    line-height: 34px;
    width: 24px;
    height: 156px;
    padding: 0px 0 0 0;
    z-index: 999;
    cursor: pointer;
}

@media only screen and (max-width: 960px) {
    #nav-button { bottom: 0; }
}

.active-nav #nav-button { display: none; }

#nav-button:hover { background-color: rgba(255, 255, 255,0.7); }
#nav-button:hover .icon-menu,
#nav-button:hover .nav-button-label { color: rgb(38, 142, 108); }

#nav-button .icon-menu {
    color: #fff;
    margin-top: 7px;
    display: inline-block;
}

#nav-button .nav-button-label {
    color: #fff;
    display: inline-block;
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    margin-left: -39px;
    margin-top: 35px;
    font-size: 18px;
}

html[lang="en"] #nav-button .nav-button-label {
    margin-left: -25px;
}


#left-bar-butt { display: none; }

.table-data { margin: 10px 0; }
#page .table-data td { padding: 10px !important; }

.lang-contact {
    border-left: solid 4px #dbdbdb;
    padding-left: 20px;
    margin-bottom: 10px;
    overflow: hidden;
}
.lang-contact h2 {
    margin-top: 0 !important;
}


.blocker {
    z-index: 9999 !important;
}
#ex1.modal { max-width: 700px !important; }

.modal { max-width: 700px !important; }

.modal a.close-modal { top: 10px !important; right: 10px !important; }

#dialog-link-ex1 {
    cursor: pointer;    
    border: solid 2px rgba(38, 142, 108,1);
    padding: .5rem 1rem;
    display: inline-block;
    border-radius: 4px;
    transition-duration: .25s;
    font-size: 14px;
    margin-top: 5px;
    color: #fff; 
    background:rgba(38, 142, 108,1);    
}
#dialog-link-ex1:hover { 
    color: rgba(38, 142, 108,1);
    background: #fff;
}

#dialog-link-ex1.ext-dev {
    color: rgba(38, 142, 108,1);
    background: #fff;
}
#dialog-link-ex1.ext-dev:hover {
    color: #fff; 
    background:rgba(38, 142, 108,1);
}

.readmore-header {
    display: block;
    width: 32%;
    min-height: 120px;
    line-height: 25px;
    cursor: pointer;
    background: #ededed;
    float: left;
    margin: 0 10px 10px 0 !important;
    padding: 5px 10px;
    font-size: 16px;
    transition: background-color .3s linear;
    color: rgba(38, 142, 108,1);
    position: relative;

}
.readmore-header:hover {
    color: #fff;
    background: rgba(38, 142, 108,1);
}

.readmore-header.is-info:after {
    display: block;
    content: '';
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 10px;
    height: 10px;
    background: rgba(38, 142, 108,1);
    border-radius: 50%;
    border: solid 2px rgba(38, 142, 108,1);
}

.readmore-header.is-info:hover:after {
    background: #fff;
    border: solid 2px #fff;
}
.readmore-header.no-info:after {
    display: block;
    content: '';
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: solid 2px rgba(38, 142, 108,1);
}
.readmore-header.no-info:hover:after {
    border: solid 2px #fff;
}
.tabs-content-container .tab-content { margin-right: -20px; }
.tabs-content-container .tab-content:after {
    clear: both;
    display: block;
    content: '';
}

@media only screen and (max-width: 960px) {
    .readmore-header { width: 44% }
}
@media only screen and (max-width: 500px) {
    .readmore-header { 
        width: 100%;
        float: none;
        margin-right: 0 !important;
    }
}


.tabs-content-container ul.tabs{
    margin: 0px;
    padding: 0px;
    list-style: none;
    /*background: #ededed;*/
}
.tabs-content-container ul.tabs li{
    background: none;
    color: #222;
    display: inline-block;
    padding: 10px 94px 10px 10px;
    cursor: pointer;
    background: #ededed;
    border-radius: 0px 20px 0 0;
}

html[lang="en"] .tabs-content-container ul.tabs li {
    padding-right: 66px;
}


.tabs-content-container ul.tabs li.current{
    background: #268e6c;
    color: #fff;
    /*border-bottom: solid 2px #268e6c;*/
}

.tabs-content-container ul.tabs {
    border-bottom: solid 1px #268e6c;
    margin: 0 -10px;
}

#tab-4 {
    margin-right: -22px;
    margin-left: -10px;
}

@media only screen and (max-width: 700px) {
    .tabs-content-container ul.tabs {
        overflow: inherit;
    }
    .tabs-content-container ul.tabs,
    .tabs-content-container ul.tabs li { display: block !important; }
    #tab-4 { margin: 10px 0 !important; }
}

.tabs-content-container {
    border: solid 1px #ededed;
    padding: 30px 50px;
    margin: 0 -50px;
    margin-bottom: 1em;
}
.tabs-content-container .tab-content{
    display: none;
    padding: 15px 0px;
    min-height: 300px;
    /*border-bottom: solid 1px #ededed;*/
}

.tabs-content-container .tab-content.current{
    display: inherit;
}

.tabs-content-container .tab-content > h3 { 
    margin-bottom: 25px !important;
}

.icon-link-ext:before {
    float: right;
    content: '\f08e';
    margin-top: 3px;
    margin-left: 5px;
}


/* lang-structure */

.lang-structure {
    box-sizing: content-box;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.lang-structure h2 {
    flex-basis: 100%;
}

.lang-structure-item {
    border: solid 1px rgba(38, 142, 108, 1);
    padding: 17px 20px;
    min-height: 244px;
    width: 100%;
}

@media only screen and (min-width: 900px) {
    .lang-structure-item {
        width: 100%;
        flex: 1 1 360px;
    }
}

body.tofalarsky .lang-structure-item {
    min-height: 300px;
}

@media only screen and (max-width: 500px) {
    .lang-structure-item { min-height: inherit !important; }

}
.lang-structure-item h3 { margin-top: 0 !important; }
.lang-structure-item .lang-structure-desc {}
.lang-structure-item .lang-structure-desc + span {
    background: rgba(38, 142, 108,1);
    color: #fff;
    cursor: pointer;
    display: inline-block;
    padding: .5rem 1rem;
    border:solid 2px rgba(38, 142, 108,1);
    border-radius: 4px;
    transition-duration: .25s;
    font-size: 14px;
}

.lang-structure-item .lang-structure-desc + span:hover {
    border:solid 1px rgba(38, 142, 108,1);
    color: rgba(38, 142, 108,1);
    background: #fff;
}

@media only screen and (max-width: 700px) {
    .lang-structure-item {
        float: none !important;
        margin-left: none !important;
        max-width: 500px;
    }
}


.table-specialists table,
.table-scientific table,
.table-sources table,
.table-other table { /*border:solid 0px #000 !important;*/ }

.table-specialists tr td,
.table-scientific tr td,
.table-sources tr td,
.table-other tr td { padding: 14px !important; /*border:solid 0px #000 !important;*/ }

.table-specialists tr td:first-child,
.table-scientific tr td:first-child,
.table-sources tr td:first-child,
.table-other tr td:first-child { width: 200px; }

/* accordion */

.accordion > h3 {
  color: #555;
  cursor: pointer;
  padding: 0px 0px 0px 0px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  position: relative;
}

.accordion .item {
  padding-top: 10px;
  display: none;
  overflow: hidden;
  max-width: 750px;
  transition: max-height 0.2s ease-out;
}

.accordion > h3:before {
  content: '+';
  font-size: 18px;
  color: #777;
  float: left;
  position: absolute;
  left: -18px;
  color: #268e6c;
}

.accordion > h3.active:before {
  content: "-";
}
.accordion > h3:hover { text-decoration: underline; }


/* table-container */

.table-container tr td:first-child { text-align: center; }
.table-container tr td:first-child p { margin-bottom: 0 !important; }
.table-container tr td:first-child a { box-shadow: none !important; color: #268e6c !important; }
.table-container tr td:first-child a:hover { text-decoration: underline !important; }
.table-container tr td:first-child img { padding: 20px; }

/* specialist-new */

.specialist-items.specialist-crousel {
    display: flex;
    flex-wrap: wrap;
}

.specialist-items.specialist-crousel .specialist-item { width: 209px; margin-right: 75px; }
.specialist-items.specialist-crousel .specialist-item img { 
    width: 209px;
    height: 220px;
    object-fit: cover;
    display: inline-block;
    padding: 20px;
    border-radius: 50%;
    cursor: pointer;
}
.specialist-items.specialist-crousel .specialist-item img:hover {
    opacity: 0.7;
    transition: 0.4s;
}
.specialist-items.specialist-crousel .specialist-item a { box-shadow: none !important; }
.specialist-items.specialist-crousel .specialist-item .specialist-name {
    font-weight: bold;
    display: block;
    margin: 0 -10px;
    text-align: center;
    padding: 0 20px;
    min-height: 44px;
    cursor: pointer;
}
.specialist-items.specialist-crousel .specialist-item .specialist-name:hover {
    color: rgba(38, 142, 108,1);
}
.specialist-items.specialist-crousel .specialist-item .specialist-location {
    text-align: center;
    display: block;
}
.specialist-items.specialist-crousel .specialist-item .icon-link-ext {
    background: rgba(38, 142, 108,1);
    color: #fff;
    cursor: pointer;
    display: inline-block;
    /* padding: 7px 20px; */
    padding: .5rem 1rem;
    border: solid 2px rgba(38, 142, 108,1);
    border-radius: 4px;
    transition-duration: .25s;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 38px;
}
.specialist-items.specialist-crousel .specialist-item .icon-link-ext:hover {
    border: solid 1px rgba(38, 142, 108,1);
    color: rgba(38, 142, 108,1);
    background: #fff;
}

.close-btn { float: right; }

@media only screen and (max-width: 1100px) {
    .specialist-items.specialist-crousel .specialist-item { margin-right: 50px !important; }
}

@media only screen and (max-width: 700px) {
    .specialist-items.specialist-crousel .specialist-item { margin-right: 25px !important; }
}

.views-field-title { 
    font-family: 'Roboto Slab', serif; 
    outline: none; 
    font-weight: bold; 
    font-size: 24px; 
}


.views-field-field-cover { margin-bottom: 20px !important; }

.views-field-field-cover img {
    width: 90%;
    margin: 0 auto;
    display: block;
    -moz-transition: -moz-transform 0.2s ease-out;
    -webkit-transition: -webkit-transform 0.2s ease-out;
    -ms-transition: -ms-transform 0.2s ease-out;
    transition: transform 0.2s ease-out;
}
.views-field-field-cover { overflow: hidden; width: 90%; margin: 0 auto; }
.views-field-field-cover:hover img {
    -moz-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

.views-field-body{ margin-bottom: 10px; }

.views-field-view-node a {
    cursor: pointer;    
    border: solid 2px rgba(38, 142, 108,1);
    padding: .5rem 1rem;
    display: inline-block;
    border-radius: 4px;
    transition-duration: .25s;
    font-size: 14px;
    margin-top: 5px;
    color: #fff !important; 
    background:rgba(38, 142, 108,1);  
}
.views-field-view-node a:hover { 
    color: rgba(38, 142, 108,1) !important;
    background: #fff;
}

.views-row { 
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: solid 1px #eeeeee !important;
}

/* */
.datasourceinfo {
border-top:solid 1px #ededed;
border-bottom:solid 1px #ededed;
padding: 20px;
}

.datasourceinfo1 {
padding: 16px;
border:solid 2px #dbdbdb;
}

.datasourceinfo h2 { margin-top: 0 !important; }

.datasourceinfo p:last-child {
    margin-bottom: 0 !important;
}

/* imagemap */

.imagemap {
    margin-bottom: 2em;
}

.imagemap img {
    margin: 0 auto;
    display: block;
}

/* #lang-function */

#lang-function {
    /*display: none;*/
}

/* view */

.view-list-text .views-exposed-form {
    background: #ededed;
    padding: 20px;
    margin-bottom:20px;
}
.view-list-text .views-exposed-form:after {
    clear: both;
    display: block;
    content: '';
}
.view-list-text .views-exposed-form .button.form-submit { float: right; }
.view-list-text .views-exposed-form .js-form-item.form-item-field-text-lang-target-id { float: left; }

.dynamic-demo #page iframe {
    margin-bottom: 100px;
    padding-bottom: 100px;
    border-bottom: solid 1px #777 !important;
}
.view-phonetic a,
.view-genealogy-tree a {
    background: rgba(38, 142, 108,1);
    color: #fff !important;
    cursor: pointer;
    display: inline-block;
    /* padding: 7px 20px; */
    padding: .5rem 1rem;
    border: solid 2px rgba(38, 142, 108,1);
    border-radius: 4px;
    transition-duration: .25s;
    font-size: 14px;
}
.view-phonetic a:hover,
.view-genealogy-tree a:hover {
    color: rgba(38, 142, 108,1) !important;
    background: #fff;
}

.adm-social-section,
.sources-section { margin-bottom: 2em; }

.table-block {
    border-bottom: solid 0px #ccc;
    display: table;
    width: 100%;
}

.table-block .tb-row:nth-child(odd) {
    background: #fafafa;
}

.table-block .tb-row {
    border-bottom: solid 0px #ccc;
}

.table-block .tb-row:nth-child(odd) {
    background: #fafafa;
}

.table-block .tb-row:last-child {
    border-bottom: none;
}

.table-block .tb-cell {
    font-size: 14px;
    display: table-cell;
    padding: 20px;
    vertical-align: top;
}

.table-block .tb-row .tb-cell:first-child {
    text-align: center;
    width: 200px;
}

.table-block.table-block-centrs .tb-row .tb-cell:first-child {
    text-align: inherit !important;
    width: inherit !important;
}

.table-block.table-block-centrs .tb-row .tb-cell:last-child {
    text-align: center;
    width: 200px;
    min-width: 200px;
}
@media only screen and (min-width: 500px) {
    .table-block.table-block-centrs .tb-row {
        display: flex;
        justify-content: space-between;
    }
}

.table-block.table-block-centrs .tb-row .tb-cell:last-child a {
    box-shadow: none !important;
}
    

.table-block .tb-row .tb-cell:first-child p,
.table-block .tb-row .tb-cell:last-child p:last-child {
    margin-bottom: 0 !important;
}


.table-block .tb-cell img {
    height: auto;
    max-width: 100%;
}

.img-link { box-shadow: none !important; }


@media only screen and (max-width: 1100px) {
    .table-block .tb-cell {
        padding: 10px;
    }
}

@media only screen and (max-width: 500px) {
    .table-block .tb-cell {
        display: block;
        width: inherit !important;
        border-right: none !important;
    }
    .table-block .tb-cell img {
        padding: 10px;
    }
}

.item-name { font-weight: bold; }

.group-name {
    font-weight: bold;
    margin: 20px 0;
    display: block;
}
.group-name:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    float: left;
    margin-right: 10px;
    border-radius: 50%;
}

.colorcode-1:before { background: #FFB500; } /* желтый */
.colorcode-2:before { background: #3F8FD2; } /* Голубой */
.colorcode-3:before { background: #FF7A00; } /* оранжевый */
.colorcode-4:before { background: #A62A00; } /* красный */
.colorcode-5:before { background: #00733C ; } /* зеленый темный */
.colorcode-6:before { background: #BF5530; } /* терракотовый */
.colorcode-7:before { background: #00B25C; } /* светло-зеленый */
.colorcode-8:before { background: #1F6B75; } /* сине-зеленый */
.colorcode-9:before { background: #043C6B; } /* синий */
.colorcode-10:before { background: #4D2982; } /* фиолетовый */
.colorcode-11:before { background: #2ce5d2; } /* серый */
.colorcode-12:before { background: #f7b913; } /* серый */
.colorcode-13:before { background: #777; } /* серый */
.colorcode-14:before { background: #999; } /* серый */
.colorcode-15:before { background: #eee; } /* серый */
.colorcode-16:before { background: rgba(38, 142, 108,1); } /* серый */

/* phonetics */

#block-views-block-phonetics-block-1 .views-row { 
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: solid 1px #eeeeee !important;
}

#block-views-block-phonetics-block-1 .views-field-title {
    font-family: 'Roboto Slab', serif;
    outline: none;
    font-weight: bold;
    font-size: 14px;
}


body.phonetic .article-content .default-field-label {
	margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: solid 1px #eeeeee !important;
    font-family: 'Roboto Slab', serif;
    outline: none;
    font-weight: bold;
    font-size: 22px;
}

body.phonetic #block-minlang-page-title {
	margin-top: 50px;
}
.field_img_consonantism {
	margin-bottom: 20px;
}

.space-wrap { display: inline-block; width: 10px; }

.colors-view li {
    display: block;
    padding: 2px 5px;
    margin-bottom: 2px;
}
 
.descrioon .title.is-4 {
	font-size: 16px;
}

.feature-1 { background: #d9ead3; }
.feature-2  { background: #b6d7a8; }
.feature-3 { background: #93c47d; }
.feature-4 { background: #6aa84f; }

body.phonetic .article-content .descrioon {
	margin-bottom: 50px;
}

/* */

.publictions-items .file.file--application-pdf a:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: none;
 
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */
 
  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;
 
  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;
 
  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;
 
  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */
 
  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */

  content: '\f1c1';
}

.publictions-items .item .section-title.discrete {
    background: #ededed;
    color: #3e3e3e;
    font-size: inherit;
    font-family: 'Open Sans', sans-serif;
}

.field_node_text .field_textimage img { max-width: 200px; margin-bottom: 20px; }
.field_node_text .field_textimage img:afetr { clear: both; display: block; }

/* list */

#page .article-content ul {
    list-style: disc outside;
    margin-left: 2em;
    margin-top: 1em;
    margin-bottom: 1em;
}

.link-specialist-image { box-shadow: none !important; }

/* corpora-iframe */

.corpora-iframe {
    position:fixed;
    top:70px;
    left:0;
    bottom:0;
    right:0;
    width:100%;
    height:calc(100vh - 70px);
    border:none;
    margin:0;
    padding:0;
    overflow:hidden;
    z-index: 99;
}

.corpora-link {
    position: fixed;
    z-index: 100;
    background: rgba(0,0,0,0.5);
}

#header-corpora {
    height: 70px;    
    box-shadow: 0 1px 6px 0 rgb(32 33 36 / 28%);
    z-index: 100;
    position: relative;
}
#header-corpora-wrap { padding: 10px; }
#header-corpora-wrap #logo img { margin-top: 0; }
#header-corpora-wrap #sitename { padding-top: 5px; }
#header-corpora-wrap #sitename .minlang { font-size: 18px; line-height: 1em; letter-spacing: 0.02em; }
#header-corpora-wrap #sitename .iling-ran { font-size: 14px; line-height: 1em; margin-top: 5px; }
#corpora-label { padding-left:50px; float: left; }
#corpora-label #corpora-page-link {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #268e6c; /* #777 */
    text-decoration: none;
}

#corpora-label #corpora-page-link:hover {
    text-decoration: underline;
}

#corpora-label #corpora-title {
    font-size: 18px;
    line-height: 1em;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    letter-spacing: ;
    margin: 0 !important;
    padding: 0 !important;
}

.corporalist header {
    box-shadow: none;
}

@media only screen and (max-width: 620px) {
    #header-corpora-wrap #sitename { padding-top: 0px; }
    #corpora-label { padding-left:10px; }
    #header-corpora #logo img { height: 55px !important; }
    #header-corpora #header-corpora-wrap #sitename { width: 220px; }
    #corpora-label *,
    #header-corpora-wrap #sitename {
        font-size: 16px;
        line-height: 1em;
    }
}

@media only screen and (max-width: 500px) {
    #header-corpora-wrap #sitename { padding-top: 3px; }
    #corpora-label { padding-left:10px; }
    #header-corpora #logo img { height: 55px !important; }
    #header-corpora-wrap #sitename .iling-ran { font-size: 12px; }
    #header-corpora-wrap #sitename { width: 200px; }
    #corpora-label *,
    #header-corpora-wrap #sitename {
        font-size: 16px;
        line-height: 1em;
    }
}

@media only screen and (max-width: 500px) {
    #header-corpora #sitename { display: none; }
}

#lead-message {
    background-color: #f5f5f5;
    padding: 20px 20px 20px 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

#lead-message p:last-child {
    margin-bottom: 0;
}

.element-desc { margin-bottom: 20px; }
.corpora-list-element { margin-bottom: 50px; }
.corpora-list-element .buttons a,
#corpora-view-wrap .buttons a { box-shadow: none !important; color: #fff !important; }

.corpora-list-element .table td {
    padding: 0.25em 0.5em !important;
}
.views-field-field-view-desc p { margin-top: 10px; font-size: 14px; }
.views-field-field-view-desc p:last-child { margin-bottom: 0 !important; }

/* pager */

ul.pager__items li.pager__item a {
    float: left;
    display: block;
    width: 60px;
    height: 60px;
    margin-right: 1px;
    line-height: 60px;
    text-align: center;
    background-color: #fafafa;
    color: #202121 !important;
    transition: all 0.3s ease-in-out;
    box-shadow: none !important;
}

ul.pager__items li.pager__item a:hover {
    background-color: #E6EAEA !important;
}

ul.pager__items li.is-active a {
    background-color: #268e6c !important;
    color: white !important;
}

.date-wrap { font-weight: bold; margin-bottom: 20px; }


/* continuum */

.continuum-items { margin-bottom: 50px; }

.continuum-name,
.continuum-item-name {
    font-style: italic;
    font-weight: bold;
    margin: 20px 0 5px 0;
    display: block;
}

.continuum-item {
    margin-left: 50px;
    margin-top: 25px;
}

.continuum-item-list a,
.continuum-item-list span { clear: both; }
.continuum-item-list a:after,
.continuum-item-list span:after { display: block; content: ''; clear: both; }

.continuum-item-desc-after,
.continuum-item-desc-before {
    color: #999;
}
.continuum-item-desc-before { margin-bottom: 5px; }
.continuum-item-desc-after { margin-top: 5px; }

.desc-header-corp { color: #268e6c; }

/* main */

.frontpage h1 { text-align: center !important; }

#main-materials h2 {
    margin-bottom: 50px !important;
    font-size: 32px;
    text-align: center;
}

.main-el-linked-image img { min-width: 100%; max-width:400px; }
.main-materials-row .main-el { display: flex; }
.main-materials-row {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: solid 1px #f5f5f5;
}
.main-materials-row:last-child {
    border-bottom: solid 0px;
}
.main-el-about { padding: 0 20px; }
.main-el-about.mini-text { padding-top: 30px; }
.main-el-about p { font-size: 14px; }
.main-el-about h3 { margin-top: 0 !important; }

#page a.readmore-link,
#page a.main-el-linked-image { box-shadow: none !important; }

@media only screen and (max-width: 500px) {
    .main-materials-row .main-el { display: block; }
    .main-el-linked-image img { max-width: 400px; width: 100%; }
    .main-el-about { padding: 10px 0px; }
    .main-el-about.mini-text { padding-top: 10px; }
}

/* gloss */

.gloss * { font-family: 'Charis SIL' !important; font-size:14px; line-height:15px; }
.gloss { font-size:16px; }
.gloss table { width:100%; table-layout: auto;  border: solid 0 #FFF; border-collapse:collapse;}
.gloss td { padding:5px 10px; table-layout:fixed; white-space: nowrap;
word-wrap: normal; border: solid 0 #FFF; border-collapse:collapse; }
.gloss .gl-el .data-container { overflow-y: auto; clear:both; padding-top:7px;}
.gloss .gl-rate  { color:#000;}

.gloss .gl-block { /* width:720px; */ margin-top:0px; padding:20px; background:#FFF; }
.gloss .gl-el { margin-bottom:30px; }
.gloss .gl-nm { float:left; color:#F00;}
.gloss .gl-rate { float:right;}
.gloss .gl-data { clear:both; padding-top:5px;}
.gloss .gl-data-tx-1 { background:#099; color:#fff; padding:5px; }
.gloss .gl-data-tx-2 { color:#099; background:#fff; padding:5px; }
.gloss .gl-data-tx-3 { background: #FF9; padding:5px; color:#000; }
.gloss .translate { color:#000; font-style:italic; background:#fff; padding:5px 10px; }


/* image to about */

.unfolding-text.short-info { display: flex; }
.about-text-view { /*max-width: 470px;*/ }
.image-to-text { width: 350px; margin-top: 3em; flex: none; margin-left: 20px; }
.image-desc {
    margin-top: 10px;
    font-size: 14px;
    border-top: solid 1px #ccc;
    padding-top: 10px;
}

@media only screen and (max-width: 800px) {
    .unfolding-text.short-info { display: block; }
    .image-to-text { 
        width: inherit; 
        margin-top: 1em; 
        margin-left: 0px; 
    }
    .image-to-text img { max-width: 350px; width: 100%; }
}

.devdev-view { display: none; }


/* link-specialist-hdr */

.link-specialist-hdr { margin-bottom: 20px; display: inline-block; box-shadow: none !important; }
.link-specialist-hdr h5 { margin: 0 !important; }

/* files */

.files-wrap { 
    padding: 20px;
    margin: 10px 0;
    background: #f5f1ee !important;
}

.files-wrap .file:before {
    font-family: "fontello";
    font-style: normal;
    font-weight: normal;
    speak: never;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: 0.2em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    margin-left: 0.2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: '\f0f6';
    display: block;
}

.file {
    align-items: stretch;
    display: flex;
    justify-content: flex-start;
    position: relative;
}

.files-wrap .file a {
    letter-spacing: 0.08em;
    display: block;
    box-shadow: none !important;
    text-decoration: none !important;
    border: none;
    line-height: 16px;
    margin-left: 20px;
}

.files-wrap .file a:hover {
    text-decoration: underline !important;
    color: #3d3935;
}

.files-wrap span.file + span { display: none; }

.files-wrap .items .item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: solid 1px #dedede
}

.files-wrap .items .item:last-child {
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: solid 0px #dedede
}

/* */

#phonetics_visualization {
    background: #fff !important;
    color: rgba(38, 142, 108,1) !important;
    cursor: pointer;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: solid 2px rgba(38, 142, 108,1);
    border-radius: 4px;
    transition-duration: .25s;
    font-size: 14px;
    box-shadow: none !important;
    cursor: pointer;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: solid 2px rgba(38, 142, 108,1);
    border-radius: 4px;
    transition-duration: .25s;
    font-size: 14px;
}

@media only screen and (min-width: 900px) {
    #phonetics_visualization {
        margin-left: 10px;
        float: right;
    }
}

@media only screen and (max-width: 899px) {
    #phonetics_visualization {
        margin-top: 10px;
    }
}

#phonetics_visualization:hover {
    background: rgba(38, 142, 108,1) !important;
    color: #fff !important;
}


.l-item-dialect {
    margin-left: 2em;
}

.is-parent {
    display: block
}

.field_map_desc {
    margin-bottom: 2em;
}

.message.is-success {
	margin-bottom: 2em;
}

#lang-switch a {
    display: block;
    margin-bottom: 5px;
    color: #3e3e3e;
    border: solid 1px #fff;
    padding: 3px 3px 2px 3px;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: 2px;
}

#lang-switch a.is-active {
    border: solid 1px #3e3e3e;
}
@media only screen and (max-width: 470px) {
    #sitename {
        max-width: 200px;
    }
    #sitename .minlang { line-height:1em; margin-bottom:0.5em; }
}

/* search-langs-page */

.search-langs-page .views-exposed-form { margin-bottom:80px; }

.search-langs-page .form-actions {
    margin-top:10px;
}

.search-langs-page #edit-submit-searchlangs {
    background-color: rgba(38, 142, 108,0.1);
    font-weight: bold;
    margin-right: 10px;
}

.search-langs-page #edit-reset {

}

.search-langs-page .views-field-view-node a {
    cursor: pointer;    
    border: solid 0px rgba(38, 142, 108,1);
    padding: inherit;
    display: inline-block;
    border-radius:0;
    transition-duration: .25s;
    font-size: 14px;
    margin-top: 10px;
    letter-spacing: 0.08em;
    color: #555 !important; 
    background: #fff;
    text-decoration: underline;
}

.search-langs-page .views-field-view-node a :hover {
    color: #555 !important;
    background: #fff;
    text-decoration: none;
}

ul.pager__items li.pager__item {
    float: left;
    display: block;
    width: 60px;
    height: 60px;
    margin-right: 1px;
    line-height: 60px;
    text-align: center;
    background-color: #fff;
    color: #202121 !important;
    transition: all 0.3s ease-in-out;
    box-shadow: none !important;
}

/* search page form */

.js-form-item-field-area-famcomm-status-value {
    margin-top: 10px;
    padding-top: 0;
}

.js-form-item-field-area-famcomm-status-value::before {
    content: '';
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    position: absolute;
    margin-top: -30px;
}

html[lang="ru"] .js-form-item-field-area-famcomm-status-value::before {
    content: 'Сферы функционирования';   
}

html[lang="en"] .js-form-item-field-area-famcomm-status-value::before {
    content: 'Language functioning';    
}

.js-form-item-title label {
    font-weight: bold;
}

.search-langs-page .views-exposed-form .js-form-item {
    margin: 10px 0;
}

.search-langs-page .views-exposed-form .js-form-item.form-item-field-language-transmission-value {
    margin-bottom: 30px;
}

#block-minlang-main-menu .beta:after {
    content: 'beta';
    display: inline-block;
    color: rgb(38, 142, 108);
    font-size: 10px;
    margin-left: 4px;
    position: absolute;
    margin-top: -2px;
}

/* ol */

.body ol {
    margin-left: 2em;
}

/* field_media_desc */

.field_media_desc {
    margin-bottom: 5px;
    display: block;
    font-style: italic;
    padding: 5px 20px 20px 20px;
}

/* video field */


/* ytb-wrap */

.ytb-wrap .field_video .item img {
    width: 100%;
}


/* front-materials-items */


@media only screen and (min-width: 500px) {
    .front-materials-items .main-materials-row:nth-child(even) .main-el {
        display: flex;
        flex-direction: row-reverse; /* меняет порядок по горизонтали */
        align-items: flex-start; /* выравнивание по вертикали */
        gap: 20px; /* промежуток между блоками */
    }
}

.container-video-file {
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-js {
    height: 100%;
}

/* ==============================
   Контейнер видео
   ============================== */
.video-wrapper {
    width: 100%;
    max-width: 600px;        /* ограничение для больших экранов */
    aspect-ratio: 16 / 9;    /* прямоугольник по умолчанию */
    overflow: hidden;
    margin: 0 auto;          /* центрируем контейнер */
    background-color: black;  /* фон, если видео вертикальное */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Внутренняя обертка для центрирования видео */
.video-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Видео */
.video-inner video {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* видео полностью видно, без обрезки */
    object-position: center;  /* центрирование кадра */
    display: block;
}

/* ==============================
   Адаптивность
   ============================== */

/* Телефоны */
@media (max-width: 480px) {
    .video-wrapper {
        aspect-ratio: 9 / 16; /* вертикальные видео лучше вписываются */
    }
}

/* Планшеты */
@media (min-width: 481px) and (max-width: 1024px) {
    .video-wrapper {
        max-width: 90%;
        aspect-ratio: 16 / 9;
    }
}

/* Десктоп */
@media (min-width: 1025px) {
    .video-wrapper {
        max-width: 600px;
        aspect-ratio: 16 / 9;
    }
}

/* search form */
/* ====== Обертка формы ====== */
.pagetype-langs-search .views-exposed-form {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem 1.5rem;
}

/* ====== Первые три поля — на всю ширину ====== */
.pagetype-langs-search .views-exposed-form > .form-item:nth-of-type(-n+3) {
  grid-column: 1 / -1;
}

/* ====== Элемент формы ====== */
.pagetype-langs-search .views-exposed-form .form-item {
  display: flex;
  flex-direction: column;
}

/* ====== Label ====== */
.pagetype-langs-search .views-exposed-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 0.35rem;
}

/* ====== Input / Select ====== */
.pagetype-langs-search .views-exposed-form input[type="text"],
.pagetype-langs-search .views-exposed-form select {
  appearance: none;
  width: 100%;
  padding: 0.6rem 0.75rem;

  font-size: 0.9rem;
  line-height: 1.4;

  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background-color: #fff;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Стрелка select */
.pagetype-langs-search .views-exposed-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* ====== Focus ====== */
.pagetype-langs-search .views-exposed-form input[type="text"]:focus,
.pagetype-langs-search .views-exposed-form select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ====== Actions ====== */
.pagetype-langs-search .views-exposed-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

/* ====== Buttons ====== */
.pagetype-langs-search .views-exposed-form .form-actions .button {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
  line-height: 1em;
}

/* Применить */
.pagetype-langs-search #edit-submit-searchlangs {
  background-color: rgba(38, 142, 108, 0.8);
  color: #fff;
}

.pagetype-langs-search #edit-submit-searchlangs:hover {
  background-color: rgba(38, 142, 108, 1);
}

/* Сбросить */
.pagetype-langs-search #edit-reset {
  background-color: #f3f4f6;
  color: #111;
  border-color: #d1d5db;
}

.pagetype-langs-search #edit-reset:hover {
  background-color: #e5e7eb;
}

/* ====== Mobile ====== */
@media (max-width: 600px) {
  .pagetype-langs-search .views-exposed-form {
    padding: 1rem;
    grid-template-columns: 1fr;
  }

  .pagetype-langs-search .views-exposed-form .form-actions {
    flex-direction: column;
  }

  .pagetype-langs-search .views-exposed-form .form-actions .button {
    width: 100%;
  }
}


/* grammar link */

.field-grammar-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
    margin-top: 20px;
    width: 100%;
}

.field-grammar-link:hover {
    background: #fff;
    border-color: #268e6c;
}

.field-grammar-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3f3f3f;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;    
}

#page .field-grammar-link a {
    box-shadow: inherit;
}

.field-grammar-link a::before {
    content: "";
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    background: url('../img/icons/grammar-icon.png') center/contain no-repeat;
}

/* chart desc */

.field-dynamics-chart-desc {
    margin-top: 15px;
    padding-left: 5px;
    border-left: solid 4px red;
    padding-left: 20px;
}

.field-dynamics-chart-desc p {
    margin: 0;
}

/* paragraph--type--textimage */

.paragraph--type--textimage {
    max-width: 320px;
    margin: 30px auto;
    /*
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 5px solid rgb(38, 142, 108);
    */
}

.field_textimage img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.field_textimage img:hover {
    transform: scale(1.02);
}


/* text-items-wrapper */

.text-items-wrapper {

}

.text-items-wrapper .text-item {

}

.text-items-wrapper .text-item::after {
    content: '';
    display: block;
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: solid 1px #ccc;
    margin-left: -20px;
    margin-right: -20px;
}

.text-items-wrapper .text-item:last-child::after {
    border-bottom: none;
}