@font-face {
	font-family: 'Roboto';
	src: url('Roboto/Roboto-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}
:root {
	--primary: #0D5F6E;
	--secondary: #2FC0DB;
	--atention: #E02020;
	--container-padding: 4.2rem;
}
* { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 10px;
	background-color: white;
	color: black;
}
body {
	margin: 0;
	padding: 0;
	font-size: 1.6rem;
	font-weight: 400;
	display: flex;
	flex-flow: column nowrap;
	min-height: calc(var(--vh, 1vh) * 100);
}

body.popup-lock {
	overflow: hidden;
}

body > h1 {
	display: block;
	margin: 6.4rem 0 4rem;
	padding: 0;
	overflow: hidden;
	text-indent: -10000%;
	color: rgba(0,0,0,0);
	background: url('./img/logo.svg') center no-repeat;
	background-size: 20rem 8rem; 
	width: 100%;
	min-width: 20rem;
	height: 8rem;
}
main {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	margin: 0 4rem;
	flex-grow: 2;
}
#cookies {
	position: fixed;
	bottom: 0;
	width: 100%;
	display: flex;
	flex-flow: row nowrap;
	align-items: baseline;
	justify-content: space-between;
	margin: 0;
	padding: 3rem 4rem;
	font-size: 1.2rem;
	line-height: 1.6rem;
	
	background: rgba(47,192,219,0.75);
	box-shadow: inset 0 0.5px rgba(0,0,0,0.15);
	backdrop-filter: blur(1rem);
	-webkit-backdrop-filter: blur(1rem);
}
#cookies.hide, section.hide, div.hide {
	display: none;
}
#cookies p {
	margin: 0;
	padding: 0;
}
#cookies a, .popup.tos .popup_footer a{
	font-size: 1.2rem;
	line-height: 1.6rem;
	background-color: var(--primary);
	border: none;
	outline: 0;
	appearance: none;
    -moz-appearance: none;
	-webkit-appearance: none;
	border-radius: 0.3rem;
	color: white;
	margin: 0 0 0 4rem;
	padding: 0.8rem 1.6rem;
	text-decoration: none;
}
@media (max-width: 500px) {
	#cookies {
		flex-direction: column;
		align-items: center;
	}
	#cookies a {
		margin: 1.6rem 0 0 0;
	}
}
section {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	width: 100%;
}
.back {
	cursor: pointer;
}
.step {
	font-size: 1.4rem;
	line-height: 1.6rem;
	padding: 0;
	margin: 0;
	color: #757575;
}
h2 {
	font-size: 1.6rem;
	line-height: 1.6rem;
	padding: 0;
	margin: 1.6rem 0 0;
	font-weight: 400;
}
h2 + nav {
	margin-top: 7.2rem !important;
}
.back {
	font-size: 1.6rem;
	line-height: 1.6rem;
	color: var(--primary);
	text-decoration: underline;
	margin: 1.6rem 0 0;
}
nav,
form {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	width: 100%;
	max-width: 63.2rem;
	margin: 4rem 0 0 0;	
}
nav > *,
form > * {
	width: calc(50% - 1.6rem);
	margin-bottom: 3.2rem;
}
form > * {
	margin-bottom: 1.6rem;
}
nav > a {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	border: 1px solid var(--primary);
	color: white;
	border-radius: 0.5rem;
	padding: 2.1rem 1.6rem 2.1rem 1.6rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
	background-color: var(--primary);
	text-decoration: none;
}
nav > a > img {
	display: block;
	left: 1.6rem;
	top: 0.8rem;
	width: 4.8rem;
	height: 4.8rem;
	/* https://codepen.io/sosuke/pen/Pjoqqp */
	filter: invert(83%) sepia(100%) saturate(7%) hue-rotate(164deg) brightness(105%) contrast(100%);
	margin: -1.3rem 1.6rem -1.3rem 0;
}
#address,
#tos {
	width: 100%;
}
@media (hover: hover) and (pointer: fine) {
	nav > a {
		background-color: white;
		color: var(--primary);
		text-decoration: none;
	}
	nav > a > img {
		filter: invert(31%) sepia(18%) saturate(1699%) hue-rotate(142deg) brightness(95%) contrast(100%);
	}
	nav > a:hover {
		background-color: var(--primary);
		color: white;
	}
	nav > a:hover > img {
		/* https://codepen.io/sosuke/pen/Pjoqqp */
		filter: invert(83%) sepia(100%) saturate(7%) hue-rotate(164deg) brightness(105%) contrast(100%);
	}
}
@media (max-width: 500px) {
	nav > *,
	form > * {
		width: 100%;
		margin-bottom: 1.6rem;
	}
}
.field label {
	display: block;
	color: var(--secondary);
	font-size: 1.2rem;
	line-height: 1.2rem;
}
.field .error {
	display: none;
	color: var(--atention);
	font-size: 1rem;
	line-height: 1.2rem;
}
.field input,
.field select {
	padding: 0.8rem;
	margin: 0.1rem 0;
	height: 3.8rem;
	border: 1px solid var(--primary);
	font-family: inherit;
	font-weight: 400;
	font-size: 1.8rem;
	line-height: 2.2rem;
	border-radius: 0.5rem;
	outline: none;
	width: 100%;
}
.field select {
	background-color: white;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTQgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aW5wdXQveC9kcm9wZG93bjwvdGl0bGU+CiAgICA8ZyBpZD0iaW5wdXQveC9kcm9wZG93biIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTcuNDg1ODc1NjMsMC44MzI5Mjk2NTQgTDEzLjUwNjU0MjMsMTEuMTU0MDcyNSBDMTMuNjYzMDc1LDExLjQyMjQxNDIgMTMuNTcyNDM1OCwxMS43NjY4NDMgMTMuMzA0MDk0MSwxMS45MjMzNzU2IEMxMy4yMTgwNjc2LDExLjk3MzU1NzggMTMuMTIwMjU5OSwxMiAxMy4wMjA2NjY3LDEyIEwwLjk3OTMzMzMxMiwxMiBDMC42Njg2NzMxNCwxMiAwLjQxNjgzMzMxMiwxMS43NDgxNjAyIDAuNDE2ODMzMzEyLDExLjQzNzUgQzAuNDE2ODMzMzEyLDExLjMzNzkwNjggMC40NDMyNzU1MzYsMTEuMjQwMDk5MSAwLjQ5MzQ1NzY4LDExLjE1NDA3MjUgTDYuNTE0MTI0MzcsMC44MzI5Mjk2NTQgQzYuNjcwNjU3MDMsMC41NjQ1ODc5NTMgNy4wMTUwODU3NSwwLjQ3Mzk0ODgxNSA3LjI4MzQyNzQ1LDAuNjMwNDgxNDc1IEM3LjM2NzI0MiwwLjY3OTM3MzI5MiA3LjQzNjk4MzgxLDAuNzQ5MTE1MTEgNy40ODU4NzU2MywwLjgzMjkyOTY1NCBaIiBpZD0iVHJpYW5nbGUiIGZpbGw9IiMwRDVGNkUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDcuMDAwMDAwLCA2LjAwMDAwMCkgc2NhbGUoMSwgLTEpIHRyYW5zbGF0ZSgtNy4wMDAwMDAsIC02LjAwMDAwMCkgIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg=='); 
	background-repeat: no-repeat, repeat;
	background-position: right 0.8rem center, 0 0;
	background-size: 1.1rem 0.8rem;
	padding-right: 2.7rem;
}
.field input:focus,
.field select:focus {
	box-shadow: 0 0 0 1px var(--primary);
}
.field input[type='checkbox'],
.field label[for] {
	display: inline;
	color: var(--primary);
	width: initial;
	height: initial;
}
.field label a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dashed;
}
.field.error .error {
	display: block;
}
.field.error input {
	border-color: var(--atention);
}
.field.error input:focus {
	box-shadow: 0 0 0 1px var(--atention);
}

