.swith a{ text-decoration: none }
.swith{
  text-align: center;
  color: #FF7400
}
@media only screen and (min-device-width: 1024px) {
  #wrapper {
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
  }
}

* {
  margin: 0;
  padding: 0;
}

body {
  color: #333;
  font: 13px/18px tahoma;
  margin: 0;
  padding: 0;
  background: #bdbdbd;
}

a:link, a:visited {
  color: #3775d0;
  text-decoration: underline;
}

a:active, a:hover, a:focus {
  color: #a40000;
}

input, textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 8px;
  border: solid 1px #d2d2d2;
}

input[type=submit] {
  color: #fff;
  border: #a61c00;
  background: rgb(215, 42, 0);
  background: -moz-linear-gradient(top, rgb(215, 42, 0) 0%, rgb(180, 32, 0) 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgb(215, 42, 0)), color-stop(100%, rgb(180, 32, 0)));
  background: -webkit-linear-gradient(top, rgb(215, 42, 0) 0%, rgb(180, 32, 0) 100%);
  background: -o-linear-gradient(top, rgb(215, 42, 0) 0%, rgb(180, 32, 0) 100%);
  background: -ms-linear-gradient(top, rgb(215, 42, 0) 0%, rgb(180, 32, 0) 100%);
  background: linear-gradient(to bottom, rgb(215, 42, 0) 0%, rgb(180, 32, 0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d72a00', endColorstr='#b42000',GradientType=0 );
}
input[type=checkbox],input[type=radio] { width: auto; }
img {
  vertical-align: middle;
  border: none;
}

ul {
  list-style: none;
}

p {
  margin: 0 0 .8em;
}

hr {
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px dotted #c0c0c0;
  border-top-style: none;
  border-top-width: 0;
  border-right-style: none;
  border-right-width: 0;
  border-left-style: none;
  border-left-width: 0;
}

header ul li a span {
  text-indent: -9999px;
  overflow: hidden;
  display: inline-block;
}
#wrapper {
  background: #fff;
}
/*fx*/
header ul li,#top ul li.active a, section .addbutton a, nav.pages ul li a, section ul.category li a span {
  border-radius: 4px;
}
#top ul li a, section .addbutton a, nav.pages ul li.active a, section ul.category li a span {
  text-shadow: rgba(0, 0, 0, 0.3) 0 1px;
}
section ul.catalog li a.click p {
  overflow: hidden;
  white-space: nowrap;
  -ms-text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
}
#top:after,#menu:after {
  content: '';
  clear: both;
  display: table;
}
/*HEADER------------------------------------------------------------*/
header {
background : #ffc33b url(http://mswap.ru/Design/themes/mswap/verx.png) left bottom repeat-x;
  
  position: relative;
  text-align: center;
  padding-top: 0px;
  padding-bottom: 0px;
  border-bottom: 1px solid #93561b;
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

header ul {
  width: 100%;
}

header ul li {
  background: #ffb93a;
  text-align: center;
  position: absolute;
  top: 10px;
  width: 30px;
  height: 30px;
  box-shadow: 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 1px rgba(0, 0, 0, 0.3);
}

header ul li:hover {
  background: #ffb93a;
  box-shadow: 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 20px rgba(0, 0, 0, 0.3);
}

header ul li.left {
  left: 10px;
}

header ul li.right {
  right: 10px;
}

header ul li a span{
  background: no-repeat center;
  width: 30px;
  height: 30px;
  display: block;
}

header ul li a span._home {
background-image: url(images/header_home.png);
}

header ul li a span._search{
  background-image: url(images/header_search.png);
}
/*top nav*/
#top {
  background: #e08d2b;
  text-align: center;
  padding: 5px 10px;
}

#top ul li {
  float: left;
  width: 50%;
}

#top ul li.active a {
  color: #fff;
  background: #ffad39;
}

#top ul li a {
  display: block;
  color: #ffffff;
  padding-top: 8px;
  padding-bottom: 8px;
}

#top ul li a:hover {
  color: #52483a;
}

