/* `XHTML, HTML4, HTML5 Reset
----------------------------------------------------------------------------------------------------*/

a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
dialog,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
font,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
hr,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
main,
mark,
menu,
meter,
nav,
object,
ol,
output,
p,
pre,
progress,
q,
rp,
rt,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video,
xmp {
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 100%;
}

html,
body {
  height: 100%;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
/*
  Override the default (display: inline) for
  browsers that do not recognize HTML5 tags.

  IE8 (and lower) requires a shiv:
  http://ejohn.org/blog/html5-shiv
*/
  display: block;
}

b,
strong {
/*
  Makes browsers agree.
  IE + Opera = font-weight: bold.
  Gecko + WebKit = font-weight: bolder.
*/
  font-weight: bold;
}

img {
  color: transparent;
  font-size: 0;
  vertical-align: middle;
/*
  For IE.
  http://css-tricks.com/ie-fix-bicubic-scaling-for-images
*/
  -ms-interpolation-mode: bicubic;
}

ol,
ul {
  list-style: none;
}

li {
/*
  For IE6 + IE7:

  "display: list-item" keeps bullets from
  disappearing if hasLayout is triggered.
*/
  display: list-item;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td,
caption {
  font-weight: normal;
  vertical-align: top;
  text-align: left;
}

q {
  quotes: none;
}

q:before,
q:after {
  content: "";
  content: none;
}

sub,
sup,
small {
  font-size: 75%;
}

sub,
sup {
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

svg {
/*
  For IE9. Without, occasionally draws shapes
  outside the boundaries of <svg> rectangle.
*/
  overflow: hidden;
}

.clear {
        clear: both;
}

.social-share {
        margin-top:  50px;
        margin-left: 20px;
        position: fixed;
        z-index: 1000;
        
        &.pie {
                display: block;
        }
}

.cover {
        background-size: cover;
        background-position: center center;
}

.transition(@duration:600ms, @target:all) {
        -webkit-transition: @target @duration ease;
        -moz-transition: @target @duration ease;
        -o-transition: @target @duration ease;
        transition: @target @duration ease;
}

.box-sizing {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
}

.border-radius( @value: 1000px ) {
        -webkit-border-radius: @value;
        border-radius: @value;
    background-clip: padding-box;
}

.box-scale(@value) {
  -webkit-transform: scale(@value);
     -moz-transform: scale(@value);
      -ms-transform: scale(@value); 
       -o-transform: scale(@value);
          transform: scale(@value);
}

.transform-origin( @x, @y ) {
        transform-origin: @x @y;
        -ms-transform-origin: @x @y;
        -moz-transform-origin: @x @y;
        -o-transform-origin: @x @y;
        -webkit-transform-origin: @x @y;
}


.no-select {
        -webkit-user-select: none;
        -moz-user-select: none;
}

@fontRegular:ProximaNova-Regular;
@fontThin:ProximaNovaT-Thin;
@fontExtrabold:ProximaNova-Extrabld;
@textColor:rgb(44,57,212);
@redBg: #FF4C36;


div#page {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 700px;
    min-width: 800px;
    background-size: cover;
    background-color: #FAFAFA;

    &.started {
        height: 100%;
        overflow: hidden;
        .test-page {
            height: 100%;
            overflow: hidden;
            .left-col {
                box-shadow: 5px 0 10px rgba(0,0,0,0.3);
                position: fixed;
                background-color: rgba(255, 255, 255, 0.7); 
            }
            .right-col {
                display: none !important;
            }
        }
        #map-box {
            height: 100%;
        }
        .sity-slider-box {
            display: block;
            .pointCrt {
                text-align: center;
                font-family: 'trivia-grotesk';
                font-size: 23px;
                color: #FF4C36;
                line-height: 27px;
                margin-top: 20px;
                margin-bottom: 20px;
            }
            .fotorama-box {
                width: 600px;
                margin: 0 auto;
                .photo-auth-link {
                    font-family: @fontRegular;
                    font-size: 12px;
                    color: #000;
                    -webkit-transform: rotate(90deg);
                    -moz-transform: rotate(90deg);
                    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
                    -o-transform: rotate(90deg);
                    display: block;
                    vertical-align: text-top;
                    text-indent: 0px;
                    margin-top: 130px;
                    width: 260px;
                    margin-left: -131px;
                    /*background-color: rgba(0,0,0, 0.5);*/
                    padding: 3px 13px;
                    /*text-align: center;*/
                    font-weight: bold;
                }

            }
            .point-title {
                font-size: 30px;
                font-family: 'trivia-grotesk';
                text-align: center;
                width: 480px;
                margin: 0 auto;
                line-height: 36px;
                margin-top: 40px;
                color: #FF4C36;
            }
            .point-text {
                font-size: 14px;
                font-family: 'trivia-grotesk';
                text-align: center;
                width: 490px;
                margin: 0 auto;
                line-height: 16px;
                margin-top: 40px;
            }
            .slider-box-footer {
                position: absolute;
                bottom: 0;
                height: 20px;
                width: 100%;
                background-color: #FC4E3E;
            }
            .arrow-left,
            .arrow-right {
                width: 46px;
                height: 91px;
                position: absolute;
                cursor: pointer;
                top: 530px;
                &:hover {
                    opacity:0.7;
                }
            }
            .arrow-left {
                left: 40px;
                background: url(../images/arrow-left.png);
            }
            .arrow-right {
                right: 40px;
                background: url(../images/arrow-right.png);
            }
        }
        .social-shares {
            position: fixed;
            margin-top: 0px;
            bottom: 20px;
        }
    }
}



