/*	TEMPLATE  v.001

	- основа: flexbox
	- подвал: прижат к нижней части страницы
*/

/*  DISPLAY, SIZE, BACKGROUND, COLOR */
body
{
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-color: Azure;
}

/* прижать подвал сайта к низу страницы */
header, nav, main, footer
{flex: 0 0 auto; border:none;}
main {flex: 1 0 auto;}

/* шапка и подвал сайта */
header, footer
{
	background-color: DeepSkyBlue;
	color: White;
	text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.5);
}

/* ----- TEMPLATE ELEMENTS ----- */

/* основной контейнер контента и его элементы */
.content, .item {box-sizing: border-box;}

/* основной контейнер контента */
.content
{
	display: flex;
	flex-flow: row wrap;
	margin: 0px auto;
	min-width: 320px;
	max-width: 990px;
}

/* ----- HEAEDER ELEMENTS ----- */

header div.item
{padding: 10px;flex: 1 1 auto;}

header div.logo, header div.contacts
{text-align: center;}

div.logo h1
{font-family:Calibry;font-size:2.5em;font-weight:bold;}

/* центральный контейнер шапки сайта */
header div.date-time
{	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
 	align-items: center;
}

/* правый контейнер шапки сайта */
header div.contacts
{	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
}

header div.date-time span.clock
{	margin-right: 15px;
	font-size: 1.7em;
	padding: 5px 15px;
	border-color: #eaeaea;
	border-radius: 8px;
	box-shadow: inset rgba(255,255,255,0.3) 8px  8px 18px 5px;
}

header div.contacts span.mobile
{font-size: 2em;}


/* ----- NAV ELEMENTS ----- */
nav div.content
{display:block;margin-top:5px;}

.dws-menu, .dws-menu ul, .dws-menu ul li, .dws-menu li ul
{border:none;}
 a.handbook, a.about-me
{border-left:none;}

.dws-menu > ul
{display:flex;flex-flow:row nowrap;}
.dws-menu > ul li
{position:relative;}
.dws-menu > ul li:first-child
{flex: 1 0 auto;}
.dws-menu a.home {display: inline-flex;}

.dws-menu li ul
{	position: absolute;
	min-width: 100%;
	display: none;
	right: 0;
}

.dws-menu li > ul li
{border: none;}
.dws-menu [type="checkbox"], label.toggleMenu, label.toggleSubmenu
{display: none;}

.dws-menu li:hover > ul
{display:block;}

label.toggleMenu
{ text-transform: uppercase;
  position: relative;
  text-align: center;
}

.dws-menu label.toggleMenu, .dws-menu label.toggleSubmenu
{border:none;}

/* top-menu links and mobile menu button */
a.home, a.appointment, a.handbook, a.about-me, label.toggleMenu
{	padding: 10px 25px;
	background-color: DeepSkyBlue;
	border-color: CadetBlue;
	color: white;
	text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.5);
	text-transform:uppercase;
	white-space: nowrap;
	text-shadow: -1px -1px 3px rgba(47, 79, 79, 0.3);
	box-shadow: inset 0px 0px 3px rgba(135, 206, 250, 0.7);
	transition: all 0.2s ease;
}

.dws-menu li > ul li a
{	display: block;
	padding: 10px 25px;
	background-color: LightCyan;
	border-color: CadetBlue;
	color: Teal;
	white-space: nowrap;
	text-shadow: none;
	border-top: none;
}

a.home:hover {background-color:LightCyan;color:Teal;}
.dws-menu li > ul li a:hover
{background-color:PaleTurquoise;color:Teal;}


/* ----- MAIN ELEMENTS ----- */
main div.content
{	display: block;
	margin-top: 30px;
	color: Teal;
	font-weight: bold;
	font-size: 1em;
}

div.welcome img
{float:left;padding:0px 20px 10px 0px;}

/* fix for float img */
main div.welcome:after
{content:'';display:table;clear: both;}

div.welcome h2
{margin-left:20px;font-size:1.6em;}

div.welcome p
{	margin-top: 10px;
	padding: 0px 20px;
	text-indent: 30px;
	text-align: justify;
	text-justify: auto;
	font-size: 1.05em;
}

div.welcome ~ div
{margin-top:50px;}

div.welcome ~ div h2
{
	margin: 0px auto;
	padding: 10px 20px;
	width: 80%;
	background-color: DarkCyan;
	border: 1px solid Teal;
	color: white;
	font-size: 1em;
	text-align: center;
	-webkit-box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.5) inset;
	-moz-box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.5) inset;
	box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.5) inset;
}

