.account-page.auth h1 {
  text-align: center;
  color: var(--white);
  margin-bottom: 30px;
  margin-top: 50px;
  font-size: 48px !important;
}

.account-page.auth .auth-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.account-page.auth .auth-wrapper .form {
  display: flex;
  flex-direction: column;
  max-width: 530px;
  align-items: center;
  width: 100%;
}

.account-page.auth .auth-wrapper .form * {
  width: 100%;
  max-width: 100%;
}

.account-page.auth .auth-wrapper .form::placeholder {
  color: var(--elementy-secondary) !important;
}

.account-page.auth .auth-wrapper .forget-password {
  text-align: center;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: var(--tekst-head-primary);
  margin-bottom: 40px;
  margin-top: 30px;
}

.account-page .input-holder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
}
.account-page .input-holder input {
  color: #000;
}
.error-auth {
  padding: 10px;
  /* background: var(--white); */
  font-size: 16px;
  font-weight: 400;
  /* color: var(--elementy-secondary); */
  border-radius: 15px;
  border: 1px solid var(--elementy-primary);
  color: var(--elementy-primary);
  margin: 20px 0;
  max-width: 530px;
}

.success-auth {
  padding: 10px;
  background: var(--white);
  font-size: 16px;
  font-weight: 400;
  color: green;
  border-radius: 15px;
  border: 1px solid green;
  margin: 20px 0;
  max-width: 530px;
  text-align: center;
}

.new_user {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 135%;
  color: #e8e8e8;
  text-align: center;
  gap: 5px;
  justify-content: center;
  margin-bottom: 30px;
}

a.new_user_reg {
  font-weight: 800 !important;
  color: var(--primary-hover) !important;
  width: fit-content !important;
}

.registration_notice {
  font-family: var(--font5);
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  text-align: center;
  color: #c6c6c8;
  margin: 0 auto;
  margin-bottom: 30px;
}

/* Стили для полей с ошибкой */
.form-lanki input.error {
  border: 2px solid #dc3545 !important;
  background-color: #fff5f5 !important;
  animation: shake 0.3s ease-in-out;
}

.form-lanki input.error:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
  border-color: #dc3545 !important;
}

/* Анимация встряхивания для ошибочных полей */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Стили для кнопки показа/скрытия пароля */
.password-toggle {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 5px !important;
  z-index: 10 !important;
  width: auto !important;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#modal-document > div > div.form.form-lanki > div.input-holder > select,
#modal-application-document
  > div
  > div.form.form-lanki
  > div.input-holder
  > select {
  margin-top: 10px;
  width: 100%;
}

.document .top svg {
  flex-shrink: 0;
}

.orders {
  width: 100%;
}

.password-toggle:hover {
  opacity: 1;
}

.password-toggle svg {
  width: 20px !important;
  height: 20px !important;
  color: #666 !important;
  transition: color 0.3s ease;
}

.password-toggle:hover svg {
  color: #333 !important;
}

/* Добавляем отступ справа для поля пароля, чтобы текст не налезал на кнопку */
input[type="password"],
input[type="text"][data-password] {
  padding-right: 45px !important;
}

.select-wrapper {
  position: relative;
}

.custom-select * {
  box-sizing: border-box;
  transition: 0.3s ease-in;
}

.custom-select {
  position: relative;
  cursor: pointer;
  /* border: 2px solid var(--tekst-head-primary); */
  border-radius: 8px;
  padding: 9px 17px;
  background: var(--tekst-head-primary);
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  color: var(--elementy-secondary);
  display: flex;
  width: fit-content;
  height: fit-content;
  outline: none;
  resize: none;
  transition: var(--transition);
  box-sizing: border-box;
  align-items: center;
  min-height: 40px;
}

.custom-select.open {
  border-radius: 8px 8px 0 0;
}

.custom-select.error {
  border-color: #ff0000;
}

.select-selected {
  color: var(--tekst-main-text-secondary);
}

.select-items {
  /*display: none;*/
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: -1;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  background: var(--fon-background-fifth);
}

.select-item {
  border-radius: 8px;
  padding: 9px 17px;
  background: transparent;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  color: var(--elementy-secondary);
  display: flex;
  width: fit-content;
  height: fit-content;
  outline: none;
  resize: none;
  transition: var(--transition);
  overflow: hidden;
}

.select-item:hover {
  background: var(--tekst-head-primary);
}

.custom-select.open .select-items {
  display: flex;
  flex-direction: column;
  opacity: 1;
  z-index: 99;
}
.custom-select.open .select-item {
  /* color: #000; */
  color: #5e5e63;
}
.custom-select.open .select-selected {
  color: #000;
  color: #5e5e63 !important;
}

#primary.account-page {
  overflow: unset !important;
}

