:root {
  color-scheme: light dark;
}

@media (prefers-color-scheme: light) {
  body {
    background-color: #fff;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #fff;
  }
}

/*Tahoma-400*/
@font-face {
  font-family: "Tahoma";
  src: local("Tahoma Regular"), local("Tahoma-Regular"), url("../fonts/Tahoma.woff2") format("woff2"),
    url("../fonts/Tahoma.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  outline: none;
}

body {
  -ms-text-size-adjust: none;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  position: relative;
  min-width: 320px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1em;
  color: #000;
  direction: ltr;
  background-color: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0;
}

a {
  cursor: pointer;
}

.hidden {
  /*to remove links from phone numbers in Moz */
  /*also add: aria-hidden="true"*/
  width: 0;
  height: 0;
  line-height: 0;
  font-size: 0;
  opacity: 0;
}

.wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 100vh;
  min-height: var(--vh, 100vh);

  background: #ffffff;
  background: radial-gradient(circle farthest-corner at center center, #ffffff 75%, #ffeda0 100%);

  opacity: 0;

  animation: element__fade 0.2s;
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

@keyframes element__fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.content {
  /* outline: 1px dotted red; */
  width: 316px;
  margin: 0 auto;
  padding-top: 15vh;
  min-height: calc(100vh - 60px);
  min-height: calc(var(--vh, 100vh) - 60px);
}

.main-img {
  /* outline: 1px dotted green; */
  width: 100%;
  margin: 0 auto;
  margin-bottom: 12px;
}

.title {
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1em;
  text-align: center;
  /* letter-spacing: -0.02em; */
}

.title--pin {
  margin-bottom: 17px;
}

.subtitle {
  font-size: 14px;
  margin-bottom: 11px;
  text-align: center;
  color: #797979;
}
.subtitle:last-child {
  margin-top: 4px;
  margin-bottom: 0;
  width: auto;
}
.subtitle--pin {
  margin-bottom: 22px;
  font-size: 14px;
  color: #000;
  text-align: center;
}

.input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  display: block;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 9px;
  padding: 12px 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1em;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.02em;
  color: #000;
  border: 1px solid #fff;
  background-color: #fff;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.55);
}

.input::placeholder {
  color: #8f8f8f;
}
.input--error {
  border: 1.5px solid #ff0000;
}

.attention {
  font-size: 12px;
  line-height: 12px;
  margin: 1px auto;
  color: #ff0000;
  opacity: 0;
}

.attention--show {
  -webkit-animation: blink-1 0.6s both;
  animation: blink-1 0.6s both;
}

@-webkit-keyframes blink-1 {
  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}

@keyframes blink-1 {
  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}


.btn {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 13px 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 21px;
  line-height: 1em;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.02em;
  text-decoration: none;
  background-color: #ff0000;
  border: none;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.55);

  cursor: pointer;
  user-select: none;
}

.footer {
  /* outline: 2px dotted blue; */
  max-width: 880px;
  margin: 0 auto;
  font-family: "Tahoma", Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 12px;
  font-weight: 400;
  color: #7a7a7a;
  text-align: justify;
}

