.contact-page-body {
  min-width: 768px;
  background: linear-gradient(172deg, #050021 0%, #0a1a2f 67%);
}

.contact-page {
  position: relative;
  min-height: 1443px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(172deg, #050021 0%, #0a1a2f 67%);
}

.contact-breadcrumb {
  position: absolute;
  z-index: 2;
  top: 116px;
  left: max(40px, 50% - 820px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.75;
}

.contact-hero {
  height: 340px;
  padding: 204px max(40px, 50% - 820px) 0;
}
.contact-hero__title {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
}
.contact-hero__title::after {
  width: 207px;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
  content: "";
  transform: translateY(3px);
}

.contact-form {
  min-height: 1103px;
  padding: 42px 0 260px;
}
.contact-form__inner {
  width: min(100% - 80px, 816px);
  margin: 0 auto;
}
.contact-form__title {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}
.contact-form__body {
  margin-top: 132px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 277px minmax(0, 1fr);
  align-items: center;
  min-height: 55px;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
}
.contact-form__row > label, .contact-form__row > legend {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  font-size: 16px;
  line-height: 1.75;
}
.contact-form__row > .contact-form__label--optional {
  padding-left: 66px;
}
.contact-form__required {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 29px;
  border: 1px solid #fff;
  font-size: 14px;
  line-height: 1;
}
.contact-form input[type=text],
.contact-form input[type=tel],
.contact-form input[type=email],
.contact-form textarea {
  width: 100%;
  border: 1px solid #c0c5cc;
  border-radius: 0;
  outline: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
  background: transparent;
}
.contact-form input[type=text]::-moz-placeholder, .contact-form input[type=tel]::-moz-placeholder, .contact-form input[type=email]::-moz-placeholder, .contact-form textarea::-moz-placeholder {
  color: #c8c8c8;
  opacity: 1;
}
.contact-form input[type=text]::placeholder,
.contact-form input[type=tel]::placeholder,
.contact-form input[type=email]::placeholder,
.contact-form textarea::placeholder {
  color: #c8c8c8;
  opacity: 1;
}
.contact-form input[type=text]:focus,
.contact-form input[type=tel]:focus,
.contact-form input[type=email]:focus,
.contact-form textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}
.contact-form input[type=text],
.contact-form input[type=tel],
.contact-form input[type=email] {
  height: 40px;
  padding: 0 20px;
}
.contact-form__row--category {
  align-items: start;
  min-height: 112px;
  padding-top: 6px;
}
.contact-form__radios {
  display: grid;
  grid-column: 2;
  gap: 10px;
  padding-top: 2px;
}
.contact-form__radios label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
.contact-form__radios input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #fff;
}
.contact-form__row--message {
  align-items: start;
  min-height: 237px;
}
.contact-form textarea {
  height: 217px;
  padding: 14px 20px;
  resize: vertical;
}
.contact-form__agreement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  font-size: 16px;
  line-height: 1.75;
  cursor: pointer;
}
.contact-form__agreement input {
  display: grid;
  flex: 0 0 28px;
  place-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 1px solid #fff;
  border-radius: 0;
  appearance: none;
  background: transparent;
}
.contact-form__agreement input::before {
  width: 7px;
  height: 12px;
  border: solid #050021;
  border-width: 0 2px 2px 0;
  content: "";
  transform: translateY(-1px) rotate(45deg) scale(0);
}
.contact-form__agreement input:checked {
  background: #fff;
}
.contact-form__agreement input:checked::before {
  transform: translateY(-1px) rotate(45deg) scale(1);
}
.contact-form__agreement input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.contact-form__submit {
  display: block;
  width: 100%;
  height: 51px;
  margin-top: 55px;
  border: 1px solid #fff;
  border-radius: 0;
  color: #222;
  font-size: 16px;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.contact-form__submit:hover, .contact-form__submit:focus-visible {
  color: #fff;
  background: transparent;
}

.contact-footer {
  background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
  .contact-page-body {
    min-width: 0;
  }
  .contact-page {
    min-height: 0;
  }
  .contact-breadcrumb {
    top: 96px;
    left: 20px;
    gap: 10px;
  }
  .contact-hero {
    height: 240px;
    padding: 160px 20px 0;
  }
  .contact-hero__title {
    gap: 20px;
    font-size: 32px;
  }
  .contact-hero__title::after {
    width: 146px;
  }
  .contact-form {
    min-height: 0;
    padding: 58px 20px 90px;
  }
  .contact-form__inner {
    width: 100%;
  }
  .contact-form__title {
    font-size: 32px;
  }
  .contact-form__body {
    margin-top: 58px;
  }
  .contact-form__row {
    display: block;
    min-height: 0;
    margin-bottom: 24px;
  }
  .contact-form__row > label, .contact-form__row > legend {
    margin-bottom: 10px;
    font-size: 14px;
  }
  .contact-form__required {
    flex-basis: 42px;
    width: 42px;
    height: 25px;
    font-size: 12px;
  }
  .contact-form__row--category {
    padding-top: 0;
  }
  .contact-form__radios {
    grid-column: auto;
    padding: 4px 0 0;
  }
  .contact-form__radios label {
    font-size: 14px;
  }
  .contact-form__row > .contact-form__label--optional {
    padding-left: 60px;
  }
  .contact-form__row--message {
    min-height: 0;
  }
  .contact-form textarea {
    height: 190px;
  }
  .contact-form__agreement {
    margin-top: 34px;
    font-size: 14px;
  }
  .contact-form__agreement input {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }
  .contact-form__submit {
    margin-top: 34px;
  }
}
