/*  RESET */
html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  height: 100%;
}
*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
  -moz-box-sizing: inherit;
}
* {
  max-height: 1000000px;
  outline: none;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-weight: 400;
  margin: 0;
}
button {
  cursor: pointer;
}
img {
  vertical-align: top;
  max-width: 100%;
  height: auto;
  border-style: none;
}
a {
  /* display: inline-block; */
  text-decoration: none;
  outline: none;
  color: inherit;
}

a[href^="tel"] {
  pointer-events: none;
  color: inherit;
  text-decoration: inherit;
}
/* Reset end */

body {
  -ms-text-size-adjust: none;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  margin: 0;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  background-image: radial-gradient(circle, #ffffff, #ffffff, #ffffff, #ffffff, #ffec9f);
  min-width: 320px;
  overflow-x: hidden;
  height: 100%;
  direction: ltr;
}

a[href^="tel"] {
  pointer-events: none;
  color: inherit;
  text-decoration: inherit;
}

/* **** START **** */
.page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.wrapper {
  margin: auto;
  width: 100%;
}
.content,
.box {
  display: block;
  text-align: center;
  padding: 1vh 0;
  margin: 0 auto;

}
.content{
  max-height: 38vh;
}
.box {
  max-height: 24vh;
  transform: translateX(6%);
}
.title {
  font-size: 25px;
  text-align: center;
  line-height: 1.2;
  margin: 1vh auto;
  width: 90%;
}
.title2 {
  font-size: 17px;
  text-align: center;
  line-height: 1.2;
  margin: 1vh auto;
  width: 90%;
}
/* btn start */
.btn-wrap {
  display: block;
  text-align: center;
  margin: 15px auto;
  margin: 2.5vh auto;
}
.btn {
  background: red;

  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 5px;

  width: 90vmin;
  max-width: 490px;

  color: #fff;
  font-weight: 600;
  font-size: 35px;
  line-height: 1;
  letter-spacing: 0.02em;

  border: 0;
  box-shadow: 0px 2px 4px 0px #a7a7a7;
}
/* btn end */

/* FOOTER */
.footer {
  width: 100%;
  margin-top: 10px;
}
.footer__text {
  font-size: 11px;
  padding: 0 10px;
  line-height: 1;
  text-align: center;
  color: #7d7d7d;
}

.footer__link {
  color: #7d7d7d;
  text-decoration: none;
  display: block;
  text-align: center;
  font-size: 11px;
  /* line-height: 1; */
  font-weight: bold;
  padding-bottom: 5px;
}
/* FOOTER END*/
/***MESSAGE****/
.message {
	position: fixed;
	z-index: 20;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: none;
	/* display: flex;*/
	justify-content: center;
	align-items: center;
	background: #000;
	/* backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px); */
	/* Для Safari и Chrome */
  }
  
  .message__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 400px;
	padding: 30px;
	background-color: #fff;
	border-radius: 24px;
	color: #000;
	border: none;
	border-radius: 15px;
	will-change: transform;
	animation-name: fadeInDown;
	animation-duration: 0.8s;
	animation-delay: 0.4s;
	animation-fill-mode: both;
  }

  .message__title {
	margin-bottom: 15px;
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	color: #000;
  }
  
  .message__text {
	margin: 0;
	font-family: Arial;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
	color: #000;
	font-size: 20px;
  }
  
  /* .message__text--mode {
	margin-bottom: 0;
	width: 220px; 
	padding-bottom: 0;
  } */
  
  .message__btn {
	width: 100%;
	margin: 0;
  }
  
  .message__close {
	position: absolute;
	top: 7px;
	right: 7px;
	width: 24px;
	height: 24px;
	font-size: 0;
	color: rgba(0, 0, 0, 0);
  }
  
  .message__close::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	background-color: #1E1E1E;
	transform: translateX(-50%) rotate(-45deg);
  }
  
  .message__close::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	background-color: #1E1E1E;
	transform: translateX(-50%) rotate(45deg);
  }
  
  .message__close:hover.message__close::before,
  .message__close:hover.message__close::after {
	background-color: #056add;
  }
  
  @keyframes fadeInDown {
	from {
	  opacity: 0;
	  transform: translate3d(0, -100%, 0);
	}
  
	to {
	  opacity: 1;
	  transform: translate3d(0, 0, 0);
	}
  }
  
  .message--show {
	display: flex;
  }

/* MEDIA */

@media screen and (min-width: 1025px) and (max-height: 900px) {
  /*desktop - разные НЕ fullHD (не 1920*1080)*/
  /*с масштабом >100%*/
  .content {
    max-height: 40vh;
  }
  .box {
    max-height: 22vh;
  }
}

