/* ================================
  Flexbox
================================ */
.fancybox-opened .fancybox-skin{
  border-radius: 0px;
}
.reviews-container {
  text-align: center;
  height: 100px;
  margin-bottom: 40px;
}
.reviews-preview-img, .reviews-preview-img-main {
  outline: solid 0px #ddd;
 /* width: 40%;*/
  margin: 10px auto 5px;
 /* height: 140px;*/
  line-height: 100px;
}

.reviews-preview-img img, .reviews-preview-img-main img{
  width: auto !important;
  max-height: 90px !important;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  opacity: 0.5;
  max-width: 220px !important;
  height: auto !important;
}
.reviews-preview-img-main img{
  -webkit-filter: grayscale(40%);
  filter: grayscale(40%) !important;
}
.reviews-preview-img img:hover, .reviews-preview-img-main img:hover{
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
  opacity: 1;
}

.reviews-preview-img a {
  /*left: -10px;*/
  position: relative;
 /* top: -8px;*/
}
.reviews-name {
  font-weight: 600;
  color: #006ed5;
}
.reviews-page{
  padding-top: 30px;
  min-height: 600px;
}

/*.all-reviews{
  cursor: pointer;
  padding: 13px;
  text-align: center;
  -webkit-border-radius: 30px;
  border-radius: 30px;
  font-size: 14px;
  color: #fff;
  background-color: #f77e3d;
  -webkit-box-shadow: 0px 2px 0px 0px #e65100;
  box-shadow: 0px 2px 0px 0px #e65100;
  width: 175px;
  margin: 0 auto;
}*/

.fancybox-image {
  max-width: 100%;
  max-height: 800px !important;
  margin: 0 auto;
}
.fancybox-image, .fancybox-iframe {
  display: block;
  width: auto !important;
  height: 100% !important;
}

.license-list {
  padding: 0 10px;
  margin: 0;
  list-style: none;
  display: box;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: -ms-flex;
  display: flex;
  -webkit-box-pack: space-between;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  -ms-justify-content: space-between;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
}
.license-list .ac-inline {
  width: auto;
  margin: 0 10px;
  display: block;
  position: relative;
  padding-bottom: 10px;
}
.license-list .ac-inline .active:after {
  content: '';
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 20px 20px 20px 0;
  border-color: transparent #f7d7a4 transparent transparent;
  display: inline-block;
  position: absolute;
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
  bottom: -135px;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
}
.license-list .ac-inline > a {
  display: block;
}
.license-list .ac-inline > a img {
  display: block;
  max-width: 100%;
  max-height: 90px;
  height: auto;
  width: auto;
  margin: 0 auto;
  margin-bottom: 10px;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  opacity: 0.5;
}
.license-list .ac-inline > a:hover img {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
  opacity: 1;
}
@media screen and (max-width: 600px) {
  .license-list {
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .license-list .ac-inline {
    margin: 0;
    width: 50%;
  }
  .license-list .ac-inline .active:after {
    display: none;
  }
  .license-list .ac-inline p {
    margin: 0;
  }
  .license-list .ac-inline > a {
    overflow: hidden;
    text-align: left;
    margin-bottom: 5px;
    display: box;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: -ms-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-box-pack: left;
    -webkit-justify-content: left;
    -moz-justify-content: left;
    -ms-justify-content: left;
    justify-content: left;
  }
  .license-list .ac-inline > a .img {
    display: block;
    width: 25px;
    margin-right: 20px;
  }
  .license-list .ac-inline > a .img img {
    max-width: 100%;
    -webkit-flex-grow: 0;
    -moz-flex-grow: 0;
    -ms-flex-grow: 0;
    flex-grow: 0;
    -webkit-flex-shrink: 0;
    -moz-flex-shrink: 0;
    -ms-flex-shrink: 0;
    flex-shrink: 0;
    margin: 0 auto;
    max-height: 25px;
    width: auto;
  }
}
@media screen and (max-width: 400px) {
  .license-list .ac-inline {
    width: 100%;
  }
}
.license-tab {
  display: none;
}
.license-tab .ac-medium-row-company {
  float: none;
  margin: 0;
  padding: 20px 0;
  overflow: hidden;
}
.license-tab.active {
  display: block;
}
@media screen and (max-width: 600px) {
  .license-tab .ac-medium-row-company {
    float: none;
    margin: 0;
    padding: 10px 0;
    overflow: hidden;
  }
}
.container-license h2 {
  padding-left: 10px;
}
.fancybox-image{
  height:auto !important;
}

/* страница 25 лет */
#years-confident{
  padding: 0 10px;
}
#years-confident .years-h3{
  font-family: 'OpenSansLight', sans-serif;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 10px;
  color: #666;
  font-size: 30px;
  font-weight: 500;
}
#years-confident div{
  box-sizing:border-box
}
#years-confident div.blue{
  background-color: #c5def7;
  /*padding: 10px 0 20px;*/
  padding: 40px 0 30px;
}
#years-confident div.yellow{
  background-color: #f7d7a4;
  /*padding: 10px 0 20px;*/
  padding: 40px 0 20px;
}
#years-confident div.normal{
  padding: 10px 0 20px;
}
#years-confident .years-top-half-block{
  display:inline-block;
  float: left;
  width:50%;
  position: relative;
}
#years-confident .years-top-half-block:first-child{
  padding: 50px 30px 50px 0;
  margin-bottom: 20px;
}
#years-confident .years-top-half-block:nth-child(2):before{
   content: '';
   width: 0;
   height: 0;
   border-style: solid;
   border-width: 20px 20px 20px 0;
   border-color: transparent #fff transparent transparent;
   display: inline-block;
   position: absolute;
   -webkit-transform: rotate(180deg);
   -ms-transform: rotate(180deg);
   transform: rotate(180deg);
   top: 0;
   bottom: 0;
   margin: auto;
   z-index: 999;
   vertical-align: middle;
 }
