a { color: #4b526c; }
a:hover {
    text-decoration: underline;
    color: #4b526c;
}

.main-container .content a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 102, 204, 0.4);
  transition: all 0.2s ease;
}

.main-container .content a:hover,
.main-container .content a:focus {
  color: #004999;
  border-bottom-color: rgba(0, 102, 204, 0.8);
}

.main-container .content a:visited {
  color: #5a3696;
}

img { vertical-align: middle; }

h1, .h1, h2, .h2, article h4, h3, .h3, h4, .h4, 
.research_report .research_head_fields .header-text, h5, .h5, h6, .h6 {
    color: #a9586b !important;
    font-weight: 400;
    line-height: 1.4;
    margin: 15px 0 8px;
}

.content h2:first-child { margin-top: 0 !important; }

header {
    background-color: #ede7e8;
    border: 0;
    border-radius: 0;
    margin: 0;
}
.logo { padding: 30px 30px 0 0; position: relative; z-index: 5; display: block; }
.logo img { width: 120px; }

.site-header {
    padding-top: 30px;
}

.site-name {
    max-width: 290px;
    line-height: 1.2em;
    font-size: 18px;
    font-weight: bold;
    color: #4b526c;
}

#header-container { position: relative; }

#main-menu {
    background-color: #4b526c;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

#mainmenu-container { padding-left: 166px !important; }

#mainmenu-container,
#header-container { 
    display: block; 
    margin: 0 auto;
    padding-right: 15px;
    padding-left: 15px;
    line-height: 34px;
}

#footer-content,
#footer-line { 
    display: block; 
    margin: 0 auto;
    padding-right: 15px;
    padding-left: 15px;
}

#header-container {
    display: flex;
}

#about-menu {
    margin-top: 24px;
    position: absolute;
    right: 15px;
}

#about-menu :not(.contextual) a {
    color: #a9586b;
    line-height: 1.2em;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#about-menu :not(.contextual) a:hover {
    text-decoration: underline;
}

#about-menu :not(.contextual) a:after {
    content: '|';
    padding-left: 15px;
    padding-right: 15px;
}
#about-menu :not(.contextual) li:last-child a:after {
    content: '';
    padding-right: 0px;
    padding-left: 0px;
}

@media (max-width: 768px) {
    .logo { padding: 20px 10px 0 0; }
    .site-header {
        padding-top: 20px;
    }
    #about-menu {
        margin-top: 0px;
        bottom: 30px;
    }
    #about-menu :not(.contextual) a {
        font-size: 12px;
    }
    .site-support { font-size: 14px; line-height: 2em; }

    .site-name {
        line-height: 1em;
        font-size: 14px;
    }
    #main-menu {
        display: none;
    }
    .burger {
        display: block;
    }
    #header-container { display: block; }
    #header-container:after {
        clear: both;
        display: block;
        content: '';
    }

    header .logo {
        float: left;
    }
    header .logo img { width: 80px; }

    footer .logo {
        padding-bottom: 20px;
    }

    footer .logo img { width: 80px; }

    .breadcrumb {
        display: block !important;
    }
}
@media (max-width: 400px) {
    .site-name {
        line-height: 1em;
        font-size: 12px;
    }
    .site-support { font-size: 12px; }
    #about-menu :not(.contextual) a {
        font-size: 12px !important;
        text-transform: none !important;
        line-height: 1em !important;
    }
    #about-menu {
        bottom: 24px;
    }
}

.color-1 {
    color: #ede7e8; /* gray */
}

.gray { background-color: #ede7e8; }

.color-2 {
    color: #4b526c; /* blue */
}

.color-3 {
    color: #a9586b; /* red */
}

@media (min-width: 768px) {
    .container,
    #mainmenu-container,
    #header-container,
    #footer-content,
    #footer-line { width: 750px; }
}

@media (min-width: 992px) {
    .container,
    #mainmenu-container,
    #header-container,
    #footer-content,
    #footer-line { width: 970px; }
}

@media (min-width: 1200px) {
    .container,
    #mainmenu-container,
    #header-container,
    #footer-content,
    #footer-line { width: 1170px; }
}

.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    padding-top: 2em;
    padding-bottom: 2em;
}

.container.top-container {
    padding-top: 0em !important;
    padding-bottom: 0em !important;
}
.container.top-container h1 { padding: 0 !important; margin: 0 !important; }

