.navbar-brand img {
  width: 75px;
}

.navbar-nav .nav-item {
  margin-right: 10px;
}

.navbar-toggler {
  background-color: #d5d5d5;
  margin: auto;
}

.navbar-light {
  background-color: #406d96 !important;
}
.navbar-light .navbar-nav .nav-link {
  border-radius: 6px;
  text-align: center;
  color: #bfbfbf;
  text-shadow: 0.5px 0.5px 1px 1px #ffffff;
}
.navbar-light .navbar-nav .nav-link.active {
  background-color: #2f3a56;
  color: #ffffff;
  -webkit-box-shadow: 2px 2px 4px #0000006b;
          box-shadow: 2px 2px 4px #0000006b;
}
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
  -webkit-box-shadow: 2px 2px 4px #0000006b;
          box-shadow: 2px 2px 4px #0000006b;
  color: #ffffff;
}

.carousel {
  margin: auto;
}
.carousel img {
  -o-object-fit: cover;
     object-fit: cover;
}

*,
*::after,
*::before {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "Montserrat", sans-serif;
}

h1 {
  font-weight: 600;
}
h1::after {
  position: absolute;
  width: 100%;
  margin: 0.85em 0 0 15px;
  content: "";
  border-bottom: 5px solid #e2474b;
}
h2::before {
  position: absolute;
  left: 0;
  width: 60px;
  margin: 0.25em 0 0 0;
  content: "";
  border-bottom: 3px solid #e2474b;
}
h2::after {
  position: absolute;
  width: 100%;
  margin: 0.85em 0 0 15px;
  content: "";
  border-bottom: 3px solid #e2474b;
}

h4 {
  margin-bottom: 15px;
}

.header {
  margin-bottom: 60px;
  background-color: #406d96;
}
.header-image {
  text-align: center;
  background: url(../img/header_bg.jpg) center/cover;
}
.header-image__title {
  display: block;
  color: #ffffff;
  text-shadow: 5px 5px 10px #000000;
}
.header-menu__nav {
  padding: 15px;
}

.main {
  position: relative;
  overflow: hidden;
  margin-bottom: 80px;
}
.main-title {
  margin-bottom: 60px;
}
.main-text {
  text-align: justify;
  text-indent: 2.5em;
}
.main-text:last-of-type {
  margin-bottom: 0;
}
.main-text--contacts {
  text-indent: 0;
  text-align: left;
}
.main-carousel {
  text-align: center;
  margin-bottom: 80px;
}
.main-carousel:last-of-type {
  margin-bottom: 0;
}
.main-carousel h3 {
  margin-bottom: 30px;
}

.footer {
  padding: 60px 0 30px 0;
  color: #d5d5d5;
  background-color: #2f3a56;
}
.footer ul {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.footer li {
  padding-bottom: 15px;
}
.footer a {
  color: #d5d5d5;
  text-decoration: none;
  -webkit-transition: color 0.5s;
  -o-transition: color 0.5s;
  transition: color 0.5s;
}
.footer a:hover, .footer a:focus {
  color: #ffffff;
}
.footer-text {
  font-size: 0.875rem;
}
.footer-text h4 {
  font-size: 1.25rem;
}
@media (min-width: 576px) {
  h2 {
    margin: 0 0 45px 60px;
    font-size: 2.5rem;
  }
}
@media (min-width: 768px) {
  .footer-text {
    text-align: right;
  }
}
@media (min-width: 992px) {
  h1 {
    font-size: 3rem;
  }
}
@media (min-width: 1200px) {
  .carousel img {
    max-height: 600px;
  }
  .header-image__title {
    padding: 150px 0;
    font-size: 3.5rem;
    letter-spacing: 0.2em;
  }
  .main-text {
    font-size: 1.25rem;
  }
}
@media (max-width: 1199.8px) and (min-width: 992px) {
  .carousel img {
    max-height: 400px;
  }
  .header-image__title {
    padding: 120px 0;
    font-size: 3rem;
    letter-spacing: 0.15em;
  }
  .main-text {
    font-size: 1.125rem;
  }
}
@media (max-width: 991.8px) {
  .navbar-nav .nav-item:first-of-type {
    margin-top: 20px;
  }
  .carousel img {
    max-height: 300px;
  }
}
@media (max-width: 991.8px) and (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  .header-image__title {
    padding: 100px 0;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
  }
  .main-text {
    font-size: 1rem;
  }
}
@media (max-width: 767.8px) {
  h1 {
    font-size: 2rem;
  }
  .header-image__title {
    padding: 70px 0;
    font-size: 2rem;
  }
  .footer-text {
    margin-top: 30px;
  }
}
@media (max-width: 575.8px) {
  h2 {
    margin: 0 0 30px 60px;
    font-size: 1.75rem;
  }
}