@import "/res/less/reset";
@import "/res/less/grid";

@max-width: 1000;

i[class^="icon"]{
  background: url("img/icon.png");
  width: 64px;
  height: 64px;
  display: inline-block;
}

@font-face {
  font-family: Roboto;
  src: local("Roboto Regular"), url(font/Roboto-Regular.ttf);
}

@font-face {
  font-family: RobotoBold;
  src: local("Roboto Bold"), url(font/Roboto-Bold.ttf);
}

@font-face {
  font-family: RobotoMedium;
  src: local("Roboto Medium"), url(font/Roboto-Medium.ttf);
}

@font-face {
  font-family: RobotoLight;
  src: local("Roboto Light"), url(font/Roboto-Light.ttf);
}


body {
  background-color: #fff;

  background: url("img/galactic.png") no-repeat -10% top, url("img/sun.png") no-repeat right top,
    url("img/fon_top6.png") no-repeat center top,
  url("img/fon_center3.png") no-repeat center center,
  url("img/fon_bottom3.png") no-repeat center bottom;


  font-size: 14px;
  font-family: Roboto, sans-serif;
  color: #353535;
}


.icon-phone {
  background-position: -64px 0 !important;
  position: absolute;
  top: 18px;
  left: 617px;
}

header {
  background: url("img/logo4.png") no-repeat 0 5px;
  height: 180px;
  margin: 0 !important;
  width: 100% !important;
  position: relative;
  float: none !important;

  .contact {
    width: 300px;
    float: right;
    padding-top: 30px;
    padding-right: 30px;
    text-align: right;
  }

  .logo {
    position: absolute;
    display: inline-block;
    width: 200px;
    height: 200px;
  }
}

