@charset "UTF-8";
html {
  box-sizing: border-box;
  min-width: 320px;
}

*, :before, :after {
  box-sizing: inherit;
  flex: 0 1 auto;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 16px;
  font-family: verdana, helvetica, arial, sans-serif;
  line-height: 1.5;
}

header, footer {
  flex: 0 0 auto;
}

main {
  flex-grow: 1;
}

img,
iframe,
video {
  max-width: 100%;
}

a {
  color: #B01416;
}

a img {
  /*для IE10 */
  border: none;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin: 0;
}

*:focus {
  outline: none;
}

*:invalid {
  box-shadow: none;
}

/*элементы форм */
input, textarea, button, select {
  font: inherit;
  color: inherit;
}

textarea {
  resize: none;
  overflow: auto;
}

/*кнопки */
button,
[type=submit],
[type=reset],
[type=image] {
  cursor: pointer;
}

/*заголовки */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1.5em;
}

h1 {
  font-size: 25px;
  color: #113a99;
  line-height: normal;
}

h2 {
  font-size: 22px;
  margin: 0 0 1em;
}

/*списки */
ul, ol {
  margin: 0 0 1em;
  padding: 0 0 0 1.5em;
}
ul > li, ol > li {
  margin: 0 0 0.3em;
}

/*таблицы */
/*контейнеры */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/*ШАПКА */
.header__img {
  display: block;
}

/*ОСНОВНОЕ СОДЕРЖИМОЕ */
.page {
  padding: 20px 0 40px;
}
.page__wrapper {
  display: flex;
}
.page__sidebar {
  width: 230px;
  margin: 0 20px 0 0;
  flex: 0 0 auto;
}
.page__content {
  width: calc(100% - 250px);
  flex: 1 1 auto;
}

.sidebar {
  position: relative;
}
.sidebar__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 18px;
  text-transform: uppercase;
}
.sidebar__menu > li {
  margin: 0;
}
.sidebar__menu a {
  text-decoration: none;
}
@supports(position: sticky) {
  .sidebar__menu {
    position: sticky;
    top: 20px;
  }
}
.excerpt {
  display: block;
  font-size: 1.1em;
  font-weight: bold;
  color: #B01416;
  text-align: center;
  margin: 0 0 1em;
}

/*ПОДВАЛ */
.footer {
  font-size: 20px;
  font-weight: bold;
  color: #B01416;
}
.footer__topline {
  padding: 20px 0 40px;
}
.footer__topline:target {
  animation: target 1s ease;
}
.footer__topline .wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer__text {
  margin: 0 15px 0 0;
  width: calc(100% - 430px);
}
.footer__title {
  font-size: inherit;
  text-transform: uppercase;
  margin: 0 0 0.75em;
}
.footer__contacts {
  width: 400px;
  text-align: center;
  margin: 0 0 0 15px;
}
.footer__contacts p {
  margin: 0 0 0.75em;
}
.footer__contacts p:last-child {
  margin: 0;
}
.footer__contacts a {
  text-decoration: none;
}
.footer__widget {
  display: inline-block;
  vertical-align: top;
}
.footer__widget img {
  display: block;
}

@keyframes target {
  0% {
    text-shadow: none;
  }
  50% {
    text-shadow: 0 0 0.2em currentColor;
  }
  100% {
    text-shadow: none;
  }
}
/*АДАПТИВ */
/*hover-эффекты только в полной версии */
@media(min-width: 992px) {
  .sidebar__menu a:hover {
    text-decoration: underline;
  }

  .footer a {
    transition: all 0.3s ease;
  }
  .footer a:hover {
    color: #113a99;
  }
}
/*адаптив как таковой */
@media (max-width: 1199px) {
  .wrapper {
    max-width: 992px;
  }
}
@media (max-width: 991px) {
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  .page {
    padding: 20px 0;
  }
  .page__wrapper {
    display: block;
  }
  .page__content {
    width: auto;
  }

  .sidebar {
    width: 320px;
    max-width: 100%;
    height: 100%;
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
    transform: translateX(-100%);
    background-color: #fff;
    padding: 30px 15px 80px;
    z-index: 2;
    margin: 0;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
  }
  .sidebar__menu {
    margin: 0 -15px 1em;
    border-top: 1px solid #ccc;
  }
  .sidebar__menu > li {
    border-bottom: 1px solid #ccc;
  }
  .sidebar__menu > li > a {
    display: block;
    padding: 10px 15px;
  }

  .menu-btn {
    display: inline-block;
    position: fixed;
    z-index: 3;
    bottom: 10px;
    left: 0;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 45px;
    font-size: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    border-radius: 0 100px 100px 0;
    cursor: pointer;
    transition: all 0.3s ease-out;
  }
  .menu-btn:before {
    content: "≡";
    display: inline-block;
  }
  .menu-btn.active {
    left: 350px;
    border-radius: 100px;
    line-height: 48px;
  }
  .menu-btn.active:before {
    content: "✕";
  }

  .footer {
    font-size: inherit;
  }
  .footer__topline {
    text-align: center;
  }
  .footer__topline .wrapper {
    display: block;
  }
  .footer__text {
    width: auto;
    margin: 0 0 1.5em;
  }
  .footer__contacts {
    width: auto;
    margin: 0;
    text-align: inherit;
  }
}
@media (max-width: 479px) {
  h1 {
    font-size: 1.05em;
    line-height: inherit;
  }

  .menu-btn.active {
    left: calc(100% - 65px);
  }
}