.test-page {
  	height: auto;
  	padding-top: 0px;
    padding-bottom: 0px;
    position: relative;
    overflow: hidden;
    .left-col {
        .left-menu {
            position: absolute;
        }
    }
    .right-col {
        padding-bottom: 0px;
        &.voronej {
            .header {
                .flag {
                    width: 190px;
                    height: 126px;
                    background-size: cover;
                    background-image: url(../images/flags/voronej.png);
                    float: left;
                }
            }
        }
        &.kaliningrad {
            .header {
                .flag {
                    width: 190px;
                    height: 126px;
                    background-size: cover;
                    background-image: url(../images/flags/kaliningrad.jpg);
                    float: left;
                }
            }
        }
        &.saratov {
            .header {
                .flag {
                    width: 190px;
                    height: 126px;
                    background-size: cover;
                    background-image: url(../images/flags/saratov.jpg);
                    float: left;
                }
            }
        }
        &.habarovsk {
            .header {
                .flag {
                    width: 190px;
                    height: 126px;
                    background-size: cover;
                    background-image: url(../images/flags/habarovsk.jpg); 
                    float: left;
                }
            }
        }
        .header {
            display: block;
            background-color: @redBg;
            height: 126px;
            &#city1 {
                .flag {
                    width: 190px;
                    height: 126px;
                    background-size: cover;
                    background-image: url(../images/flags/kaliningrad.jpg);
                    float: left;
                }
            }
            
            .title {
                width: 340px;
                float: left;
                margin-top: 15px;
                padding-left: 25px;
                margin-right: 160px;
                .box-sizing;
                b {
                    font-family: 'oukwat-regular';
                    font-size: 26px;
                    line-height: 31px;
                    color: #fff;
                    display: block;
                }
                span {
                    font-family: 'trivia-grotesk';
                    color:#fff;
                    display: block;
                    font-size: 26px;
                    line-height: 31px;

                }
            }
            .auth {
                font-size: 12px;
                color: #000;
                font-family: 'trivia-grotesk';
                line-height: 14px;
                float: left;
                margin-top: 20px;
                a {
                    color: #fff;
                    text-decoration: underline;
                }
            }
        }
        .text-box {
            width: 560px;
            height: auto;
            margin:  0 auto;
            color: #000;
            /*left: -133px;*/
            position: relative;
            p {
                font-size: 14px;
                line-height: 20px;    
                font-family: 'trivia-grotesk';
            }
            h4 {
                font-size: 40px;
                line-height: 47px;
                font-family: 'oukwat-regular';
            }
            .left-text {
                width: 254px;
                float: left;
                margin-right: 25px;
            }
            .right-text {
                float: left;
                width: 281px;
                padding-left: 25px;
                border-left: solid 1px #FF4C36;
                .box-sizing;
            }
            
            .list {
                width: 390px;
                margin-left: 170px;
                .list-item {
                    margin-top: 10px;
                    b {
                        display: block;
                        font-family: 'oukwat-regular';
                        font-size: 30px;
                        line-height: 36px;
                    }
                }
            }
            .img1 {
                position: absolute;
                left: -190px;
                top: 20px;
                z-index: -1;
            }
            b {
                font-family: 'oukwat-regular';
            }
            
        }
    }
    .go-map-btn-wrapper {
        position: relative;
        width: 100%;
        height: 67px;
        background-color: #FF4127;
        z-index: 30;
        text-align: center;

        .go-map-btn {
            color: #fff;
            font-family: 'oukwat-regular';
            font-size: 28px;
            line-height: 67px;  
            cursor: pointer;
            &:hover {
                opacity:0.9;
            }  
        }
    }
    .sity-slider-box {
        display: none;
        height: 100%;
        width: 750px;
        position: absolute;
        right: 0;
        background-color: rgba(255, 255, 255, 0.7);
        box-shadow: -5px 0 10px rgba(0,0,0,0.3);
        .siti-slider-box-fix {
            position: fixed;
            height: 100%;
            width: 750px;
        }
    }
}



