/* Custom palette for Material */
:root {
  --md-typeset-a-color: #409EFF;
  --md-primary-fg-color: #2C2F36;
  --md-primary-fg-color--light: #7fdcd9;
  --md-primary-fg-color--dark: #009d97;
  --md-footer-fg-color: #2c2f36;
  --md-accent-fg-color: #5d5e62;
  --md-footer-fg-color--light: #2C2F36;
}


.md-search__input {
  background-color: #adadad52;
  border-radius: 0.2rem;
}

.md-header__inner {
  padding: 0 0.2rem;
}

.md-header__button.md-logo img {
  height: 2rem;
}

/* подписи к картинкам */
.md-typeset figcaption {
  font-style: normal;
  color: #5d5e62;
  font-size: .7rem;
  margin: 0.5em auto;
}

.md-typeset a {
  color: #3690d4;
}

/* КНОПКИ */
.md-typeset .md-button {
  width: 100%; 
  border: .06rem solid #b4b6b9;
  border-radius: .2rem;
}

.md-typeset .md-button--primary {
  width: auto; 
  border: .06rem solid;
}


/* ТАБЫ */

.js .md-typeset .tabbed-labels:before {
  background: #425464;
}

/* 1-я вкладка: неактивная/hover/активная */
.md-typeset .tabbed-labels>label>[href]:first-child { color: rgba(0, 119, 255, 0.75); }
.md-typeset .tabbed-labels>label>[href]:first-child:hover  { color: #0077ff; }

/* 2-я вкладка: неактивная/hover/активная */
.md-typeset .tabbed-labels>label:nth-child(2) > [href] { color: rgba(196, 48, 43, 0.75); }
.md-typeset .tabbed-labels>label:nth-child(2) > [href]:hover { color: #c4302b; }

/* Внешние ссылки: иконка после ссылки (во всём контенте и навигации, включая кнопки) */
.md-typeset a[href^="http"]::after,
.md-nav__link[href^="http"]::after {
  content: "";
  display: inline-block;
  min-width: 1.2em;
  height: 1.2em;
  margin-left: .25em;
  vertical-align: text-top;
  background-color: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3z"/><path d="M5 5h7v2H7v10h10v-5h2v7H5V5z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3z"/><path d="M5 5h7v2H7v10h10v-5h2v7H5V5z"/></svg>') no-repeat center / contain;
  opacity: .75;
}

.md-nav__link[href^="http"] {
  color: #3690d4;
}

/* Исключение: убираем иконки внешних ссылок для социальных ссылок и копирайта */
.md-footer .md-social__link[href^="http"]::after,
.md-footer .md-copyright a[href^="http"]::after {
  display: none;
}

/* Стили для логотипа в футере */
.footer-logo {
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Стили для ссылки в копирайте */
.md-footer .md-copyright a {
  color: inherit;
  text-decoration: underline;
}


.md-footer {
  background-color: #ffffff2e;
  color: #2c2f36;
}

/* Дополнительные стили для элементов футера */

.md-footer__inner {
    padding: .6rem;
}

.md-footer-meta {
  /* background-color: #2c2f36; */
  background-color: #ffffff;
  border-top: .06rem solid #b4b6b9;
}

.md-footer__link {
  border: .06rem solid #b4b6b9;
  border-radius: .2rem;
  width: 48%;
  margin-top: 0.4rem;
}

@media screen and (max-width: 44.9844em) {
  .md-footer__link {
    width: auto;
  }

  .md-footer__link--prev {
    margin-right: 0.6rem;
  }

  .md-footer__link--next {
      width: 100%;
  }
}


html .md-footer-meta.md-typeset a {
  color: #2c2f36;
}


/* Исправление стилей для социальных иконок и сайта */
html .md-footer-meta.md-typeset a:focus, html .md-footer-meta.md-typeset a:hover {
  color: #5f636a !important;
}

/* Стили для SVG иконок внутри социальных ссылок */
.md-footer .md-social__link svg {
  fill: currentColor !important;
  color: inherit !important;
}

.md-footer .md-social__link:hover svg {
  fill: currentColor !important;
  color: inherit !important;
}

.md-footer .md-social__link:visited svg {
  fill: currentColor !important;
  color: inherit !important;
}

.md-footer .md-social__link:active svg {
  fill: currentColor !important;
  color: inherit !important;
}
