@font-face {
  font-family: 'ALT Picaro';
  src: url('./fonts/ALTPicaro-Regular.woff2') format('woff2'),
    url('./fonts/ALTPicaro-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LFS Adelia';
  src: url('./fonts/LFSAdelia-Regular.woff2') format('woff2'),
    url('./fonts/LFSAdelia-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Value Sans Pro';
  src: url('./fonts/ValueSansPro-Regular.woff2') format('woff2'),
    url('./fonts/ValueSansPro-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Value Sans Pro';
  src: url('./fonts/ValueSansPro-Black.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  background-color: rgb(218 222 212);
}

body {
  font-family: 'Value Sans Pro', Arial, Helvetica, sans-serif;
  background: transparent;
  padding: 3rem 2rem;
  color: rgb(35, 39, 33);
}

#signature {
    position: fixed;
    top: 5px;
    left: 2.5rem;
    width: 10rem;
    pointer-events: none;
    z-index: 9999;
}

.back-btn-desktop {
    position: fixed;
    z-index: 9999;
    transition: all 0.3s ease;
    top: 0px;
    right: 0px;
    width: 14vw;
    height: auto;

    img {
      max-width: 100%;
    }

    @media (max-width: 1024px) {
      width: 20vw;
    }

    @media (max-width: 767px) {
      width: 28vw;
    }

    @media (max-width: 390px) {
      width: 42vw;
    }
}

.wrapper {
  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  position: relative;
  padding-block: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-family: 'LFS Adelia';
  font-weight: normal;
  font-size: 12rem;
}

.intro p {
  font-family: 'Value Sans Pro';
  font-size: 2.1rem;
  line-height: 1.3;
  max-width: 56ch;
  text-align: center;
}

[lang="ru"] .intro p {
  max-width: 50ch;
}

[lang="zh"] .intro p {
  max-width: 57ch;
}

.form-container {
  position: relative;
  margin-top: 5rem;
}

.form-bg {
  max-width: 100%;

  @media (max-width: 767px) {
    display: none;
  }
}

.cform {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  padding: 50px;
  height: 100%;
  transform: translateY(-50%) translateX(-50%);
  font-size: 16px;

  @media (max-width: 767px) {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    height: 100%;
    transform: none;
  }
}

.cform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 30px;
}

@media (max-width: 600px) {
  .cform__grid {
    grid-template-columns: 1fr;
  }
  body {
    padding: 3.2rem 2rem;
  }
}

.cform__field--full {
  grid-column: 1 / -1;
}

.cform__label {
  display: block;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgb(35, 39, 33);
  margin-bottom: 0;
}

.cform__required {
  color: rgb(35, 39, 33);
}

.cform__optional {
  color: oklch(55.1% .027 264.364);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.cform__input,
.cform__select,
.cform__textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgb(35, 39, 33);
  border-radius: 0;
  padding: 0.8rem 0;
  font-size: 1.36rem;
  color: rgb(35, 39, 33);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.cform__input:focus,
.cform__select:focus,
.cform__textarea:focus {
  border-bottom-color: #000;
}

.cform__textarea {
  resize: none;
  line-height: 1.3;
  min-height: 80px;
}

.cform__select-wrapper {
  position: relative;
}

.cform__select-wrapper::after {
  content: '';
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #3a3a3a;
  pointer-events: none;
}

.cform__select option {
  color: #3a3a3a;
}

.cform__checkbox-wrapper {
  margin-top: 4rem;
}

.cform__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  font-size: 1.31rem;
  color: #3a3a3a;
  cursor: pointer;
  line-height: 1.5;
}

.cform__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cform__checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid #a0a89a;
  background: transparent;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.2s, border-color 0.2s;
}

.cform__checkbox:checked + .cform__checkbox-custom {
  background: #7a9a6a;
  border-color: #7a9a6a;
}

.cform__submit {
  font-family: 'ALT Picaro';
  display: block;
  width: 100%;
  margin-top: 2.4rem;
  padding: 1.6rem;
  background: rgb(35, 39, 33);
  border-radius: 10px;
  color: #fff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cform__submit:hover {
  background: #5a7a4a;
}

.cform__disclaimer {
  margin-top: 2.4rem;
  font-size: 1.25rem;
  color: #6a6a6a;
  text-align: center;
  line-height: 1.6;
  max-width: 100%;
}

.cform__success {
  display: none;
  padding: 4.8rem 0;
  text-align: center;
}

.cform__success-title {
  font-size: 1.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3a3a3a;
  margin-bottom: 1.2rem;
}

.cform__success-text {
  font-size: 1.44rem;
  color: #6a6a6a;
}

.bg {
  position: fixed;
  z-index: -1;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url(./img/bg.jpg);
  background-blend-mode: soft-light;
  background-repeat: repeat;
  background-size: auto;
  background-color: #c8cfc0;
  opacity: 0.4;
}

.grid-lines {
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.075) 1px, transparent 1px), linear-gradient(to right, rgba(0, 0, 0, 0.075) 1px, transparent 1px), linear-gradient(to right, rgba(0, 0, 0, 0.075) 1px, transparent 1px), linear-gradient(to right, rgba(0, 0, 0, 0.075) 1px, transparent 1px), linear-gradient(to right, rgba(0, 0, 0, 0.075) 1px, transparent 1px), linear-gradient(to right, rgba(0, 0, 0, 0.075) 1px, transparent 1px);
  background-size: 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%;
  background-position: 12.5% 0, 15% 0, 48.75% 0, 51.25% 0, 87.5% 0, 90% 0;
  background-repeat: no-repeat;
}

.crosses {
  position: fixed;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.35;

  img {
    width: 2rem;
    height: 2rem;
    position: absolute;
  }

  img:first-child {
    top: 20%;
    left: 2%;
  }

  img:nth-child(2) {
    bottom: 20%;
    left: 2%;
  }

  img:nth-child(3) {
    top: 20%;
    right: 2%;
  }

  img:nth-child(4) {
    bottom: 20%;
    right: 2%;
  }
}