* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Ubuntu', sans-serif;
  font-size: 16px;
}

.wrapper {
  max-width: 910px;
  margin: 0 auto;
}

.clearfix:after {
  display: table;
  content: '';
  clear: both;
}

.header {
  background: url(coverclear.jpg) no-repeat 0 0;
  background-size: cover;
  height: 274px;
}

.header__contacts {
  float: right;
  margin-top: 216px;
  margin-right: 10px;
}

.number1, .number2 {
  text-align: right;
  font-weight: 700;
}

.btn {
  color: white;
  padding: 13px 20px;
  border-radius: 3px;
  width: 180px;
  float: right;
  text-align: center;
}

.call-btn {
  margin: 2px;
  background-color: #c31620;

}

.call-link {
  color: white;
  text-decoration: none;
}

.coach-content {
  
}

.coach-pic {
  width: 250px;
  padding: 10px 20px 10px 10px;
}

.diploma-wrapper {
  float: right;
  width: 380px;
}

.diploma {
  display: block;
  width: 350px;
  padding: 10px 20px 10px 10px;
}

.like-heading {
  font-weight: 700;
  font-size: 22px;
}

/*Табы*/

.tabs {
	width: 100%;
	padding: 0px;
	margin: 0 auto;
}

.for {
  width: 100%;
  padding: 30px;
  box-sizing: border-box;
}

.for h2 {
  text-align: center;
}

.forwhom {
  width: 28%;
  float: left;
  margin-right: 40px;
  padding: 300px 0 0;
}

.forwhom h3 {
  text-align: center;
}

.forwhom p {
  text-align: center;
}

.child {
  background: url(child.jpg) no-repeat center center;
  background-size: contain;
}

.woman {
  background: url(woman.jpg) no-repeat center center;
  background-size: contain;
}

.man {
  background: url(man.jpg) no-repeat center center;
  background-size: contain;
  margin-right: 0;
}


.forwhom img {
  width: 100%;
  height: 300px;
}

.offer {
  background-color: white; //тут будет картинка серого мангуста
  border-radius: 5px;
  padding: 25px;
  color: white;
  margin-top: 25px;
}

.offer-text {
  text-align: center;
  font-size: 21px;
  color: #333;
}

.offer-form {
  margin: 0 auto;
  text-align: center;
}

.form-item {
  padding: 12px;
  border-radius: 3px;
  width: 200px;
  margin-top: 15px;
  background-color: #eee;
}

.form-submit {
  background-color: #c31620;
  font-weight: 700;
  border: 1px solid #c31620;
  box-sizing: border-box;
  margin-right: 0;
  margin-top: 15px; 
  float: none;
}

.reviews {
  
}

.fa {
  padding: 5px 10px;
}

.reviews>h2 {
  margin: 20px;
}

.review-item {
  margin: 35px 20px;
}

.review-text {
  font-style: italic;
  line-height: 23px;
}

.review-text:before {
  
}

.review-person {
  font-weight: 700;
  margin-top: 10px;
  margin-right: 40px;
  text-align: right;
}

.footer {
  padding: 20px;
}

.copy {
  float: left;
  display: block;
  color: black;
}

.studio {
  float: right;
}

.studio-link {
  color: black;
}

#content-tab2 h2 {
  margin-top: 20px;
  margin-left: 10px;
}



/* Стили секций с содержанием */
.tabs>section {
	display: none;
	padding: 15px;
	background: #fff;
	border: 1px solid #ddd;
}
.tabs>section>p {
  padding: 10px 60px 0 10px;
  font-size: 15px;
	margin: 0 0 5px;
	line-height: 1.5;
	color: #383838;
	/* прикрутим анимацию */
	-webkit-animation-duration: 1s;
	animation-duration: 1s;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation-name: fadeIn;
	animation-name: fadeIn;
}
/* Описываем анимацию свойства opacity */
 
@-webkit-keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
/* Прячем чекбоксы */
.tabs>input {
	display: none;
	position: absolute;
}
/* Стили переключателей вкладок (табов) */
.tabs>label {
	display: inline-block;
	margin: 0 0 -1px;
	padding: 15px 30px;
	font-weight: 600;
	text-align: center;
	color: #aaa;
	border: 0px solid #ddd;
	border-width: 1px 1px 1px 1px;
	background: #f1f1f1;
	border-radius: 3px 3px 0 0;
}

/* Изменения стиля переключателей вкладок при наведении */
 