.breadcrumb { display: flex; flex-wrap:wrap; }
.breadcrumb-section + .container { padding-top: 1em !important; }
.breadcrumb-section .container {
    padding-top: 1em;
    padding-bottom: 1em !important;
}
.breadcrumb-item,
.breadcrumb-item a, 
.breadcrumb-item span {
    color: #949494;
    font-size: 12px;
}

footer {
    background-color: #4b526c; /* blue */
    min-height: 50px;
}
/*
#footer-content,
#footer-line {
    margin: 0 auto;
}
*/
#footer-line-wrap { 
    background: #000; 
    color: #fff;
    font-size: 12px;
    padding: 1em 0;
}

@media (min-width: 600px) {
    #footer-content,
    .footer-links-row { display: flex; }
}

#footer-content {
    justify-content: space-between;
}



@media (min-width: 600px) {
    .footer-links-row { padding-top: 2em; }
    .footer-links-col {
        line-height: 1.5em;
        padding-left: 4em;
    }
}
@media (max-width: 600px) {
    .footer-links-col { padding-bottom: 1em; }
}

.footer-links-col a { 
    color: #fff; 
    display: block;
    font-size: 14px;
}
@media (min-width: 600px) {
    .with-contextual-menu {
        display: flex;
        flex-direction: row;
        flex-flow: row-reverse;
    }
}
.contextual-menu {
    border-left: 4px solid #4b526c;
    padding-left: 30px;
    margin-left: 30px;
    min-width: 170px;
}
.contextual-menu li { margin-bottom: 24px; }
.contextual-menu a {
    color: #3d3935;
    border-bottom: 1px solid rgba(61,74,140,1);
    text-decoration: none;
    word-wrap: break-word;
    transition: all .2s ease-in;
}
.contextual-menu a:hover { border-bottom: 1px solid #fff; }

.layout-sidebar h2 {
    margin-left: 27px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .contextual-menu {
        border-left: 4px solid #4b526c;
        padding-left: 15px;
        margin-left: 0px;
        min-width: inherit;
    }
    .layout-sidebar h2 {
        margin-left: 0px;
    }
}


/* var-b */

header.var-b #main-menu {
    margin-top: -40px;
    background-color:inherit  !important;
    padding-bottom: 20px;

}

header.var-b #mainmenu-container { padding-left: 166px; }

header.var-b #main-menu a {
    color: #4b526c;
    text-transform: uppercase;
}

header.var-b .site-name {
    max-width: 450px;
}

@media (max-width: 768px) {
    header #about-menu {
        margin-top: 0px;
        bottom: 6px;
    }
}




/* var-c */

header.var-c #main-menu {
    margin-top: -40px;
    background-color:inherit  !important;
    padding-bottom: 0px;

}

header.var-c #mainmenu-container { padding-left: 166px; }

header.var-c #main-menu a {
    color: #4b526c;
    text-transform: uppercase;
}

header.var-c .site-name {
    max-width: 400px;
}

header.var-c .mainmenu-wrap {
    background-color: #fff;
    display: inline-block;
    min-height: 42px;
    position: relative;
    margin-top: 10px;

}
/*
header.var-c .mainmenu-wrap:before {
    position: absolute;
    display: inline-block;
    background: #fff;
    width: 30px;
    height: 42px;
    content: '';
    border-radius: 30px 0 0 0;
    left: -30px;
}
header.var-c .mainmenu-wrap:after {
    position: absolute;
    display: inline-block;
    background: #fff;
    width: 30px;
    height: 42px;
    content: '';
    border-radius: 0 0 30px 0;
}
*/

header.var-c .mainmenu-wrap a {
    padding-top: 7px;
    display: inline-block;
}

header.var-c #main-menu a:after {
    content: '';
}

header.var-c #main-menu a:last-child:after,
header.var-c #main-menu a.last:after {
    padding-left: 0px !important;
    padding-right: 0px !important;
    display: none !important;
}

#footer-container {
    padding-bottom: 20px;
}

/* upd */

header.var-c .mainmenu-wrap {
    background-color: #fff;
    display: inline-block;
    min-height: 45px;
    position: relative;
    margin-top: 10px;
}

