/* Max made this custom edit */

#main-content {
  background-color: #f0f0f0;
}

.logo-and-site-name-wrapper .logo img {
  height: 100px;
}

.logo-and-site-name-wrapper .site-slogan {
  font-size: larger;
}

.header-container {
  background-color: #959595;
}

.header-container .region--dark-background {
  background-color: transparent;
}

.header-container .block-language ul li {
  display: inline-block;
}

.header-container .block-language ul li:before {
  position: relative;
  content: no-open-quote;
}

#block-catalog-lite-dropdownlanguagesoderzhimoe .dropbutton-multiple {
  text-transform: uppercase;
  padding: 10px 0;
  width: 125px;
}

.region-header .search-block-form {
  width: 50%;
  float: right;
  margin-top: 10px;
}

.page-container .banner.region--black-background:after {
  background-color: rgba(0, 0, 0, 0.35);
}

#banner .banner__container .flex-caption {
  width: auto;
}

.path-frontpage #banner .block-system-branding-block {
  position: absolute;
  z-index: 5;
  top: 5%;
  right: 5%;
  width: 240px;
}

#banner .block-system-branding-block .logo img {
  height: 80px;
}

#banner .logoforbanner {
  text-align: center;
}

#banner .container-fluid .region-banner .view-content .flexslider {
  max-width: 100%;
}

.page-node-type-article .banner__section #block-catalog-lite-page-title .page-title {
  font-size: xx-large;
  margin-bottom: 50px;
}

.mediaicon a img {
  margin-right: 10px;
  width: 30px;
  filter: gray;
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
}

.mediaicon a img:hover {
  -webkit-filter: grayscale(0);
  filter: none;
}

.mediaiconbig a {
  display: inline-block;
  font-size: x-large;
  text-transform: uppercase;
  font-weight: bold;
  margin-right: 10px;
  filter: gray;
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
}

.mediaiconbig a:hover {
  -webkit-filter: grayscale(0);
  filter: none;
}

.page-container .mamediabanner img {
  width: 100%;
  text-align: center;
}

html {
  scroll-behavior: smooth;
}

#mishabanner img {
  width: 100%;
}

/*
#block-catalog-lite-taxonomymenuarticlescategory .toolbar-button__label {
  clip: unset;
  opacity: unset;
  clip-path: unset;
  width: auto;
  height: auto;
}

#block-catalog-lite-taxonomymenuarticlescategory [class*="toolbar-button--icon"]::before {
  background-image: none;
}
*/

.node__main-content-section .field--name-field-article-author,
.node__main-content-section .field--name-field-simplenews-term,
.node__main-content-section .field--name-created {
  display: inline-block;
  padding-right: 30px;
}

.node__main-content-section .field--entity-reference-target-type-taxonomy-term:before,
.node__main-content-section .field--entity-reference-target-type-taxonomy-term.field__item:before {
  content: "|";
}

/* QuickTabs tabs background colors */
.block-quicktabs-blockarticles .quicktabs-tabs li {
  display: inline-block;
  margin-right: 10px;
  background: #e5e5e5;
  padding: 2px 5px;
}

.block-quicktabs-blockarticles .quicktabs-tabs li[aria-selected="true"] {
  background: #939393;
}

.block-quicktabs-blockarticles .quicktabs-tabs li[aria-selected="true"] a {
  color: white;
}

.frontpage-news-sections .view-content {
  border-bottom: 3px dotted #e7e1e1;
  padding-bottom: 20px;
}

.frontpage-news-sections .frontpage-news-headers {
  display: inline-block;
  margin: 0 20px 20px 0;
  max-width: 325px;
}

.frontpage-news-sections .attachment {
  border-bottom: 2px inset grey;
}

.frontpage-news-sections .frontpage-news-headers .views-field-title a:hover {
  background-color: rgba(0, 0, 0, 0.62);
  white-space: normal;
  font-size: x-large;
  text-decoration: none;
}

.frontpage-news-sections .frontpage-news-headers .views-field-title a {
  background: transparent;
  padding: 20px 5px;
  white-space: nowrap;
  overflow: hidden;
  position: absolute;
  z-index: 20;
  width: 325px;
  height: 250px;
  color: white;
  font-size: 1.4em;
}

/* Frontpage news digest block */
.frontpage-digest-sections .newsdigest-front {
  display: inline-block;
  max-width: 45%;
  padding: 0 10px;
  vertical-align: top;
}

