body {
  font-family: "Fira Sans", sans-serif;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  overflow-y: hidden;
}

main {
  margin-bottom: 37px;
  padding: 40px;
}

.header {
  padding: 15px 25px;
  display: flex;
  border-bottom: 2px solid #d3d3d3;
}

.header__icon {
  margin-right: 15px;
  margin-top: 14px;
}

.header__text {
  color: #202020;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-right: 40px;
  margin-top: 15px;
}

.progress_bar {
  width: 70%;
  height: 16px;
  position: relative;
  border-radius: 100px;
  margin-top: 15px;
}

progress {
  width: 100%;
  height: 100%;
  border-radius: 100px;
  overflow: hidden;
}

.progress_bar_text {
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  position: absolute;
  top: 3px;
  left: 10px;
}

progress::-moz-progress-bar {
  background: #00a6ff;
}
progress::-webkit-progress-value {
  background: #00a6ff;
}
progress {
  color: #00a6ff;
}
.progress_bar_percent {
  font-size: 0.75rem;
  font-weight: bold;
  opacity: 0.6;
  position: absolute;
  top: 20px;
  left: 630px;
}

.final_first .progress_bar_text {
  font-size: 0.8rem;
  position: relative;
  margin-left: -5px;
  margin-bottom: 5px;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  justify-content: space-between;
}

.date__panel {
  /*width: 350px;*/
  height: fit-content;
  flex-shrink: 0;
  border-radius: 20px;
  /* background: #f7f7f7; */
  padding: 29px 20px 18px 20px;
  /* margin-top: 49px; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.date__panel-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.date__panel-title {
  color: #202020;
  font-size: 21px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 15px;
}

.date__panel-text {
  color: #202020;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 25px;
}

.date__panel-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 46px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 380px;
}

.date__panel-btn {
  width: 70px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f5f5f5;
  border: 1px solid transparent;
}
.date__panel-btn_time {
  width: 90px;
  height: 40px;
}

.date__panel-btn-error {
  border-color: #ff2a2a;
}
.date__panel-btn:not(.date__panel-btn-error):hover,
.date__panel-btn-active {
  background: #EA2B2B;
  color: #fff;
}

.date__panel-btn_submit {
  width: 300px;
  height: 80px;
  border-radius: 10px;
  background: #EA2B2B;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 24px;
  transition: all 0.5 easy-in;
}

.date__panel-policy {
  color: #969696;
  text-align: center;
  font-family: Fira Sans;
  font-size: 10px;
  font-style: normal;
  font-weight: 300;
  line-height: 140%;
}

.date__panel-policy_link {
  color: #969696;
  text-decoration-line: underline;
}

.error__text {
  color: #ff2a2a;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-top: -41px;
  display: none;
}

.title_left {
  font-size: 24px;
  font-weight: 700;
  line-height: 29px;
  letter-spacing: 0em;
  text-align: left;
  color: #202020;
  margin-top: 34px;
}

.title-input {
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 0em;
  text-align: left;
  color: #202020;
}
::placeholder {
  color: #9a9a9a;
}

.input__block {
  position: relative;
  margin-top: 35px;
}
.radio__block {
  position: relative;
  margin-top: 35px;
}

.form-control-error {
  border: 1px solid red;
}

.error__text-input {
  color: #ff2a2a;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  position: absolute;
  bottom: -31px;
  right: 10px;
  display: none;
}
.error__text-radio {
  color: #ff2a2a;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-left: 20px;
  margin-top: 15px;
  display: none;
}

.form-control.form-control-error + .error__text-input {
  display: block;
}

.footer__progress-bar {
  background: #00a6ff;
  width: 360px;
  height: 14px;
  flex-shrink: 0;
  display: none;
  margin-bottom: 0;
}

.header__text-mobile {
  display: none;
}
.h1_for_tilda {
  text-align: center;
  margin: 0 auto;
  width: 700px;
}

@media (max-width: 995px) {
  /* .date__panel {
    margin-top: 80px;
  } */
}

@media (max-width: 800px) {
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  .header {
    margin-bottom: 20px;
  }

  .wrapper {
    padding: 20px;
  }

  .title-left {
    margin-bottom: 20px;
  }

  .date__panel {
    margin: 0 auto 0 auto;
    width: 100%;
  }

  .date__panel-btn_submit {
    /* width: 100%;
    height: 60px; */
    margin-bottom: 20px;
  }

  .date__panel-policy {
    text-align: center;
  }

  .input__block,
  .radio__block {
    margin-top: 0;
  }

  label {
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .h1_for_tilda {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .date__panel-btn_submit {
    margin-bottom: 20px;
    height: 60px;
  }
}
@media (max-width: 400px) {
  .date__panel-btn_submit {
    margin-bottom: 20px;
  }

  .date__panel {
    padding: 25px;
    margin-bottom: 37px;
    margin-top: 40px;
  }

  .error__text-radio {
    margin-left: 89px;
  }

  .title-left {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .footer__progress-bar {
    display: block;
  }

  .progress_bar {
    display: none;
  }

  .header__text-desktop {
    display: none;
  }
  .header__text-mobile {
    display: block;
    margin-right: 13px;
  }
}

/* стр благодарности */

#thanks > header {
  display: none;
}
#thanks > header > .progress_bar {
  display: none;
}

.thanks-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-top: 208px;
}

.page__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
}

.thanks__title {
  color: #00a6ff;
  text-align: center;
  font-family: Fira Sans;
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 52px;
}

.thanks__text {
  color: #202020;
  text-align: center;
  font-family: Fira Sans;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 34px;
}

.thanks__block-wrapper {
  display: flex;
  align-items: center;
  gap: 41px;
}

.thanks__block {
  display: flex;
  align-items: center;
  gap: 15px;
}

.thanks__block > p {
  color: #202020;
  font-family: Fira Sans;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.thanks-img {
  display: inline-block;
  width: 60px;
  height: 60px;
}

@media screen and (max-width: 500px) {
  html {
    font-size: 14px;
  }

  .thanks-img {
    display: inline-block;
    width: 40px;
    height: 40px;
  }
  .thanks-main {
    padding-top: 197px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .thanks__title {
    font-size: 26px;
    font-style: normal;
    font-weight: 500;
    margin-bottom: 70px;
  }
  .thanks__text {
    font-size: 14px;
  }

  .thanks__block > p {
    font-size: 14px;
  }
}

@media screen and (max-width: 478px) {
  main {
    padding: 10px 0 30px 0;
  }
  .date__panel {
    padding: 0;
  }
  .date__panel-btns {
    gap: 10px;
  }
}

@media screen and (max-width: 400px) {
  #thanks > header {
    display: flex;
  }

  .date__panel-btns {
    gap: 5px;
    width: 100%;
    justify-content: space-between;
  }
}

/* лоадер  */

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #000;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