/* варианты обслуживания */
div.service-options
{display:flex;flex-flow:row wrap;justify-content:space-evenly;}

div.service-options div.item
{
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 0 0 45%;
	margin-top: 20px;
	min-width: 320px;
	border: 1px solid LightSeaGreen;
	text-align: center;
}

div.service-options div.item div
{padding: 0px 20px;}


div.service-options h3
{
	width: 80%;
	margin: 15px auto;
	padding: 10px 20px;
	background-color: LightCyan;
	border: 1px solid LightSeaGreen;
	text-align: center;
}

div.service-options span
{margin-top:15px;}

div.service-options a
{
	display: inline-block;
	margin: 15px auto 15px;
	border: 1px solid LightSeaGreen;
	color: Teal;
	padding: 10px 25px;
}

div.service-options a:hover
{background-color:red;color:white;}

/* список заболеваний */
div.diseases
{
	display: flex;
	flex-flow: row wrap;
	justify-content: space-evenly;
}

div.diseases .item
{
	margin-top: 30px;
	flex: 0 0 45%;
	min-width: 320px;
	text-align: center;
	padding-bottom: 15px;
	border: 1px solid LightSeaGreen;
}

div.diseases dt
{
	margin-bottom: 15px;
	padding: 8px 15px;
	background-color: LightCyan;
	border-bottom: 1px solid LightSeaGreen;
	font-weight: normal;
	font-size: 1.1em;
}

div.symptoms p
{padding:20px 20px 0px;}

div.why-we
{padding-bottom:30px;}

div.why-we h3
{margin-top:20px;margin-left:20px;font-size:1em;}

div.why-we p
{padding:0px 20px;text-align:justify;text-justify:auto;}

div.appointment h1
{font-size:1.6em;text-align:center;}

div.appointment .desc
{width:80%;margin:30px auto 0px;text-align:center;}

div.appointment form
{
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	padding: 30px 20px;
}

div.appointment form fieldset
{
	flex: 1 0 auto;
	box-sizing: border-box;
	margin: 15px;
	border: 1px solid LightSeaGreen;
	padding: 0px 20px 20px;
}

div.appointment label
{margin-top: 15px;}

div.appointment .date-time
{flex:0 1 auto;text-align:center;}

div.appointment .date-time label:first-child
{margin-top: 0px;}

div.appointment .date-time div
{display:inline-block;padding:15px;}

div.appointment .date-time div:last-child
{vertical-align: bottom;}

div.appointment .date-time input
{width:100%;box-sizing:border-box;}


div.appointment input[type="submit"]
{
	flex: 0 0 auto;
	align-self: center;
	margin: 15px auto;
	background-color: DeepSkyBlue;
	border: 2px solid LightSeaGreen;
	text-shadow: -1px -1px 3px rgba(0, 0, 0, 0.3);
	color: white;
}

div.appointment input[type="submit"]:hover
{
	background-color:LightCyan;
	color:Teal;
	text-shadow: -1px -1px 3px rgba(47, 79, 79, 0.3);
	box-shadow: inset 0px 0px 3px rgba(135, 206, 250, 0.7);
}

div.appointment select
{
	margin-top: 10px;
	padding: 5px 10px;
	border: 1px solid LightSeaGreen;
	color: Teal;
}

div.message
{
	margin: 0px auto 30px;
	padding: 20px 40px;
	width: 80%;
	max-width: 600px;
	border: 1px solid;
	text-align: center;
	line-height: 1.3em;
	box-shadow: inset 0px 0px 10px rgba(175, 238, 238, 0.5);
}

div.message.success
{background-color:LightCyan;border-color:Teal;}

div.message.error
{background-color:snow;border-color:DarkRed;color:DarkRed;}

div.message h2
{
	display: inline-block;
	padding: 12px 25px;
	border-radius: 5px;
	font-size: 1.3em;
	letter-spacing: 1.2px;
}

div.message p
{margin-top:15px;}

div.message a
{
	display: inline-block;
	margin: 15px auto 0px;
	padding: 10px 25px;
	border: 1px solid;
	border-radius: 5px;
	color: white;
}

div.message h2.success, div.message a.success
{
	background-color: DeepSkyBlue;
	border-color: LightSeaGreen;
	color: white;
	text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.5);
}

