.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 25px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.096px;
  color: #fff;
  cursor: pointer;
  width: 100%;
  border-radius: 12px;
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
  background-color: #2d9f75;
}
.button:hover {
  background-color: #192420;
}
.phone-link {
  font-weight: 500;
  font-size: 18px;
  line-height: 18px;
  text-align: right;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Затемняющий фон (скрыт по умолчанию) */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

/* Класс, который активирует попап */
.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Окно с контентом */
.popup-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

/* Анимация движения окна при открытии */
.popup-overlay.active .popup-content {
  transform: translateY(0);
}

/* Кнопка закрытия (крестик) */
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
}
.popup-close:hover {
  color: #333;
}
.reg {
  flex: 0 0 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 20px;
  border-radius: 20px;
  overflow: hidden;
}
.reg__title {
  font-size: 40px;
  line-height: 45px;
  letter-spacing: -0.4px;
}
.reg__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.084px;
}
.field__input {
  width: 100%;
  height: 48px;
  padding: 14px 16px;
  border: 1px solid #252626;
  border-radius: 10px;
  background: var(--panel-dark);
  color: #000;
  font: inherit;
  font-size: 14px;
}
.field__input::placeholder {
  color: #868c98;
}
.field__input:focus {
  outline: none;
  border-color: var(--green);
}

.phone {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #252626;
  border-radius: 10px;
  background: var(--panel-dark);
  overflow: hidden;
}
.phone__code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}
.phone__code img {
  width: 24px;
  height: 24px;
  border-radius: 3px;
}
.phone__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: none;
  border-left: 1px solid #252626;
  border-radius: 0;
  background: transparent;
}

.reg__checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green);
}
.check span {
  font-size: 12px;
  line-height: 19px;
  color: #a7aba1;
}
.reg__btn {
  width: 100%;
  border-radius: 12px;
  margin-top: auto;
}
.hidden {
  display: none;
}
.hidden {
  display: none !important;
  visibility: hidden !important;
}
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  flex-direction: column;
  z-index: 999999999;
}
.loader_block {
  display: flex;
  background: url(/upload/curse/block_bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid #242424;
  flex-direction: column;
  align-items: center;
}
.loader_block i {
  margin: 0 auto;
  margin-bottom: 12px;
  font-size: 50px;
  color: #e2e4e9;
  animation: spinSpring 1.5s ease-in-out infinite;
}
.white_text {
  color: #fff;
}

.b24-form-wrapper {
  max-width: 90% !important;
}

.form-bitrix {
  display: none;
}

.form-bitrix.active {
  display: block;
}
.b24-form-padding-side {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.b24-form-wrapper.b24-form-border-bottom {
  padding: 15px !important;
}
