* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.clear-fix::after {
  content: '';
  display: block;
  clear: both;
  height: 0px;
  visibility: hidden;
}

html, body {
  min-width: 400px;
}

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: 'Arial', sans-serif;
  /*background-color: #FEE600;*/
  background-image: url("../images/main_bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.chess {
  display: block;
  width: 100%;
  min-height: 62px;
  background-image: url("../images/chess.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 20px;
}

.chess .title h1 {
  background-image: url("../images/title_bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  display: block;
  font-size: 3.3em;
  font-weight: bold;
  margin: 0 auto;
  min-height: 62px;
  text-align: center;
  width: 70%;
  line-height: 56px;
}

.title a {
  color: white;
  text-decoration: none;
}

.phone-wrap {
  background-image: url("../images/phone_bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  display: block;
  font-size: 4em;
  text-align: center;
  min-height: 150px;
  padding-top: 10px;
  font-weight: bold;
}

.text-block {
  background-image: url("../images/text_bg.png");
  border-radius: 5px;
  color: #fff;
  display: block;
  font-size: 1.8em;
  padding: 20px;
  position: relative;
  text-align: center;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  max-width: 100%;
  margin: 5px auto 15px;
  line-height: 135%;
}

.text-block span {
  display: block;
  margin-bottom: 3px;
}

.footer {
  background-image: url("../images/text_bg.png");
  color: #fff;
  padding: 20px 0px;
  text-align: center;
}

@-webkit-keyframes blink6 {
  10% {
    -webkit-transform: scale(1, 1) rotate(80deg);
            transform: scale(1, 1) rotate(80deg);
  }
  20% {
    -webkit-transform: scale(0, 0) rotate(160deg);
            transform: scale(0, 0) rotate(160deg);
  }
  100% {
    -webkit-transform: scale(0, 0) rotate(0deg);
            transform: scale(0, 0) rotate(0deg);
  }
}

@keyframes blink6 {
  10% {
    -webkit-transform: scale(1, 1) rotate(80deg);
            transform: scale(1, 1) rotate(80deg);
  }
  20% {
    -webkit-transform: scale(0, 0) rotate(160deg);
            transform: scale(0, 0) rotate(160deg);
  }
  100% {
    -webkit-transform: scale(0, 0) rotate(0deg);
            transform: scale(0, 0) rotate(0deg);
  }
}

#blink6 {
  position: relative;
  display: inline-block;
  color: #fff;
  text-shadow: 0 0 10px #3d7a97;
  /*background: #064578; */
  margin: 10px auto 0;
}

#blink6:after, #blink6:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(white, rgba(255, 255, 255, 0) 30%), linear-gradient(45deg, rgba(0, 0, 0, 0) 49%, rgba(255, 255, 255, 0.4) 50%, rgba(0, 0, 0, 0) 51%), linear-gradient(135deg, rgba(0, 0, 0, 0) 49%, rgba(255, 255, 255, 0.4) 50%, rgba(0, 0, 0, 0) 51%);
  -webkit-animation: blink6 10s linear infinite;
  animation: blink6 10s linear infinite;
  -webkit-transform: scale(0, 0) rotate(0deg);
          transform: scale(0, 0) rotate(0deg);
}

#blink6:before {
  top: -30%;
  right: 0;
  left: auto;
  -webkit-animation-delay: 5s;
  animation-delay: 5s;
}

.text-wrap {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

@media screen and (max-width: 1050px) {
  .text-block {
    font-size: 1.3em;
  }
  body {
    background-size: auto;
  }
}

@media screen and (max-width: 991px) {
  .chess .title h1 {
    max-width: 100%;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    padding: 0 70px;
  }
}

@media screen and (max-width: 767px) {
  .chess .title h1 {
    padding: 0;
    width: 100%;
  }
}

@media screen and (max-width: 710px) {
  .text-block {
    font-size: 1em;
  }
}

@media screen and (max-width: 560px) {
  .chess .title h1 {
    font-size: 2em;
  }
}

@media screen and (max-width: 410px) {
  .chess .title h1 {
    background: #FCE500;
    height: 125px;
	line-height: 125px;
    font-size: 2.8em;
  }
  .phone-wrap {
    font-size: 3em;
    margin-top: 0;
  }
  .text-wrap {
    margin-top: -15px;
  }
}

.langs {
  color: #fff;
  margin: 0;
  margin-top: 15px;
}

@media screen and (max-width: 1200px) {
  .langs {
    margin: 0;
  }
}

.langs a {
  color: inherit;
  text-decoration: none;
}

.langs a:hover {
  text-decoration: none;
}

.langs a:not(:last-child) {
  border-right: 1px solid #fff;
  padding-right: 5px;
}

.prefooter {
  margin: 0;
}

@media screen and (max-width: 1200px) {
  .prefooter {
    display: none;
  }
}
  @media screen and (min-width: 1200px) {
	  body {
		min-height: 100vh;
	  }
  }