div.message h2.error, div.message a.error
{background-color:DarkRed;border-color:red;color:white;}

div.message a.success:hover
{background-color:white;color:Teal;}
div.message a.error:hover
{background-color:white;color:red;}

article article
{padding:0px 20px 50px;}

article h1
{font-size:2em;text-align:center;}

article h2
{
	padding: 12px 25px;
	background-color: LightCyan;
	border: 1px solid LightSeaGreen;
	font-size: 1.5em;
	color: Teal;
	text-align: center;
}

article h2:first-child
{margin-top: 50px;}

article h3
{margin-top:30px;color:LightSeaGreen;}

article table
{
	display: table;
	margin: 30px auto 0px;
	border: 2px solid LightSeaGreen;
	border-spacing: 5px;
	text-align: center;
}

article table th
{
	background-color: LightCyan;
	border: 2px solid LightSeaGreen;
	padding: 8px 15px;
}

article table td
{padding:8px 20px;border:1px solid LightSeaGreen;}

article ul
{margin-top:5px;margin-left:20px;}

article ul li
{margin-top: 5px;}

article p
{margin-top:10px;text-indent:25px;text-align:justify-all;}

div.docFoto
{
	display: block;
	margin: 30px auto 0px;
	min-width: 300px;
	max-width: 910px;
	box-sizing: border-box;
	overflow: hidden;
	border: 2px solid LightSeaGreen;
}

div.docFoto img
{display:block;width:100%;height:auto;}

li.num
{list-style-type: decimal;}

li.disc
{list-style-type: disc;}

/* ----- FOOTER ELEMENTS ----- */
footer div.content
{justify-content:space-evenly;text-shadow:-1px -1px 1px rgba(47, 79, 79, 0.7);}

footer div.item
{
	flex: 0 0 45%;
	margin: 15px;
	padding-left: 30px;
	padding-right: 30px;
	padding-bottom: 15px;
	text-align: center;
	box-shadow: inset 2px 2px 5px rgba(154, 147, 140, 0.5), 1px 1px 5px rgba(255, 255, 255, 1);
}

footer h3
{
	margin-top: 15px;
	letter-spacing: 3px;
	box-sizing: border-box;
	font-weight: bold;
}

footer h4
{
	letter-spacing: 2px;
	margin-top: 5px;
	font-size: 1.1em;
}

footer div.copyright
{
	width: 300px;
	margin: 0px auto 15px auto;
	font-size: 0.8em;
	text-align: center;
	color: LightSlateGray;
	text-shadow: none;
}

.radius
{
	-ms-border-radius: 5px;
	-moz-border-radius: 5px;
	-khtml-border-radius: 5px;
	-o-border-radius: 5px;
	border-radius: 5px;
	overflow: hidden;
}

.circle
{
	-ms-border-radius: 100%;
	-moz-border-radius: 100%;
	-khtml-border-radius: 100%;
	-o-border-radius: 100%;
	border-radius: 100%;
}

/* ---------- Иконки ---------- */
a.link:before {content: '\e804';}
a.home:before {content: '\e91c';}

/* шапка сайта */
span.clock:before {content: '\e90d';}
span.date:before {content: '\e91f';}
span.weakday:before {content: '\e91a';}

span.mobile:before {content: '\f10a';}
span.whatsapp:before {content: '\e918';}
span.email:before {content: '\e905';}

/* панель навигации */
a.home:before {content: '\e91c';}
label.toggleMenu:before {content: '\e921';}

/* запись на прием */
h1.appointment:before, a.appointment:before {content: '\e904';}
h2.personal:before, h3.personal:before, a.personal:before {content: '\e91b';}
h2.online:before, h3.online:before, a.online:before {content: '\e922';}

/* справочник заболеваний */
a.handbook:before {content: '\e909';}
h1.common:before, dt.common:before, a.common:before {content: '\e917';}
h1.male:before, dt.male:before, a.male:before {content: '\e916';}
h1.infections:before, dt.infections:before, a.infections:before {content: '\e907';}
h1.skin:before, dt.skin:before, a.skin:before {content: '\e906';}

/* о нас */
a.about-me:before {content: '\e90b';}
h1.qualification:before, a.qualification:before {content: '\e915';}
h1.certificates:before, a.certificates:before {content: '\e91e';}
h1.prices:before, a.prices:before {content: '\e914';}

/* подвал сайта */
span.qiwi:before { content: '\e900';}
span.yandex:before {content: '\e901';}