.frontpage-digest-sections span {
  color: white;
  padding: 4px 8px;
  font-size: large;
  font-weight: 600;
}

.frontpage-digest-sections .uno {
  background: blue;
}

.frontpage-digest-sections .dos {
  background: red;
}

/* двухколоночный блок на главной Front page slideshow old style */
.block-views-blockfront-page-slideshow-block-2 {
  margin: 0 40px -60px;
}

.view-front-page-slideshow .view-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.view-front-page-slideshow .views-row {
  width: calc(50% - 12px);
  margin: 0 0 24px 0;
  box-sizing: border-box;
}

.view-front-page-slideshow .views-row img {
  display: block;
  width: 100%;
  height: auto;
}

.view-front-page-slideshow .slidetitle {
  background: rgb(0 0 0 / 64%);
  position: absolute;
  margin: 0 0;
  width: calc(50% - 10px);
  padding: 20px;
  z-index: 1;
  font-size: x-large;
  font-weight: 500;
  box-sizing: border-box;
}

.view-front-page-slideshow .slidetitle a,
.view-articles .slidetitle a {
  font-size: 18px;
  color: #fff;
  -webkit-text-shadow: 0 0 3px rgba(0,0,0,1);
  -moz-text-shadow: 0 0 3px rgba(0,0,0,1);
  text-shadow: 0 0 3px rgba(0,0,0,1);
}

/* Banner area changed from layout.css file for the frontpageslideshow old style */
.container-fluid .banner__section {
  margin: 0 10px;
}

.path-frontpage .banner {
  background-color: #d1d1d1;
}

/* Miguel Foto and headlines on front page */
#block-catalog-lite-fotoavtoramazhgirevichnaglavnoy {
  float: right;
  width: 360px;
}

.content #miguelfoto {
  display: inline-block;
  margin-right: 30px;
  vertical-align: top;
}

.content #migueltext {
  display: inline-block;
  max-width: 700px;
  text-align: justify;
}

.content #miguelfoto img {
  border-radius: 100%;
  max-width: 360px;
}

.view-articles-similar .overlay {
    width: 90%;
}
/* Articles teasers */
/*
.node--view-mode-teaser .node--type-article .images-container {
  margin-bottom: 20px;
  float: left;
  margin-right: 20px;
}
*/

.node--view-mode-teaser .node__title {
  font-weight: bold;
}

#subfooter {
  background-color: #303030;
  color: white;
}

#subfooter .title,
#subfooter a {
  color: #c7c7c7;
}

/* Rewrite of a toolbar button effect with two capital letters in menues
[class*="toolbar-button--icon"]::before  {display: none;}
[class*="toolbar-button--icon"]::marker  {content: "\f105";}
*/

#block-catalog-lite-nashipartnerykartinkiilogotipynastranicepartnerov img {
  margin: 0 10px 15px 0;
}
/* Style for blocks injected into a body of a text */
.field--name-body .body-inject {padding:10px; background:white;}

/* MOBILE DISPLAY */
@media (max-width: 767px) {
  .path-frontpage #banner .block-system-branding-block {
    position: absolute;
    z-index: 5;
    top: 5%;
    left: 5%;
    width: 120px;
  }

  #banner .block-system-branding-block .logo img {
    height: 50px;
  }

  #banner .block-system-branding-block .site-name a {
    font-size: small;
  }

  #banner .block-system-branding-block .site-slogan {
    font-size: small;
    display: none;
  }

  .page-container .banner,
  .path-frontpage .banner {
    background-image: url(../../images/background-image-banner-mobile.jpg);
    background-position: 50%;
  }

  /* Скрываем блоки search and language switcher в мобильной версии */
  .header-second .search-block-form,
  .header-third .block-lang-dropdown {
    display: none;
  }

  #banner .banner__container .flex-caption {
    width: auto;
    margin: 0;
  }

  #banner .view-front-page-slideshow .views-field-title {
    background-color: #00000054;
    padding: 5px 20px;
    position: absolute;
    bottom: 0;
    z-index: 10;
    width: 360px;
  }

  #banner .view-front-page-slideshow .flex-pauseplay {
    display: none;
  }

  /* Front page slideshow mobile */
  .view-front-page-slideshow .views-row {
    width: 100%;
    margin: 10px;
    box-sizing: border-box;
    display: inline-block;
  }

  .block-views-blockfront-page-slideshow-block-2 {
    margin: 0px;
  }

  .view-front-page-slideshow .slidetitle {
    background: none;
    position: relative;
    margin: 0 0;
    width: 100%;
    padding: 5px;
    z-index: 1;
    font-size: larger;
    font-weight: 200;
  }

  #banner .container-fluid {
    padding: 0;
  }

  .newsdigest-front {
    display: block;
    max-width: 100%;
    padding: 0 10px;
  }

  .frontpage-digest-sections .newsdigest-front {
    min-width: 90%;
    padding-right: 10px;
  }

  /* Articles teasers */
  .node--view-mode-teaser.node--type-article .images-container {
    float: none;
  }

  /* Slideout */
  .slideout__section .block-language ul li {
    display: inline-block;
    padding: 0 10px 0 10px;
    border-right: 1px inset #ccc;
  }

  .slideout__section .block-language ul li:before {
    content: none;
  }

  /* Media Icons */
  .mediaiconbig a {
    display: grid;
    place-items: center;
    align-content: space-between;
    grid-auto-flow: row;
  }

  #subfooter .logo-and-site-name-wrapper {
    display: inline-block;
  }
}