.custom-select svg {
  position: absolute;
  right: 26px;
  /* top: 18.5px; */
  /* transform: translateY(-7.5px); */
  transform: translateY(0);
  width: fit-content !important;
}
.custom-select svg path {
  stroke: #bebec0;
}

.custom-select.open svg {
  /* transform: translateY(-7.5px) rotate(180deg); */
  transform: translateY(0) rotate(180deg);
}

.backdrop {
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 50%);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.account-page .privacy-policy {
  /*     display: flex; */
  flex-direction: column;
  gap: 5px;
  width: fit-content !important;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 130%;
  text-align: center;
  color: #c6c6c8;
  align-items: center;
}

.personal-info {
  display: flex;
  align-items: center;
  background: var(--fon-background-fourth);
  padding: 30px 20px;
  border-radius: 16px;
  gap: 15px;
  margin-bottom: 50px;
}

.account-page .sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 280px;
  width: 100%;
}

.account-page .main-wrapper {
  display: flex;
  gap: clamp(1rem, -0.2rem + 7.5vw, 7rem);
}

.account-page .input-holder .input-from-label {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.account-page .input-holder .input-from-label label {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  line-height: 130%;
  color: var(--tekst-head-primary);
}

.account-page .input-holder .input-from-label input {
  width: 100%;
}

.personal-form .form-lanki .btn__v1 {
  width: fit-content;
}

.personal-form .form-lanki {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.personal-form .form-lanki .input-holder {
  width: 100%;
}

.account-page .sidebar * {
  transition: 0.3s ease-in;
}

.account-page .sidebar .tab.active svg path {
  fill: #1c1a22 !important;
}

.account-page .sidebar .tab.active {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 130%;
  color: #1c1a22;
  background: var(--elementy-primary);
  border: 1px solid var(--elementy-primary);
}

.personal-form {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 15px;
}

.account-page .order {
  padding: 25px 35px;
  border: 1px solid var(--tekst-head-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
}

.account-page.orders .personal-form {
  max-width: 100%;
}

.account-page .order .columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 750px;
  width: 100%;
}

.account-page .order .columns .order-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  white-space: nowrap;
}

.account-page .order .columns .order-column .name {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 130%;
  color: var(--tekst-head-primary);
}

.account-page .order .columns .order-column .value {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: var(--tekst-main-text-primary);
}

.account-page .orders-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.personal-form h3 {
  color: white;
}

.account-page .sidebar .tab:hover svg path {
  fill: #1c1a22 !important;
}

.account-page .sidebar .tab svg path {
  fill: var(--tekst-head-primary);
}

.account-page .sidebar .tab:hover {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 130%;
  color: #1c1a22;
  background: var(--elementy-primary);
  border: 1px solid var(--elementy-primary);
}

.account-page .sidebar .tab {
  padding: 14px 20px;
  background: transparent;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 130%;
  color: var(--tekst-head-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--tekst-head-primary);
  border-radius: 12px;
}

.display-name {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 20px;
  line-height: 130%;
  color: var(--tekst-head-primary);
}

.role {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  color: var(--tekst-main-text-primary);
}

.name-caps.logout {
  cursor: pointer;
}

.personal-info .svg-wrapper {
  border-radius: 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffca00;
}

.account-page .privacy-policy a {
  width: fit-content !important;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 130%;
  text-align: center;
  color: #c6c6c8;
}

.orders__date-status,
.orders__date-status * {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--tekst-main-text-primary);
}

