/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */


@font-face {
    font-family: 'pf_din';
    src: url('font/pfdintextcondpro-bold_2-webfont.woff2') format('woff2'),
    url('font/pfdintextcondpro-bold_2-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html {
    height: 100%;
}

header {
    background: #7d191d;
    height: 150px;
    padding: 40px 50px 15px;
	position: relative;
}

header a {
	height: 100%;
	width: 100%;
	display: block;
}

header h1 {
    margin: 15px 0 10px;
    width: 750px;
    text-transform: uppercase;
    font-size: 0;
    height: 134px;
    color: #ffdd84;
    background: url('im/title-gaspi.png') no-repeat 135px 28px, url('im/logo.png') no-repeat 0 0;
}

header p {
    width: 210px;
    float: right;
    margin-top: -90px;
    color: #e39b6c;
    font-weight: bold;
}

.social {
	position: absolute;
	top: 30px;
	width: 72px;
	right: 78px;
}

.social a {
	display: inline;
}

.navigation {
    border-bottom: 2px solid #7d191d;
    padding: 12px 24px;
    background: #fff;
    text-align: center;
    color: #7d191d;
    box-shadow: inset 0 4px 5px  rgba(25, 25, 25, .4);
    display: flex;
    justify-content: space-around;
}

.navigation a {
    color: #7d191d;
    text-transform: uppercase;
    font-family: pf_din, sans-serif;
    font-size: 18px;
    text-decoration: none;
}

.navigation .new {
	font-family: Arial, sans-serif;
	font-size: 14px;
	background: #f00;
	color: #fff;
	padding: 1px 4px;
	border-radius: 7px;
	top: -0.6em;
}

body {
    min-width: 1150px;
    height: 100%;
    font-family: 'PT Sans', sans-serif;
}

.column {
    height: 100%;
    padding-top: 114px;
    opacity: 0;
}

h2 {
    color: #7d191d;
    font-size: 20px;
    padding: 10px;
}

.news {
	text-align: center;
	font-size: 28px;
	text-transform: uppercase;
	margin: 0;
}

.head h2.light {
	font-family: 'PT Sans', sans-serif;
	font-weight: normal;
	font-size: 19px;
}

.img {
    margin-top: 0;
    margin-bottom: -12px;
}

h3 {
    color: #7d191d;
}

.article h3 {
	margin-top: 0;
}

.con {
    visibility: hidden;
}

.topics {
    margin: 0 auto;
}

.topics h2 {
    padding: 22px 22px 22px 105px;
    box-shadow: 2px 2px 2px rgba(15, 15, 15, .4);
    font-size: 30px;
 	line-height: 36px;
	min-height: 112px;
}

.fonds {
    text-transform: uppercase;
    text-align: center;
	margin-top: 48px;
	font-size: 48px !important;
	font-family: pf_din;
	padding: 78px 24px !important;
	min-height: auto !important;
	background:rgba(225, 195, 185, .45);
}

.topics a {
	display: block;
	text-decoration: none;
	height: 100%;
	width: 100%;
	color: inherit;
}

a:visited {
	color: inherit;
}

.links a {
    color: rgb(125,25, 28);
    text-decoration: none;
    font-family: 'PT Sans', sans-serif;
    font-weight: bold;
}

.article {
    background: rgba(255, 255, 255, .25);
    padding: 16px;
    margin: 12px 20px 20px;
    border: 1px solid rgba(255, 255, 255, .3);
}

.article p {
	text-align: justify;
}

.next-page a {
	background: url('im/next.png') no-repeat 50% 0;
	height: 27px;
	width: 100%;
	display: block;
	margin: 32px 0 32px;
	font-size: 0;
}

.head .service {
    font-size: 40px;
}

#page-wrap {
    margin: 0 auto 0;
    width: 50%;
    padding-top: 220px;
}

.items {
	margin: 0 5px;
	padding: 0 16px 0 16px;
	background: url('im/left.png') no-repeat left 0, url('im/right.png') no-repeat right 0, url('im/right_r.png') repeat-y right -1px, url('im/left_r.png') repeat-y left -1px;
}

.build-table {
    margin-top: 12px;
    width: 100%;
    background: url('im/cell_sm.png') repeat;
}

.middle td {
    box-sizing: border-box;
    vertical-align: top;
    background: url('im/pill_right_sm.png') repeat-y right 0, url('im/pill_left_sm.png') repeat-y 0 0, url('im/tooth_sm.png') no-repeat 50% -2px;
    padding: 0 17px;
}

td.fixed {
    width: 680px;
	width: 34%;
}

td.size {
    /* width: 33% !important; */
	width: 33%;
}
.size h2 {
	line-height: 20px;
}
.fixed .column {

	margin: 0 auto;
}