#top ul li a span {
  background: no-repeat 0 center;
  padding-left: 20px;
  display: inline-block;
}

#top ul li a span._star {
  background-image: url(images/ico_star.png);
}

#top ul li a span._list {
  background-image: url(images/ico_list.png);
}
/*MIDDLE------------------------------------------------------------*/
.block {
  color: #fff;
  padding: 10px;
  background: #ff8f00;
  background: -moz-linear-gradient(top, #ff8f00 0%, #ff6f1c 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff8f00), color-stop(100%,#ff6f1c));
  background: -webkit-linear-gradient(top, #ff8f00 0%,#ff6f1c 100%);
  background: -o-linear-gradient(top, #ff8f00 0%,#ff6f1c 100%);
  background: -ms-linear-gradient(top, #ff8f00 0%,#ff6f1c 100%);
  background: linear-gradient(to bottom, #ff8f00 0%,#ff6f1c 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8f00', endColorstr='#ff6f1c',GradientType=0 );
}
.block a { color: #fff; }
.l1, .li {
  background: #fff;
  margin-bottom: 5px;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.2) 0 1px 2px;
}
img.border {
  max-width: 100%;
}
table {
  box-shadow: rgba(0, 0, 0, 0.2) 0 1px 2px;
  background: #fff;
  width: 100%;
  margin-bottom: 5px;
  border-collapse: collapse;
}
table td {
  padding: 5px;
  border-right: 1px solid #e6e6e6;
}
table td:last-child {
  border-right-style: none;
}
table tr {
  border-bottom: 1px solid #e6e6e6;
}
section {
  background: #ececec url(images/noise.gif);
  padding: 10px;
}
/*addbutton*/
section .addbutton {
  text-align: center;
  padding-bottom: 10px;
}

section .addbutton a {
  box-shadow: rgba(0, 0, 0, 0.3) 0 1px 2px;
  background: #ff8f00;
  background: -moz-linear-gradient(top, #ff8f00 0%, #ff6f1c 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff8f00), color-stop(100%,#ff6f1c));
  background: -webkit-linear-gradient(top, #ff8f00 0%,#ff6f1c 100%);
  background: -o-linear-gradient(top, #ff8f00 0%,#ff6f1c 100%);
  background: -ms-linear-gradient(top, #ff8f00 0%,#ff6f1c 100%);
  background: linear-gradient(to bottom, #ff8f00 0%,#ff6f1c 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8f00', endColorstr='#ff6f1c',GradientType=0 );
  color: #ffffff;
  position: relative;
  display: inline-table;
}

section .addbutton a:hover {
  text-shadow: rgba(255, 255, 255, 0.4) 0 1px;
  color: #952300;
  background: #ff6a20;
  background: -moz-linear-gradient(top, #ff6a20 0%, #ff8b04 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff6a20), color-stop(100%,#ff8b04));
  background: -webkit-linear-gradient(top, #ff6a20 0%,#ff8b04 100%);
  background: -o-linear-gradient(top, #ff6a20 0%,#ff8b04 100%);
  background: -ms-linear-gradient(top, #ff6a20 0%,#ff8b04 100%);
  background: linear-gradient(to bottom, #ff6a20 0%,#ff8b04 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff6a20', endColorstr='#ff8b04',GradientType=0 );
}

section .addbutton a:after {
  content: '';
  background: url(images/addbutton_arr.png) no-repeat;
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 20px;
  height: 10px;
  margin-left: -10px;
}

section .addbutton a:hover:after {
  background-image: url(images/addbutton_arrh.png);
}

section .addbutton a span._add {
  background: url(images/ico_add.png) no-repeat 11px 11px;
  text-indent: -9999px;
  display: block;
  width: 34px;
  height: 34px;
  float: left;
  border-right: 1px solid #ff7500;
}

section .addbutton a:hover span._add {
  background-image: url(images/ico_addh.png);
}

section .addbutton a b {
  height: 27px;
  float: left;
  padding-top: 8px;
  padding-right: 15px;
  padding-left: 15px;
  border-left: 1px solid #ff9700;
  display: block;
}
/*category*/
section ul.category {
  box-shadow: rgba(0, 0, 0, 0.2) 0 1px 2px;
}

section ul.category li {
  background: #ffffff;
  position: relative;
  border-bottom: 1px solid #e6e6e6;
}

section ul.category li:last-child {
  border-bottom-style: none;
}

section ul.category li:hover {
  background: #fbfbfb;
}

section ul.category li a {
  text-decoration: none;
  position: relative;
  height: 20px;
  padding: 10px;
  display: block;
}

section ul.category li a span {
  color: #fff;
  background: #b9b9b9;
  display: block;
  position: absolute;
  top: 50%;
  right: 10px;
  height: 20px;
  margin-top: -10px;
  padding-right: 5px;
  padding-left: 5px;
}
/*catalog*/
section ul.catalog li {
  box-shadow: rgba(0, 0, 0, 0.2) 0 1px 2px;
  background: #ffffff;
  position: relative;
  margin-bottom: 5px;
}

section ul.catalog li:hover, section ul.catalog li:nth-child(2n):hover {
  background: #f3f3f3;
}

section ul.catalog li:nth-child(2n) {
  background: #FAFAFA;
}

section ul.catalog li a.click {
  text-decoration: none;
  position: relative;
  height: 40px;
  padding: 10px 10px 10px 40px;
  display: block;
}

section ul.catalog li a.click strong {
  color: #b2b2b2;
  font-size: 18px;
  font-weight: normal;
  position: absolute;
  top: 50%;
  left: 15px;
  margin-top: -10px;
}

section ul.catalog li a.click span {
  text-decoration: underline;
}

section ul.catalog li a.click p {
  color: #4d4d4d;
  margin-bottom: 0;
  padding-right: 40px;
}

section ul.catalog li a.stat {
  background: url(images/catalog_stat.png) no-repeat center;
  text-indent: -9999px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 60px;
  border-left: 1px solid #d3d3d3;
}

section ul.catalog li a.stat:hover {
  background-color: #fff;
}

section ul.catalog li.new {
  background: #fffeec;
}

section ul.catalog li.new a.click span {
  color: #992400;
}

section ul.catalog li.new a.click strong {
  background: url(images/new.png) no-repeat;
  text-indent: -9999px;
  left: 10px;
  width: 22px;
  height: 22px;
}

section ul.catalog li.new a.stat {
  background-image: url(images/catalog_new.png);
}
/*pages*/
section nav.pages { background-color: #fff; text-align: center; margin: 10px -10px -10px; padding: 10px; }
nav.pages {
  text-align: center;
  padding: 10px;
}
nav.pages ul li {
  display: inline-table;
}

nav.pages ul li a {
  text-shadow: #fff 0 1px;
  box-shadow: rgba(255, 255, 255, 0.5) 0 1px inset;
  color: #333;
  background: #e4e4e4;
  background: -moz-linear-gradient(top,  #e4e4e4 0%, #cdcdcd 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e4e4e4), color-stop(100%,#cdcdcd));
  background: -webkit-linear-gradient(top,  #e4e4e4 0%,#cdcdcd 100%);
  background: -o-linear-gradient(top,  #e4e4e4 0%,#cdcdcd 100%);
  background: -ms-linear-gradient(top,  #e4e4e4 0%,#cdcdcd 100%);
  background: linear-gradient(to bottom,  #e4e4e4 0%,#cdcdcd 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e4e4e4', endColorstr='#cdcdcd',GradientType=0 );
  text-decoration: none;
  width: 30px;
  height: 25px;
  padding-top: 5px;
  border: solid 1px #c0c0c0;
  display: block;
  margin-right: 5px;
}

nav.pages ul li a:hover {
  background: #dadada;
  background: -moz-linear-gradient(top,  #dadada 0%, #b9b9b9 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dadada), color-stop(100%,#b9b9b9));
  background: -webkit-linear-gradient(top,  #dadada 0%,#b9b9b9 100%);
  background: -o-linear-gradient(top,  #dadada 0%,#b9b9b9 100%);
  background: -ms-linear-gradient(top,  #dadada 0%,#b9b9b9 100%);
  background: linear-gradient(to bottom,  #dadada 0%,#b9b9b9 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dadada', endColorstr='#b9b9b9',GradientType=0 );
}

nav.pages ul li.active a {
  color: #fff;
  font-weight: bold;
  background: #ff8e02;
  background: -moz-linear-gradient(top,  #ff8e02 0%, #ff6b1f 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff8e02), color-stop(100%,#ff6b1f));
  background: -webkit-linear-gradient(top,  #ff8e02 0%,#ff6b1f 100%);
  background: -o-linear-gradient(top,  #ff8e02 0%,#ff6b1f 100%);
  background: -ms-linear-gradient(top,  #ff8e02 0%,#ff6b1f 100%);
  background: linear-gradient(to bottom,  #ff8e02 0%,#ff6b1f 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8e02', endColorstr='#ff6b1f',GradientType=0 );
  border: solid 1px #ff7400;
}

nav.pages ul li.prev a span {
  background: url(images/page_prev.png) no-repeat;
  text-indent: -9999px;
  position: relative;
  top: 5px;
  width: 6px;
  height: 11px;
  display: inline-block;
}

nav.pages ul li.next a span {
  background: url(images/page_next.png) no-repeat;
  text-indent: -9999px;
  position: relative;
  top: 5px;
  width: 6px;
  height: 11px;
  display: inline-block;
}
/*adv*/
.adv {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) inset;
  background: #fff1d1 url(images/adv.png) no-repeat 96% 5px;
  padding: 10px;
}
.adv ul li a {
  color: #992400;
}

.adv ul li a:hover {
  color: #ff7400;
}
/*FOOTER------------------------------------------------------------*/
#menu {
  background: #4d4d4d;
  background: -moz-linear-gradient(top, #4d4d4d 0%, #424242 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4d4d4d), color-stop(100%,#424242));
  background: -webkit-linear-gradient(top, #4d4d4d 0%,#424242 100%);
  background: -o-linear-gradient(top, #4d4d4d 0%,#424242 100%);
  background: -ms-linear-gradient(top, #4d4d4d 0%,#424242 100%);
  background: linear-gradient(to bottom, #4d4d4d 0%,#424242 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d4d4d', endColorstr='#424242',GradientType=0 );
}

#menu ul li{
  width: 25%;
  float: left;
}

#menu ul li:nth-child(2n){
  background: #434343;
  background: -moz-linear-gradient(top, #434343 0%, #383838 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#434343), color-stop(100%,#383838));
  background: -webkit-linear-gradient(top, #434343 0%,#383838 100%);
  background: -o-linear-gradient(top, #434343 0%,#383838 100%);
  background: -ms-linear-gradient(top, #434343 0%,#383838 100%);
  background: linear-gradient(to bottom, #434343 0%,#383838 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#434343', endColorstr='#383838',GradientType=0 );
}

#menu ul li a {
  color: #fff;
  background: no-repeat center 10px;
  text-decoration: none;
  text-align: center;
  padding-top: 35px;
  padding-bottom: 5px;
  display: block;
}

#menu ul li a:hover {
  color: #b3b3b3;
}

#menu ul li._enter a {
  background-image: url(images/menu_enter.png);
}

#menu ul li._news a {
  background-image: url(images/menu_news.png);
}

#menu ul li._stat a {
  background-image: url(images/menu_stat.png);
}

#menu ul li._mail a {
background-image: url(images/menu_mail.png);
}

footer {
  position: relative;
  padding: 10px;
}
footer center { text-align: left; display: inline; }
footer .counters { position: relative; z-index: 1
; display: inline-block; }
footer a.copyright {
  background: url(/images/footer_logo.png) no-repeat;
  text-indent: -9999px;
  position: absolute;
  top: 10px;
  left: 50%;
  width: 108px;
  height: 24px;
  margin-left: -54px;
}

footer span { color: #808080; line-height: 16px; float: right; position: relative; z-index: 1
 ; margin-top: -3px; }

footer span a {
  color: #808080 !important;
  text-decoration: none !important;
}