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

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

html {
  font-size: 100%;
  line-height: 1.15;
}

body {
  font-family: 'TT Norms', sans-serif;
  min-width: 320px;
  background: url(../images/bg.png) no-repeat top center;
  background-size: cover;
  color: #2f2f2f;
}

main {
  display: block;
}

ul,
ol {
  list-style: none;
}

img {
  border-style: none;
  vertical-align: middle;
}

a,
a:visited {
  color: #468bd8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
}

:focus,
:active,
a:focus,
a:active {
  outline: none;
}

input::-ms-clear {
  display: none;
}

::-webkit-input-placeholder {
  color: inherit;
  opacity: .54;
}

input,
select,
button,
textarea,
optgroup {
  font-family: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

@font-face {
  font-family: 'TT Norms';
  src: url("../fonts/TT_Norms_Light.woff2") format("woff2"), url("../fonts/TT_Norms_Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Norms';
  src: url("../fonts/TT_Norms_Regular.woff2") format("woff2"), url("../fonts/TT_Norms_Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Norms';
  src: url("../fonts/TT_Norms_Medium.woff2") format("woff2"), url("../fonts/TT_Norms_Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Norms';
  src: url("../fonts/TT_Norms_Bold.woff2") format("woff2"), url("../fonts/TT_Norms_Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
  font-display: swap;
}

.container {
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

.btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 30px 36px;
  border-radius: 100px;
  background: -webkit-gradient(linear, left bottom, left top, from(#ffc233), to(#ffe69b));
  background: linear-gradient(0deg, #ffc233 0%, #ffe69b 100%);
  -webkit-box-shadow: 0 5px #e7b15d;
  box-shadow: 0 5px #e7b15d;
}

.btn:hover {
  background: -webkit-gradient(linear, left bottom, left top, from(#f8c652), to(#fdeec0));
  background: linear-gradient(0deg, #f8c652 0%, #fdeec0 100%);
}

.header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 35px 0 25px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.header a {
  color: inherit;
}

.header__info {
  -webkit-box-flex: 0;
  -ms-flex: 0 1 350px;
  flex: 0 1 350px;
}

.header__title {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.header__title a {
  text-decoration: none;
}

.header__subtitle {
  font-size: 14px;
  line-height: 20px;
}

.header__auth {
  margin-left: auto;
}

.header__auth-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 5px;
}

.header__auth-link + .header__auth-link {
  margin-left: 44px;
}

.header__auth-link img {
  margin-right: 13px;
}

.header__auth-link:hover {
  text-decoration: underline;
}

.header__call {
  margin-left: auto;
}

.header__auth + .header__call {
  margin-left: 45px;
}

/*  Раскомментировать если ссылки в шапке используются */

/*
@media (max-width: 863px) {
  header {
    margin-top: 80px;
  }
}
*/

.main {
  position: relative;
  padding-bottom: 84px;
}

.main__text {
  font-size: 44px;
  line-height: 57px;
  max-width: 630px;
  margin-bottom: 33px;
}

.main__text-icon {
  display: inline-block;
  margin: 0 15px;
}

.main__text-accent {
  color: #d58459;
}

.main__form {
  margin: 0 auto;
  position: relative;
}

.main__form::before {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 90%;
  height: 85%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #8294c2;
  -webkit-box-shadow: 0 20px 50px #9eabcc;
  box-shadow: 0 20px 50px #9eabcc;
  border-radius: 20%;
  z-index: -1;
}

.main__form-img {
  display: none;
}

.main__list {
  margin-left: 83px;
  max-width: 380px;
  margin-bottom: 47px;
}

.main__list-item {
  position: relative;
  font-weight: 300;
  font-size: 17px;
  line-height: 26px;
}

.main__list-item + .main__list-item {
  margin-top: 13px;
}

.main__list-item::before {
  content: '\2022';
  display: inline-block;
  color: #9babd3;
  width: 15px;
  margin-left: -15px;
}

.main__company {
  margin-left: 78px;
}

.main__company img {
  display: inline-block;
  margin-right: 35px;
}

.main__company img:first-child,
.main__company img:nth-child(2) {
  margin-bottom: 34px;
}

.form {
  position: relative;
  text-align: center;
  padding: 7px;
  border-radius: 15px;
  background: -webkit-gradient(linear, left bottom, left top, from(#cdd4e4), to(#f0f4ff));
  background: linear-gradient(0deg, #cdd4e4 0%, #f0f4ff 100%);
  z-index: 1;
}

.form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 62px;
  height: 35px;
  margin: 0 auto;
  z-index: 1;
}

.form__inner {
  position: relative;
  padding: 51px 29px 60px;
  background: inherit;
  background-clip: padding-box;
  border: solid 1px transparent;
  border-radius: inherit;
}

.form__inner:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  margin: -1px;
  border-radius: inherit;
  background: -webkit-gradient(linear, left bottom, left top, from(#dadfed), to(#f6f9ff));
  background: linear-gradient(to top, #dadfed 0%, #f6f9ff 100%);
}

.form__info {
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 35px;
}

.form__info-accent {
  display: block;
  font-size: 24px;
  margin-bottom: 7px;
}

.form__free {
  position: relative;
  top: -18px;
  margin-bottom: -7px;
}

.form__notice {
  font-size: 15px;
  line-height: 27px;
  margin-bottom: 15px;
  color: #8f93a0;
}

.form form {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  z-index: 1;
}

.form input:not([type="checkbox"]) {
  display: block;
  font-size: 18px;
  width: 100%;
  border-radius: 48px;
  padding: 0 10px;
  margin-bottom: 17px;
  min-height: 95px;
  text-align: center;
}

.form label {
  position: relative;
  -webkit-box-ordinal-group: 2;
  -ms-flex-order: 1;
  order: 1;
  font-size: 15px;
  color: #868ca0;
  padding-left: 35px;
  text-align: left;
}

.form [type="checkbox"] {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.form .chekmark {
  position: absolute;
  top: 0;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background-color: #f6f7fa;
  cursor: pointer;
}

.form .chekmark::before {
  content: '';
  position: absolute;
  display: none;
  top: 3px;
  left: 7px;
  width: 6px;
  height: 11px;
  border-right: 1.5px solid #050505;
  border-bottom: 1.5px solid #050505;
  -webkit-transform: rotate(42deg);
  transform: rotate(42deg);
}

.form .chekmark.err {
  -webkit-box-shadow: 0 0 0 1px #dd4802;
  box-shadow: 0 0 0 1px #dd4802;
}

.form [type="checkbox"]:checked + .chekmark::before {
  display: block;
}

.form button {
  position: relative;
  margin-bottom: 42px;
  padding: 35px 36px;
  min-height: 94px;
}

.form button::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 70%;
  height: 30%;
  border-radius: 40px;
  background-color: #aa8345;
  -webkit-box-shadow: 0 5px 50px #aa8345;
  box-shadow: 0 5px 50px #aa8345;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: -1;
}

.form button img {
  margin-left: -25px;
  margin-right: 15px;
}

.free {
  position: relative;
  display: inline-block;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 13px;
  z-index: 10;
  color: #d58459;
}

.free::before {
  content: '';
  position: absolute;
  background-color: #fff;
  border-radius: 8px;
  -webkit-transform: skew(-15deg);
  transform: skew(-15deg);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.footer {
  background-color: #edf1f8;
}

.footer__inner {
  padding: 26px 0;
}

.footer__copyright {
  font-size: 17px;
  line-height: 26px;
}

/*
Callback form
*/

body.modal-open {
  overflow: hidden;
}

.callback.show {
  visibility: visible;
  opacity: 1;
}

.callback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 100;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity .3s;
  transition: opacity .3s;
}

.callback__wrapper {
  max-width: 450px;
  margin: 0 30px;
}

.callback__close {
  position: absolute;
  display: block;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  color: #b3b3b3;
  cursor: pointer;
  z-index: 2;
}

.callback__close::before {
  content: "x";
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  font-weight: 500;
  font-size: 20px;
  line-height: 14px;
  font-style: normal;
  -webkit-transform: scaleX(1.3);
  transform: scaleX(1.3);
}

.callback__close:hover {
  color: gray;
}

/*
Спасибо
*/

.thank {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

.thank .container {
  padding: 0 20px;
}

.thank .main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 30px;
}

.thank .main__text {
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  font-size: 30px;
  line-height: 41px;
  max-width: 260px;
  margin-bottom: 15px;
}

.thank__image {
  position: relative;
  left: 10px;
  margin-bottom: 15px;
}

.thank .btn {
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  font-size: 14px;
  line-height: 27px;
  letter-spacing: normal;
  min-height: 93px;
  color: #2f2f2f;
}

.thank .btn img {
  display: inline-block;
  margin-right: 10px;
}

@media (min-width: 480px) {
  .thank .container {
    padding: 0 40px;
  }

  .thank .main__text {
    font-size: 36px;
    line-height: 47px;
    max-width: 320px;
  }

  .thank__image {
    left: 20px;
    margin-bottom: 25px;
  }

  .thank .btn {
    font-size: 15px;
    line-height: 27px;
    letter-spacing: 1px;
  }

  .thank .btn img {
    margin-right: 20px;
  }
}

@media (min-width: 768px) {
  .footer__inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .thank .main__text {
    line-height: 48px;
    max-width: 700px;
    margin-bottom: 60px;
  }

  .thank__image {
    left: 100px;
    margin-bottom: 0;
  }

  .thank .btn {
    position: absolute;
    bottom: 110px;
    padding: 30px 45px;
  }

  .thank .btn img {
    margin-right: 30px;
  }
}

@media (min-width: 863px) {
  .main__form {
    position: absolute;
    top: 82px;
    right: 0;
  }

  .form:not(.callback__form)::before {
    background: transparent url(../images/label.jpg) no-repeat center top;
  }
}

@media (min-width: 864px) {
  .header__call-img {
    display: none;
  }
}

@media (min-width: 1034px) {
  .main__form-img {
    position: absolute;
    display: block;
    left: -248px;
    bottom: -53px;
    z-index: -10;
  }
}

@media (max-width: 1120px) {
  .main__text {
    font-size: 36px;
    line-height: 46px;
    max-width: 485px;
  }
}

@media (max-width: 1060px) {
  .main__list {
    margin-left: 40px;
  }

  .main__company {
    margin-left: 40px;
  }
}

@media (max-width: 991.98px) {
  .header__info {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 300px;
    flex: 0 1 300px;
  }

  .header__auth-link + .header__auth-link {
    margin-left: 15px;
  }

  .header__auth-link img {
    margin-right: 8px;
  }

  .header__auth + .header__call {
    margin-left: 25px;
  }

  .main__form {
    max-width: 400px;
  }

  .form__inner {
    padding: 51px 10px 60px;
  }
}

@media (max-width: 916px) {
  .main__form {
    max-width: 350px;
  }
}

@media (max-width: 863px) {
  .header__auth {
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    margin-left: 0;
    min-height: 51px;
    background-color: #fff;
  }

  .header__auth > * {
    -webkit-box-flex: 100%;
    -ms-flex: 100%;
    flex: 100%;
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
    text-align: center;
  }

  .header__auth-link {
    margin-bottom: 0;
  }

  .header__auth-link + .header__auth-link {
    margin-left: 0;
  }

  .header__auth + .header__call {
    margin-left: auto;
  }

  .header__call-btn {
    position: relative;
    font-size: 1px;
    color: transparent;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    padding: 0;
  }

  .header__call-img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-60%, -40%);
    transform: translate(-60%, -40%);
  }

  .main__text {
    max-width: 500px;
  }
}

@media (max-width: 862px) {
  .form {
    margin-bottom: 35px;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding: 0 40px;
  }

  .main {
    padding-bottom: 39px;
  }

  .main__text {
    margin-bottom: 25px;
  }

  .main__list {
    margin-left: 15px;
  }

  .main__company {
    text-align: center;
    margin-left: 0;
  }

  .main__company img:first-child,
  .main__company img:nth-child(2) {
    margin-bottom: 20px;
  }

  .form__inner {
    padding: 30px 10px 35px;
  }

  .form__info {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .form__free {
    top: -5px;
    margin-bottom: 0;
  }

  .form input:not([type="checkbox"]) {
    margin-bottom: 14px;
  }

  .form input:not([type="checkbox"]) {
    margin-bottom: 14px;
  }

  .form button {
    margin-bottom: 22px;
  }

  .footer__inner {
    text-align: center;
    padding-bottom: 39px;
  }

  .footer__copyright {
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
  }

  .footer__policy {
    font-size: 15px;
  }
}

@media (max-width: 479.98px) {
  .container {
    padding: 0 18px;
  }

  .header {
    margin-bottom: 15px;
  }

  .header__subtitle {
    font-size: 13px;
    line-height: 16px;
    max-width: 200px;
  }

  .header__call-btn {
    width: 53px;
    height: 53px;
  }

  .main__text {
    font-size: 30px;
    line-height: 41px;
  }

  .main__list {
    margin-bottom: 30px;
  }

  .main__list-item {
    font-size: 16px;
    line-height: 22px;
  }

  .main__list-item + .main__list-item {
    margin-top: 10px;
  }

  .main__company img {
    height: 28px;
    margin-right: 7px;
  }

  .form {
    margin: 0 -10px 30px -10px;
  }

  .form__inner {
    padding: 30px 5px 35px;
  }

  .form input:not([type="checkbox"]) {
    font-size: 16px;
  }

  .form label {
    max-width: 210px;
    margin: 0 auto;
  }

  .form .chekmark {
    top: 7px;
    width: 18px;
    height: 18px;
  }

  .form .chekmark::before {
    left: 6px;
  }

  .form button img {
    font-size: 16px;
  }
}

@media (max-width: 862px), (min-width: 992px) {
  .main__form {
    max-width: 430px;
  }
}

@media (min-width: 1034px) and (max-width: 1120px) {
  .main__form-img {
    left: -160px;
    bottom: -30px;
    width: 340px;
  }
}

@media (min-width: 480px) and (max-width: 767.98px) {
  .thank .btn {
    padding: 30px 60px;
  }
}

@media (max-height: 475px) {
  .callback input,
  .callback button {
    min-height: 40px !important;
    padding: 10px 36px !important;
  }

  .callback .form__inner {
    padding: 15px 10px 15px;
  }
}