.phone-code{
  color: #93bdc7;
  font-size: 2em;
}
.phone-number, .phone-add, .phone-add2, .email { color: #fff; font-family: Roboto }
.phone-number{
  font-size: 2.571em;
}
.phone-add{
  font-size: 1.214em;
}
.phone-add2{
  display: inline-block;
  margin-top: -8px;
  font-size: 1.643em;
  font-family: RobotoBold;
}
.email{
  display: inline-block;
  margin-top: 6px;
  font-size: 1.358em;
  span{
    font-family: RobotoMedium;
  }
}

nav {
  margin: 0 !important;
  margin-top: -4px !important;
  width: 100.1% !important;
  position: relative;
  background: rgba(255, 255, 255, 0.75);
}

nav, div.nav {
  height: 55px;
  text-align: center;
  line-height: 55px;

  a {
    display: inline-block;
    margin-right: 30px;
    color: #242424;
    font-size: 1.143em;
	text-shadow: 0 0 1px rgba(36, 36, 36, 0.3);
  }
  a:last-child {
    margin-right: 0;
  }
}

.content{
  background: url("img/content.png") no-repeat;

  margin: 14px 0 0 0;
  padding: 51px 100px 0 145px;
  min-height: 1300px;
  width: 755px;
  position: relative;

  iframe{
    width: 652px !important;
    height: 412px !important;
  }

  img, iframe {
    padding: 4px;
    background: #cec8e7;
    max-width: 99%;
    height: auto;
  }
  img[style*="right"]{
    margin-top: 30px;
    margin-right: -50px;
    margin-left: 40px;
  }
  img[style*="left"]{
    margin-top: 30px;
    margin-left: -50px;
    margin-right: 40px;
  }
}

nav, div.nav, footer, header img {
  .no-select();
}

footer {
  width: 100%;
  height: 350px;

  .contact {
    width: 300px;
    float: right;
    padding-top: 36px;
    padding-right: 30px;
    text-align: right;
  }

  .copyright{
    margin-top: 215px;
    margin-left: 10px;
    font-size: 1.143em;
    color: rgba(255,255,255,0.7);
    font-family: RobotoBold;
  }
}

a:hover {
  color: #615290 !important;
}

hr.full {
  margin-left: -100px;
  margin-top: 45px;
  margin-bottom: 50px;
  border-color: #e3e3e5;
  width: 1001px;
}

h1.title {
  margin-left: 0px;
  color: #505050;
  font-size: 1.429em;
  font-weight: bolder;
  margin-bottom: 35px;
}

img.icon {
  position: absolute;
  top: 50px;
  left: 0;
  background: none;
  padding: 0;
}

h1.media{
  margin-left: 0;
  color: #505050;
  font-size: 1.429em;
  font-weight: bolder;
  margin-bottom: 35px;
}

.news {
  min-height: 94px;
  width: 902px;
  margin-bottom: 35px;
  border-top: 1px solid #e3e3e5;
  margin-left: -50px;

  hr { margin-top: 8px; }

  div {
    vertical-align: top;
    display: inline-block;
    margin-left: 60px;
    width: 227px;
    white-space: normal;
    word-break: break-all;

    h3 {
      font-weight: normal;
      padding: 0 5px;
      display: block;
      width: 217px;
      height: 25px;
      overflow-y: hidden;
      background: #d5d6ea;
      font-size: 1em;
      line-height: 25px;
      a{
        color: #505050;
      }
    }

    span{
      color: #666;
      font-family: Roboto;
    }
  }
}

.indexPage {
  *{
    margin-left: -50px;
  }
  hr {
    margin-left: -150px;
  }
}

.media-block {
  min-height: 140px;
  width: 902px;
  margin-right: 1px;
  margin-bottom: 30px;
  border-top: 1px solid #e3e3e5;

  .icon-photo, .icon-video {
    width: 99px;
    height: 99px;
  }

  .icon-photo{
    background-position: -130px 0;
    position: absolute;
    margin-left: -98px;
    margin-top: -60px;
    background-color: #b7addb;
  }

  .icon-video{
    background-position: -230px 0;
    position: absolute;
    margin-left: -98px;
    margin-top: 40px;
    background-color: #c5addc;
  }

  hr { margin-top: 60px; }

  div {
    vertical-align: top;
    display: inline-block;
    margin-left: 60px;
    width: 217px;
    font-weight: normal;
    padding: 5px;
    height: 230px;
    background: #cec8e7;
    font-size: 1em;
    color: #505050;
    font-family: Roboto;
    position: relative;

    img {
      position: absolute;
      bottom: 5px;
      left: 5px;
      width: 217px;
      margin: 0;
      padding: 0;
    }

    iframe {
      display: block;
      margin-left: auto;
      margin-right: auto;
      padding: 0;
      width: 217px !important;
      height: 151px !important;
      bottom: 5px;
      position: absolute;
    }
  }
  div.video{ background: #d8c8e8; }
  a{
    color: #505050;
  }
}

section h1 {
  color: #353535;
  font-size: 1.429em;
  font-family: RobotoLight;
}

p {
  font-family: Roboto;
  margin-bottom: 1em;
  color: #666;
}

.blog {
  overflow: hidden;
  div{
    margin-left: 0px;
    width: 752px;
    margin-bottom: 70px;
  }
  h3{
    background: #d5d6ea;
    padding: 5px;
    height: 15px;
    margin-bottom: 5px;
    a{
      font-size: 14px;
      color: #505050;
      font-family: Roboto;
      vertical-align: top;
    }
  }
  span{
    color: #353535;
    font-size: 14px;
    font-family: RobotoLight;
  }
}

.pager {
  a { color: #505050; }
  a.current {
    color: #9c9c9c;
  }
  font-size: 16px;
  font-family: Roboto;
  li {
    padding: 0 !important;
  }
}

ul.pager {
  padding: 10px;
}

.pager-top {
  position: absolute;
  right: 0;
  top: 3px;
}
.pager-bottom {
  width: 100%;
  text-align: right;

}

h1.feedback_1 {
  display: none;
}

form.feedback_1 {
  position: absolute;
  margin-left: -50px;

  label, textarea, &:after {
    width: 227px;
    position: absolute;
    background: #d5d6ea;
    font-family: Roboto;
    font-size: 14px;
    color: #505050;
    line-height: 25px;
    &:before{
      content: "";
      margin-right: 5px;
    }
  }

  input, textarea{
    .border-radius(0);
    padding: 5px;
    color: #373737;
    font-family: RobotoLight;
    background: #fff;
    border-color: #d5d6ea;
    width: 215px;
    margin: 0;
  }

  label:nth-child(2){
    left: 50px;
    top: 100px;
  }
  label:nth-child(3){
    left: 50px;
  }
  label:nth-child(4){
    left: 335px;
  }
  label:nth-child(5){
    left: 624px;
  }
  label:nth-child(6){
    left: 335px;
    top: 100px;
  }
  input:nth-child(8){
    left: 384px;
    top: 1000px;
    position: absolute;
    color: #1f2955;
    text-decoration: underline;
    font-family: Roboto, sans-serif;
    width: auto;
    border-color: transparent;
    cursor: pointer;
  }
  textarea {
    left: 50px;
    top: 225px;
    line-height: inherit;
    width: 790px;
    height: 700px;

  }
  &:after {
    content: "Ваш вопрос";
    position: absolute;
    display: block;
    left: 50px;
    top: 200px;
    padding-left: 5px;
    width: 222px;
  }
}

.feedback-contact {
  position: absolute;
  top: 1200px;
  overflow: auto;
  width: 420px;
  dt, dd {
    float: left;
    margin-bottom: 15px;
  }
  dt {
    width: 180px;
    font-weight: bold;
  }
  dd {
    width: 230px;
  }
}

div.error {
  margin-left: 50px;
}

.news-year {
  margin-bottom: 1em;
  font-size: 20px;
  a {
    margin-right: 20px;
    &:last-of-type {
      margin-right: 0;
    }
  }
}

.news-month {
  margin-bottom: 4em;
  a {
    margin-right: 15px;
    &:last-of-type {
      margin-right: 0;
    }
  }
}

.news-year, .news-month {
  a {
    line-height: 1.6em;
    color: #132456;
    text-decoration: underline;
  }
}

.soc {
  margin-top: 50px;
  float: right;
  a {
    display: block;
    background: url(/res/icon/soc.png) no-repeat;
    width: 38px;
    height: 38px;
    margin-left: 5px;
    float: right;
    &:hover {
      -webkit-filter: ~'saturate(0) brightness(200%) contrast(100%)';
      filter: ~'saturate(0) brightness(200%) contrast(100%)';
    }
    &:active {
      opacity: .7;
    }
  }
  .vk { background-position: 0 0; }
  .fb { background-position: -46px 0; }
  .tw { background-position: -92px 0; }
}

.contact {
  & > a {
    display: block;
  }
}

.blog {
  & > div {
    span.blog-preview {
      display: block;
      overflow: auto;
      white-space: normal;
      word-break: break-all;
      img {
        float: left;
        margin-right: 20px;
        margin-bottom: 20px;
        width: 30%;
      }
    }
  }
  .more {
    display: inline-block;
    float: right;
    font-weight: bold;
    color: #132456;
    margin-top: 1em;
  }
}

.sub-menu {
  display: none;
  padding: 10px;
  border: 1px solid #dad8e5;
  background-color: rgba(255, 255, 255, .9);
  position: absolute;
  z-index: 999;
  top: 55px;
  width: 200px;
  margin-left: -180px;
  &:hover {
    display: inline-block;
  }
  a {
    display: block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #242424;
    margin-right: 0;
    line-height: 1.3em;
    &:last-of-type {
      margin-bottom: 0;
    }
  }
}

a:hover {
  & + .sub-menu {
    display: inline-block;
  }
}

.read-book {
  div {
    width: auto;
  }
  .book-cover {
    float: left;
    margin-right: 40px;
    width: 195px;
    border: 3px solid #d2cae9;
  }
  .b-right {
    float: right;
    width: 500px;
  }
  .b-title, .b-author {
    font-size: 19px;
    color: #353535;
    margin-bottom: 5px;
  }
  .b-content {
    margin-top: 20px;
  }
}

.book-row {
  div {
    margin-bottom: 0;
    width: auto;
  }
  font-family: Roboto, sans-serif;
  font-size: 14px;
  text-decoration: none;
  color: #353535;
  display: block;
  width: 200px;
  height: 400px;
  float: left;
  margin: 20px 75px 30px 0;
  &:nth-of-type(3n) {
    margin-right: 0;
  }
  .book-cover img {
    width: 100%;
    height: auto;
    max-height: 310px;
    border: 3px solid #d2cae9;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .book-cover {
    height: 310px;
    margin-bottom: 15px;
  }
  .b-author {
    font-weight: bold;
  }
}


.icon-book {
  width: 99px !important;
  height: 99px !important;
  background: url(/res/icon/book.png) no-repeat center center !important;
  position: absolute;
  //margin-left: -99px !important;
  margin-left: 0 !important;
  left: 0;
  margin-top: -60px;
  background-color: #d7d7ec !important;
}

.b-block {
  overflow: auto;
  min-height: 140px;
  width: 902px;
  margin-right: 1px;
  margin-bottom: 30px;
  border-top: 1px solid #e3e3e5;
  .book-cover img {
    border: none;
  }
  .book-row {
    margin-right: 0;
    margin-left: 70px !important;
    margin-top: 0;
  }
  .book-row * {
    margin-left: 0 !important;
  }
}

.book-more {
  display: block;
  float: right;
  clear: both;
  margin-right: 50px;
  text-decoration: underline;
}