* {
	margin: 0;
	padding: 0;
}

body {
	background-color: rgb(247, 247, 247);
}

.wrapper {
	position: relative;
	margin-top: 10px;
	width: 910px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

.wrapper > .banner {
	height: 100px;
	text-align: center;
	
	border: solid 1px rgb(40, 95, 127);
}

.wrapper > .navbar ul {
	position: relative;
	list-style: none;
	font-size: 0;
	margin-bottom: 20px;
}

.wrapper > .navbar .main-item {
	background-color: rgb(40, 95, 127);
	display: inline-block;
	height: 32px;
	line-height: 32px;
	width: 130px;
	text-align: center;
}

.wrapper > .navbar .main-item > span:after {
	content:url('images/arrow.png');
	position: relative;
	left: 10px;
	bottom: 2px;
}



.wrapper > .navbar .sub-item {
	background-color: rgb(8, 95, 143);
	display: block;
	border-top: solid 1px white;
	height: 32px;
	line-height: 32px;
	width: 200px;
	text-align: center;
}

.wrapper > .navbar > ul ul {
	display: none;
}

.wrapper > .navbar > ul li:hover > ul {
	display: block;
	position: absolute;
	top: 30px;
}

.wrapper > .navbar > ul > li > span, a {
	display: block;
	text-decoration: none;
	font-size: 20px;
	color: white;
}

.wrapper > .navbar > ul > li span:hover {
	color: rgba(32, 255, 255, 0.5);
}
.wrapper > .navbar > ul > li a:hover {
	color: rgba(32, 255, 255, 0.5);
}

.wrapper > .extra-panel {
	position: absolute;
	float: left;
	left: -190px;
}

.wrapper > .extra-panel > .norm-base {
	margin-bottom: 15px;
	padding-top: 10px;
	padding-bottom: 15px;
	width: 250px;
	background-color: rgb(40, 95, 127);
	border-radius: 8px;
	text-align: center;
	font-size: 1.4em;
	color: white;	
}

.wrapper > .extra-panel > .norm-base a {
	border-bottom: 1px solid rgb(247,247,247);
	margin-top: 4px;
	margin-bottom: 6px;
}

.wrapper > .extra-panel > .norm-base a:hover {
	color: rgba(32, 255, 255, 0.5);
}

.wrapper > .extra-panel > .norm-base h4 {
	color: white;
	font-size: 1.2em;
	padding-bottom: 4px;
	border-bottom: 2px solid rgb(247,247,247);
}


.wrapper > .main-part {
	margin-left: auto;
	margin-right: auto;
	padding-top: 20px;
	padding-bottom: 30px;
	background-color: white;
	box-shadow: 0px 4px 4px 4px rgba(32,32,32,0.2);
	min-height: 800px;
	width: 80%;
}

.wrapper > .main-part > .table {
	text-align: center;
}

.wrapper > .main-part > .table > table {
	margin-left: auto;
	margin-right: auto;
	line-height: 24px;
	font-size: 1.1em;
	border-collapse: collapse;	
}

.wrapper > .main-part > .table > table, th, td {
	border: 1px solid grey;
	padding: 2px 6px;
}

.wrapper > .main-part > .table > thead {
	font-size: 1.05em;
}

.pharmacy-info {
	width: 420px;
	margin-top: 25px;
	margin-bottom: 15px;
	margin-left: 150px;
	border-bottom: 4px dotted rgb(40, 95, 127);
}

.pharmacy-info > div:first-child {
	font-size: 1.3em;
	color: rgb(30, 75, 117);
}

.pharmacy-info > div {
	font-size: 1.05em;
	margin: 3px 5px;
}

.index-photo {
	text-align: center;
	margin: 10px 0px;
}
.index-photo > a {
	display: block;
	background: url(images/gallery_photos/pic0.jpg) 45%;
	width: 600px;
	height: 400px;
	margin-right: auto;
	margin-left: auto;
	padding: 2px;
	box-shadow: 0px 0px 10px 2px rgba(0,63,127,0.4);
	border-radius: 4px;
}

.index-photo > a:hover {
	box-shadow: 0px 0px 10px 4px rgba(0,63,127,0.4);
}

.index-photo > a:hover p {
	background-color: rgba(0, 0, 0, 0.5);
}

.index-photo > a > p {
	display: block;
	position: relative;
	top: 320px;
	font-size: 1.4em;
	font-weight: bold;
	background-color: rgba(0, 0, 0, 0.4);
	border-radius: 4px;
}

.gallery {
	margin: 5px 10px;
}

.gallery > div {
	display: inline-block;
}

.small-photo {
	display: inline-block;
	border-radius: 2px;
	width: 150px;
	height: 125px;
	margin: 4px 12px;
}

.small-photo:hover {
	box-shadow: 0px 0px 6px 4px rgba(0,127,255,0.3);
}

/** LIGHTBOX MARKUP **/

.lightbox {
	/** Default lightbox to hidden */
	display: none;

	/** Position and style */
	position: fixed;
	width: 100%;
	height: 100%;
	text-align: center;
	top: 0;
	left: 0;
	background: rgba(0,4,8,0.9);
}

.lightbox img {
	/** Pad the lightbox image */
	max-width: 90%;
	max-height: 80%;
	border-radius: 4px;
	margin-top: 2%;
}

.lightbox:target {
	/** Remove default browser outline */
	outline: none;

	/** Unhide lightbox **/
	display: block;
}

.about-us {
	margin: 5px 25px;
	font-size: 1.1em;
}

.about-us p:first-letter {
	font-size: 2.2em;
	color: rgb(40, 95, 127);
}

.about-us a {
	font-size: 1.0em;
	display: inline;
	color: rgb(0, 63, 127);
	text-decoration: underline;
}

.about-us a:hover {
	text-decoration: none;
}
.about-us a:visited {
	color: rgb(191, 31, 31);
}

.about-us ol {
	margin: 5px 0px;
}

.about-us ol li {
	margin-left: 30px;
	font-size: 1.0em;
}

.contacts {
	text-align: center;
	margin: 20px 20px;
	font-size: 1.2em;
}

.contacts > div {
	background-color: rgb(40, 95, 127);
	color: rgba(255,255,255,0.95);
	border-radius: 12px;
}

.contacts > .adress {
	margin: 5px 0 10px 0;
	padding: 2px 0 4px 0; 
}

.contacts > .timetable {
	margin: 5px 0 10px 0;
	padding: 2px 0 4px 0;
}

.contacts > .bank-info {
	margin: 5px 0 10px 0;
	padding: 2px 0 4px 0;
	font-size: 1.25em;
}

.contacts span {
	display: block;
	margin: 5px 0 15px 0;
}

.external-links {
	padding: 20px 40px;
}

.external-links h2 {
	margin: 20px 0;
	font-size: 1.8em;
	color: rgb(32, 87, 119);
}

.external-links div {
	margin: 5px 0;
}

.external-links a {
	font-size: 1.1em;
	display: inline;
	color: rgb(0, 63, 127);
	text-decoration: underline;
}

.external-links a:hover {
	text-decoration: none;
}
.external-links a:visited {
	color: rgb(191, 31, 31);
}

.law-files {
	margin: 30px 20px;
}

.law-files a {
	font-size: 1.1em;
	color: rgb(0, 63, 127);
	text-decoration: underline;
	margin: 15px 0;
}

.law-files a:hover {
	text-decoration: none;
}
.law-files a:visited {
	color: rgb(191, 31, 31);
}

.control-organs {
	margin: 15px 20px;
}

.control-organs h3 {
	text-align: center;
	margin-top: 50px;
	font-size: 1.6em;
	color: rgb(32, 87, 119);
}

.control-organs .person {
	position: relative;
	width: 90%;
	margin: 5px auto 10px auto;
	padding-top: 10px;
	padding-bottom: 25px;
	border-bottom: 4px dotted rgb(40, 95, 127);
}

.control-organs .person > div {
	font-size: 1.1em;
	margin: 5px 2px;
}

.control-organs .person > img {
	position: absolute;
	width: 100px;
	height: 130px;
	right: 25px;
	top: 5px;
	border: 1px solid rgba(0,0,0,0.5);
}

.wrapper .news-panel {
	padding: 5px 20px;	
}

.wrapper .news-panel .single-news {
	margin: 15px 25px;
	padding: 10px 0;
	font-size: 1.1em;
	border-bottom: 4px dotted rgb(40, 95, 127);
}

.wrapper .news-panel .single-news p:first-letter {
	font-size: 2.2em;
	color: rgb(40, 95, 127);
}

.wrapper .news-panel .single-news h1 {
	text-align: justify;
	font-size: 1.25em;
	color: rgb(40, 95, 127);
}

.wrapper .news-panel .single-news h4 {
	text-align: right;
	font-size: 0.9em;
}

.wrapper .news-panel a {
	position: relative;
	left: 25px;
	font-size: 1.1em;
	display: inline;
	color: rgb(0, 63, 127);
	text-decoration: underline;
}

.wrapper .news-panel a:hover {
	text-decoration: none;
}
.wrapper .news-panel a:visited {
	color: rgb(191, 31, 31);
}

.wrapper .news-panel a {
	color: rgb(40, 95, 127);
}

.wrapper > .footer {
	width: 908px;
	height: 60px;
	border-radius: 5px;
	background-color: rgb(40, 95, 127);
	margin-top: 30px;
	margin-bottom: 5px;
}

.wrapper > .footer p {
	font-size: 1.05em;
	color: white;
	line-height: 80px;
	text-align: right;
	padding-right: 40px;
}

.wrapper > .footer a {
	display: inline;
	text-decoration: none;
	font-size: 1.05em;
}

.wrapper > .footer a:hover {
	text-decoration: underline;
}

.admin-zone {
	text-align: justify;
	font-size: 1.2em;
	background-color: yellow;
	margin: 10px 20px;
	padding: 5px 10px;
	border: 2px solid grey;
}

.admin-zone input {
	display: inline-block;
	margin: 5px 10px;
}

.admin-zone input[type='checkbox'] {
	position: relative;
	top: 5px;
	width:20px;
    height:20px;
}

.admin-zone textarea {
	position: relative;
	left: 21px;
}

.admin-zone input[type="submit"] {
	position: relative;
	right: 10px;
	font-size: 1em;
	width: 120px;
	height: 40px;
	border: none;
	border-radius: 10px;
	background-color: rgb(40, 95, 127);
	color: white;
}

.admin-zone input[type="submit"]:hover {
	cursor: pointer;
	background-color: yellow;
	color: black;
	border: 1px solid black;
}

@media  only screen  and (max-width: 1280px ){
	.wrapper > .extra-panel {
	display: block;
	text-align: center;
	position: static;
	float: none;
	width: 910px;
	margin: 5px 0;
	}

	.wrapper > .extra-panel > .norm-base {
		padding-top: 5px;
		padding-bottom: 5px;
		width: 100%;
	}

	.wrapper > .extra-panel > .norm-base > div {
		display: inline-block;
		margin: 5px 25px;
		text-align: center;
	}

	.wrapper > .extra-panel > .norm-base > div > h4, a {
		border-bottom: none;
	}

	.wrapper > .extra-panel > .norm-base > div:first-child {
		float: left;
		border-right: 2px solid white;
		padding: 0 10px 0 0;
		font-size: 1.2em;
	}
}