:root {
  --bg-page: #ffffff;
  --white: #ffffff;
  --grey-400: #bdbdbd;
  --grey-500: #9e9e9e;
  --grey-600: #757575;
  --grey-800: #424242;
  --grey-900: #242424;
  --black-14: #141414;
  --orange: #ff8006;
  --orange-tap: #f8a700;
  --red: #ee0800;
  --shadow-card: 0 30px 60px rgba(0, 0, 0, 0.1);
  --radius-xl: 60px;
  --radius-pill: 999px;
  --btn-transition: 0.35s ease;
  --max: 1120px;
  --hub: 720px;
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Unbounded", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--black-14);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
p {
  margin: 0;
}

a.btn,
button.btn {
  -webkit-tap-highlight-color: transparent;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--white);
  font: 600 18px/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--btn-transition), color var(--btn-transition);
}

.btn--upper {
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn:hover {
  background: var(--grey-900);
  color: var(--white);
}

.btn:active {
  background: var(--orange-tap);
}

.btn:focus-visible,
.field__input:focus-visible,
.consent__input:focus-visible + .consent__box {
  outline: 3px solid rgba(255, 128, 6, 0.45);
  outline-offset: 3px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 24px;
}

.split:first-child {
  padding-bottom: 96px;
}

.split__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.split__art {
  width: min(460px, 100%);
}

h1,
.partner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  max-width: 18em;
  font-size: clamp(28px, 3.2vw, 40px);
}

.lead {
  max-width: 36em;
  color: var(--grey-600);
  font-size: 16px;
  font-weight: 500;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(460px, 100%);
}

.split__shot {
  width: min(520px, 100%);
  margin-inline: auto;
}

.split--portal {
  padding-top: 56px;
}

.hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(var(--hub), calc(100% - 40px));
  margin: 12px auto 72px;
}

.hub__mark {
  width: min(520px, 92%);
}

.partner {
  padding: 0 20px 80px;
}

.partner--page {
  padding-top: 24px;
}

.partner-logo {
  display: block;
  width: min(520px, 100%);
  margin: 0 auto 28px;
}

.partner-logo img {
  width: 100%;
  height: auto;
}

.partner__card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid rgba(189, 189, 189, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.partner h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.partner .lead {
  margin: 14px auto 28px;
}

.partner__form {
  text-align: left;
}

.partner__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--grey-600);
}

.field__label::after {
  content: " *";
  color: var(--red);
  font-weight: 700;
}

.field__label--optional::after {
  content: none;
}

.field__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--grey-400);
  border-radius: 16px;
  background: var(--white);
  color: var(--grey-900);
  font: 500 15px/1.3 var(--font);
}

select.field__input {
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23757575' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.custom-select {
  position: relative;
}

.custom-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.custom-select__trigger.is-placeholder {
  color: var(--grey-500);
}

.custom-select__trigger::after {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23757575' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 8px no-repeat;
}

.custom-select__list {
  position: absolute;
  z-index: 4;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--grey-400);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.custom-select__list[hidden] {
  display: none;
}

.custom-select__option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--grey-900);
  font: 500 15px/1.3 var(--font);
  text-align: left;
  cursor: pointer;
}

.custom-select__option:hover,
.custom-select__option.is-selected {
  background: rgba(255, 128, 6, 0.14);
}

.custom-select:has(.is-invalid) .custom-select__trigger {
  border-color: var(--red);
}

.field__input:focus:not(.is-invalid) {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 128, 6, 0.15);
}

.field__input.is-invalid {
  border-color: var(--red);
}

.field__input.is-invalid:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(238, 8, 0, 0.12);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  cursor: pointer;
}

.consent__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.consent__box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid var(--grey-400);
  border-radius: 6px;
  background: var(--white);
  display: grid;
  place-items: center;
}

.consent__box::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  margin-top: -2px;
}

.consent__input:checked + .consent__box {
  border-color: var(--orange);
  background: var(--orange);
}

.consent__input:checked + .consent__box::after {
  transform: rotate(45deg) scale(1);
}

.consent.is-invalid .consent__box {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(238, 8, 0, 0.12);
}

.form-status {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.form-status[hidden] {
  display: none;
}

.form-status--error {
  color: #9f1d1d;
  background: rgba(238, 8, 0, 0.08);
}

.form-status--success {
  color: #10553f;
  background: rgba(16, 85, 63, 0.08);
}

.consent__text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--grey-600);
}

.consent__text a,
.doc a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent__text a:hover,
.doc a:hover {
  color: var(--black-14);
}

.doc .partner-logo,
.doc .partner-logo:hover {
  color: inherit;
  text-decoration: none;
}

.doc {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.doc__back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--grey-800);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.doc__back:hover {
  color: var(--orange);
}

.doc h1 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 40px);
  text-align: left;
}

.doc__company {
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 700;
}

.doc__content {
  padding: clamp(24px, 4vw, 48px);
  background: var(--white);
  border: 1px solid rgba(189, 189, 189, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.doc__block + .doc__block {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(189, 189, 189, 0.45);
}

.doc__block h2 {
  margin: 0 0 16px;
  font-family: var(--font);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.25;
}

.doc__block p {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--grey-900);
}

.doc__block p:last-child {
  margin-bottom: 0;
}

.doc__block li {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--grey-900);
}

.doc__block ul {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.doc__block li + li {
  margin-top: 8px;
}

.doc__block--requisites p {
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .doc {
    width: min(860px, calc(100% - 32px));
    padding-bottom: 48px;
  }

  .doc__content {
    border-radius: 32px;
    padding: 24px 16px;
  }
}

.partner__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn--submit {
  width: min(100%, 280px);
}

.btn--submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.partner__footnote {
  margin: 16px auto 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--grey-600);
  text-align: center;
}

.partner__footnote-mark {
  color: var(--red);
  font-weight: 700;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    width: min(560px, calc(100% - 32px));
    padding-top: 28px;
  }

  .split__shot {
    order: -1;
  }

  .split--portal .split__shot {
    order: 1;
  }

  .hub {
    margin-bottom: 48px;
  }

  .partner__grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .partner {
    padding-bottom: 48px;
  }

  .partner__card {
    border-radius: 32px;
    padding: 24px 16px 28px;
  }
}
