﻿@import 'https://aa.cdn.gmru.net/static/general/fonts/Cambria/font.css';

* {
	margin: 0;
	padding: 0;
	outline: none;
	border: 0;
}

html {
	width: 100%;
	height: 100%;
}

body {
	position: relative;
	width: 100%;
	min-height: 100%;
	min-width: 1000px;
	box-sizing: border-box;
	background-color: #fff;
	color: #723204;
	font: 16px/19px Cambria, Georgia, "Times New Roman", Times, serif;
}

/* --- Header --- */

.header {
  position: absolute;
	left:0;
	right: 0;
	top:0;
	width: 100%;
	max-width: 1920px;
	margin: auto;
	z-index: 4;
}
.header__wrap {
	width: 100%;
  max-width: 1200px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 18px;
  align-items: center;
	box-sizing: border-box;
	margin: auto;
}
.header__link {
  color: #723204;
  text-decoration: none;
	border-bottom: 1px solid #723204;
	background: none;
  display: inline-block;
  margin: 0 20px;
	cursor: pointer;
	font: inherit;
}
.header__link:hover {
	border-color: transparent;
}

/* --- buttons --- */
.button {
  height: 56px;
  width: 266px;
  text-transform: uppercase;
  color: #fff;
  font: 16px/1 Cambria, Georgia, "Times New Roman", Times, serif;
  cursor: pointer;
  border: none;
  background-color: transparent;
  background-image: url("https://aa.cdn.gmru.net/static/aa.mail.ru/promo/up/images/buttons.png");
  outline: none;
}
.button:hover {
  filter: brightness(.8);
}
.button--pink {
  background-position: 0 -208px;
}

/* --- content --- */

main::before,
main::after {
  content: "";
  display: none;
  width: 15px;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 5;
  background: url("https://aa.cdn.gmru.net/static/aa.mail.ru/promo/up/images/decorate-section.png") top repeat-y;
}
main::before {
  left: 50%;
  transform: translateX(-960px);
}
main::after {
  right: 50%;
  transform: rotate(180deg) translateX(-960px);
}
@media (min-width: 1940px) {
	main::before,
	main::after {
		display: block;
	}
}

.gate {
  overflow: hidden;
  min-height: 920px;
	padding: 20px 0 35px;
  background: url("https://aa.cdn.gmru.net/static/aa.mail.ru/promo/up/images/gate-bg-start--prize.jpg") center -90px no-repeat;
	display: flex;
	position: relative;
}
.gate::before {
  content: "";
  display: block;
  width: 15px;
  height: 100vw;
  min-height: 1240px;
  position: absolute;
  bottom: 0;
  right: -15px;
  z-index: 10;
  background: url("https://aa.cdn.gmru.net/static/aa.mail.ru/promo/up/images/decorate-section.png") center repeat-y;
  transform: rotate(-90deg);
  transform-origin: left bottom;
}
.gate__start {
  margin: auto;
  max-width: 470px;
  text-align: center;
  position: relative;
  z-index: 5;
}
.gate__start-title {
  font-weight: normal;
  margin-bottom: 20px;
  font-size: 30px;
}
.gate__start-text p {
	margin-bottom: 10px;
}
.gate__start-button {
  margin: 30px auto 0;
}
.gate__animations {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  max-width: 1920px;
  left: 0;
  right: 0;
  margin: auto;
}
.gate__back-clouds {
  background: url("https://aa.cdn.gmru.net/static/aa.mail.ru/promo/up/images/gate_animations/gate-back-clouds.png") repeat -450px top;
  position: absolute;
  width: 100%;
  height: 620px;
  top: 340px;
  z-index: 1;
  animation: move-clouds 1800s linear infinite;
}
.gate__small-clouds {
  background: url("https://aa.cdn.gmru.net/static/aa.mail.ru/promo/up/images/gate_animations/gate-small-clouds.png") repeat -300px top;
  position: absolute;
  width: 100%;
  height: 428px;
  top: 525px;
  z-index: 4;
  animation: move-clouds 600s linear infinite;
}
.gate__left-island {
  background: url("https://aa.cdn.gmru.net/static/aa.mail.ru/promo/up/images/gate_animations/gate-left-island.png") repeat top center;
  position: absolute;
  width: 164px;
  height: 196px;
  top: 670px;
  left: calc(50% - 960px);
  z-index: 2;
  animation: move-left-island 6s linear alternate infinite;
}
.gate__right-island {
  background: url("https://aa.cdn.gmru.net/static/aa.mail.ru/promo/up/images/gate_animations/gate-right-island.png") repeat top center;
  position: absolute;
  width: 297px;
  height: 196px;
  top: 535px;
  right: calc(50% - 840px);
  z-index: 2;
  animation: move-right-island 10s linear alternate infinite;
}
.gate__front-island {
  background: url("https://aa.cdn.gmru.net/static/aa.mail.ru/promo/up/images/gate_animations/gate-front-island.png") repeat top center;
  position: absolute;
  width: 219px;
  height: 195px;
  top: 800px;
  right: calc(50% + 230px);
  z-index: 7;
  animation: move-front-island 8s linear alternate infinite;
}
.gate__button {
  margin-top: 10px;
}

@keyframes move-clouds {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 10000px 0;
  }
}
@keyframes move-left-island {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-50px);
  }
}
@keyframes move-right-island {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(30px);
  }
}
@keyframes move-front-island {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(20px);
  }
}

/* --- sharing --- */

#socBlockCont {
	position: fixed;
	top: 50%;
	z-index: 6;
  transform: translateY(-50%);
	right:20px;
	width:34px;
}
#socBlockCont a {
	display: block;
	opacity: .8;
  cursor: pointer;
  margin: 0;
}
#socBlockCont a img {
	pointer-events: none;
}
#socBlockCont a:hover {
	opacity: 1;
}

/* --- Footer --- */

.footer {
	background: #fff;
	box-sizing: border-box;
	padding: 15px 0 0;
}
.footer .copyright {
  color: #000;
}
.footer h2 {
	margin-bottom: 35px;
}
.footer .content {
	margin-bottom: 29px;
}
#js_kit_darkness + img,
#js_kit_holder + img {
	position: absolute;
	bottom: 0;
	left: 0;
}