/* ============================================
   Block: account-profile — профиль пользователя
   ============================================ */

.b-account-profile {
  color: var(--text, #3B3437);
  font-family: 'Manrope', sans-serif;
}

.b-account-profile__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 22px;
}

.b-account-profile__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.b-account-profile__card {
  background: var(--surface, #FDFBF7);
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 16px;
  padding: 24px;
}

.b-account-profile__card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 16px;
}

.b-account-profile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.b-account-profile__field--wide {
  grid-column: 1 / -1;
}

/* Чекбоксы подписок */

.b-account-profile__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.b-account-profile__check + .b-account-profile__check {
  margin-top: 12px;
}

.b-account-profile__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.b-account-profile__check-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 4px;
  background: var(--surface, #FDFBF7);
  position: relative;
  transition: background .2s, border-color .2s;
}

.b-account-profile__check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.b-account-profile__check input:checked + .b-account-profile__check-box {
  background: var(--accent, #6E5A7E);
  border-color: var(--accent, #6E5A7E);
}

.b-account-profile__check input:checked + .b-account-profile__check-box::after {
  opacity: 1;
}

.b-account-profile__save {
  align-self: flex-start;
  min-width: 240px;
}

@media (max-width: 480px) {
  .b-account-profile__grid {
    grid-template-columns: 1fr;
  }

  .b-account-profile__card {
    padding: 18px;
  }

  .b-account-profile__save {
    width: 100%;
  }
}