.orders__table {
  border: 1px solid var(--tekst-head-primary);
  border-radius: 20px;
  width: fit-content;
}

.orders__table-row {
  width: 100%;
  padding: 20px 30px 2px 30px;
  display: grid;
}

div[data-type="logout"] {
  font-size: 12px;
}

.orders__table-row * {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 16px;
  line-height: 130%;
  color: var(--tekst-head-primary);
}

.orders__table-cell .val {
  font-family: var(--font-family) !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 130% !important;
  color: var(--tekst-main-text-primary) !important;
}

.orders__table-cell {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 16px;
  line-height: 130%;
  color: var(--tekst-head-primary);
}

.orders__address-title {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 26px;
  line-height: 120%;
  color: var(--tekst-head-primary);
  margin-bottom: 20px;
}

.list {
  padding: 30px;
  border: 1px solid var(--tekst-head-primary);
  border-radius: 12px;
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orders__addresses {
  display: flex;
  gap: 30px;
  width: 100%;
}

.orders__address {
  width: 100%;
  max-width: 390px;
}

.order__documents .h4 {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 26px;
  line-height: 120%;
  color: var(--tekst-head-primary);
  margin-bottom: 20px;
}

.order__documents .documents-wrapper {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: clamp(1.25rem, 0.817rem + 1.92vw, 3.125rem);
}

@media (max-width: 1000px) {
  .order__documents .documents-wrapper {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .order__documents .documents-wrapper {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(1, 1fr);
  }
  .account-page .order .columns{
    grid-template-columns: repeat(1, 1fr);
  }
  .account-page .order .columns{
    gap: 15px;
  }
}
@media (max-width: 420px) {
  .orders__date-status,
  .orders__date-status * {
    margin-bottom: 10px;
  }
}

.list p {
  margin-bottom: unset !important;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: var(--tekst-main-text-primary);
}

.orders__table-row:nth-child(3) {
  padding-bottom: 25px !important;
}
.orders__table-row:nth-child(4) {
  border-bottom: 1px solid var(--tekst-main-text-primary);
}
.orders__table-row:nth-child(5) {
  border-bottom: 1px solid var(--tekst-main-text-primary);
}

.orders__table-row:nth-child(6) {
  border-bottom: 1px solid var(--tekst-main-text-primary);
}

.orders__table-row:nth-child(2),
.orders__table-row:nth-child(3) {
  padding: 2px 30px 20px 30px;
}

.orders__table-cell.orders__table-product {
  font-family: var(--font-family) !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 130% !important;
  color: var(--tekst-main-text-primary) !important;
}

.document {
  display: flex;
  flex-direction: column;
}

.document .top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  color: var(--elementy-secondary);
  border-radius: 12px 12px 0 0;
  background: var(--tekst-head-primary);
}

.document .bot {
  padding: 15px 30px;
  border-radius: 0 0 12px 12px;
  background: var(--fon-background-fifth);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#modal-document input[type="file"] {
  display: flex !important;
  margin-top: 10px !important;
}

#modal-application-document input[type="file"] {
  display: flex !important;
  margin-top: 10px !important;
}

.documents-button {
  display: flex;
  align-items: center;
  /* padding-top: 50px; */
  justify-content: space-between;
  gap: 20px;
}

.document .bot * {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  color: var(--tekst-main-text-secondary);
}

.order__documents {
  width: 100%;
}

@media (max-width: 768px) {
  .account-page .main-wrapper {
    flex-direction: column;
  }
  .account-page .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    width: 100%;
    max-width: 100%;
  }
  .account-page .order {
    flex-direction: column;
  }
  .account-page .order .auth-btn__v1 {
    width: 100%;
  }
  .account-page br.br_reg {
    display: none;
  }
}

@media (max-width: 550px) {
  .orders__addresses {
    flex-direction: column;
  }
  .account-page.auth h1 {
    font-size: 25px !important;
  }
}
