* {
  margin: 0px;
  padding: 0px;  
}

body {
  background: rgb(0, 0 ,0);
  font-family: Arial;
  text-align: justify;
}

h1, h2, h3 {
  font-weight: normal;
}

#header {
  height: 126px; 
  margin-top: 10px;  
}

#center {
  width: 926px;
  margin-left: auto;
  margin-right: auto;
}

#logo_header {
  width: 166px;
  float: left;
}

#menu_part {
  width: 740px;
  float: left;
  margin-left: 20px;
}

#menu_part p {
  margin-top: 66px; 
  font-size: 20px;
  color: rgb(231, 121, 25);  
}

#menu {
  margin-top: 10px;
  width: 740px;
}

#left_menu {
  float: left;
  width: 10px;
  height: 36px;
  background: url(images/menu_left.gif);  
}

#mid_menu {
  float: left;
  width: 720px;
  height: 36px;
  background: url(images/menu_mid.gif) repeat-x; 
}

#right_menu {
  float: left;
  width: 10px;
  height: 36px;
  background: url(images/menu_right.gif);
}

#mid_menu ul {
  text-align: center;
  padding-top: 6px;
}

#mid_menu ul li {
  background: url(images/menu_line.gif) no-repeat right;
  list-style: none;
  display: inline;
  padding: 0px 10px 0px 10px;
  font-size: 13px;
}

#mid_menu ul li a {
  color: rgb(211, 211, 211);
  text-decoration: none;
}

#mid_menu ul li a:hover {
  color: rgb(255, 188, 118);
  text-decoration: underline;
}

#mid_menu ul li a.active {
  color: rgb(255, 188, 118);
  text-decoration: none;
}

#mid_menu ul li.last_menu {
  background: none;
}

.clearer {
  clear: both;
}

#main {
  margin-top: 18px;
  border-top: 6px solid rgb(181, 181, 181);
  background-color: rgb(255, 255, 255);
}

#main_center {
  width: 926px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  background-color: rgb(233, 233, 233);
}

#left_main {
  float: left;
  width: 552px;
  background-color: rgb(255,255,255);
  padding-right: 30px;
  padding-bottom: 30px;
}

#left_main h1 {
  width: 100%;
  border-bottom: 1px solid rgb(205, 205, 205);
  font-size: 20px; 
  margin-top: 20px;
}

#left_main h2 {
  font-size: 19px;
  margin-top: 10px;
}

#left_main h2:first-letter {
  color: rgb(255, 125, 1);
}

#left_main p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 20px;
}

#left_main ul {
  margin-left: 25px;
  margin-bottom: 10px;
  font-size: 13px;
}

#left_main ul li {
  list-style-type: disc;
  margin-top: 5px;
}

#left_main a {
  color: rgb(255, 119, 0);
  text-decoration: none;
}

#left_main a:hover {
  text-decoration: underline;
}

.references {
  background-color: rgb(233, 233, 233);
  border: 1px solid rgb(181, 181, 181);
  float: right;
  padding: 5px;
  margin: 10px 0px 5px 15px;
}

.map {
  margin-top: 10px;
}

#right_main {
  float: left;
  width: 284px;
  background-color: rgb(233, 233, 233);
  padding: 20px 20px 0px 30px;
  text-align: left;
}

#right_main h2 {
  font-size: 20px;
}

#right_main h2:first-letter {
  color: rgb(255, 125, 1);
}

#right_main ul {
  margin-top: 5px;
  margin-bottom: 20px;
  font-size: 14px;
  list-style-image: url(images/arrow.gif);
  width: 284px;
  line-height: 20px;
}

#right_main ul li {
  margin-left: 30px;
  margin-top: 3px;
}

#right_main a {
  color: rgb(255, 125, 1);
  text-decoration: none;
}

#right_main a:hover {
  text-decoration: underline;
}

#right_main .date {
  font-weight: bold;
  font-size: 14px;
}

.image_box {
  margin-top: 10px;
}

.image_box img {
  border: 1px solid rgb(181, 181, 181);
}

.image_box a {
  margin-right: 25px;
}

.image_box a:hover img {
  border: 1px solid rgb(255, 125, 1); 
}

#footer {
  text-align: center;
  background-color: rgb(0,0,0);
  color: rgb(255,255,255);
  font-size: 13px;
  font-family: Tahoma;
  padding: 10px 0px 10px 0px;
  line-height: 1.7;
}

#footer a {
  color: rgb(255, 195, 136);
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   Адаптация под узкие экраны. Авторская вёрстка — фиксированные 926px
   (2012 год, до эпохи mobile-first). Ниже 980px контейнеры становятся
   резиновыми, колонки складываются в одну. Десктоп не затронут.
   ------------------------------------------------------------------ */
@media (max-width: 980px) {
  #center, #header, #logo_header, #menu_part, #menu, #mid_menu,
  #left_menu, #right_menu, #main, #main_center, #left_main,
  #right_main, #footer {
    width: auto !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  #center { padding: 0 14px; }
  #menu_part p { width: auto !important; margin-top: 12px;
                 font-size: 17px; line-height: 1.35; }
  #mid_menu { height: auto !important; padding: 4px 0; }
  #mid_menu ul { width: auto !important; padding: 4px 0; }
  #mid_menu ul li { display: inline-block; margin: 2px 0; }
  #mid_menu ul li a { display: inline-block; padding: 8px 10px; }
  #right_main { margin-top: 22px; }
  /* float snyat — kontejnery dolzhny sami derzhat vysotu, inache
     menyu i kontent nalozhatsya drug na druga */
  #center, #header, #menu_part, #menu, #main, #main_center { overflow: hidden; }
  #center::after, #header::after, #menu_part::after,
  #main::after, #main_center::after { content: ; display: table; clear: both; }
  /* u #header zhestkaya height:126px — na uzkom ekrane logotip i menyu
     zanimayut bolshe i vylezayut pod #main. Snimaem fiksirovannuyu vysotu. */
  #header { height: auto !important; }
  #menu_part { padding-bottom: 6px; }
  #main { margin-top: 10px; clear: both; }
  /* fon menyu — kartinka pod 720px, na uzkom ekrane ne tyanetsya
     i svetlyj tekst ostaetsya na belom. Zadaem cvet iz toj zhe kartinki. */
  #mid_menu {
    background-image: none !important;
    background-color: #3a3a3a !important;
    border-radius: 3px;
  }
  #mid_menu ul li { background-image: none !important; }
  #mid_menu ul li a { color: #e8e8e8 !important; }
  #mid_menu ul li a:hover,
  #mid_menu ul li a.active { color: #f08a1e !important; }
  #left_menu, #right_menu { display: none; }
  img, iframe, table { max-width: 100%; height: auto; }
  body { -webkit-text-size-adjust: 100%; }
}

@media (max-width: 560px) {
  #logo_header img { max-width: 62%; height: auto; }
  #menu_part p { font-size: 15px; }
}
