body {
  padding:70px 0 0 0;
  background-image: url(/static/img/bg_4.jpg);
  font-family: 'Roboto', sans-serif;
}

.footer {
  background-image: url(/static/img/back_image.jpg);
}

footer {
    margin-top: 10px;
}

.contact_footer {
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: center;
}

.navbar-brand, .nav-link {
  color: black;
  text-decoration: none;
  font-size: 18px;

}

.form-group.required {
    background-color: red;
}

.navbar-brand:hover, .nav-link:hover {
  color: black;
  text-decoration: underline;
  font-weight: bold;
}

.service, .contact, .registration, .questions {
  text-align: center;
  padding-bottom: 2rem;
  position: relative;
}

h2 span {
  background-image: url(/static/img/bg_4.jpg);
  padding: 0 15px;
}

.service:before, .contact:before, .registration:before, .questions:before {
  content: "";
  width: 100%;
  left: 0;
  top: 30%;
  position: absolute;
  z-index: -1;
  height: 0;
  padding-bottom: 2rem;
}

h3 {
  text-align: center;
}
.price {
  padding-left: 1.3rem;
  font-size: 12px;

}
.card-body{
  margin-top: -1.3rem;
}
section li {
    padding-left: 1rem;
    font-size: 13px;
}

.price ul, .price li {
    font-size: 17px;
}

p {
    font-size: 16px;
}
.foto_service_2 {
    padding-top: 2rem;
}

.location {
    background:url(/static/img/location.png) no-repeat;
    background-size: 20px;
    display:inline-block;
    vertical-align:bottom;
    padding-left: 25px;
}
.clock {
    background:url(/static/img/clock.png) no-repeat;
    background-size: 20px;
    display:inline-block;
    vertical-align:bottom;
    padding-left: 25px;
}
.phone {
    background:url(/static/img/phone.png) no-repeat;
    background-size: 20px;
    display:inline-block;
    vertical-align:bottom;
    padding-left: 25px;
    margin-top: 5px;
}
 .social {
    background:url(/static/img/social_media.png) no-repeat;
    background-size: 20px;
    display:inline-block;
    vertical-align:bottom;
    padding-left: 25px;
    margin-top: 35px;
}
.navbar-brand {
    background:url(/static/img/brain_1.png) no-repeat;
    background-size: 30px;
    display:inline-block;
    vertical-align:bottom;
    padding-left: 45px;
    font-size: 24px;
}

.btn_description_5 button {
    margin-top: -2px;
    font-style: italic;
}

.map-wrap iframe {
    width: 100%;
}
.image-wrapper img {
    width:100%;
    height: auto;
}

/* Икноки рядом с логотипом. Они скрыты до экрана 991px. Потом они отображаются. Новая CSS штука :last-child - это псевдокласс. С его помощью мы можем обратиться к последнему элементу среди похожих и применить какие то особые стили. Подробнее: https://webref.ru/css/last-child

В данном случае все звучит так: примени ко всем ссылкам внутри .header-icons отступ справа 5px, но к последней - отступ 0px.
*/

.video-wrapper {
    /* margin-top: -40px; */
    /* margin-left: 15%; */
    margin-bottom: 10px;
}

.video-wrapper video {    
    background: #ccc;
}

.header-icons {
    display: none;
}

@media (max-width: 992px) {
    .header-icons {
        display: flex;
        margin-bottom: 10px;
        margin-left: 40px;
    }
}

.header-icons a {
    margin-right: 15px;
}

.header-icons a:last-child {
	margin-right: 0;
}

/* Этим правилом мы перебиваем стили Bootstrap. По умолчанию было  justify-content: space-between; Мы это часто использовали (первый в начало, последний в конец). Теперь мы все элементы прижимаем к началу, НО...*/
.navbar .container,
.navbar .container-fluid {
	justify-content: flex-start;
}

/* НО меню с помощью margin-left: auto; толкаем в конец. Это нам позволит держать логотип и иконки слева, а меню справа. */
.navbar-toggler {
	margin-left: auto;
}

/* Костыльное решение проблемы */
/* Скрывает последние три элемента в меню. В данном случае это иконки соц.сетей. Скрывает с помощью правила media и условия max-width (если экран меньше заданого значения). Если проще - максимальная ширина экрана, при которой будет работать это правило. Если больше - правильно работать не будет*/
.navbar-nav .nav-item:nth-last-child(-n + 5) {
	display: block;
}

@media (max-width: 992px) {
	.navbar-nav .nav-item:nth-last-child(-n + 5) {
		display: none;
	}
}

@media (max-width: 992px) {
    .navbar-brand {
        font-size: 18px;
        display: none;
    }
    .social {
        margin-top: 0px;
    }
    .clock {
        margin-top: 10px;
    }
}

.social a {
    margin-left: 8px
}

.nav-item img {
     -moz-transition: all 0.1s ease-out;
     -o-transition: all 0.1s ease-out;
     -webkit-transition: all 0.1s ease-out;
     width: 29px;
     height:29px;
}

.nav-item img:hover {
     -webkit-transform: scale(1.3);
     -moz-transform: scale(1.3);
     -o-transform: scale(1.3);
}

.social img, .icons {
     -moz-transition: all 0.1s ease-out;
     -o-transition: all 0.1s ease-out;
     -webkit-transition: all 0.1s ease-out;
     width: 30px;
     height:30px;
}

.social img:hover, .icons:hover {
     -webkit-transform: scale(1.3);
     -moz-transform: scale(1.3);
     -o-transform: scale(1.3);
}

.icons {
    margin-left: 15px;
}

.header-icons img {
     -moz-transition: all 0.1s ease-out;
     -o-transition: all 0.1s ease-out;
     -webkit-transition: all 0.1s ease-out;
     width: 30px;
     height:30px;
}

.header-icons img:hover {
     -webkit-transform: scale(1.3);
     -moz-transform: scale(1.3);
     -o-transform: scale(1.3);
}

.phone a {
    font-size: 20px;
}

.mobile button {
    display: none;
}

@media (max-width: 992px) {
    .mobile button {
        display: block;
    }

    .button-normal button {
        display: none;
    }

    .mobile p {
        display: none;
    }
}

.brand-mobile img {
    display: none;

}

.normal {
    margin-left: 85px;
}

.playpause {
    background-image:url(http://png-4.findicons.com/files/icons/2315/default_icon/256/media_play_pause_resume.png);
    background-repeat:no-repeat;
    width:15%;
    height:15%;
    position:absolute;
    left:0%;
    right:0%;
    top:0%;
    bottom:30%;
    margin:auto;
    background-size:contain;
    background-position: center;
}

@media (max-width: 992px) {
    .brand-mobile img {
        display: block;
        width: 55px;
        height:45px;
    }
    .brand-normal img {
        display: none
    }
    .normal {
    margin-left: 0px;
}
}

.icons-normal {
    margin-left: 100px;
}

.making_an_appointment {
    margin-top: 40px;
}

.location p {
    margin-block: auto;
    margin-left: -25px;
}