/* ===== Modal (Личный кабинет) ===== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 38, 38, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 40px 36px 36px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f0ff;
  color: #684bec;
  transition: background 0.2s, color 0.2s;
}

.modal__close:hover {
  background: #684bec;
  color: #fff;
}

.modal__title {
  margin: 0 0 28px;
  padding-right: 36px;
  font-family: "Geometria", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  color: #262626;
}

.modal_row {
  width: 100%;
}

.reg-form .form_groop {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reg-form .form_groop[hidden] {
  display: none;
}

.reg-form .input_row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reg-form .label-item {
  font-family: "Google Sans", "Geometria", Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  color: #262626;
}

.reg-form input[type="text"] {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1.5px solid #e6e0ff;
  border-radius: 16px;
  background: #f8f6ff;
  font-family: "Geometria", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #262626;
  transition: border-color 0.2s, background 0.2s;
}

.reg-form input[type="text"]::placeholder {
  color: #a39bb8;
  font-weight: 500;
}

.reg-form input[type="text"]:focus {
  border-color: #684bec;
  background: #fff;
}

.reg-form .txt-modal {
  min-height: 1.2em;
  margin: 0;
  font-family: "Google Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #e24b4b;
}

.reg-form .txt-modal:empty {
  display: none;
}

.reg-form .btn_item {
  margin-top: 8px;
}

.reg-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #d9e51e;
  font-family: "Geometria", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #262626;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.reg-form .btn:hover {
  background: #684bec;
  color: #fff;
}

.reg-form .btn:active {
  transform: scale(0.98);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal__dialog {
    padding: 32px 20px 24px;
    border-radius: 24px;
  }

  .modal__title {
    margin-bottom: 22px;
    font-size: 26px;
  }

  .reg-form input[type="text"],
  .reg-form .btn {
    height: 52px;
    font-size: 16px;
  }
}
