/* --- весь документ --- */
body { /* стиль всего документа */
  background: #d3d6db url(img/gradient.jpg) repeat-x;
  padding: 0px;
  margin: 0px;
}

/* --- заголовок сайта --- */
div.title_box { /* заголовок сайта, шапка - контейнер с фоном */
  width: 100%;
  height: 273px;
  background: url(img/fon-top.jpg) bottom center no-repeat;
}
div.title { /* заголовок сайта, шапка */
  position: relative;
  width: 80%;
  height: 100%;
  margin: 0px auto;
}
a.title_star_link { /* ссылка в виде звезды */
  position: absolute;
  z-index: 2;
  top: 0px;
  left: 5px;
  background-image: url(img/star.png);
  background-position: top;
  background-repeat: no-repeat;
  width: 110px;
  height: 86px;
  outline: none;
  display: block;
}
a.title_sun_up_link { /* ссылка в виде звезды, переходящей в Солнце */
  position: absolute;
  z-index: 2;
  top: 0px;
  left: 5px;
  background-image: url(img/sun.png);
  background-position: bottom;
  background-repeat: no-repeat;
  width: 110px;
  height: 94px;
  outline: none;
  display: none;
}
a.title_sun_link { /* ссылка в виде Солнца - 2 */
  position: relative;
  z-index: 2;
  top: 0px;
  left: 5px;
  outline: none;
  display: none;
}
img.title_sun_img { /* ссылка в виде Солнца - 2 */
  width: 110px;
  height: 94px;
  border: none;
}
img.title_string1 { /* первая надпись */
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 5%;
  width: 260px;
  height: 47px;
}

/* --- меню --- */
div.title table { /* таблица со ссылками */
  position: absolute;
  z-index: 3;
  top: 180px;
}
a.menulink { /* ссылка меню */
  background-position: top;
  width: 166px;
  height: 70px;
  display: block;
  outline: none;
  background-repeat: no-repeat;
}
a.menulink:hover {
  background-position: bottom;
}

/* --- контент --- */
div.content-box { /* рамка со скругленными углами и контент */
  width: 80%;
  min-height: 200px;
  margin: 20px auto;
  margin-top: -32px;
  position: relative;
  z-index: 1;
}
div.content-header { /* шапка контента (для создания верхних скругленных углов) */
  height: 25px;
  background: url(img/corner-top-left.png) no-repeat;
}
div.content-header-footer-center {
  height: 25px;
  background-color: #FFFFFF;
  margin-left: 25px;
  margin-right: 25px;
}
div.content-header-top-r {
  height: 25px;
  width: 25px;
  float: right;
  background: url(img/corner-top-right.png) top right no-repeat;
}
div.content-footer { /* основание контента (для создания нижних скругленных углов) */
  height: 25px;
  background: url(img/corner-bottom-left.png) no-repeat;
}
div.content-footer-bottom-r {
  height: 25px;
  width: 25px;
  float: right;
  background: url(img/corner-bottom-right.png) top right no-repeat;
}
div.content { /* контент - основное содержимое */
  padding: 5px 25px;
  background-color: #FFFFFF;
}
/* --- стили текста --- */
.intro { /* стиль текста заголовка, вступления */
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: normal;
  font-size: x-large;
  color: #486aa7;
  text-align: center;
}
.content-text { /* стиль основного текста */
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: large;
  color: #486aa7;
  text-indent: 1.5em;
  text-align: justify;
}
.attention { /* стиль текста для сообщений об ошибках */
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: large;
  color: red;
  text-indent: 1.5em;
  text-align: left;
}

/* --- основание сайта --- */
div.footer_back { /* слой с зеленой заливкой */
  background: #317353 url(img/fon-bot.gif) repeat-x;
  width: 100%;
  margin-top: -60px;
  padding-top: 50px;
}
div.footer_back_grass { /* слой с травой */
  background: url(img/grass.png) left bottom repeat-x;
  height: 100%;
  width: 100%;
  padding: 20px 0;
}
div.footer { /* основание сайта */
  width: 80%;
  margin: 0px auto;
  min-height: 100px;
}
div.footer img { /* нижняя левая ячейка с картинками - навигационными ссылками */
  margin-right: 25px;
  margin-bottom: 25px;
  border: none;
  float: left;
}
div.footer p { /* стиль служебного текста */
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: small;
  color: #FFFFFF;
  text-align: right;
  margin: 0px;
}
/* ссылки в блоке служебного текста */
div.footer a {
  color: #FFFFFF;
}
div.footer a:hover {
  color: #3ce995;
}

/* --- все ссылки в документе по-умолчанию --- */
a {
  color: #486aa7;
}
a:hover {
  color: #588de9;
}

/* --- свойства кнопок на формах, если отключен JavaScript --- */
.button_noscript {
  height: 30px;
  margin: 5px 20px;
  background-color: #feb4b4;
}

/* --- красивые ссылки - кнопки --- */
a.button_link {
  display: block;
  float: left; /* чтобы кнопка не растягивалась на всю ширину родительского блока, а ограничивалась текстом */
  font: bold 15px arial, sans-serif;
  color: #555;
  text-decoration: none;
  background: url(img/button-form-right.png) top right no-repeat;
  padding-right: 20px; /* отступ для "раздвижных дверей" */
  outline: none; /* убираем точечную обводку в FireFox, которая появляется при клике */
  margin-right: 10px;
  margin-bottom: 10px;
  height: 33px;
}
a.button_link span {
  display: block;
  line-height: 15px;
  background: url(img/button-form-left.png) no-repeat;
  padding: 6px 0 12px 20px;
  white-space: nowrap;
}
a.button_link span img {
  border: none;
  margin-right: 10px;
  display: inline-block;
}
a.button_link:hover {
  background-position: 100% -33px;
}
a.button_link:hover span {
  background-position: 0% -33px;
  color: #222;
}
a.button_link:active {
  background-position: 100% -66px;
}
a.button_link:active span {
  background-position: 0% -66px;
  color: #222;
  padding: 7px 0 11px 20px;
}