#years-confident .years-top-half-block > .years-h3{
  text-align: left;
  font-size: 30px;
  color: #08376d;
  margin: 0 0 10px;
}
#years-confident .years-top-half-block > p{
  font-size: 14px;
  line-height: 18px;
  text-align: justify;
}
#years-confident .years-top-half-block > img{
  position: relative;
  max-width: 100%;
}

#years-confident .years-top-block {
  padding: 30px 0 0;
}
#years-confident .years-top-block > .years-h3{
  text-align: left;
  font-size: 30px;
  color: #08376d;
  margin: 0 0 20px;
}
#years-confident .years-top-block > p{
  font-size: 14px;
  line-height: 18px;
  text-align: justify;
}
#years-confident .years-top-block .years-big-images{
  margin: 40px 0 20px;
}

#years-confident .years-p{ }
#years-confident .years-p.no-h {
  padding: 20px 0 0 0;
}
#years-confident .years-videos{
  text-align: center;
}
#years-confident .years-videos .years-video{
  margin: 0 auto;
  display: inline-block;
}
#years-confident .years-videos .years-video > iframe{
  max-width: 100%;
}
#years-confident .years-videos .years-video .years-video-p{
  font-weight: 600;
}
#years-confident .years-big-images{
  text-align:center;
}
#years-confident .years-big-images > img{
  max-width: 100%;
}
#years-confident .years-congratulation-wrapper{
}
#years-confident .years-congratulation-wrapper:after{/*весь стиль чтоб блоки по вертикали равнялись по верхней границе*/
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  content: "";
}
#years-confident .years-congratulation-wrapper .years-congratulation{
  display: inline-block;
  box-sizing: border-box;
  text-align: center;
  vertical-align: top; /*чтоб блоки по вертикали равнялись по верхней границе*/
  padding-bottom: 10px;
  height: 300px;
}
#years-confident .years-congratulation-wrapper .years-congratulation > a{
  display: block;
  width: 152px;
  height: 200px;
  overflow: hidden;
  text-align: center;
  line-height: 200px;
  margin: 0 auto 10px;
}
#years-confident .years-congratulation-wrapper .years-congratulation > a > img{
  max-width: 100%;
}
#years-confident .years-congratulation-wrapper .years-congratulation > p{
  max-width: 100%;
}

@media screen and (max-width: 768px) {
  #years-confident .years-top-half-block{
    width:100%;
  }
  #years-confident .years-congratulation-wrapper .years-congratulation > p{
    font-size: 0.8em;
  }
  .hidden-xs-down{
    display: none !important;
  }
}
@media screen and (max-width: 400px) {
  #years-confident .years-congratulation.col-xs-6.col-sm-4.col-md-3{
    width: 100%;
  }
}