.left-el-container {
    width: 50px;
    height: 50px;
    display: block;
    overflow: hidden;
    position: absolute;
    left: -60px;
    z-index: 10;
    background: #fff;
    padding-right: 60px;
}
.left-el {
    display: block;
    width: 150px;
    height: 150px;
    background-color: #EDE7E8;
    border-radius: 50%;
    margin-left: -95px;
    margin-top: -103px;
}

.right-el-container {
    width: 50px;
    height: 50px;
    display: block;
    overflow: hidden;
    position: absolute;
    right: -60px;
    top: 0;
    z-index: 10;
    padding-left: 60px;
}
.right-el {
    display: block;
    width: 150px;
    height: 150px;
    background-color: #fff;
    border-radius: 50%;
    margin-left: -145px;
    margin-top: -104px;
}
@media (max-width: 1000px) {
    header.var-c #main-menu { display: none; }
}

/* components */

.paragraph--type--quote .contant-container-wrap {
    max-width: 760px;
    margin: 20px 0 40px 0;
}

.paragraph--type--quote blockquote {
    padding: 0 0 20px 84px;
    font-size: 24px;
    font-style: italic;
    font-weight: 300;
    line-height: 34px;
    background-image: url('../assets/quote-left.svg');
    background-repeat: no-repeat;
    background-position: left top;
    background-color: inherit !important;
    border-left: inherit !important;
    margin-bottom: 0 !important;
}

.paragraph--type--quote blockquote p {
    font-size: 24px;
    line-height: 33.6px;
}

@media only screen and (max-width: 1150px) {
    .paragraph--type--quote blockquote {
        font-size: 18px;
        line-height: 25.2px;
    }

    .paragraph--type--quote blockquote p {
        font-size: 18px;
        line-height: 25.2px;
    }
}

.paragraph--type--quote blockquote p:last-child {
    margin-bottom: 0;
}

.field_quote_author,
.field_author_desc {
    color: rgba(40, 72, 104, 1);
    text-align: right;
    font-size: 14px;
    font-weight: 400;
    line-height: 15px;
}
.field_quote_author .item { font-weight: bold; display: inline-block; }
.field_quote_author .item:after { content: ', '; display: inline-block; }


/* */


/* covered */

@media only screen and (max-width: 1200px) {
    .paragraph--type--material .text-view-teaser.text-view-covered {
        border-top: solid 1px #85AFD9;
        border-bottom: solid 1px #85AFD9;
    }
}

.paragraph--type--material .text-view-teaser.text-view-covered .teaser-top { padding-bottom: 10px; }