.head {
/*    background: rgba(255, 255, 255, .25); */
    padding: 3px;
    margin: 24px 0 0;
}

.head td {
    box-sizing: border-box;
    vertical-align: middle;
    height: 55px;
    background: url('im/right-top_sm.png') repeat-y right 0, url('im/left-top_sm.png') repeat-y 0 0, url('im/roof.png') no-repeat 50% bottom, #fff;
    padding: 0 60px;
}

.head h2, .head p {
    font-family: pf_din, sans-serif;
    font-size: 22px;
    font-weight: normal;
    background: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    text-align: center;
}

.head .current {
    font-size: 28px;
    box-shadow: none;
	min-height: auto !important;
}
.head p {
    font-size: 14px;
    padding: 0;
	font-family: 'PT Sans', sans-serif;
	font-weight: bold;
	letter-spacing: 0.5px;
}

.head a {
	color: inherit;
	text-decoration: none;
}

.head a:hover {
	text-decoration: underline;
}

.head .citizen {
  font-size: 16px;
}

#services {
	position: relative;
}
#services:hover, .glow:hover, .topics h2:hover, .article:hover {
	box-shadow: 0 0 2px 1px #fff;
}

.actual {
}

.actual p {
	width: 60%;
	margin: 0 auto 22px;
}

.actual p.lg {
	width: 82%;
}

.actual h2 {
	height: auto !important;
}

.actual img {
    border: 2px solid #fff;
    width: 100%;
    box-shadow: 2px 2px 3px #222;
}

.icon {
  float: left;
  margin: 5px 5px 5px 0;
}

.icon_r {
  float: right;
  margin: 5px 0 5px 5px;
}


.vov {
    background:rgba(225, 195, 185, .45) url('im/vov.png') no-repeat left 50%;
}

.vov-sm {
    background:rgba(225, 195, 185, .45) url('im/vov.png') no-repeat 8px 50%;	
	background-size: auto 40px;
}

.akp {
    background:rgba(225, 195, 185, .45) url('im/logo_sh.png') no-repeat 8px 50%;
    background-size: auto 69%;	
}

.wars {
    background:rgba(225, 195, 185, .45) url('im/wars.png') no-repeat left 50%;
}
.etno {
    background:rgba(225, 195, 185, .45) url('im/etno.png') no-repeat left 50%;
	font-size: 28px !important;
}
.soc {
    background:rgba(225, 195, 185, .45) url('im/zs.png') no-repeat 10px 50%;
}
.rev {
    background:rgba(225, 195, 185, .45) url('im/rev.png') no-repeat left 50%;
}
.repr {
    background:rgba(225, 195, 185, .45) url('im/repr.png') no-repeat 20px 50%;
}
.smi {
    background:rgba(225, 195, 185, .45) url('im/smi.png') no-repeat 10px 50%;
}

.sociology {
    background:rgba(225, 195, 185, .45) url('im/sociology.png') no-repeat 10px 50%;
}

.routine {
    background:rgba(225, 195, 185, .45) url('im/gto.png') no-repeat 10px 50%;
}

.activity {
    background:rgba(225, 195, 185, .45) url('im/soc.png') no-repeat 10px 50%;
}

.holidays {
    background:rgba(225, 195, 185, .45) url('im/holidays.png') no-repeat left 50%;
}

.religion {
    background:rgba(225, 195, 185, .45) url('im/religion.png') no-repeat left 50%;
}

.bg {
  background:rgba(225, 195, 185, .45);	
}

.tea {
  background:rgba(225, 195, 185, .45) url('im/tea.png') no-repeat 20px 50%;
}

.speak {
  background:url('im/readings1.png') no-repeat 95% 50%, url('im/readings2.png') no-repeat 30px 50%, rgba(225, 195, 185, .45);
}

.topics .speak {
	padding-right: 60px;
}

.sub {
	font-size: 75%;
}


.calendar {
    margin: 0 auto;
}

.calendar h3 {
    text-transform: uppercase;
    margin-top: 50px;
    color:#7d191d;
}

.calendar dt {
	font-weight: bold;
	color: #7d191d;
}

.calendar dd {
	overflow: hidden;
	text-align: justify;
	margin-bottom: 12px;
}

.calendar dd img {
	float: right;
	margin-left: 10px;
}

.calendar p {
    color: #fff;
    margin: 0;
}

.date {
    text-transform: uppercase;
    margin-top: 12px !important;
}


#footer {
    background: #fff;
}
.links {
    font-size: 16px;
}

.gosuslugi {
  font-size: 18px;
  position: relative;
  top: 20px;
}

.links li {
    border-left: 5px solid rgb(125, 25, 28);
    display: inline-block;
    padding: 0 15px 0;
    width: 14%;
    box-sizing: border-box;
    height: 70px;
    vertical-align: top;
}