#map-box {
    width: 100%;
    height: 1815px;
    position: absolute !important;
    top: 0;
    left: 0;
}


.left-col {
    height: 100%;
    position: absolute;
    width: 133px;
    left: 0;
    top: 0;
    z-index: 20;
    .left-menu {
        position: fixed;
        width: 133px;
        left: 0;
        top: 0;
        .logo-box {
            height: 90px;
            background-color: #FF4C36;
            background-image: url(../images/logo.png);
            background-size: 133px 90px;
        }
        .city-list {
            background-color: #FF4C36;
            .item {
                display: block;
                height: 36px;
                box-sizing:border-box;
                border-top: solid 1px #fff;
                font-family: 'trivia-grotesk';
                font-size: 12px;
                line-height: 35px;
                padding-left: 10px;
                display: block;
                color: #fff;
                cursor: pointer;
                &.active {
                    box-shadow: inset 5px 0 0px gold;
                }
            }
        }
        .social-shares {
            position: absolute;
            margin-top: 120px;
            margin-left: 20px;
        }
    }
}
.right-col {
    width: 100%;
    height: auto;
    min-height: 700px;
    background-color: rgba(255,255,255, 0.7);
    position: relative;
    left:0;
    top: 0;
    padding-left: 133px;
    z-index: 10;
    .box-sizing;
}



/* SOCIAL BUTTON STYLE */

.social {

  width: 300px;
  height: 35px;
  margin: 0 auto;
  margin-top: 40px;
}
.social span {
  width: 140px;
  height: 35px;
  float: left;
}
.social span.vk {
  background: url(../images/socialButtons.png) -150px 0 ;
  &:hover {
    background-position: -150px -40px;
  }
}

.social span.tw {
  float: right;
  background: url(../images/socialButtons.png) -300px 0;
  &:hover {
    background-position: -300px -40px;  
  }
}

.social-btn {
  cursor: pointer;
}