@media only screen and (min-width: 1200px) {
    .paragraph--type--material .text-view-teaser.text-view-covered { position: relative; }
    .paragraph--type--material .text-view-teaser.text-view-covered .teaser-top {
        position: absolute;
        padding: 20px;
        z-index: 9;
    }
    .paragraph--type--material .text-view-teaser.text-view-covered .teaser-top a { color: #fff; }

    .paragraph--type--material .text-view-teaser.text-view-covered .teaser-middle {
        position: absolute;
        left: 0;
        bottom: 0;
    }
    .paragraph--type--material .text-view-teaser.text-view-covered .teaser-middle { padding: 20px; }
    .paragraph--type--material .text-view-teaser.text-view-covered .teaser-middle h2 a,
    .paragraph--type--material .text-view-teaser.text-view-covered .teaser-middle .teaser-view-body { color: #fff !important; }
    .paragraph--type--material .text-view-covered .field_category a,
    .paragraph--type--material .text-view-covered .field_story a {
        color: #fff;
    }

    .text-view-covered .teaser-cover a:after {
        content: '';
        display: block;
        background: linear-gradient(360deg, #284868 0%, rgba(40, 72, 104, 0) 89.44%, #284868 100%);
        mix-blend-mode: multiply;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
    }
}

@media only screen and (max-width: 1200px) {
    .paragraph--type--material .text-view-teaser.text-view-covered .teaser-top {
        padding-bottom: 5px;
        padding-top: 10px;
    }
}


.paragraph--type--material .teaser-view-body { margin-bottom: 0; }

.paragraph--type--material .text-view-teaser .teaser-cover .mobile { display: none; }

.text-view-teaser .photo-day-teaser-style, .text-view-teaser .photo-1160-400-style {
    display: none;
}

.paragraph--type--material .text-view-teaser .teaser-middle {
    padding-bottom: 20px;
}

@media only screen and (max-width: 1200px) {
    .paragraph--type--material .text-view-teaser .teaser-middle {
        padding-bottom: 10px;
    }
    .paragraph--type--material .text-view-teaser .teaser-middle h2 {
        margin-bottom: 0;
        padding-top: 5px;
    }
}


/* mask image */

.paragraph--type--_-1-1 .opinion-view-teaser .teaser-view-author,
.field_related_content_1 .opinion-view-teaser .teaser-view-author {
    margin-top: 40px;
}

.pagetype-taxonomy.bundle-story .teaser-top .teaser-view-story { display: none !important; }
.pagetype-node.bundle-opinion .views-field-field-author article { margin-bottom: 20px; min-height: 100px; }
.pagetype-node.bundle-opinion .views-field-field-author article:last-child { margin-bottom: 0;  }
.pagetype-node.bundle-opinion .views-field-field-author article:after {
    clear: both;
    content: '';
    display: block;
}

.pagetype-node.bundle-opinion .views-field-field-author article .right-wrap {
    font-size: 14px;
    font-weight: 400;
    line-height: 15px;
    color: rgba(40, 72, 104, 1);
    padding-right: 40px;
    max-width: 230px;
    display: inline-block;
}

.pagetype-node.bundle-opinion .views-field-field-author article .right-wrap .author-name * {
    display: inline;
    font-weight: bold;
}
.pagetype-node.bundle-opinion .views-field-field-author article .field_email { margin-top: 10px; }
.pagetype-node.bundle-opinion .views-field-field-author article .field_email a { color: rgba(40, 72, 104, 1); text-decoration: none; }
.pagetype-node.bundle-opinion .views-field-field-author article .field_email a:hover { text-decoration: underline !important; }
@media only screen and (min-width: 1200px) {
    .text-view-covered .teaser-textarea-link {
        color: #fff !important;
    }
}

.paragraph--type--material,
.content-text {
    max-width: 760px;
}


.text-view-teaser.text-view-onlytitle {
    border-top: solid 1px #4b526c;
    border-bottom: solid 1px #4b526c;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.text-view-onlytitle h2,
.text-view-covered h2 {
    font-size: 3em;
    line-height: 1.1em;
    margin-bottom: 10px;
}

.text-view-onlytitle h2 a:hover,
.text-view-covered h2 a:hover {
    text-decoration: none;
    color:#a9586b !important;
}

@media only screen and (max-width: 1200px) {
    .text-view-teaser.text-view-onlytitle {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .text-view-onlytitle h2,
    .text-view-covered h2 {
        font-size: 2em;
    }

    .paragraph--type--material .text-view-teaser.text-view-covered .teaser-middle h2 a:hover {
        text-decoration: none;
        color:#a9586b !important;
    }
}

.text-view-onlytitle .field_category {
    margin-bottom: 10px;
}

@media only screen and (max-width: 1200px) {
    .text-view-onlytitle .field_category {
        margin-bottom: 5px;
    }
}


.field_category a {
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 14px;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.field_category a:hover {
    text-decoration: underline;
}

.text-view-onlytitle .field_category a {
    color: #a9586b;
}
@media only screen and (max-width: 1200px) {
    .text-view-covered .field_category a { color: #a9586b; }
}

.text-view-onlytitle .field_category a:hover { text-decoration: underline !important; }

.text-view-teaser {
    margin-bottom: 20px;
}
/*
.container:not(.is-max-desktop) {
    max-width: 990px !important;
}
*/
/* inset */

.paragraph--type--inset {
    background-color: #ede7e8;
    padding: 20px;
    margin-bottom: 20px;
}

/* paragraph--type--image-insert */

.paragraph--type--image-insert {
    margin-bottom: 30px;
}
.image-desc-wrap,
figcaption { 
    margin-top: 5px;
    font-weight: 400;
    color: #333;
    font-size: 14px;
    line-height: 20px;
}
.image-desc-wrap a,
figcaption a { text-decoration: underline; }
.image-desc-wrap a:hover,
figcaption a:hover { text-decoration: none; }

 /* embed iframe */

/* https://www.w3schools.com/howto/howto_css_responsive_iframes.asp */

.iframe-embed { 
    margin: 15px 0 30px 0;
    max-width: 960px;
}

@media only screen and (max-width: 1150px) {
    .iframe-embed { margin: 15px 0 30px 0; }
}

.iframe-embed .iframe-embed-wrap {
    left: 0;
    width: 100%;
    height: 0;
    position: relative;
    padding-bottom: 82.1429%;
}

.iframe-embed.ratio16by9 .iframe-embed-wrap { padding-bottom: 56.25% !important; }
.iframe-embed.ratio4by3 .iframe-embed-wrap { padding-bottom: 75% !important; }
.iframe-embed.ratio3by2 .iframe-embed-wrap { padding-bottom: 66.66% !important; }
.iframe-embed.ratio8by5 .iframe-embed-wrap { padding-bottom: 62.5% !important; }
.iframe-embed.ratio1by1 .iframe-embed-wrap { padding-bottom: 100% !important; }

.iframe-embed-wrap iframe {
    border: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}


/* opinion-author */

.images-carousel:after {
    clear: both;
    display: block;
    content: '';
}

.owl-carousel {
    display: flex;
    flex-wrap: wrap;
}

.images-carousel .item {
    max-width: 233px; margin-right: 20px; margin-bottom: 20px;
    float: left;
}

/* wrap */

#wrap {
    min-height: 556px;
}


/* team */

.field_team { margin-bottom: 2em; }

.field_team h2,
.field_team_other h2 { padding-bottom: 5px; }

.field_team > .items,
.field_team_other > .items { clear: both; display: flex; flex-wrap: wrap; }

.field_team > .items:before,
.field_team_other > .items:before {
    display: table;
    content: " ";
}

.field_team > .items:after,
.field_team_other > .items:after {
    display: block;
    content: " ";
    clear: both;
}

.field_team > .items > .item,
.field_team_other > .items > .item {
    text-align: center;
    max-width: 240px;
    display: inline;
    float: left;
    margin-left: 0px;
    margin-right: 20px;
    width: 100%;
    margin-bottom: 2em;
}

.field_team .items .item .paragraph,
.field_team_other .item .paragraph { margin: 0 auto; }

.field_team .field_photo .item,
.field_team_other .field_photo .item, {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: 150px;
}

.field_team .field_photo img,
.field_team_other .field_photo img {
    display: block;
    border-radius: 50%;
    width: 170px;
    margin: 0 auto;
}

.fio-wrap {
    margin-top: 3px;
    font-weight: bold;
    font-size: 1.2em;
    padding: 0 20px;
}
.fio-wrap * { display: inline; }

.fio-wrap a:hover {
    text-decoration: none;
}

.fio-wrap:hover a {
    text-decoration: underline;
}

.field_post {
    padding: 0 20px;
}

/* mess-sec */

.mess-sec {
    margin-bottom: 1em;
}

/* block-customtheme-primary-local-tasks */

#block-customtheme-primary-local-tasks {
    margin-bottom: 1em;
}

#block-customtheme-primary-local-tasks .data-container {
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
    display: flex;
    font-size: 1rem;
    justify-content: space-between;
    overflow: hidden;
    overflow-x: auto;
    white-space: nowrap;
}

#block-customtheme-primary-local-tasks .data-container ul {
    align-items: center;
    border-bottom-color: #dbdbdb;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    display: flex;
    flex-grow: 1;
    flex-shrink: 0;
    justify-content: flex-start;
}
#block-customtheme-primary-local-tasks .data-container ul li {
    display: block;
}
#block-customtheme-primary-local-tasks .data-container ul li a {
    align-items: center;
    border-bottom-color: #dbdbdb;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    color: #4a4a4a;
    display: flex;
    justify-content: center;
    margin-bottom: -1px;
    padding: 0.5em 1em;
    vertical-align: top;
}

#block-customtheme-primary-local-tasks .data-container ul li a.is-active {
    border-bottom-color: #485fc7;
    color: #a9586b !important;
}

