@charset "UTF-8";

/* Базовые стили */
body {
  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: url(img/fon8.png);
  background-attachment: fixed;
  color: #545146;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Контейнер для адаптивности */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  #nav {
    width: 100%;
    font-size: 14px;
    line-height: 2.5em;
    top: 0;
  }
  
  #nav ul {
    height: auto;
    padding: 10px 0;
  }
  
  #nav li {
    display: block;
    margin: 5px 0;
  }
  
  #nav li a {
    display: block;
    padding: 10px;
    border-left: none;
    border-bottom: 1px solid #E2E2E0;
  }
  
  .left, .right {
    width: 100%;
    float: none;
  }
  
  .qqq {
    height: auto;
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 12px;
  }
  
  .serftxt {
    font-size: 16px;
  }
  
  .aaa, .qqq {
    border-radius: 0;
  }
}

/* Остальные стили с небольшими адаптациями */
hr {
  color: gray;
  background-color: gray;
  height: 1px;
  border-width: 0;
}

.center {
  background-color: #F93;
  color: #FFE7CE;
}

.header {
  background-repeat: no-repeat;
  background-size: contain;
}

table {
  font-size: 1rem;
  font-family: arial;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

.footer {
  color: #FFF;
  background-color: #0CC;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 12px;
  text-decoration: none;
  text-transform: none;
  padding: 15px 0;
  text-align: center;
}

.left {
  background-color: #0756A4;
  border: none;
  float: left;
  width: 48%;
  margin-right: 2%;
  box-sizing: border-box;
}

.right {
  background-color: #53A530;
  border: none;
  text-decoration: none;
  float: left;
  width: 48%;
  margin-left: 2%;
  box-sizing: border-box;
}

.serftxt {
  font-family: Verdana, Geneva, sans-serif;
  color: #BEFFA6;
  font-size: 18px;
  text-decoration: none;
}

.input {
  background-color: #DFF9FF;
  width: 100%;
  box-sizing: border-box;
}

.aaa {
  background: url(img/bg.png);
  box-shadow: 0px 0px 5px 1px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-size: cover;
}

.bbb {
  padding-left: 10px;
}

.qqq {
  background: url(img/footbg.png);
  box-shadow: 0px 0px 5px 1px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  height: 100px;
  background-size: cover;
  clear: both;
}

#nav {
  background: url(menu_bg.gif) left top repeat-x #F1F1F1;
  width: 100%;
  max-width: 960px;
  color: #262525;
  line-height: 3.4em;
  text-align: center;
  font-family: Verdana, sans-serif;
  box-shadow: 0 1px 2px #B3B4B4;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  margin: 0 auto;
}

#nav ul {
  list-style-type: none;
  display: block;
  height: 53px;
  margin: 0;
  padding: 0;
}

.active {
  background: url(menu_hover.png) 63% 0px no-repeat;
  transition: all 0.2s ease;
  position: absolute;
  left: 10px;
}

#nav li {
  display: inline-block;
  margin: 0 13px;
}

#nav li a {
  color: #262525;
  padding: 0px 0px 0px 33px;
  border-left: 1px solid #E2E2E0;
  display: inline-block;
  transition: all 0.2s ease;
}

#nav li a:hover {
  background: url(menu_hover.png) 65% 0px no-repeat;
  color: #262525;
}

.www {
  border-bottom: 1px solid #0080C0;
}

.para {
  color: #FFF;
  font-weight: bold;
}

.admlinks {
  color: #FFF;
}

.topmenu {
  font-family: Verdana, Geneva, sans-serif;
  color: #FFF;
  text-decoration: none;
  font-size: 14px;
}

.form {
  text-align: center;
}

.point {
  color: #DFF9FF;
  text-decoration: none;
}

.alert {
  color: #FF6A6A;
}

a:link, a:visited {
  color: rgb(36, 114, 145);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  color: #FF0000;
  font-size: 14px;
  text-decoration: underline;
}

#left {
  border-right-width: thin;
  border-right-style: solid;
  border-right-color: #0080C0;
}

#right {
  border-left-width: thin;
  border-left-style: solid;
  border-left-color: #0080C0;
}

#bottom {
  border-bottom-width: thin;
  border-bottom-style: solid;
  border-bottom-color: #0080C0;
}

#input {
  padding: 5px;
  box-shadow: 0px 0px 5px 1px;
  border-radius: 8px;
  background: url(img/graf.png);
  background-size: cover;
  width: 100%;
  box-sizing: border-box;
}

#top {
  border-top-width: thin;
  border-top-style: solid;
  border-top-color: #0080C0;
}

/* Clearfix для плавающих элементов */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Стили для меню (адаптированные) */
.menu {
  padding: 0 0 0 1em;
  margin: 0;
  list-style: none;
  height: auto;
  background: url(menu.gif);
  background-size: cover;
}

.menu li {
  float: left;
  width: 100%;
  margin-bottom: 5px;
}

@media (min-width: 480px) {
  .menu li {
    width: auto;
    float: left;
    margin-bottom: 0;
  }
}

.menu li a {
  display: block;
  height: auto;
  line-height: 1.5;
  color: #aaa;
  text-decoration: none;
  font-family: arial, verdana, sans-serif;
  text-align: center;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
}

.menu li a b {
  float: none;
  display: inline;
  padding: 0;
}

.menu li.current a {
  color: #fff;
  background: url(menu_cur.gif);
  background-size: cover;
}

.menu li.current a b {
  background: none;
}

.menu li a:hover {
  color: #fff;
  background: url(menu_h.gif);
  background-size: cover;
}

.menu li a:hover b {
  background: none;
}

.menu li.current a:hover {
  color: #fff;
  background: url(menu_cur.gif);
  background-size: cover;
  cursor: default;
}

.menu li.current a:hover b {
  background: none;
}