.tabs>label:hover {
	color: #888;
	cursor: pointer;
}
/* Стили для активной вкладки */
.tabs>input:checked+label {
	color: #555;
	border-top: 1px solid #009933;
	border-bottom: 1px solid #fff;
	background: #fff;
}
/* Активация секций с помощью псевдокласса :checked */
#tab1:checked~#content-tab1, #tab2:checked~#content-tab2, #tab3:checked~#content-tab3, #tab4:checked~#content-tab4,
#tab5:checked~#content-tab5 {
	display: block;
}
/* Убираем текст с переключателей 
* и оставляем иконки на малых экранах
*/
 
@media screen and (max-width: 680px) {
	.tabs>label {
/*		font-size: 0;*/
	}
}
/* Изменяем внутренние отступы 
*  переключателей для малых экранов
*/
@media screen and (max-width: 400px) {
	.tabs>label {
		padding: 15px;
	}
}

.vk-post {
  margin-bottom: 10px;
}

/*#D9E1E4*/

@media screen and (max-width: 871px) {
  .btn {
    width: auto;
  }
  
}

@media screen and (max-width: 819px) {
  .tabs > label {
    font-size: 14px;
    padding: 13px 20px;
  }
  
  .call-btn {
    font-size: 14px;
    padding: 11px 18px;
  }
  
  .forwhom {
    margin-right: 5%;
    
  }
  
  .man {
    margin-right: 0;
  }
  
}


/*   Тут появляется бургер   */
@media screen and (max-width: 679px) {
  
  .form-item {
    width: 90%;
    margin-bottom: 8px;
  }
  
  .for {
    padding: 20px 0;
  }
  
  .forwhom {
    padding: 220px 0 0;
  }
  
}

@media screen and (max-width: 499px) {
  
  .forwhom {
    width: 65%;
    margin-left: 15%;
    margin-right: 0;
    padding: 330px 0 0;
  }
  
  .woman {
    padding: 250px 0 0;
    margin-bottom: 30px;
  }
  
  .man {
    padding: 350px 0 0;
  }
  
  .copy {
    text-align: center;
    float: none;
    margin-bottom: 5px;
  }
  
  .studio {
    text-align: center;
    float: none;
  }
  
  .header__contacts {
    margin-top: 16px;
  }
  
  .diploma {
    width: 100%;
    box-sizing: border-box;
  }
  
}


/*--------------------------------
МОДАЛЬНОЕ ОКНО--------------------------------
---------------------------*/

/* слой затемнения */
.dm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    overflow: auto;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
/* активируем модальное окно */
.dm-overlay:target {
    display: block;
    -webkit-animation: fade .6s;
    -moz-animation: fade .6s;
    animation: fade .6s;
}
/* блочная таблица */
.dm-table {
    display: table;
    width: 100%;
    height: 100%;
}
/* ячейка блочной таблицы */
.dm-cell {
    display: table-cell;
    padding: 0 1em;
    vertical-align: middle;
    text-align: center;
}
/* модальный блок */
.dm-modal {
  position: relative;
  border-radius: 6px;
    display: inline-block;
    padding: 40px;
    max-width: 50em;
/*    background: #607d8b;*/
    -webkit-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);
    text-align: left;
}
/* изображения в модальном окне */
.dm-modal img {
    width: 100%;
    height: auto;
}
/* миниатюры изображений */
.pl-left,
.pl-right {
    width: 25%;
    height: auto;
}
/* миниатюра справа */
.pl-right {
    float: right;
    margin: 5px 0 5px 15px;
}
/* миниатюра слева */
.pl-left {
    float: left;
    margin: 5px 15px 5px 0;
}

/* рисуем кнопарь закрытия */
.close {
    z-index: 9999;
    float: right;
    width: 21px;
    height: 21px;
    color: #777;
    text-align: center;
    text-decoration: none;
    line-height: 19px;
    cursor: pointer;
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 14px;
}
.close:after {
    display: block;
    border: 1px solid #777;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    content: 'x';
    -webkit-transition: all 0.6s;
    -moz-transition: all 0.6s;
    transition: all 0.6s;
    -webkit-transform: scale(0.85);
    -moz-transform: scale(0.85);
    -ms-transform: scale(0.85);
    transform: scale(0.85);
}
/* кнопка закрытия при наведении */
.close:hover:after {
    border-color: #fff;
    color: #fff;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

/* движуха при появлении блоков с содержанием */
@-moz-keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1
    }
}
@-webkit-keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1
    }
}
@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1
    }
}


