.page {
  block-size: 100dvh;
  display: flex;
  flex-direction: column;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.main {
  margin: auto;
  text-transform: none;
  flex-grow: 0;
}


.main-form__container {
  background: #F6F1E6;
}

.form-header {
  text-align: center;
}

.career-steps-button {
  display: flex;
  min-height: 52px;
  max-height: 52px;
  padding: 0px var(--SPx4, 16px);
  justify-content: center;
  align-items: center;
  gap: var(--SPx2, 8px);
  align-self: stretch;
  border-radius: var(--BRx5, 20px);
  background: var(--bg-blackConst, #000);
  overflow: hidden;
  color: var(--text-primaryInverted, #F6F6F9);
  text-align: center;
  font-feature-settings: 'liga' off, 'clig' off;
  text-overflow: ellipsis;

  font-size: var(--Font-Size-action, 17px);
  font-style: normal;
  font-weight: 550;
  line-height: var(--Font-Line-height-action, 22px);
}

.form-ambassador__wrapper {
  padding: 32px 32px 90px 32px;
}

@media (max-width: 1023px) {
  .form-ambassador__wrapper {
    padding-bottom: 120px;
  }
}

@media (max-width: 425px) {
  .form-ambassador__wrapper {
    padding: 28px 0 45px 0;
  }
}

.invalid {
  border-color: #ff0000 !important;
}

.invalid input {
  border-color: #ff0000 !important;
}

.form-field.error {
  border: 1px solid #ff0000;
  border-radius: var(--Input-Total-radius, 20px);
}

.main-form__wrapper {
  display: flex;
  border-radius: 60px;
  background: #FFF;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 171px 68px 171px;
  gap: 60px;
  flex-direction: column;
  box-sizing: border-box;
}

.form-section {
  display: flex;
  max-width: 550px;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.send-form__button {
  display: flex;
  max-width: 550px;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 46px;
  margin-top: -24px;
}

.ambassador-data__navigation {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
  gap: 4px;
  margin-bottom: 26px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
}

@media (max-width: 1024px) {
  .main-form__wrapper {
    display: inline-flex;
    padding: 60px 90px;
    align-items: center;
    gap: 48px;
    border-radius: 40px;
  }

  .send-form__button {
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .ambassador-data__navigation {
    margin-bottom: 32px;
  }
}

.form-header h1 {
  font-size: 44px;
  line-height: var(--Font-Line-height-title1, 48.8px);
}

.form-title {
  font-size: 24px;
  line-height: 30px;
}

@media (max-width: 768px) {
  .main-form__wrapper {
    padding: 60px 40px;
    gap: 48px;
    border-radius: 32px;
  }

  .form-title {
    font-size: 17px;
    line-height: 20px;
  }

  .form-header h1 {
    font-size: 24px !important;
    line-height: 34px;
  }
}

@media (max-width: 425px) {
  .main-form__wrapper {
    display: inline-flex;
    padding: 48px 16px;
    justify-content: center;
    align-items: center;
    gap: 32px;
    border-radius: 24px;
  }

  .form-header h1 {
    font-size: 24px;
    line-height: 30px;
    text-align: center;
  }

  .main-text__p {
    text-align: center;
  }

  .form-field input {
    width: 100%;
  }

  .legal-checkbox {
    flex-direction: row;
    align-items: center;
  }

  .send-form__button {
    width: 100%;
    gap: 16px;
  }

  .career-steps-button {
    width: 100% !important;
  }

  .ambassador-data__navigation {
    margin-left: 16px !important;
    margin-bottom: 28px;
  }
}

.application-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.form-field {
  width: 100%;
  position: relative;
}

.form-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  border-radius: var(--Input-Total-radius, 20px);
  border: 1px solid var(--filledArea-stroke-defaultOff, #F6F6F9);
  background: var(--filledArea-bg-default, #F6F6F9);
}

.legal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}

.toggle-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.checked-toggle-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.toggle-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--Accent, #E0E0EB);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.radio-group p {
  color: var(--text-primary, #242429);
  font-size: var(--Font-Size-action, 17px);
  font-style: normal;
  line-height: var(--Font-Line-height-action, 22px);
  text-align: left !important;
}

.toggle-label {
  font-size: 17px;
  cursor: pointer;
}

input[type="radio"]:checked+.checkbox-switch .toggle-circle {
  border: 2px solid var(--Accent, #3B35F7);
  background: #3B35F7;
}

input[type="radio"]:checked+.checkbox-switch .checkbox-icon circle {
  fill: white !important;
}

.form-section_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.form-section--rez {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}

.form-field--big input {
  display: flex;
  height: 80px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  align-self: stretch;
}

.form-input--big {
  display: flex;
  min-height: 52px;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 0 0;
  align-self: stretch;
}

.form-rez {
  display: flex;
  min-height: 24px;
  justify-content: center;
  align-items: flex-start;
  gap: var(--SPx1, 4px);
  border: none;
  background: none;
}

.form-rez--text {
  color: var(--Accent, #3B35F7);
  overflow: hidden;
  font-size: var(--Font-Size-body, 15px);
}

.custom-select-btn {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: none;
  border-radius: 20px;
  font-size: 17px;
  border: 1px solid #F6F6F9;
  background: #F6F6F9;
  text-align: left;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select-btn .placeholder-text {
  color: #8B8B8B;
}

.custom-select-btn .dropdown-icon {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.2945 9.29462C16.9052 8.90535 16.2742 8.905 15.8845 9.29385L11.9999 13.17L8.11526 9.29385C7.72557 8.905 7.09454 8.90535 6.70527 9.29462C6.31569 9.68419 6.31569 10.3158 6.70527 10.7054L11.2928 15.2929C11.6833 15.6834 12.3165 15.6834 12.707 15.2929L17.2945 10.7054C17.6841 10.3158 17.6841 9.68419 17.2945 9.29462Z' fill='%238B8B8B'/%3E%3C/svg%3E");
  transition: transform 0.3s ease;
}

.custom-select-btn.active .dropdown-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.70527 14.7052C7.09454 15.0945 7.72557 15.0948 8.11526 14.706L11.9999 10.8298L15.8845 14.706C16.2742 15.0949 16.9052 15.0945 17.2945 14.7052C17.6841 14.3157 17.6841 13.684 17.2945 13.2945L12.707 8.70696C12.3165 8.31643 11.6833 8.31643 11.2928 8.70696L6.70527 13.2945C6.31569 13.684 6.31569 14.3157 6.70527 14.7052Z' fill='%238000FF'/%3E%3C/svg%3E");
  transform: rotate(0deg);
}

.custom-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-level-2, #F6F6F9);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
  padding: 16px 8px 16px 20px;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  max-height: 326px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollBar-default, #E0E0EB) transparent;
}

.custom-dropdown.active {
  display: flex;
}

.custom-dropdown::-webkit-scrollbar {
  width: 4px;
}

.custom-dropdown::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 8px;
  margin: 4px 0;
}

.custom-dropdown::-webkit-scrollbar-thumb {
  background-color: var(--scrollBar-default, #E0E0EB);
  border-radius: 8px;
  height: 48px;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dropdown-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.dropdown-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.dropdown-item {
  padding-top: 13px;
}

.dropdown-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
}

.dropdown-input {
  position: absolute;
  opacity: 0;
}

.dropdown-checkbox {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
}

.dropdown-input:checked+.dropdown-checkbox {
  background-color: #8000FF;
  border-color: #8000FF;
}

.dropdown-input:checked+.dropdown-checkbox::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dropdown-text {
  font-size: 15px;
  color: #333;
  display: block;
  text-align: left;
  margin-bottom: 13px;
}

.dropdown-text-wrapper {
  flex: 1;
  border-bottom: 1px solid var(--separator-default, rgba(45, 45, 83, 0.30));
  margin-right: 10px;
}

.custom-select-btn.active {
  border-color: #8000FF;
}

.circle-overlay svg {
  width: 100%;
  display: block;
}

.custom-checkbox-checked .custom-toggle-circle {
  border-color: #3B35F7;
  background-color: #3B35F7;
}

.custom-checkbox-checked .custom-checkbox-icon circle {
  fill: white;
}

.custom-checkbox-error .custom-toggle-circle {
  border-color: #ddd;
  background-color: transparent;
}

.custom-checkbox-error .custom-checkbox-icon circle {
  fill: transparent;
}

.custom-error-text {
  display: none;
}

.custom-checkbox-error .custom-error-text {
  display: block;
}

#reserveConsent+label.custom-checkbox-checked .custom-toggle-circle {
  border-color: #3B35F7;
  background-color: #3B35F7;
}

#reserveConsent+label.custom-checkbox-checked .custom-checkbox-icon circle {
  fill: white;
}

#reserveConsent+label:not(.custom-checkbox-checked) .custom-toggle-circle {
  border-color: #ddd;
  background-color: transparent;
}

#reserveConsent+label:not(.custom-checkbox-checked) .custom-checkbox-icon circle {
  fill: transparent;
}

.phone-input-group {
  position: relative;
  width: 100%;
}

.phone-input-icons {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
  pointer-events: none;
}

.phone-input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 16px 16px 56px;
  border: none;
  border-radius: 20px;
  font-size: 17px;
  border: 1px solid #F6F6F9;
  background: #F6F6F9;
  position: relative;
  z-index: 1;
}

.date-input-group {
  position: relative;
  width: 100%;
}

.date-input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 50px 16px 16px;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  border-radius: var(--Input-Total-radius, 20px);
  border: 1px solid var(--filledArea-stroke-defaultOff, #F6F6F9);
  background: var(--filledArea-bg-default, #F6F6F9);
  cursor: pointer;
}

.date-picker-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.date-picker {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.date-picker::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

.bottom-background {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2232px;
  background: url('/intern/ru/assets/intern/img/file2.png') lightgray 50% / cover no-repeat;
  mix-blend-mode: overlay;
  filter: blur(2px);
  z-index: 3;
  mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 5%,
      black 95%,
      transparent 100%);
}

.svg--bottom-background {
  position: absolute;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
}

.content-wrapper {
  background: linear-gradient(180deg, #E8E5FF 82.46%, rgba(230, 224, 255, 0.00) 100%);
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2232px;
  opacity: 0.7;
}

.ambassador-data__nav-link {
  padding-left: 0;
  display: flex;
  gap: 4px;
}

.validation-wrapper {
  width: 100%;
}

.custom-checkbox-switch {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
}

.custom-toggle-circle {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-checkbox-icon circle {
  transition: all 0.2s ease;
}

.custom-toggle-label {
  color: var(--text-icon-secondary, #8F8FA3);
  font-size: 17px;
  line-height: var(--Font-Line-height-action, 22px);
  text-align: left;
  display: block;
}

.custom-toggle-label a {
  color: var(--text-icon-secondary, #8F8FA3);
}

input[type="checkbox"]:checked+label .custom-toggle-circle {
  border-color: #3B35F7;
  background-color: #3B35F7;
}

input[type="checkbox"]:checked+label .custom-checkbox-icon circle {
  fill: white;
}

.form-input__input-tel-block {
  position: relative;
}

.form-input__label.danger .form-input__input {
  border-color: #f44;
}

.form-input__input {
  width: 100%;
  border-radius: 12px;
  height: 56px;
  padding: 16px;
  border: 1px solid #d1cfd7;
  color: #000;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 16px;
}

.form-input__input:focus-visible {
  outline: none;
}

@media (max-width: 1024px) {
  .form-input__input-btn {
    height: 48px;
    padding: 11px 6px 11px 15px;
  }

  .form-input__span-tel-code {
    left: 70px;
  }

  .form-input__tel-list {
    border-radius: 14px;
  }

  .form-input__input-tel {
    padding: 8px 8px 8px 114px !important;
  }
}

.form-input__input-btn {
  position: absolute;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0px 16px 16px;
  background-color: transparent;
  border-radius: 12px 0 0 12px;
  height: 56px;
  gap: 4px;
  border: 0px;
}

.form-input__label-tel.danger .form-input__input-btn {
  border: solid 1px #f44;
}

.form-input__input-btn-img,
.form-input__tel-img {
  display: block;
  width: 26px;
  height: 26px;
}

.form-input__label-tel.danger .form-input__input-btn-svg {
  fill: #f44 !important;
}

.form-input__input-btn-svg {
  fill: #8b8b8b;
}

.form-input__input-btn-svg.active {
  transform: rotate(180deg);
}

.form-input__input:focus-visible+.form-input__input-btn .form-input__input-btn-svg {
  fill: #8000ff;
}

.form-input__span-tel-code {
  left: 75px;
  position: absolute;
  text-align: right;
  font-size: 17px;
  color: #000;
  display: block;
  width: 40px;
  z-index: 2;
  font-family: Als Hauss VF;
}

.form-input__tel-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  position: absolute;
  top: calc(100% + 8px);
  display: none;
  max-width: 320px;
  width: 100%;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0px 4px 32px 0px rgba(139, 139, 139, 0.25);
  z-index: 10;
}

.form-input__tel-list.active {
  display: flex;
}

.form-input__tel-btn {
  display: flex;
  width: 100%;
  border: transparent;
  background-color: transparent;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 12px;
}

@media (min-width: 1400px) {
  .form-input__tel-btn:hover {
    background-color: #fafafa;
  }
}

.form-input__tel-text {
  margin-bottom: 0;
  color: #000;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 16px;
}

.form-input__tel-span {
  color: #8b8b8b;
}

.form-input__input-tel {
  padding: 16px 16px 16px 118px !important;
}

.form-input__input-tel-block {
  position: relative;
}

.custom-toggle-circle {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-checkbox-icon circle {
  transition: all 0.2s ease;
}

input[type="checkbox"]:checked+label .custom-toggle-circle {
  border-color: #3B35F7;
  background-color: #3B35F7;
}

input[type="checkbox"]:checked+label .custom-checkbox-icon circle {
  fill: white;
}

.custom-error-text {
  color: #ff3333;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.custom-required-mark {
  color: #ff3333;
}

.auth {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

}

.header-auth {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  inline-size: clamp(23.875rem, 5.2632rem + 71.9298vw, 70rem);
  padding: 18px 0;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
}

.header__text {
  color: var(--text-primary, #242429);
  font-feature-settings: 'liga' off, 'clig' off;

  font-size: var(--Font-Size-title3, 17px);
  font-style: normal;
  font-weight: 650;
  line-height: var(--Font-Line-height-title3, 20px);
}

.wrapper-auth {
  inline-size: clamp(20rem, 12.5rem + 37.5vw, 46.25rem);
  padding: clamp(2.625rem, 2.1711rem + 1.7544vw, 3.75rem) clamp(1.5rem, -0.2527rem + 6.7739vw, 5.84375rem);
  border-radius: 32px;
  box-shadow: 0 4px 24px 0 rgba(16, 3, 43, 0.07);
  background-color: #fff;
  align-self: center;
  position: relative;
}


.content {
  display: flex;
  flex-direction: column;
}

.content__title {
  color: #000;
  text-align: center;
  font-size: clamp(1.5rem, 1.2478rem + 0.9747vw, 2.125rem);
  font-style: normal;
  font-weight: 650;
  line-height: clamp(1.813rem, 1.614rem + 0.85vw, 2.375rem);
  white-space: pre-line;
}

.content__form {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  margin-top: 40px;
}


.tel-auth {
  font-size: 17px;
  border-radius: var(--BRx5, 20px);
  border: 1px solid var(--filledArea-stroke-defaultOff, #F6F6F9) !important;
  background: var(--filledArea-bg-default, #F6F6F9) !important;
  font-family: 'ALS Hauss VF', 'sans-serif';
}

input:autofill,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input:-internal-autofill-selected {
  outline: none;
  -webkit-text-fill-color: black !important;
  -webkit-box-shadow: 0 0 0px 1000px #F6F6F9 inset !important;
}



.dop-padding {
  padding-left: 120px !important;
}

.content__button {
  border: none;
  padding: 16px 0;
  inline-size: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--BRx5, 20px);
  background: var(--bg-blackConst, #000);

  color: var(--text-icon-primaryInverted, #F6F6F9);
  text-align: center;

  font-size: var(--Font-Size-action, 17px);
  font-style: normal;
  font-weight: 550;
  line-height: var(--Font-Line-height-action, 20px);
}

.content__button_disabled {
  background-color: #333;
  pointer-events: none;
}

.form-input-error {
  position: absolute;
  top: 40%;
  z-index: 2;
  font-size: 12px;
  color: #FA2B55;
}

.content__form__input_type_error {
  border: 1px solid #FA2B55;
}

.content__form__error_visible {
  display: block;
}

.content__button>a {
  color: #fff;
}

.form-input__input-btn-svg.active {
  transform: rotate(-180deg);
}

.form-input__input-btn-svg {
  transition: all 0.1s ease-in-out;
}

.btn_auth {
  /* top: auto; */
  gap: 2px;
}

.form-input__tel-list {
  top: 40%;
}

.span-tel-auth {
  top: 20px;
  line-height: 1;
}

.modal_code {
  display: none;
}

.modal_tel {
  display: none;
}

.modal {
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 11;

  display: none;
}

.popup__header {
  align-self: center;
}

.popup__content {
  inline-size: clamp(20rem, 12.5rem + 37.5vw, 46.25rem);
  padding: clamp(2.625rem, 2.1711rem + 1.7544vw, 3.75rem) clamp(1.5rem, -0.2527rem + 6.7739vw, 5.84375rem);
  border-radius: 32px;
  box-shadow: 0 4px 24px 0 rgba(16, 3, 43, 0.07);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 7.5% auto;
}

.mobile-break {
  display: none;
}

.modal__close {
  position: absolute;
  top: 35px;
  left: 35px;
}

.popup__title {
  font-size: clamp(1.5rem, 1.28rem + 0.94vw, 2.125rem);
  color: var(--text-icon-primary, #242429);
  white-space: pre-line;
  line-height: clamp(1.813rem, 1.614rem + 0.85vw, 2.375rem);
  text-align: center;
  font-weight: 650;
}

.popup_description {
  white-space: pre-line;

  color: var(--text-icon-primary, #242429);
  text-align: center;
  font-size: var(--Font-Size-body, 15px);
  font-style: normal;
  font-weight: var(--Font-Font-Weight-regular, 450);
  line-height: var(--Font-Line-height-body, 20px);

  margin-top: 12px;
}

.popup__code-inputs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
}

.popup__code-inputs input {
  width: 38px;
  height: 52px;
  border: 1px solid #F6F6F9;
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  outline: none;
  background-color: #F6F6F9;
  color: #000;
  font-size: clamp(1.5rem, 1.28rem + 0.94vw, 2.125rem);
  font-weight: 600;
}

.popup__code-inputs input:nth-child(3) {
  margin-inline-end: 12px;
}

.popup__button {
  width: 100%;
  height: 52px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: var(--BRx5, 20px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 17px;
  cursor: pointer;
  font-weight: 550;
  transition: background-color 0.3s;
  margin-top: 40px;
}

.popup__button:hover {
  background-color: #333;
}

.popup__resend-code {
  margin-block-start: 20px;
  text-align: center;

  color: var(--text-icon-secondary, #8F8FA3);
  font-size: var(--Font-Size-body, 15px);
  font-style: normal;
  font-weight: var(--Font-Font-Weight-regular, 550);
  line-height: var(--Font-Line-height-body, 20px);

  display: flex;
  align-items: center;
  gap: var(--SPx1, 4px);
}

.popup__resend-code_active {
  cursor: pointer;
  text-align: left;
  justify-content: center;
}

.popup__button_disabled {
  background-color: #333;
  pointer-events: none;
}

.popup-error {
  color: var(--text-icon-danger, #FA1F4B);
  text-align: center;
  font-size: var(--Font-Size-body, 15px);
  font-style: normal;
  font-weight: var(--Font-Font-Weight-regular, 450);
  line-height: var(--Font-Line-height-body, 20px);
  margin-top: 8px;
}

.popup__error_visible {
  display: block;
}

.loading {
  display: none;
}

.loading_visible {
  display: block;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.header__buttons {
  display: flex;
  gap: 16px;
}

.header-ambass-button-nav {
  border: none;
  display: flex;
  min-width: 52px;
  max-width: 52px;
  min-height: 52px;
  padding: var(--SPx1, 4px) 14px;
  justify-content: center;
  align-items: center;
  border-radius: var(--BRfull, 100px);
  background: var(--controls-bg-neutralLight-default, #F6F6F9);
  display: none;
}

.nav__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFF;
  z-index: 100;

  display: none;
  padding: 16px 0 32px 0;
}

.modal_is-opened {
  display: flex;
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  transition: visibility 0s, opacity 0.6s;
}

.nav__modal__wrapper {
  position: relative;
  inline-size: clamp(18rem, -1.273rem + 96.36vw, 71rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  height: 100%;
}

.nav__modal_navigation {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.nav__modal_list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style-type: none;
}

.nav__modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav__modal-close {
  border: none;
  display: inline-block;
  min-width: 52px;
  max-width: 52px;
  min-height: 52px;
  padding: var(--SPx1, 4px) 14px;
  border-radius: var(--BRfull, 100px);
  background: var(--controls-bg-neutralLight-default, #F6F6F9);
  position: absolute;
  cursor: pointer;
  right: 0;
  top: 0;
  left: auto;
}

.nav__modal-close:focus {
  border: none;
  outline: none;
}

.nav__modal-close:hover .nav__modal-close-img {
  opacity: 0.6;
}

.header-ambass-button-nav:hover .header-ambass-button-nav-img {
  opacity: 0.6;
}

.nav__modal__user-info {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav__modal__user-photo {
  border-radius: var(--BRfull, 100px);
  width: 44px;
  height: 44px;
  aspect-ratio: 1/1;
}

.nav__modal__user-name {
  color: var(--text-primary, #242429);
  text-align: center;
  font-feature-settings: 'liga' off, 'clig' off;
  font-size: var(--Font-Size-action, 17px);
  font-style: normal;
  font-weight: var(--Font-Font-Weight-regular, 400);
  line-height: var(--Font-Line-height-action, 20px);
}

.dark-button {
  transition: background-color 0.2s ease-in-out;
}

.dark-button:hover {
  background-color: #2F2F37;
}

.white-button {
  color: #242429;
  background-color: #f6f6f9;
  transition: background-color 0.2s ease-in-out;
}

.white-button:hover {
  background-color: #E0E0EB;
}

.header__user__img {
  width: 44px;
  height: 44px;
  aspect-ratio: 1/1;
  border-radius: var(--BRfull, 100px);
}

.header__user__img__button {
  cursor: pointer;
  background: none;
  border: none;
}

.header__modal {
  display: none;
  position: absolute;
  right: -52px;
  width: 200px;
  top: calc(100% + 16px);
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
  border-radius: var(--BRx5, 20px);
  background: var(--modal-bg, #FFF);
  box-shadow: 0 4px 32px 0 rgba(23, 23, 28, 0.16);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease-out;
  visibility: hidden;
  overflow: hidden;
}

.header__modal_active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.header__modal__list {
  width: 100%;
  list-style: none;
}

.header__modal__item,
.header__modal__button {
  width: 100%;
  padding: 20px 16px;
  color: var(--text-icon-primary, #242429);
  font-feature-settings: 'liga' off, 'clig' off;

  font-size: var(--Font-Size-action, 17px);
  font-style: normal;
  font-weight: var(--Font-Font-Weight-regular, 400);
  line-height: var(--Font-Line-height-action, 20px);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.header__modal__item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  width: calc(100% - 32px);
  height: 0.333px;
  background-color: rgba(119, 119, 136, 0.50);
}

.header__modal__button {
  background: transparent;
  outline: none;
  border: none;
  width: 100%;
}

.header__modal__button:hover {
  background-color: #F6F6F9;
}

@media screen and (orientation: portrait) {
  .popup__content {
    margin-block-start: 5.125rem;
  }
}

@media screen and (min-width: 550px) {
  .header-auth {
    max-inline-size: 1120px;
    inline-size: 100%;
    padding-inline-start: 10px;
    padding-inline-end: 24px;
  }
}

@media screen and (max-width: 550px) {
  .header-auth {
    flex-direction: column;
    padding: 16px 0;
  }

  .header__text {
    align-self: flex-start;
  }

  .header__link {
    align-self: flex-start;
  }

  .header__logo {
    width: 170px;
    height: 38px;
    margin-inline-start: -8px;
  }

  .desktop-break {
    display: none;
  }

  .mobile-break {
    display: inline;
  }
}

@media screen and (max-width: 400px) {
  .header-auth {
    padding-left: 14px;
  }

  .header__logo {
    margin-inline-start: -5px;
  }

  .header__text {
    margin-inline-start: 4px;
  }

  .popup__content {
    margin-block-start: 3rem;
  }
}

@media screen and (max-width: 370px) {
  .header__logo {
    margin-inline-start: 3px;
  }

  .header__text {
    margin-inline-start: 12px;
  }

  .header-auth {
    padding-left: 4px;
  }
}

@media screen and (max-width: 1200px) {
  .header-ambass-button-nav {
    display: block;
  }

  .header-button {
    display: none;
  }

  .header__nav {
    display: none;
  }

  .header__user__img {
    display: none;
  }
}

@media screen and (max-width: 1200px) and (min-width: 550px) {
  .nav__modal-buttons {
    flex-direction: row;
  }

  .modal-button {
    width: 100%;
  }
}

@media screen and (max-width: 414px) and (min-width: 375px) {
  .wrapper {
    inline-size: clamp(21.438rem, -2rem + 100vw, 23.875rem);
  }

  .popup__content {
    inline-size: clamp(21.438rem, -2rem + 100vw, 23.875rem);
  }
}

@media screen and (max-width: 800px) {
  .nav__modal__wrapper {
    inline-size: clamp(18rem, -0.491rem + 92.45vw, 42.5rem);
  }
}