.lk-auth {
  max-width: 812px;
  margin: 0 auto;
}

.lk-auth__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  margin-left: -82px;
}

.lk-auth__tab {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 500;
  color: #7a839b;
  cursor: pointer;
}

.lk-auth__tab.active {
  color: #10275c;
}

.lk-auth__panel {
  display: none;
}

.lk-auth__panel.active {
  display: block;
}

.contacts-form__field label span {
  color: #ff0000;
}

.contacts-form__errors {
  margin-bottom: 24px;
}

.contacts-form__error {
  color: #ff0000;
  font-size: 14px;
  line-height: 1.4;
}

.contacts-form__success {
  margin-bottom: 24px;
  color: #10275c;
  font-size: 14px;
}

.contacts-form__password {
  position: relative;
}

.contacts-form__password input {
  padding-right: 40px;
}

.contacts-form__password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.contacts-form__forgot {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #7a839b;
  text-decoration: none;
}

.contacts-form__forgot:hover {
  color: #10275c;
}

.contacts-form__client-type {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 42px;
  width: 100%;
}

.contacts-form__client-type .contacts-form__checkbox {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  cursor: pointer;
  padding: 15px;
  background-color: var(--white);
}

.contacts-form__client-type .contacts-form__checkbox input {
  display: none;
}

.contacts-form__client-type .contacts-form__checkbox span {
  position: relative;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border: 1px solid #10275c;
  background: #ffffff;
}

.contacts-form__client-type .contacts-form__checkbox span::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 3px;
  width: 9px;
  height: 18px;
  border-right: 2px solid #d8a760;
  border-bottom: 2px solid #d8a760;
  transform: rotate(45deg);
  opacity: 0;
}

.contacts-form__client-type .contacts-form__checkbox input:checked + span {
  background: #10275c;
}

.contacts-form__client-type .contacts-form__checkbox input:checked + span::before {
  opacity: 1;
}

.contacts-form__client-type .contacts-form__checkbox p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #333333;
}

@media (max-width: 767px) {
  .contacts-form__client-type {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }

  .contacts-form__client-type .contacts-form__checkbox {
    gap: 14px;
  }

  .contacts-form__client-type .contacts-form__checkbox p {
    font-size: 14px;
  }
}

/*=======================*/

.profile-page {
  max-width: 1620px;
  margin: 0 auto;
}

.profile-page__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  margin-bottom: 36px;
}

.profile-page__tab {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  color: #7a839b;
  cursor: pointer;
}

.profile-page__tab.active {
  color: #10275c;
}

.profile-page__panel {
  display: none;
}

.profile-page__panel.active {
  display: block;
}

.profile-form .contacts-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* 1 ячейка — имя, только левая колонка */
.profile-form .contacts-form__field:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1;
}

/* 2 ячейка — телефон, левая колонка второго ряда */
.profile-form .contacts-form__field:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 2;
}

/* 3 ячейка — email, правая колонка второго ряда */
.profile-form .contacts-form__field:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2;
}

/* 4 ячейка — пароль, левая колонка третьего ряда */
.profile-form .contacts-form__field:nth-child(4) {
  grid-column: 1 / 2;
  grid-row: 3;
}

/* 5 ячейка — новый пароль, правая колонка третьего ряда */
.profile-form .contacts-form__field:nth-child(5) {
  grid-column: 2 / 3;
  grid-row: 3;
}

.profile-form .contacts-form__field {
  width: 100%;
}

.profile-form .contacts-form__field input {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.contacts-form__client-block.is-hidden {
  display: none;
}

.contacts-form__client-type {
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 32px;
}

.contacts-form__section-title {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 400;
}

.category-item__picture {
  position: absolute;
  inset: 0;
  display: block;
}



.category-item__content {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
}

/*.category-block {*/
/*  opacity: 0;*/
/*  visibility: hidden;*/
/*  transform: translateY(8px);*/
/*  transition:*/
/*          opacity 0.35s ease,*/
/*          transform 0.35s ease,*/
/*          visibility 0s linear 0.35s;*/
/*}*/

/*.category-block.is-ready {*/
/*  opacity: 1;*/
/*  visibility: visible;*/
/*  transform: translateY(0);*/
/*  transition:*/
/*          opacity 0.35s ease,*/
/*          transform 0.35s ease;*/
/*}*/

.compare-empty {
  display: flex;
  min-height: 242px;
  padding: 38px 0 94px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.compare-empty__title {
  margin: 0;
  color: #142c60;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.compare-empty__button {
  display: inline-flex;
  min-width: 290px;
  height: 44px;
  margin-top: 36px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #142c60;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.compare-empty__button:hover {
  color: #fff;
  background: #0d2049;
  text-decoration: none;
}

.product-card {
  position: relative;
}

.product-card__favorite {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: block;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d2ad79;
  fill: #ffffff;
  stroke: #d2ad79;
  cursor: pointer;
}

.product-card__favorite.added {
  fill: #d2ad79;
}

.product-card__favorite svg {
  display: block;
  width: 100%;
  height: 100%;
}

