@charset "UTF-8";
footer h3, .row .address_contact td, .row .address_contact p, .newssection h3, .words, a, h1 a {
  font-family: Montserrat, sans-serif;
  font-style: normal;
  color: #000;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  background: url(../assets/background.jpg) no-repeat center top/cover;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

h1 {
  margin: 3% 0 3% 5% !important;
}
h1 a {
  color: #FFF;
  text-decoration: none;
}

@media (max-width: 990px) {
  .navbar-nav .nav-item {
    width: 80% !important;
  }
  .first-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  .tags {
    display: block !important;
  }
  .tags .first-group {
    display: block !important;
  }
  .tags .second-group {
    margin: 0 !important;
  }
  nav img {
    visibility: visible !important;
    width: 170px !important;
    margin-top: 47% !important;
    margin-left: 5% !important;
  }
}
@media (max-width: 768px) {
  footer .fs-4 {
    font-size: 19px !important;
    margin: 0 !important;
  }
  nav {
    margin: 0 !important;
  }
  .words {
    margin: 100% 0 0 5% !important;
  }
  header {
    background: url(../assets/background-mini.jpg) no-repeat center top/cover;
  }
}
@media (min-width: 768px) {
  .row-cols-md-4 > * {
    width: auto !important;
  }
}
@media (max-width: 288px) {
  .row-cols-1 > * {
    -webkit-box-flex: 1 !important;
        -ms-flex: 1 0 0% !important;
            flex: 1 0 0% !important;
  }
}
@media (max-width: 1400px) {
  .dropdown-menu .dropdown-item {
    text-align: left !important;
  }
  .address_contact p {
    text-align: center;
    width: 500px !important;
  }
  .navbar-nav {
    margin: 3% !important;
  }
  .nav-item a {
    color: #000 !important;
  }
  footer {
    padding: 35% 0px 1% 0px !important;
  }
  footer img {
    width: 15% !important;
    margin: 1% 2%;
  }
}
.tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 2% 0;
}
.tags .first-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.tags .second-group {
  margin-left: 5%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

nav {
  margin: 0 auto;
  display: block;
  margin: 0 0 0 20%;
  font-size: 16px;
}
nav ul li {
  list-style: none;
  border-left: 2px solid #828CE5;
  display: inline-block;
  padding: 0 30px;
  position: relative;
  text-decoration: none;
  font-family: arvo;
}
nav li a:hover {
  color: #828CE5;
}
nav li:hover {
  cursor: pointer;
}
nav ul li ul {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  padding-left: 0;
  left: 0;
  display: none;
}
nav ul li:hover > ul,
nav ul li ul:hover {
  visibility: visible;
  opacity: 1;
  display: block;
  min-width: 250px;
  text-align: left;
  padding-top: 20px;
}
nav ul li ul li {
  clear: both;
  width: 100%;
  text-align: left;
  margin-bottom: 20px;
  border-style: none;
}
nav ul li ul li a:hover {
  padding-left: 10px;
  border-left: 2px solid #828CE5;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
nav a:hover {
  color: #828CE5;
}
nav ul li ul li a {
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
nav img {
  visibility: hidden;
  width: 10px;
}

a {
  font-size: 25px;
  font-weight: 400;
  line-height: 100%;
}

.words {
  margin: 20% 0 0 5%;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.newssection {
  margin: 5% 0;
  background-color: #FFF;
  position: relative;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1400px;
}
.newssection h3 {
  margin-bottom: 2%;
}
.newssection .head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.newssection hr {
  width: 50%;
  border: 2px solid darkblue !important;
}
.newssection button {
  margin: 0 2%;
}
.newssection .card {
  width: 100%;
  max-width: 260px;
  height: 500px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column; /* Для корректного распределения внутренних элементов */
}
.newssection .card-img-top {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
}
.newssection .card-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch; /* Растянуть все элементы внутри .card-body */
  padding: 20px;
}
.newssection .card-title,
.newssection .card-text,
.newssection .btn {
  margin-bottom: 10px;
}
.newssection .card_footer {
  margin-top: auto; /* Поместить .card_footer в конец .card-body */
}
.newssection .modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
}
.newssection .modal-close {
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.app {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.app .news_content {
  position: relative;
  margin: 5% 0 0 8%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.app .news_content .card {
  -webkit-box-shadow: 39px 12px 59px 12px rgba(199, 199, 199, 0.6);
          box-shadow: 39px 12px 59px 12px rgba(199, 199, 199, 0.6);
  -webkit-transition: 1s;
  transition: 1s;
}

@media (max-width: 990px) {
  .address_contact p {
    width: 300px !important;
  }
}
.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  margin-top: 20px;
}
.row .col-xs-12,
.row .col-lg-6 {
  padding: 10px;
}
.row iframe {
  width: 100%;
}
.row .address_contact {
  margin: 0 10%;
}
.row .address_contact p {
  text-align: center;
}
.row .address_contact td {
  padding: 10px;
}

footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background-image: url(../assets/footer-bg.png);
  background-size: cover;
  width: 100%;
  background-repeat: no-repeat;
  padding: 15% 0px 1% 0px;
}
footer img {
  width: 10%;
  margin: 1% 2%;
}
footer h3 {
  color: #FFF;
  margin: 3% 0 0 30%;
}