html, body {
  box-sizing: content-box;
}

body {
  padding:0;
  margin:0;
  background-color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  text-align:center;
  font-size: 16px;
}

h2 {
  border-left: 8px solid #08d;
  font-size:2em;
  color:#444;
  margin-bottom:28px;
  margin-top:0px;
  margin-left:30px;
  text-indent:12px;
  padding:0px;
  line-height:100%;
  font-weight:normal;
  width:960px;
}

h3 {
  color:#444;
}

h4 {
  border-left: 4px solid #08d;
  font-size:1em;
  color:#08d;
  padding:0;
  margin-left:0;
  text-indent:8px;
  line-height:150%;
  font-weight:bold;
}

p {
  font-size:1em;
  color:#444;
  line-height:150%;
}

ul {
   list-style-type: square;
}

li {
  font-size:1em;
  color:#444;
  line-height:130%;
}

a img{
  border:0;
}

a:hover {
  color:#08d;
}

#wrapper {
  background-color:#fff;
  padding:0;
  margin:0;
  width: 100%;
  height: auto;
  max-width: 960px;
  margin-left:auto;
  margin-right:auto;
  text-align: left;
}

#main {
  background-color:#fff;
}

.header {
  width: 80%;
  max-width:960px;
  background-repeat:no-repeat;
  background-color:#fff;
  overflow:hidden;
  height:80px;
  background-image:url(../img/logopill.png);
  background-position:left top;
  padding-left:120px;
}

.header a {
  color: #888;
  margin-top:60px;
  float:left;
  text-decoration: none;
  text-indent:12px;
  font-size:1em;
  font-weight:normal;
  line-height:100%;
  margin-right:8px;
  border-left: 1px solid #ccc;
}
.header a:hover{
  color:#000;
}

.logo {
  height:80px;
  background-image:url(../img/logoj.png);
  background-repeat:no-repeat;
  background-position:left bottom;
}

.article {
  padding:0;
  margin:0;
  width: 100%;
  max-width: 960px;
}

.mainimg {
  float:left;
  height:auto;
  width: 100%;
  margin:20px 0 0 0;
  padding:0;
  position:relative;
}

.mainimg img{
  width: 100%;
}

.descr {
  margin:0;
  padding:10px 8px 20px 8px;
  float:left;
  width: 33%;
}

.descr h3 {
  border-top: 1px dotted #ddd;
  font-size:2em;
  line-height:1.1em;
  color:#999;
  margin-bottom:12px;
  margin-top:4px;
  padding:0px;
  font-weight:normal;
}

.skills {
  margin-left:20px;
  padding-left:0px;
  float:left;
  width: 30%;
}

.skills h3 {
  padding: 0;
  margin: 0;
  border-top: 1px dotted #ddd;
  font-size:1.5em;
  line-height:1.5em;
  color:#aaa;
  margin-top:4px;
  font-weight:normal;
}

.skills p {
  margin: 0;
  font-size:1em;
  padding-bottom: 4px 8px;
  color:#222;
}

.skills li {
  font-size:1em;
  margin-left:16px;
}

.mo {
  width:25%;
  float:left;
}

.mo img{
  padding-top:25px;
  width: 100%;
}

.article a:link,a:visited {
  float:right;
  color: #888;
  text-decoration: none;
  text-indent:12px;
  font-size:1em;
  font-weight:normal;
  line-height:100%;
  margin-left:8px;
  margin-top:12px;
  border-left: 2px solid #999;
}
.article a:hover {
  color:#000;
}

#footer {
  width: 100%;
  max-width:960px;
  border-bottom:2px dotted #ddd;
  background-repeat:no-repeat;
  clear: both;
}

@media screen and (max-width: 800px) {
  .header {
    height: auto;
    /* background-position: left top; */
    padding-left: 120px;
  }
  .header a {
    font-size:1em;
    margin-top: 10px;
    width: 95%;
    display: block;
    float: left;
    border: none;
  }
  .descr {
    width: 95%;
  }
  .descr p {
    font-size:1em;
  }
  .skills {
    width: 60%;
  }
  .skills p {
    font-size:1em;
  }
  .mo {
    width: 35%;
  }
}

@media screen and (max-width: 500px) {
  .skills {
    width: 90%;
  }
  .mo {
    width: 95%;
    margin: 0 auto;
    text-align: center;
    padding: 0 0 40px 0;
  }
  .mo img{
    max-width: 200px;
  }
}