@media screen and (min-width: 1360px) {
    .container { max-width: 1344px !important; }
}

#header-container {
    position: relative;
}

#header-items {
    position: absolute;
    right: 15px;
    top: 60px;
}

.language-switcher-language-url .data-container .links * {
    display: inline-block;
}

.language-switcher-language-url .data-container .links li a { font-weight: bold; }

@media (max-width: 768px) {
    #main-menu {
        display: block;
        margin-top: 10px !important;
    }
    header #about-menu {
        bottom: 2px;
    }
    #header-items {
        top: 82px;
    }

    #mainmenu-container { 
        padding-left: 20px !important;
        line-height: inherit;
    }
    #main-menu a { letter-spacing: inherit; text-transform: none !important; }
    #main-menu a:after {
        content: '|';
        padding-left: 5px;
        padding-right: 5px;
    }
}


.field_cover img,
.views-field-field-cover img {
    margin: 10px 0;
    padding: 2px;
    border: solid 1px #dedede;
    display: block;
}

.field_date {
    font-weight: bold;
    margin: 1em 0;
}

.views-field-field-date {
   /* font-weight: bold; */
}

.views-field-title {
    font-weight: bold;
    /*font-size: 20px;*/
}

.views-field-view-node a {
    color: #a9586b !important;
    text-decoration: underline;
}