.field.error input[type='checkbox'], .field.error input[type='checkbox']+label, .field.error input[type='checkbox']+label a {
	color: var(--atention);
}

#tos {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
}
input[type='checkbox'] {
	position: absolute;
	z-index: -1;
	opacity: 0;
}
input[type='checkbox']+label {
	display: inline-flex;
	align-items: center;
	user-select: none;
	font-size: 1.8rem;
	line-height: 2.2rem;
}
input[type='checkbox']+label::before {
	content: '';
	display: inline-block;
	width: 1.6rem;
	height: 1.6rem;
	flex-shrink: 0;
	flex-grow: 0;
	border: 1px solid var(--primary);
	border-radius: 0.3rem;
	margin-right: 0.5rem;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 1rem 1.2rem;
}
input[type='checkbox']:checked+label::before {
	background-color: var(--primary);
	background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTBweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTAgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y2hlY2s8L3RpdGxlPgogICAgPGcgaWQ9IlN5bWJvbHMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJpbnB1dC94L2NoZWNrYm94L2NoZWNrZWQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zLjAwMDAwMCwgLTIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJjaGVjayIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMy4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTAiIGhlaWdodD0iMTIiPjwvcmVjdD4KICAgICAgICAgICAgICAgIDxwb2x5bGluZSBpZD0iTGluZS1Db3B5IiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHBvaW50cz0iOSAyIDQgMTAgMSA1LjIiPjwvcG9seWxpbmU+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==');
}
input[type='submit'] {
	display: block;
	width: 100%;
	max-width: 30rem;
	margin: 4rem auto;
	font-size: 1.8rem;
	font-family: inherit;
	background-color: var(--primary);
	color: white;
	padding: 1.4rem 1.6rem;
	border: 1px solid var(--primary);
	font-weight: 400;
	border-radius: 0.5rem;
	outline: none;
	cursor: pointer;
}

