body {margin:2px;}
p { 
  margin-top:0px; 
  margin-bottom: 10px; 
}
td { 
  font-family: Verdana;
  font-size: 12px;
  color: #4B4B4B;
  vertical-align:top;
  line-height: 17px;
}
a { color: #00a208; }
a:hover { color: #167f1b; }
a:visited { color: #00c60a; }
  a img { border: 0px; }

p,ul{padding-top:0;margin-top:0px;margin-bottom:10px;}
ul{padding-bottom:10px;}
h2 {
  font-size: 125%; 
  margin: 25px 0px 10px 0px; 
  padding-bottom: 3px;
  border-bottom: 1px dotted gray;
}

.panel .header {padding-left: 20px; background-image: url(/images/bg_quad.gif); background-repeat: no-repeat;}
  .panel .header .title {
      background-color: #d3fb8d; 
      line-height: 16px; 
      border: 1px solid #007606;
      color: #007606;
      font-weight: bold;
      padding-left: 3px;
      width: 100%;
  }
  .panel .header h1 {
      color: #007606;
      font-size: 12px;
      margin: 0px;
  }
  .panel .header a {color: #007606; text-decoration:none;}
    .panel .header a:hover {color: #15AF1C; text-decoration: underline;}

.panel .content {padding-top:10px; text-align:justify;}

table.main {
    background-image: url(/images/bg_butterfly_bottom.gif);
    background-repeat: no-repeat;
    background-position: bottom right;
    width: 980px;
}
table.main tr.footer {
    background-image: url(/images/bg_domain_bottom.gif);
    background-repeat: no-repeat;
    background-position: bottom left;
    height: 100px;
}

table.main tr.footer td {vertical-align: bottom;}

/* Переключатель языков */
#language_switch { text-align: right;}

/* Внутренняя таблица главной страницы */

table.inner {width:100%;}
  table.inner tr.top {height: 305px;}
      table.inner tr.top td.center_column {
          background-image: url(/images/bg_logo_main.gif); 
          background-repeat: no-repeat;
      }
  
  table.inner td.left_column { width: 260px;}
  table.inner td.right_column { width: 230px; }
    table.inner td.right_column .panel {padding-right: 0px;}

  table.inner tr.middle td.center_column {padding-left:39px; padding-right: 19px;}

/* Выделенная работа */
.featured_item_panel {margin-bottom: 15px;}  
  .featured_item_panel .content {text-align:center;}
    .featured_item_panel .image img {border: 1px solid #C2C1C4;}
    
/* Выделенный отзыв */
.featured_testimonial_panel .author {text-align: right; font-style: italic; }

/* Последние события */
.latest_events_panel .selected {background-color: #F0FFDF;}
.latest_events_panel .event {margin-bottom: 10px;}
  .latest_events_panel .event .publicate_at { font-weight: bold; color: #4B4B4B; margin-bottom: 5px;}
  .latest_events_panel .event .title, 
    .latest_events_panel .event .short_content {padding-left: 20px; text-align: left;}
  
  .latest_events_panel .event .additional {padding-left: 20px; text-align: right;}
    .latest_events_panel .event .more a {
      background-image: url(/images/icons/more.gif);
      background-position: right;
      background-repeat: no-repeat;
      padding-right: 17px;
    }
		.latest_events_panel .event .comments a {
      background-image: url(/images/icons/comments.gif);
      background-position: left;
      background-repeat: no-repeat;
      padding: 0px 10px 2px 19px;
		}

/* Внутренняя таблица внутренних страниц */

table.inner_pages {width:100%;}
  table.inner_pages td.center_column .panel { margin-left:23px; padding-right: 20px;}
  table.inner_pages td.right_column { width: 250px; }
  table.inner_pages td.right_column .panel {padding-right: 0px;}

/* Внутренняя таблица портфолио */
table.inner_portfolio {width:100%;}
  table.inner_portfolio .main_menu {padding-right: 10px;}

/* Главное меню */
.main_menu { text-align:right;  width: 150px; float:right; padding-right: 30px;}
  .main_menu .item {
      width: 130px;
      line-height: 27px; 
      border-bottom: 1px solid #c6c6c6;
      padding-right: 20px;
  }
    .main_menu .item a{ color: #007606; font-weight: bold; text-decoration: none;}
    .main_menu .item a:hover { color: #00c40a; }

    .main_menu .item .subpages a {
        display:block; 
        font-weight: normal;
        font-size: 11px;
        line-height: 17px;
        color: #6e6e6e;
    }
      .main_menu .item .subpages a:hover {color: #167f1b; text-decoration: underline;}
      .main_menu .item .subpages a.selected {font-weight: bold;}
  
  .main_menu .last {border: 0px;}


/* Нижнее меню */

.bottom_menu .item { 
    display: inline; 
    padding-right: 8px; 
    padding-left: 8px;
    padding-bottom:3px; 
    border-right: 1px solid #CFCFCF;
}
    .bottom_menu .item a {
        font-weight: normal;
        font-size: 11px;
        color: #6e6e6e;
    }
    .bottom_menu .item a:hover {color: #167f1b; text-decoration: underline;}
    
.bottom_menu .first {padding-left: 0px;}
.bottom_menu .last {border: 0px;}

/* Блок контактов */
.contacts_panel .content {padding-bottom: 5px; text-align: left;}
  .contacts_panel .content p {margin: 0px;}
  .contacts_panel .content blockquote { margin: 2px 0px 2px 15px; }
  .contacts_panel .content table { margin: 2px 0px 2px 12px; }
  
/* Страница новостей */

.events .event { margin-bottom: 10px; }
  .events .event .date {font-weight: bold; display:inline;}
  .events .event .date:after {content: " - ";}
  .events .event .title { display: inline;}
  
/* Страница категорий портфолио */

.categories .category {
  padding-left: 23px; 
  background-image: url(/images/bg_quad.gif); 
  background-repeat: no-repeat;
  background-position: 0px 3px;
  line-height: 22px;
  margin-bottom: 2px;
}

/* Страница списка работ */

.items { width: 100%;}
.items td { width: 50%; padding:0;}
  .items .item_preview { margin-bottom: 15px;}

/* Превьюшка работ */
.item_preview .gallery_image { border: 1px solid #C2C1C4; margin: 0px 0px 2px 0px; }
.item_preview .info {padding-left: 4px;}
.item_preview .short_name a{font-weight: bold; color: #007606;}
  .item_preview .short_name a:hover {color: #15AF1C;}
.item_preview .label {font-weight: bold; padding-right: 3px;}
.item_preview .bottom_panel {
  padding-left: 20px;
  background-image: url(/images/bg_quad.gif); 
  background-repeat: no-repeat;
  padding-top: 0;
}
  .item_preview .bottom_panel div{
    background-color: #d3fb8d; 
    line-height: 16px; 
    border: 1px solid #007606;
    color: #007606;
    font-weight: bold;
    padding-left: 3px;
  }
  .item_preview .bottom_panel a {text-decoration: none;}
    .item_preview .bottom_panel a:hover {text-decoration: underline;}

/* Страница просмотра работы */
.item_panel #item_table {width: 100%;} 
.item_panel td.icons {padding: 21px 0 0 10px;}

.item_panel .website_url {
  font-weight:bold; 
  border-bottom: 1px dotted gray; 
  display:inline; 
  padding-bottom: 3px; 
  padding-right: 30px;
}

.item_panel .testimonial .spacer {width: 50%;}
  .item_panel .testimonial cite { text-align: justify;}
  .item_panel .testimonial .author { text-align: right; }

.item_panel .picture .description {width: 100%; margin-top: 10px; margin-bottom: 5px;}
  .item_panel .picture .description td {padding: 0px;}
  .item_panel .picture .description .name {font-weight: bold; text-align: left;}
  .item_panel .picture .description td.external_link {text-align: center;}
  .item_panel .picture .description td.internal_link {text-align: right;}
.item_panel .picture .image img {border: 1px solid #C2C1C4;}

.item_panel .picture_previews {margin-top: 10px;}
  .item_panel .picture_previews a img {border: 1px solid #C2C1C4;}
  .item_panel .picture_previews td {padding: 3px;}
  .item_panel .picture_previews td.selected {background-color: #A4F443;}
  
  .item_panel .icons img {border: 0; display:block;}
  
  .item_panel .descriptions {
    margin-top: 20px; 
    padding-bottom: 10px; 
    border-bottom: 1px dotted gray;
  }
    .item_panel .descriptions h3 {
      font-size: 120%; 
      margin: 4px 0px 5px 0px; 
      padding-bottom: 3px; 
      border-bottom: 1px dotted gray; 
      width: 320px;
    }
    .item_panel .descriptions table {width:100%; margin-bottom: 10px;}
    .item_panel .descriptions td {padding: 0px;}
    .item_panel .descriptions td.icon { width: 50px; }
  
    .item_panel .nearest_items strong {text-align: center; display:block; margin-bottom: 3px; font-size: 110%;}
		.item_panel .nearest_items .item_preview .bottom_panel {text-align:center;}

/* Список отзывов */
.testimonials_panel .testimonial td { padding-bottom: 25px; }
  .testimonials_panel .testimonial .image img {border: 1px solid #C2C1C4;}
  .testimonials_panel .testimonial .author {text-align: right; font-weight: bold;}

/* Страница отзыва */
.testimonial_panel .linked_items { float:right; margin-left: 10px;}
  .testimonial_panel .linked_items td {padding: 0px;}
  .testimonial_panel .linked_items .image { padding-bottom: 5px; }
    .testimonial_panel .linked_items .image img {border: 1px solid #C2C1C4; }
.testimonial_panel .author {text-align: right; font-weight: bold;}

/* Страница пользователя */

.user_panel .submenu {
  margin-bottom: 15px; padding-bottom: 5px; border-bottom: 1px dotted gray;
  width: 300px;
}
  .user_panel .submenu h1 { display:inline; font-size: 115%;}

/* Переключатель страниц */
.page_links { margin-top: 10px;}
  .page_links .label {
    font-weight: bold; 
    color: #007606;
    display:inline; 
    border: 1px solid #007606; 
    background-color: #D3FB8D;
    float:left;
    line-height:19px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .page_links .links {
      color:#167F1B;
      font-weight: bold;
      font-family: verdana;
      font-size:11px;
      line-height:11px;
      margin:0px;
  }
    .page_links .links a, .page_links .links b{
      width: 21px;
      background-color: #D3FB8D;
      border: #167F1B solid 1px;
      text-align: center;
      display:block;
      float:left;
      margin-left: 4px;
      line-height:19px;
      color:#167F1B;
    }
    .page_links .links a:hover{ background-color: #9DDB31; }
    .page_links .links b{
      background-color: #9DDB31;
    }

.top_page_links {width: 100%; margin: 5px 0px 15px 0px;}
  .top_page_links td {padding: 0; }
  .top_page_links .page_links { margin-top: 0px;}

  
/* Ссылки на RSS-ленты */
.feed { text-align:right; }

/* Блок с количеством работ */
.total_items {
    color: #007606;
    display:inline; 
    border: 1px solid #007606; 
    background-color: #D3FB8D;
    float:right;
    line-height:19px;
    padding-left: 4px;
    padding-right: 4px;
    margin-left: 5px;
}
  .total_items span {font-weight: bold;}

/* Строка навигации */
.path { text-align: right; margin-bottom: 3px;}
.inner_pages .path { padding-right: 20px;}
.inner_portfolio .path { padding-right: 35px; margin-top: 3px;}

/* Счетчики */
div#counters { text-align: center; margin-top: 20px; }

/* Комментарии */
.comments .comment {
  background-image: url(/images/icons/comment.gif);
  background-position: top left;
  background-repeat: no-repeat;
	padding-left: 20px;
	margin-bottom: 10px;
}
  .comments .comment .created_at {display:inline; }
  .comments .comment .name {display:inline; font-weight: bold;}

/* Форма добавления комментария */
.add_comment_form fieldset legend {
  background-image: url(/images/icons/comment_add.gif);
  background-position: 7px 0px;;
  background-repeat: no-repeat;
	padding-left: 30px;
	padding-right: 10px;
}
  
/* Формы */
label, .label { color: green; font-weight:bold; }
span.required {color:purple;}

  label em { 
		display:block;
		float:left;
		color:red; 
		font-weight:normal; 
	} 
  label span.required { color: purple; }
  
  .fieldWithErrors {display:inline;}
  .fieldWithErrors select{border: 2px dotted red;}
  .fieldWithErrors input{border: 2px dotted red;}
  .fieldWithErrors textarea{border: 2px dotted red;}

fieldset legend {
	color: #167F1B;
	font-weight: bold;
}

/* Уведомления */
.flash_success {
	background-color: #E2FFBF; 
	color: #008000; 
	text-align: center; 
	padding: 15px; 
	font-weight: bold;
}