.content.content-text .body a { text-decoration: underline; }

.views-element-container .views-row {
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: solid 1px #dedede;
}


/* field-el field-items field_country */

.field-el {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: solid 1px #dedede;
    display: flex;
}
.field-el.body { 
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: solid 0px #dedede;
    display: inherit;
}
.field-el .label {
    padding-right: 20px;
    min-width: 200px;
}
.field-el .label + div {}

.field_category_tree .items .item { display: none; }
.field_category_tree .items .item:last-child { display: block; }

.field_lang_competence .items .item,
.field_age_category .items .item { display: inline-block; }
.field_age_category .items .item:after,
.field_lang_competence .items .item:after {
    content: ', ';
    display: inline-block;
}
.field_age_category .items .item:last-child:after,
.field_lang_competence .items .item:last-child:after {
    content: ' ';
}

.views-exposed-form {
    margin-bottom: 10px;
    padding: 20px;
    background-color: #efefef;
}
.form-item { display: inline-block; margin-right: 20px; margin-bottom: 10px; }
#edit-field-year-start-value { width: 80px  !important; }

/* pager */

nav.pager {

}

ul.pager__items {
    list-style: none;
    margin-left: 0 !important;
}

ul.pager__items li.pager__item {
    display: inline-block;
}

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: #4b526c !important;
    color: white !important;
}

.views-element-container header {
    background-color: inherit !important;
    margin-bottom: 2em;
}

/* subheader */

.subheader { padding-top: 5px; }
.subheader a {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 0 10px 0 0;
    font-size: 12px;
    border-right: solid 1px #ede7e8;
    border-top: solid 1px #ede7e8;
}
.subheader a.active { background: #ede7e8; }


/* field-el */

.field-el h2 { font-size:inherit; margin:0; }
.field-el:last-child { border:none; }

/* main-menu */

#main-menu a { color: #fff; letter-spacing: 0.08em; }
#main-menu a:hover { text-decoration: underline; }
#main-menu a:after {
    content: '|';
    padding-left: 15px;
    padding-right: 15px;
    display: inline-block;
}
#main-menu ul { list-style: none; padding: 0; margin: 0; }
#main-menu li { display: inline-block; }
#main-menu li:last-child a:after {
    content: '';
    padding-right: 0px;
    padding-left: 0px;
}

/* text page */

.bundle-page .content h1 {
    text-align: center;
}
.bundle-page .content .body {
    max-width: 700px;
    margin: 0 auto;
}

.field-view {
    margin-bottom: 1em;
}

/* source-link */

.source-link {
  margin-top: 1em;
  font-size: 1rem;
  margin-bottom: 2em;
}

.source-link a {
  color: #0056b3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.source-link a:hover {
  color: #003974;
  /*text-decoration: underline;*/
}

.source-link .icon-clip {
  font-size: 1.2em;
  margin-right: 0.4em;
}

/* field_target */

.field_target .label::after {
  content: "";
  margin-right: 0.3em;
}

.field_target .items {
  display: inline;
}

.field_target .item {
  display: inline;
}

.field_target .item::after {
  content: ", ";
}

.field_target .item:last-child::after {
  content: "";
}

/* field_type_methodology */

.field_type_methodology {
    margin-bottom:1em;
}

/* field_source_contacts */

.field_source_contacts { margin-bottom:1em; }

/* field_source_information */

