html, body {
  background-color: #260702;
  font-family: InterTight, sans-serif;
  color: #FFF;
}
.wrapper {
  width: 100vw;
  height: 100dvh;
  overflow-x: hidden;
  padding-top: 48px;
  position: relative;
}
.header {
  max-width: 1032px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.btn-yellow {
  background: transparent;
  border: 2px solid #FFCC00;
  padding: 8px 16px;
  border-radius: 48px;
  color: #FFCC00;
  font-weight: 500;
  font-size: 18px;
  line-height: 132%;
  transition: all .2s ease-in;
  width: fit-content;
}
.btn-yellow:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
}
.btn-yellow:active {
  color: #EA6113;
  border-color: #EA6113;
}
.btn-yellow:disabled {
  opacity: 0.7;
  cursor: wait;
}
.btn-white {
  background: #FFFFFF;
  border: none;
  padding: 16px 24px;
  border-radius: 48px;
  color: #EA6113;
  font-weight: 600;
  font-size: 20px;
  line-height: 122%;
  transition: all .2s ease-in;
  height: 56px;
  width: 182px;
}
.btn-white:hover {
  background: #FFCC00;
}
.btn-white:active {
  color: #260702;
  background: #FFCC00;
}
.container {
  max-width: 856px;
  margin: 0 auto;
}
h1 {
  font-size: 64px;
  font-weight: 500;
  line-height: 122%;
  max-width: 680px;
}
.yellow-txt, .modal__title span {
  color: #FFCC00;
}
.head-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
  text-align: center;
  margin: 98px auto;
  position: relative;
  z-index: 2;
}
.head-section p {
  max-width: 504px;
  width: 100%;
  line-height: 154%;
  font-weight: 500;
  font-size: 20px;
}
h3 {
  color: #EA6113;
  font-size: 32px;
  font-weight: 500;
  line-height: 122%;
  text-align: center;
  margin: 8px 0;
}
h4 {
  font-size: 24px;
  line-height: 132%;
  text-align: center;
  max-width: 504px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.main {
  margin: 98px 0;
  display: flex;
  flex-direction: column;
}
.main-block {
  display: flex;
  align-items: center;
  gap: 24px;
  width: fit-content;
}
.main-block + .main-block {
  margin-top: 82px;
}
.main-block:nth-child(2){
  flex-direction: row-reverse;
  gap: 64px;
}
h2 {
  font-size: 44px;
  line-height: 132%;
  font-weight: 500;
}
.main .btn-yellow {
  margin: 64px auto 0;
  height: 56px;
  width: 182px;
  font-size: 20px;
  line-height: 122%;
}
.footer {
  background: #4B1204;
  padding: 24px 24px 48px 24px;
  border-radius: 24px 24px 0 0;
  max-width: 856px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.footer p {
  font-weight: 500;
  font-size: 18px;
  line-height: 132%;
  margin-top: 10px;
}
.footer .left p {
  margin-top: 10px;
}
.footer .right a {
  margin-top: 8px;
  color: #FFCC00;
  font-weight: 500;
  font-size: 18px;
  line-height: 132%;
}
.bg-img {
  position: absolute;
  left: -120px;
  top: -270px;
  z-index: 1;
}

/* modal */

.body-lock {
  overflow: hidden;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}
.modal__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 504px;
  min-height: 402px;
  padding: 32px 48px 48px;
  border-radius: 24px;
  background: radial-gradient(40.28% 50.5% at 10.52% 11.19%, #FFCC00 0%, rgba(255, 204, 0, 0) 100%), #260702;
  border: 1px solid #331302;
  text-align: center;
}
.modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.modal__title {
  margin: 24px 0;
  font-size: 24px;
  line-height: 132%;
  font-weight: 500;
}
.modal__form {
  display: flex;
  flex-direction: column;
}
.modal__input {
  width: 100%;
  height: 56px;
  padding: 12px 24px;
  border: none;
  border-radius: 48px;
  background: #fff;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 500;
  line-height: 154%;
  outline: none;
}
.modal__input::placeholder {
  color: #645553;
}
.modal__submit {
  width: 100%;
  height: 63px;
  margin-top: 24px;
}
.modal__error {
  color: #EA6113;
  gap: 8px;
  line-height: 132%;
  font-size: 18px;
  font-weight: 500;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: start;
}
.modal__done {
  margin-top: 78px;
}

@media (max-width:1050px) {
  .wrapper {
    padding: 24px 24px 0 24px;
  }
  .main-block, .main-block:nth-child(2) {
    flex-direction: column;
    width: 100%;
    gap: 32px;
  }
  .main-block:nth-child(2) h2 {
    text-align: center;
  }
}
@media (max-width:770px) {
  h1 {
    font-size: 44px;
  }
  .bg-img {
    left: -610px;
  }
  .head-section {
    margin-top: 48px;
  }
  .head-section .btn-white {
    margin-top: 24px;
  }
  .head-section p, .btn-white, .modal__input {
    font-size: 18px;
  }
  .btn-yellow {
    font-size: 16px;
    line-height: 122%;
  }
  .btn-white {
    height: 60px;
    width: 186px;
  }
  h2:not(.main-block:nth-child(2) h2) {
    font-size: 32px;
    line-height: 122%;
    text-align: center;
  }
  h3 {
    font-size: 26px;
  }
  h4, .modal__title {
    font-size: 20px;
  }
  .footer {
    flex-direction: column;
    align-items: center;
  }
  .footer .left, .footer .right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .main-block__img {
    width: 100%;
    max-width: 364px;
  }
  .main-block__img img {
    width: 100%;
    object-fit: contain;
  }
  .main .btn-yellow {
    margin-top: 48px;
  }
  .main {
    margin-bottom: 48px;
  }
  .modal__content {
    padding: 23px 32px 32px;
    min-height: 368px;
  }
  .modal__submit {
    margin-top: 16px;
    height: 60px;
    font-size: 18px;
    line-height: 154%;
  }
  .modal__error {
    font-size: 16px;
  }
}
