/* responsive styles */

.doc-arnica {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	box-sizing: border-box;
	padding: 15px;
}

.doc-arnica * {
	box-sizing: inherit;
}

.doc-arnica h3 {
	flex-basis: 100%;
	max-width: 100%;
}

.doc-arnica ul {
	display: flex;
	width: calc(100% + 10px);
	flex-basis: calc(100% + 10px);
	margin-left: -5px;
	margin-right: -5px;
	flex-wrap: wrap;
	align-items: flex-start;
	min-height: auto;
	padding-left: 0;
	list-style: none;
	margin-bottom: 20px;
}

.doc-arnica ul li {
	margin: 5px;
	flex-grow: 1;
	max-width: 400px;
}

.doc-arnica ul li:only-child {
	max-width: 260px;
}

.doc-arnica ul li a {
	text-decoration: none;
	display: flex;
	min-height: 45px;
	height: auto;
	padding: 15px;
	justify-content: center;
	text-align: center;
	background-color: #047e81;
	border: 1px solid #047e81;
	color: white;
	font: italic 16px/16px Georgia;
	transition: background-color .3s, color .3s;
}

.doc-arnica ul li.active a,
.doc-arnica ul li a:hover,
.doc-arnica ul li a:focus {
	background-color: #efefef;
	color: #047e81;
}

.doctor-table table ~ h1 {
	display: none;
}

.doctor-table table {
	margin-bottom: 50px;
}




@media (max-width: 1199px) {

	.doctor-table table tr {
		display: flex!important;
		flex-wrap: wrap;
	}

	.doctor-table table tr td:first-child {
		flex-basis: 170px;
	}

	.doctor-table table tr td:last-child {
		flex-basis: calc(100% - 170px);
	}

	.contact_tel_table_block table td {
		flex-basis: 25% !important;
		min-width: 120px;
	}

	#wrapper {width: 970px;}

	#middle {
		width: 100%;
		background-image: none;
		background-color: #FFF;
		border: 15px solid #c1edf5;
		border-radius: 5px;
		display: flex;
		flex-wrap: wrap;
		padding: 0;
	}

	#mclose {display: none;}

	#content {
		flex-basis: calc(100% - 300px);
		max-width: calc(100% - 300px);
		padding: 15px;
	}

	#content img {
		max-width: 100%;
		height: auto;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}

	.contact_tel_table_block table,
	.contact_tel_table_block tbody,
	.content--main-page table,
	.content--main-page tbody,
	.table-gallery,
	.table-gallery tbody {
		display: block;
	}

	.contact_tel_table_block tr,
	.content--main-page tr,
	.table-gallery tr {
		width: 100%;
		display: flex;
		flex-wrap: wrap;
	}
	
	.content--main-page td  {
		flex-basis: 100%;
		max-width: 100%;
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.table-gallery td {
		flex-basis: 200px;
		max-width: 200px;
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.doctor-table table tr td {
		display: flex;
		flex-direction: column;
		padding: 5px;
	}

	.table-gallery a {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-bottom: 15px;
	}

	#content .table-gallery img {
		padding-bottom: 15px;
	}

	.contact_tel_table_block {
		display: flex;
		height: auto!important;
	}

	.contact_tel_table_block tr {
		justify-content: center;
	}

	.contact_tel_table_block td {
		flex-basis: 130px;
		margin: 10px;
	}

	h1 {
		padding: 15px;
	}

	.arnica-doc-head {
		padding-left: 15px;
		padding-right: 15px;
		width: 100%;
	}

	.div-doc {
		padding: 10px;
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		min-height: auto;
	}

	.div-doc a {
		margin: 5px;
		width: auto;
		flex-grow: 1;
		display: flex;
		height: 45px;
		padding: 0 15px;
		justify-content: center;
		line-height: 45px;
		background-color: #047e81;
		border: 1px solid #047e81;
		color: white;
		transition: background-color .3s, color .3s;
	}

	.div-doc a:hover,
	.div-doc a:focus {
		background-color: #efefef;
		color: #047e81;
	}

	.cons_sp_title {
		display: flex;
		padding: 10px;
		height: auto;
		justify-content: center;
		align-items: center;
	}

	#form {
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		height: auto;
	}

	#form textarea {
		flex-basis: 100%;
		max-width: 100%;
		margin-bottom: 10px;
	}

	#form input {
		flex-basis: 200px;
		flex-grow: 1;
		margin-bottom: 10px;
		height: 40px;
	}

	#form button {
		flex-basis: 100%;
		max-width: 100%;
		background-position: center;
	}	
}

@media (max-width: 991px) {

	#wrapper {width: 750px;}

	#content {
		flex-basis: 100%;
		max-width: 100%;
	}



}


@media (max-width: 767px) {
	#wrapper {width: 100%;}

	.modInput {
		margin: 15px 0;
	}

	.modInput__field {
		margin: 0;
		padding: 0;
		width: 100%;
		height: 40px;
	}

	.modInput__labelContent {
		padding-top: 13px;
	}

}

@media (max-width: 641px) {
	.doctor-table table tr td:last-child {
		flex-basis: 100%;
	}

	.modInput__label {
		padding-left: 10px;
		padding-right: 10px;
		font-size: 11px;
	}

	.contact_tel_table_block table td {
		flex-basis: 140px !important;
		min-width: 140px;
	}

}