#copyright p {
    color: #636568;
    text-align: center;
    margin: 0;
    font-size: 13px;
}

.icon {
	float: left;
	margin: 0 4px 4px 0;
}

#content {
	background: rgba(255, 255, 245, 0.89) none repeat scroll 0 0;
    margin: 0 40px 0 20px;
    position: absolute;
    top: 430px;	
	min-width:92%;
}

#content h1 {
	text-align: center;
	color: #7d191d;
}

.anketa textarea, .anketa input[type="text"] {
	width: 500px;
	padding: 2px;
	margin: 4px 0 8px;
	box-shadow: inset 1px 1px 2px #333;
}

.anketa td {
	padding: 5px 2px 3px;
	vertical-align: top;
}

 a {
	color: #5d090d;	
}

#holder {
	height: 1000px;
}

th {text-align:center;font-weight:bold;background-color:#fed;border: 1px solid #555;}

#dates {
	color: #fff;
}
#dates dt {
	text-transform: uppercase;
	font-weight: bold;
}
#dates dd {
	margin: 0 0 12px 0;
}


.answer{font-style:italic;background:#ffe;padding:10px 10px 10px 3em;border:1px solid #b07e36;}

#preview {position:absolute;border:1px solid #ccc;background:#644;padding:5px;display:none;color:#fff;z-index:99;}

.doclist {
  list-style-type: none;
}
.doclist li {
  float: left;
  margin: 12px 6px;
}
.doclist img {
  border: 2px solid #666;
}
.collections {float:right; margin:0;}

#month-select-table {width: 95%;margin:0 auto;}
#month-select-table td {padding:2px 3px;}
#month-select-table th {border:none; background:transparent; vertical-align:top;padding:2px 5px;}
#month-select {border-bottom: 1px dashed #B07E36; cursor: pointer;}

.nobr {white-space:nowrap;}

img.portrait {margin:0 10px 5px 0; float:left;}
img.photo {margin:0 10px 5px 0; float:left;}


.navigation {display: block;}
#mainmenu {display: flex; justify-content: space-around;list-style-type: none;margin: 0; padding: 0;}
.submenu {
	list-style-type: none;
	display: none;
	position: absolute;
	z-index: 9999;
	background: #fff;
	border-top: 2px solid #7d191d;
	border-right: 2px solid #7d191d;
	border-left: 2px solid #7d191d;
	box-shadow: 2px 2px 4px rgba(12, 12, 12, 0.65);
	padding: 0;
	min-width: 250px;
	margin-left: -30px;
	max-width: 400px;
}

.submenu li {border-bottom: 1px solid #7d191d;padding: 0 2px;}
.submenu li:last-child {border-bottom: 2px solid #7d191d;}
.submenu li a {text-transform: none; display: inline-block; width: 100%;}
.submenu li a:hover {background: #7d191d;color: #fff}
/* .submenu li:hover {background: #7d191d;} */
#mainmenu li:hover ul {display: block;}

.breadcrumbs {
	margin: 3px 8px;
}

.partners {
    background: #7d191d;
    padding: 10px 24px 15px;
	overflow: hidden;
}

.partners p {
	text-align: center;
}

.partners h5 {
	margin: 0;
	color: #ffdd84;
	font-size: 18px;
}

.partners img {
	height: 88px;
	margin: 0 20px 12px 0;
}

.spl .build-table, .spl .build-table td, .spl .items {
	background: none !important;
}

.spl {
	font-size: 150%;
	color: #000;
}

.spl .topics h2 {
	box-shadow: 0 0 2px 1px rgba(15,15,15, 0.3);
	font-size: 38px;
	background-color: rgba(225, 195, 185, .25);
}

.spl #dates {
	color: #111;
}

.spl .head h2.light {
	font-size: 25px;
}

.spl header p {
	width: 300px;
	margin-top: -110px;
}

.spl .column {
	padding-top: 10px;
}

.spl .head .citizen {
	font-size: 28px;
}

.spl .head p {
	font-size: 24px;
}

.spl .size h2 {
	line-height: 1;
}

.spl .navigation a {
	font-size: 22px;
}

.spl #content {
	top: 320px;
}


.top-links {
	list-style-type:none;
	padding: 0;
	overflow:hidden;
	margin: 0;
}
.top-links li {
	float: left;
	width: 25%;
	box-sizing: border-box;
	border-left: 4px solid #f6ce30;
}

.top-links img {
	width: 100%;
}

.top-links li:first-child {
	border-left: none;
}

.top-links .admin {
	background-position: 0 -162px;
}
.top-links .gov {
	background-position: 0 -325px;
}
.top-links .site {
	background-position: 0 -487px;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