input[type='submit'][disabled='disabled']{
	opacity: 0.5;
}

.field.wide{
	width: 100%;
}

.field .checkboxes{
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}

.field .checkboxes > div{
	width: calc(50% - 1.6rem);
    padding-top: 0.5rem;
}

@media (max-width: 500px) {
	.field .checkboxes > div{
		width: 100%;
	}
}

.field .wrapper{
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
}

.field .wrapper label{
  width: 50%;
}
.field .wrapper a{
  color: var(--secondary);
  font-size: 1.2rem;
  line-height: 1.2rem;
}

a.js__to_s1{
	display: block;
    width: 100%;
    max-width: 30rem;
    margin: 4rem auto;
    font-size: 1.8rem;
    font-family: inherit;
    background-color: var(--primary);
    color: white;
    padding: 1.4rem 1.6rem;
    border: 1px solid var(--primary);
    font-weight: 400;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
    outline: none;
}

.text_content{
	width: 100%;
	max-width: 40rem;
	margin: auto;
	margin-bottom: 2rem;
}

.text_content p{
	margin-bottom:0;
	text-align: center;
}

/* tos */
.popup.tos{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
	background-color: rgba(0,0,0,0.2);
	padding: 3rem 0;
}

.popup.tos .window{
	width: 100%;
    max-width: 98rem;
    min-height: 10.4rem;
    max-height: calc(100% - 6rem);
	margin:auto;
	background-color: #ffffff;
	border-radius: 1rem;
}

.popup.tos .window > div{
	padding: 3rem 4rem;
}

.popup.tos .popup_header{
	border-bottom: 1px solid grey;
}

.popup.tos .popup_header h2{
	font-size: 1.8rem;
}

.popup.tos .popup_body{
	overflow-y: scroll;
	max-height: calc(100% - 93px - 76px);
}

.popup.tos .popup_footer{
    font-size: 1.2rem;
    line-height: 1.6rem;
    background: rgba(47,192,219,0.75);
    box-shadow: inset 0 0.5px rgb(0 0 0 / 15%);
    text-align: center;
	border-radius: 0 0 1rem 1rem;
}

.popup.tos .popup_footer a{
	margin: 0;
}

@media (max-width: 500px) {
	.popup.tos {
		padding: 0;
	}
	.popup.tos .window{
		border-radius: 0;
		max-height: 100%;
		height:100%;
	}
	.popup.tos .popup_footer{
		border-radius: 0;
	}
}

/* tos end */

p.suggest, p.suggest a{
	font-size: 12px;
	color: #000000;
	text-align: center;
	margin-bottom: 4rem;
}

.provider_error{
	padding: 2rem 0;
	width: 100%;
}

.provider_error center{
	color: var(--atention);
}

/* loading indicator */
.lds-ring {
    display: block;
    position: absolute;
    width: 80px;
    height: 80px;
    top: calc(50% - 40px);
    left: calc(50% - 40px);
    z-index: 1001;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid var(--primary);
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--primary) transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* loading indicator end */

/* social links */

#links .row{
	display: flex;
	flex-flow: row nowrap;
	margin-top: 1rem;
	margin-bottom: 2rem;
}

#links img{
	max-width: 31.6rem;
	margin: auto;
}

.soc_link{
	display: flex;
	width: 60px;
	height: 39px;
	margin: 0 1rem;
	.img{
		width: 60px;
		height: 39px;
		background-size: auto 100%;
		background-position: center;
		background-repeat: no-repeat;
	}
}

.soc_link.vk .img{
	background-image: url(./img/vk1.png);
}

.soc_link.tg .img{
	background-image: url(./img/tg1.png);
}

.soc_link.vk:hover .img{
	background-image: url(./img/vk0.png);
}

.soc_link.tg:hover .img{
	background-image: url(./img/tg0.png);
}

#promo_img.hide, .soc_link.hide{
	display:none;
}

/* social links end*/