.field_source_information { margin-bottom:1em; }

/* body */

.field-view.body {
    margin-bottom: 2em;
}

/* views-field-field-type */

.content .views-field-field-type ul {
    list-style: none;
    margin-left: 0;
    margin-top: 0;
}

/* field_interesting_features */

.field_interesting_features,
.views-field-field-interesting-features {
    background-color: rgba(237, 231, 232, 0.5);
    padding: 20px;
    max-width: 365px;
    position: relative;
    margin-bottom: 0;
}

.field_interesting_features{
    background-color: rgba(237, 231, 232, 0.5);
    padding: 20px;
    max-width: 365px;
    position: relative;
    margin-bottom: 0;
}

.field_interesting_features .label,
.views-field-field-interesting-features .views-label {
    text-transform: uppercase;
    color: #a9586b !important;
    font-weight: bold;
}

@media screen and (min-width: 600px) {
    .bundle-language_tool .main-container {
        display: flex;
        gap: 50px;
    }
    .sidebar_second {
        min-width: 365px;
        padding-top: 50px;
    }
    .field_interesting_features {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .sidebar_second {
        display: none;
    }
    .field_interesting_features{
        max-width: inherit;
        margin-top: 20px;
    }
}

.views-element-container .interesting-features-block .views-row {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* bundle-language_tool page items */

.bundle-language_tool .field_interface_languages,
.bundle-language_tool .field_is_implemented,
.bundle-language_tool .field_creators,
.bundle-language_tool .field_contacts,
.bundle-language_tool .field_sources_about_resource {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: solid 1px #dedede;    
}

@media screen and (min-width: 600px) {
    .bundle-language_tool .field_interface_languages,
    .bundle-language_tool .field_is_implemented,
    .bundle-language_tool .field_creators,
    .bundle-language_tool .field_contacts,
    .bundle-language_tool .field_sources_about_resource {
        display: flex;
    }
}

.bundle-language_tool .field_interface_languages .label:not(:last-child),
.bundle-language_tool .field_is_implemented .label:not(:last-child),
.bundle-language_tool .field_creators .label:not(:last-child),
.bundle-language_tool .field_contacts .label:not(:last-child),
.bundle-language_tool .field_sources_about_resource .label:not(:last-child) {
    margin-bottom: 0;
}

.bundle-language_tool .field_interface_languages .label,
.bundle-language_tool .field_is_implemented .label,
.bundle-language_tool .field_creators .label,
.bundle-language_tool .field_contacts .label,
.bundle-language_tool .field_sources_about_resource .label {
    font-weight: normal;
    font-style: italic;
    color: #999;
}

@media screen and (min-width: 600px) {
    .bundle-language_tool .field_interface_languages .label,
    .bundle-language_tool .field_is_implemented .label,
    .bundle-language_tool .field_creators .label,
    .bundle-language_tool .field_contacts .label,
    .bundle-language_tool .field_sources_about_resource .label {
        padding-right: 20px;
        min-width: 200px;
        max-width: 200px;
        border-right: solid 1px #ccc;
        margin-right: 20px;
    }
}


.bundle-language_tool .field_domain,
.bundle-language_tool .field_type,
.bundle-language_tool .field_specificity {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: solid 1px #dedede;
}

@media screen and (min-width: 600px) {
    .bundle-language_tool .field_domain,
    .bundle-language_tool .field_type,
    .bundle-language_tool .field_specificity {
        display: flex;
    }
}

.bundle-language_tool .field_domain .label:not(:last-child),
.bundle-language_tool .field_type .label:not(:last-child),
.bundle-language_tool .field_specificity .label:not(:last-child) {
    margin-bottom: 0;
}

.bundle-language_tool .field_domain .label,
.bundle-language_tool .field_type .label,
.bundle-language_tool .field_specificity .label {
    font-weight: normal;
    font-style: italic;
    color: #999;
}

@media screen and (min-width: 600px) {
    .bundle-language_tool .field_domain .label,
    .bundle-language_tool .field_type .label,
    .bundle-language_tool .field_specificity .label {
        padding-right: 20px;
        min-width: 200px;
        max-width: 200px;
        border-right: solid 1px #ccc;
        margin-right: 20px;
    }    
}

/* page items bundle-language_tool_methodology */


.bundle-language_tool_methodology .field_domain,
.bundle-language_tool_methodology .field_type,
.bundle-language_tool_methodology .field_specificity {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: solid 1px #dedede;
}

@media screen and (min-width: 600px) {
    .bundle-language_tool_methodology .field_domain,
    .bundle-language_tool_methodology .field_type,
    .bundle-language_tool_methodology .field_specificity {
        display: flex;
    }
}

.bundle-language_tool_methodology .field_domain .label:not(:last-child),
.bundle-language_tool_methodology .field_type .label:not(:last-child),
.bundle-language_tool_methodology .field_specificity .label:not(:last-child) {
    margin-bottom: 0;
}

.bundle-language_tool_methodology .field_domain .label,
.bundle-language_tool_methodology .field_type .label,
.bundle-language_tool_methodology .field_specificity .label {
    font-weight: normal;
    font-style: italic;
    color: #999;
}

@media screen and (min-width: 600px) {
    .bundle-language_tool_methodology .field_domain .label,
    .bundle-language_tool_methodology .field_type .label,
    .bundle-language_tool_methodology .field_specificity .label {
        padding-right: 20px;
        min-width: 200px;
        max-width: 200px;
        border-right: solid 1px #ccc;
        margin-right: 20px;
    }    
}

/* fields in block */
/*
.field_source_contacts,
.field_what_is_needed,
.field_target {
    float: left;
    background-color: rgba(237, 231, 232, 0.5);
    padding: 20px;
    max-width: 365px;
    min-height: 200px;
    margin-bottom: 20px;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.field_source_contacts,
.field_what_is_needed {
    margin-right: 20px;
}
*/

.flex-box-wrap {
  display: flex;
  gap: 20px; /* расстояние между блоками */
  flex-wrap: wrap; /* чтобы могли переноситься на мобилках */
}

.flex-box-wrap .field-view {
  flex: 1; /* равная ширина всех элементов */
  min-width: 250px; /* минимальная ширина для корректного переноса */
  background-color: rgba(237, 231, 232, 0.5);
  border-radius: 20px; /* скругленные углы */
  padding: 20px;
  /* 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  */ 
  /* выравнивание по высоте */
}

/* Чтобы все карточки были одинаковой высоты */
.flex-box-wrap {
  align-items: stretch;
}

/* Заголовок */
.flex-box-wrap .field-view .label {
  font-weight: bold;
  margin-bottom: 10px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .flex-box-wrap {
    flex-direction: column;
  }
}




/* .field-view.body */

.bundle-language_tool .field-view.body {
    max-width: 720px;
    margin-bottom: 0;
}

.bundle-language_tool_methodology .field-view.body {
    max-width: 750px;
    margin: 0 auto;
}

/* wrap-data-items */


.wrap-data-items {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: solid 1px #dedede;
}

@media screen and (min-width: 600px) {
    .wrap-data-items {
        display: flex;
        justify-content: space-between;
        /*align-items: center;*/
        align-items: flex-start;
    }
    .wrap-data-items .body {
        margin-right: 50px;
    }
}

/* first-letter */

.views-field-field-domain,
.views-field-field-specificity {
    text-transform: lowercase;
}

.views-field-field-domain::first-letter,
.views-field-field-specificity::first-letter {
    text-transform: uppercase;
}

.field-view.field_what_is_needed .item {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
    border: 0px solid #ccc;
    border-radius: 8px;
}

/* block-info */


#block-info {
    background: rgba(237, 231, 232, 0.5);
    /*padding: 20px 20px 30px 10px;*/
    max-width: 350px;
    margin-right: 50px;
    min-width: 300px;
}

.content #block-info ul:not(.contextual-links) {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

#block-info ul:not(.contextual-links) li a {
    /*font-size: 14px;*/
    display: block;
    padding: .5em .75em;
    padding-left: 20px;
    padding-right: 20px;
}
 
#block-info ul:not(.contextual-links) li a.is-active {
    background-color: #a9586b;
    color: #fff;
}

/* read more */

.field_link {
    background-color: #a9586b;
    color: #fff;
    padding: 15px 10px;
    margin-top: 20px;
}

.field_link .item.icon-right a {
    color: #fff;
    margin-left: 7px;
}

@media screen and (min-width: 1024px) {
    html.bundle-directory_page .main-container {
        display: flex;
    }
}