@media screen and (min-width: 1025px) and (max-height: 850px) {
  /*desktop - разные НЕ fullHD (не 1920*1080)*/
  /*с масштабом >100%*/
  .content {
    max-height: 38vh;
  }
  .box {
    max-height: 20vh;
  }
}

@media screen and (min-width: 1025px) and (max-height: 700px) {
  /*desktop - разные НЕ fullHD */
  .content {
    max-height: 34vh;
  }
  .box {
    max-height: 16vh;
  }
}

@media screen and (max-width: 1024px) and (max-height: 1366px) {
  /*tab - vert*/
  .content {
    max-height: 36vh;
  }
  .box {
    max-height: 18vh;
  }
}

@media screen and (orientation: landscape) and (max-width: 1024px) and (max-height: 800px) {
  /*tab - horizontal*/
  .content {
    max-height: 34vh;
  }
  .box {
    max-height: 16vh;
  }
  .title {
    font-size: 22px;
  }
  .title2 {
    font-size: 14px;
  }
  .btn {
    padding: 15px 5px;
  }
}



/* mobile landscape */
@media (orientation: landscape) and (max-width: 920px) and (max-height: 500px) {
  .content {
    max-height: 150px;
  }
  .box {
    max-width: 40%;
    max-height: 25vh;
  }
  .title {
    font-size: 17px;
    margin-bottom: 10px;
  }
  .title2 {
    font-size: 14px;
  }
  .btn {
    font-size: 23px;
    padding: 13px 5px;
  }

  .message__content {
		width: 292px;
  }

  .message__title {
    margin-bottom: 12px;
    font-size: 22px;
  } 

  .message__text {
    font-size: 16px;
  }
  @media (max-height: 415px) {
    .content {
      max-height: 140px;
    }
  }
  @media (max-height: 375px) {
    .content {
      max-height: 110px;
    }
    .box {
      max-width: 40%;
      max-height: 20vh;
    }
  }
  @media (max-height: 350px) {
    .content {
      max-height: 100px;
    }
    .box {
      max-width: 40%;
      max-height: 16vh;
    }
    .title {
      font-size: 16px;
      margin-bottom: 10px;
    }
    .title2 {
      font-size: 12px;
    }
  }
  @media (max-height: 325px) {
    .content {
      max-height: 90px;
    }
    .box {
      max-width: 40%;
      max-height: 14vh;
    }
    .title {
      font-size: 14px;
    }
    .title2 {
      font-size: 10px;
    }
  }
}

@media screen and (orientation: landscape) and (min-width: 480px) and (max-width: 600px) and (max-height: 320px) {
	.message__content {
		width: 292px;
	  }
}


/* mobile portrait */
@media (orientation: portrait) and (max-width: 500px) {
  .content {
    max-height: 23vh;
  }
  .box {
    /* max-width: 70%; */
    max-height: 11vh;
  }
  .title {
    font-size: 4vw;
    margin: 0 auto 1vh;
  }
  .title2 {
    font-size: 3vw;
    margin: 1vh auto;
  }
  .btn-wrap {
    margin: 1vh auto;
  }
  .btn {
    font-size: 6vw;
    padding: 15px 5px;
  }
  /* .footer {
    top: auto;
    bottom: 5px;
  } */
  .footer {
    margin-top: 0;
  }

  .message__content {
		width: 360px;
	}
}
/*Iphone XS max(Chrome), Iphone X , Iphone XS - Port - Chrome*/
@media screen and (max-width: 376px) and (max-height: 748px) {
	.message__content {
		width: 320px;
	}
}
/* 16\9 (iPhone 7, 6S, 6 down ) - portrait*/
@media screen and (max-width: 376px) and (max-height: 590px) {
  img.content {
    max-width: 85%;
  }
  .title {
    margin: 1vh auto;
  }

  .box {
    max-width: 50%;
  }
}
/*Iphone 6s ,Iphone 8 - Port*/
@media screen and (max-width: 376px) and (max-height: 560px) {
  .box {
    max-width: 48%;
  }
  img.content {
    max-width: 75%;
  }
}

@media screen and (max-width: 350px){
  img.content {
    max-height: 28vh;
  }

  .box {
    max-height: 17vh;
  }

  .btn {
    font-size: 6vw;
    padding: 12px 5px;
  }

  .message__content {
    width: 292px;
  }

  .message__text{
    font-size: 16px;
  }

  .message__title {
    margin-bottom: 12px;
    font-size: 22px;
  }
}