.comm {
        width: 920px;
        margin: 0 auto;
        margin-top: 20px;
        
        @active_color: #ffca24;

        .most-read {
                color: #000000!important;
        
                a {
                        color: #000000!important;
                }
                margin-bottom: 30px;
        
                .container {
                        width: 920px!important;
                        margin: 0 auto;
                
                        .label {
                                padding: 30px 0px;
                                font-family: PTSansPro-Caption;
                                font-size: 19px;
                        }
                
                        .item {
                                width: 200px;
                                float: left;
                                margin-left: 40px;
                        
                                .image {
                                        display: block;
                                        width: 200px;
                                        height: 200px;
                                        background-size: cover;
                                        background-position: 50% 50%;
                                }
                                
                                .title {
                                        display: block;
                                        padding: 10px 0px;
                                        font-family: PTSerif-Regular;
                                        font-size: 18px;
                                        line-height: 20px;
                                        color: #000000;
                                        text-decoration: none;
                                }
                                
                                .lead {
                                        font-family: PTSansPro-Caption;
                                        font-size: 12px;
                                        line-height: 13px;
                                }
                                
                                &:nth-child(2) {
                                        margin: 0px;
                                }
                                
                                &:hover {
                                        .title {
                                                color: @active_color;
                                        }
                                }
                        }
                }
        }
        
        .same-read {
                color: #000000!important;
        
                a {
                        color: #000000!important;
                }
                margin-bottom: 30px;
                
                .container {
                        width: 920px;
                        margin: 0 auto;
                        
                        .label {
                                padding: 30px 0px;
                                font-family: PTSansPro-Caption;
                                font-size: 19px;
                        }
                        
                        .item {
                                width: 300px;
                                height: 100px;
                                margin-bottom: 30px;
                                float: left;
                                
                                .image {
                                        display: block;
                                        width: 100px;
                                        height: 100px;
                                        float: left;
                                        background-size: cover;
                                        background-position: 50% 50%;
                                        .transition;
                                }
                                
                                .info {
                                        float: left;
                                        width: 170px;
                                        padding: 0px 15px;
                                        
                                        .rubrics {
                                                margin-bottom: 15px;
                                                
                                                 a {
                                                        color: #000000;
                                                        text-decoration: none;
                                                        font-family: MonoCondensed-Bold;
                                                        font-size: 11px;
                                                        line-height: 13px;
                                                        
                                                        &:hover {
                                                                color: @active_color;
                                                        }
                                                 }
                                        }
                                        
                                        .title {
                                                margin-bottom: 20px;
                                                display: block;
                                                font-family: PTSerif-Regular;
                                                font-size: 20px;
                                                line-height: 21px;
                                                color: #000000;
                                                text-decoration: none;
                                                
                                                &:hover {
                                                        color: @active_color;
                                                }
                                        }
                                }
                                
                                &:hover {
                                        .title {
                                                color: @active_color;
                                        }
                                }
                        }
                }
        }
}


@red: #c1000f;
@green: #00b739;
@blue: #0620f4;

.visual-data {
  width: 800px;
  margin: 0 auto;
  position: relative;
  /*display: none;*/

  .place-container {
    
    .place {
      position: relative;
      height: 150px;
    
      .bar {
        @height: 50px;
      
        position: relative;
        height: @height;
        background-color: @blue;
        overflow: hidden;
      
        .runner {
          width: 0px;
          height: 100%;
          position: relative;
          background-color: #000000;
          .transition;
        
          .you {
            position: absolute;
            height: @height;
            top: 0;
            line-height: @height;
            left: 100%;
            width: 100px;
            margin-left: 0px;
            color: @blue;
            font-size: 24px;
          }
        }
        
        .worse-percent {
          position: absolute;
          line-height: @height;
          height: @height;
          width: 100px;
          top: 0px;
          left: 0px;
          color: #ffffff;
          font-size: 34px;
          padding-left: 20px;
        }
        
        .better-percent {
          position: absolute;
          line-height: @height;
          height: @height;
          width: 100px;
          top: 0px;
          left: 100%;
          margin-left: -100px;
          color: #ffffff;
          font-size: 34px;
        }
      }
      
      .worse-count {
        position: absolute;
        width: 200px;
        top: 70px;
        left: 0px;
        text-align: left;
        font-family: ProximaNova-Extrabld;
        font-size: 16px;
        line-height: 20px;
      }
      
      .better-count {
        position: absolute;
        width: 200px;
        top: 70px;
        left: 100%;
        margin-left: -200px;
        text-align: right;
        font-family: ProximaNova-Extrabld;
        font-size: 16px;
        line-height: 20px;
      }
    }
  }
  
  .distribution-container {
    position: relative;
    
    .text-two {
      font-size: 28px;
      line-height: 30px;
      margin-bottom: 15px;
      text-align: left;
      font-family: @fontRegular;
    }
  
    .distribution {
      @height: 250px;
    
      width: 100%;
      padding-bottom: 30px;
      position: relative;
      height: @height + 50px;
      
      .field {
        height: @height;
        position: relative;
        background-color: #ffffff;
      }
      
      .bars {
        position: relative;
        text-align: center;
        height: @height;
        top: -@height;
        cursor: pointer;
      
        .bar {
          position: relative;
          background-color: #000000;
          display: inline-block;
          margin-right: 15px;
          opacity: 0.8;
          
          &:last-of-type {
            margin-right: 0px;
          }
          
          .value {
            width: 100%;
            position: absolute;
            height: 22px;
            top: -22px;
            font-size: 18px;
            text-align: center;
          }
          
          .number {
            font-size: 18px;
            position: absolute;
            width: 100%;
            height: 22px;
            top: 100%;
            text-align: center;
          }
          
          .hint {
            overflow: hidden;
            padding: 0px;
            background-color: #050505;
            color: #fff;
            font-family: @fontRegular;
            font-size: 14px;
            line-height: 20px;
            width: 130px;
            position: absolute;
            top: 0px;
            left: 0px;
            padding: 10px;
            display: none;
            z-index: 100;
          }
          
          &:hover {
            opacity: 1;
          
            .hint {
              display: block;
            }
          }
        }
      }
    }
  }
}