.footer__text {
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.btn-list {
  /* outline: 2px dotted red; */

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.btn-list__link {
  display: block;
  padding: 10px;
  color: #7a7a7a;
  text-decoration: none;
  cursor: pointer;
}

.btn-list__item:not(:last-child) {
  position: relative;
}

.btn-list__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background-color: #828282;
}

/***LOADER****/
.loader {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.85);
  background-image: url("../img/icon-spinner.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 33%;

  will-change: opacity;

  animation: element__fade 0.2s;
}

@keyframes element__fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/***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: rgba(0, 0, 0, 0.55);
}

.message__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 316px;
  /* margin-top: -100px; */
  margin-top: -50vh;
  padding: 33px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #000;
  background-color: #fff;
  border: none;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

  will-change: transform;

  animation-name: fadeInUp;
  animation-duration: 1s;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.message__wrap--unsuccess {
  padding: 33px 20px;
}

.message__img {
  margin-bottom: 20px;
}

.message__text {
  margin-bottom: 16px;

  line-height: 1em;
  font-weight: 400;
  text-align: center;
  letter-spacing: -0.03em;
}

/* link google */
.popup__close {
  width: 32px;
  height: 32px;
  position: absolute;
  font-size: 0;
  color: transparent;
  border: 0;
  cursor: pointer;
  top: 0px;
  right: 2px;
  z-index: 1;
  padding: 8px;
  background: #fff;
  border-radius: 50%;

}

.popup__close-item {
  width: 100%;
  height: 22px;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 5px;
  margin: auto;
  transition: background 0.2s linear;
}

.popup__close-item:before,
.popup__close-item:after {
  content: "";
  width: 70%;
  height: 2px;
  background-color: #515151;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  transform: scaleX(1) translate(0px, 10px) rotate(45deg);
  transition: transform 0.2s linear;
}

.popup__close-item:before {
  transform: scaleX(1) translate(0px, 10px) rotate(-45deg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*** end #message****/

/***************/
/***************/
@media screen and (min-width: 960px) and (max-width: 1366px) and (max-height: 700px) {
  /*small desk*/
  .content {
    padding-top: 10px;
  }

  .main-img {
    width: 300px;
  }
}

@media screen and (max-width: 1024px) and (max-height: 1366px) {
  /*tab - vert*/
  .wrap {
    display: block;
  }

  .content {
    min-height: 100vh;
    min-height: var(--vh, 100vh);
    padding-top: 7.5vh;
  }

  .footer {
    max-width: 700px;
    margin-top: 0;
  }
}

@media screen and (orientation: landscape) and (max-width: 1024px) and (max-height: 1366px) {
  /*tab - horizontal*/
  .content {
    padding-top: 3vh;
  }

  .footer {
    max-width: 700px;
  }
}

@media screen and (max-width: 500px) and (max-height: 950px) {
  .content {
    width: 100%;
    padding-top: 0;
    min-height: calc(100vh - 60px);
    min-height: calc(var(--vh, 100vh) - 60px);
  }

  .main-img {
    width: 85%;
    margin-bottom: 9px;
  }

  .title {
    width: 316px;
    margin: 0 auto;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
  }

  .title--pin {
    margin-bottom: 20px;
  }

  .subtitle {
    width: 330px;
    margin: 0 auto;
    margin-bottom: 11px;
    letter-spacing: -0.04em;
  }

  .subtitle {
    margin-bottom: 16px;
  }

  .form {
    width: 316px;
    margin: 0 auto;
  }

  .footer {
    width: 100%;
  }

  .footer__text {
    padding-right: 17px;
    padding-left: 17px;
  }

  .message__wrap {
    margin-top: -40vh;
  }

  .btn-list__link {
    padding: 5px;
  }
}

@media screen and (min-width: 408px) and (max-width: 415px) and (max-height: 650px) {
  /*Pixel*/
  /*8+*/
  .main-img {
    width: 73%;
  }
}

@media screen and (max-width: 375px) and (max-height: 650px) {
  /*8*/
  .main-img {
    width: 60%;
    margin-bottom: 8px;
  }

  .title {
    margin-bottom: 10px;
  }

  .title--pin {
    margin-bottom: 20px;
  }

  .subtitle {
    margin-bottom: 16px;
  }

  .subtitle:last-child {
    font-size: 12px;
  }

  .footer__text {
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 320px) and (max-height: 568px) {
  .content {
    width: 290px;
  }

  .main-img {
    width: 180px;
    margin-bottom: 7px;
  }

  .title {
    width: auto;
    margin-bottom: 5px;
  }

  .title--pin {
    margin-bottom: 12px;
  }

  .subtitle {
    width: auto;
    margin-bottom: 7px;
    font-size: 12px;
  }

  .subtitle--pin {
    margin-bottom: 12px;
  }

  .form {
    width: auto;
  }

  .input {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 19px;
  }

  .btn {
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 19px;
  }

  .footer__text {
    margin-bottom: 5px;
  }

  .message__wrap {
    width: 290px;
    margin-top: -30vh;
    padding-right: 20px;
    padding-left: 20px;
  }

  .message__wrap--unsuccess {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media screen and (orientation: landscape) and (min-width: 450px) and (max-width: 950px) and (max-height: 500px) {
  .wrap {
    overflow-y: hidden;
  }

  .content {
    width: 290px;
    min-height: auto;
    margin-top: -10px;
    margin-bottom: 35px;
    padding-top: 0;
    min-height: calc(100vh);
    min-height: calc(var(--vh, 100vh));
  }

  .main-img {
    width: 150px;
    margin-bottom: 10px;
  }

  .title {
    margin-bottom: 8px;
    font-size: 16px;
    letter-spacing: -0.02em;
  }

  .title--pin {
    margin-bottom: 12px;
  }

  .subtitle {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .subtitle--pin {
    margin-bottom: 12px;
  }

  .input {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 16px;
  }

  .btn {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 19px;
  }

  .footer {
    margin-top: 0;
    padding-right: 23px;
    padding-left: 23px;
  }

  .message__wrap {
    margin-top: 0;
  }
}


/***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: rgba(0, 0, 0, 0.85);
}

.message__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 340px;
  padding: 30px 5px;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  background-color: #fff;
  border: none;
  border-radius: 9px;

  will-change: transform;
  animation-name: fadeInDown;
  animation-duration: 0.8s;
  animation-delay: 0.4s;
  animation-fill-mode: both;
  position: relative;
}
.message__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 316px;
  margin-top: -25vh;
  padding: 60px 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #000;
  background-color: #fff;
  border-radius: 15px;
  border: none;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  will-change: transform;
  animation-name: fadeInUp;
  animation-duration: 1s;
  animation-delay: 0.3s;
  animation-fill-mode: both;
  position: relative;
}
.message__title {
  margin-bottom: 16px;
  font-size: 26px;
  line-height: 1.15em;
  font-weight: 700;
  text-align: center;
}

.message__text {
  font-size: 20px;
  line-height: 1.15em;
  font-weight: 400;
  text-align: center;
  margin-bottom: 15px;
}

.message__btn {
  width: 100%;
  max-width: 280px;
  margin-top: 0;
}

.message__close {
  position: absolute;
  top: 7px;
  right: 15px;
  width: 30px;
  height: 30px;
  font-size: 0;
  color: rgba(0, 0, 0, 0);
}

.message__close::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: #444;
  transform: translateX(-50%) rotate(-45deg);
}

.message__close::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: #444;
  transform: translateX(-50%) rotate(45deg);
}

.message__close:hover.message__close::before,
.message__close:hover.message__close::after {
  background-color: #222;
}


@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.popup__close {
  width: 32px;
  height: 32px;
  position: absolute;
  font-size: 0;
  color: transparent;
  border: 0;
  cursor: pointer;
  top: 0px;
  right: 2px;
  z-index: 1;
  padding: 8px;
  background: #fff;
  border-radius: 50%;

}

.popup__close-item {
  width: 100%;
  height: 22px;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 5px;
  margin: auto;
  transition: background 0.2s linear;
}

.popup__close-item:before,
.popup__close-item:after {
  content: "";
  width: 70%;
  height: 2px;
  background-color: #515151;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  transform: scaleX(1) translate(0px, 10px) rotate(45deg);
  transition: transform 0.2s linear;
}

.popup__close-item:before {
  transform: scaleX(1) translate(0px, 10px) rotate(-45deg);
}
/*** end #message****/

@media screen and (max-width: 320px) and (max-height: 568px) {
  .message__content {
    width: 280px;
  }

  .message__title {
    font-size: 20px;
  }

  .message__text {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .message__btn {
    width: 260px;
  }
}

@media screen and (orientation: landscape) and (max-width: 568px) and (max-height: 320px) {
  .message__content {
    width: 280px;
  }

  .message__title {
    font-size: 20px;
  }

  .message__text {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .message__btn {
    width: 260px;
  }
}