/* ===== Безопасные локальные правки шапки ===== */

/* Верхний бренд-блок в шапке */
.header-top-first #block-catalog-lite-brandingsayta .logo-and-site-name-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.header-top-first #block-catalog-lite-brandingsayta .logo {
  margin: 0;
  float: none;
  flex: 0 0 auto;
}

.header-top-first #block-catalog-lite-brandingsayta .logo img {
  height: 120px;
  width: auto;
  max-width: 100%;
  display: block;
}

.header-top-first #block-catalog-lite-brandingsayta .site-name,
.header-top-first #block-catalog-lite-brandingsayta .site-slogan {
  display: block;
  margin: 0;
  line-height: 1.1;
  white-space: normal;
}

.header-top-first #block-catalog-lite-brandingsayta .site-name {
  font-size: 28px;
  font-weight: 700;
}

.header-top-first #block-catalog-lite-brandingsayta .site-slogan {
  font-size: 28px;
  font-weight: 700;
}

/* Брендинг на главной в баннере */
body.path-frontpage #banner .block-system-branding-block {
  position: absolute;
  top: 18px;
  left: 42px;
  right: auto;
  width: auto;
  z-index: 20;
}

body.path-frontpage #banner .block-system-branding-block .logo-and-site-name-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

body.path-frontpage #banner .block-system-branding-block .logo {
  margin: 0;
  float: none;
  flex: 0 0 auto;
}

body.path-frontpage #banner .block-system-branding-block .logo img {
  height: 120px;
  width: auto;
  max-width: 100%;
  display: block;
}

body.path-frontpage #banner .block-system-branding-block .site-name,
body.path-frontpage #banner .block-system-branding-block .site-slogan {
  display: block;
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
  color: inherit;
}

body.path-frontpage #banner .block-system-branding-block .site-name {
  font-size: 28px;
  font-weight: 800;
}

body.path-frontpage #banner .block-system-branding-block .site-slogan {
  font-size: 28px;
  font-weight: 700;
}

/* Картинка справа от названия, если используется custom-branding */
body.path-frontpage #banner .custom-branding {
  display: flex;
  align-items: center;
  gap: 18px;
}

body.path-frontpage #banner .custom-branding .branding-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.path-frontpage #banner .custom-branding .branding-side-image {
  position: static;
  transform: none;
}

body.path-frontpage #banner .custom-branding .branding-side-image img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

/* Убираем агрессивные глобальные сдвиги меню, языка и поиска */
/* Старые конфликтные правки удалены намеренно */

@media (max-width: 767px) {
  .header-top-first #block-catalog-lite-brandingsayta .logo-and-site-name-wrapper,
  body.path-frontpage #banner .block-system-branding-block .logo-and-site-name-wrapper {
    gap: 10px;
  }

  .header-top-first #block-catalog-lite-brandingsayta .logo img,
  body.path-frontpage #banner .block-system-branding-block .logo img {
    height: 70px;
  }

  .header-top-first #block-catalog-lite-brandingsayta .site-name,
  .header-top-first #block-catalog-lite-brandingsayta .site-slogan,
  body.path-frontpage #banner .block-system-branding-block .site-name,
  body.path-frontpage #banner .block-system-branding-block .site-slogan {
    font-size: 18px;
    white-space: normal;
  }

  body.path-frontpage #banner .custom-branding .branding-side-image img {
    width: 90px;
  }
}