@media (max-width: 760px) {
        .social-shares {
            display: none;
        }
        html, body {
            width: 100%;
            max-width: 100%;
        }
        .social-share.pie {
            display: none;
            margin: 0;
        }
        div#page {
            width: 100%;
            min-width: 100%;
            .cont {
                width: 87.5%;
                margin-left: 6.25%;
                margin-right: 6.25%;
            }
            .test-start-page {
                width: 100%;
                overflow: hidden;
                height: auto;
                .kamaz {
                    opacity: 0.2;
                    background-size: contain;
                    background-repeat: no-repeat;
                    right: -70px;
                    top: -75px;
                    width: 255px;
                    left: auto;
                }
                .samovar {
                    opacity: 0.2;
                    width: 210px;
                    left: -25%;
                    background-size: contain;
                    background-repeat: no-repeat;
                }
                .kigi {
                    opacity: 0.2;
                    background-size: contain;
                    background-repeat: no-repeat;
                    right: -102px;
                    /* top: -75px; */
                    width: 255px;
                    left: auto;
                    top: 464px;
                }
                header {
                    .title {
                        width: 100%;
                        font-size: 35px;
                        line-height: 40px;
                    }
                    .descript {
                        width: 100%;
                        font-size: 18px;
                        line-height: 23px;
                        margin-top: 10px;
                    }
                    .head-text {
                        width: 100%;
                    }
                    .start-btn {
                        width: 200px;
                        margin: 0 auto;
                    }
                }
            }
            .test-action-page {
                width: 100%;
                .sequence {
                    width: 100%;
                    max-width: 320px;
                    height: 150px;
                    .frame {
                        width: 100%;
                        background-repeat: no-repeat;
                        background-size: contain;
                    }
                }
                .question-box {
                    width: 100%;
                    position: relative;
                    .crt {
                        font-size: 12px;
                        line-height: 12px;
                        top: -18px;
                    }
                    .question-text {
                        padding-bottom: 30px;
                        font-size: 17px;
                        line-height: 22px;
                        width: 100%;
                        word-wrap: break-word;
                    }
                    .answer-to-the-question {
                        top: 120px;
                    }
                }
            }
            .test-finish-page {
                width: 100%;
                .result-title {
                    width: 100%;
                    font-size: 40px;
                    line-height: 50px;
                }
                .result-text {
                    width: 100%;
                }
                .social {
                    width: 100%;
                    padding-left: 0;
                    padding-right: 0;
                    text-align: center;
                    span {
                        display: inline-block;
                        width: 130px;
                        background-size: contain;
                        float: none !important;
                        background-size: 420px;
                    }
                }
            }
            .footer {
                .comm {
                    width: 100%;
                    .most-read {
                        display: none;
                    }
                    .block-comments {
                        display: none;
                    }
                }
            }
        }
        
    }


