/*==============================================
  account/account.css
  Страница «Личный кабинет» — Natasha Libelle
  Подключается после shared/base.css
  Без !important · Без inline-стилей
  Префикс классов: .ac-
==============================================*/

/* ── АНИМАЦИЯ ПОЯВЛЕНИЯ ─────────────────────── */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.ac-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.ac-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ac-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.ac-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12,9,18,.90) 0%,
    rgba(12,9,18,.70) 50%,
    rgba(12,9,18,.25) 100%
  );
}

.ac-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 110px;
  padding-bottom: 52px;
  width: 100%;
}

/* Хлебные крошки */
.ac-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none; flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,.45);
}
.ac-breadcrumb li { display: flex; align-items: center; gap: 8px; }
.ac-breadcrumb li + li::before {
  content: '/';
  opacity: 0.5;
  flex-shrink: 0;
}
.ac-breadcrumb a { color: inherit; transition: color .2s; }
.ac-breadcrumb a:hover { color: rgba(255,255,255,.8); }
.ac-breadcrumb [aria-current="page"] { color: rgba(255,255,255,.9); font-weight: 600; }

/* Eyebrow */
.ac-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-l);
  margin-bottom: 14px;
}
.ac-hero__eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--c-accent-l);
  flex-shrink: 0;
}

/* Заголовок */
.ac-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.ac-hero__title em {
  font-style: italic;
  color: var(--c-accent-l);
}

/* Карточка пользователя в hero */
.ac-hero__user {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.ac-hero__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(196,159,224,.15);
  border: 1px solid rgba(196,159,224,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-accent-l);
}
.ac-hero__user-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
}
.ac-hero__user-since {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}


/* ══════════════════════════════════════════════
   ОСНОВНОЙ LAYOUT
══════════════════════════════════════════════ */
.ac-layout {
  background: var(--c-warm);
  padding: 56px 0 120px;
}
.ac-layout__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}


/* ══════════════════════════════════════════════
   САЙДБАР
══════════════════════════════════════════════ */
.ac-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Навигация */
.ac-nav {
  background: #fff;
  border: 1px solid #e8e3de;
}
.ac-nav__list { list-style: none; }
.ac-nav__item { border-bottom: 1px solid #f0ece8; }
.ac-nav__item:last-child { border-bottom: none; }

.ac-nav__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-align: left;
  transition: color .2s, background .2s;
  position: relative;
}
.ac-nav__btn:hover {
  color: var(--c-accent);
  background: #f8f2f7;
}
.ac-nav__btn.is-active {
  color: var(--c-accent);
  background: rgba(107,63,143,.04);
  font-weight: 600;
}
.ac-nav__btn.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-accent);
}

.ac-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
  color: inherit;
  opacity: .7;
}
.ac-nav__btn.is-active .ac-nav__icon { opacity: 1; }

.ac-nav__badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  background: var(--c-accent);
  color: #fff;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

/* Бонус-блок */
.ac-bonus {
  background: #fff;
  border: 1px solid #e8e3de;
  padding: 20px;
}
.ac-bonus__head { margin-bottom: 4px; }
.ac-bonus__status {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: #111;
  margin-bottom: 14px;
  line-height: 1.2;
}
.ac-bonus__bar {
  width: 100%;
  height: 4px;
  background: #f0ece8;
  margin-bottom: 8px;
  overflow: hidden;
}
.ac-bonus__fill {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-l));
}
.ac-bonus__hint {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.ac-bonus__link {
  font-size: 11px;
}

/* Кнопка выхода */
.ac-sidebar__logout { padding-top: 4px; }
.ac-logout-btn {
  width: 100%;
  height: 44px;
  padding: 0 20px;
  font-size: 12px;
  gap: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* ══════════════════════════════════════════════
   ПАНЕЛИ КОНТЕНТА
══════════════════════════════════════════════ */
.ac-panel { display: none; }
.ac-panel.is-active { display: block; }


/* ── БЛОК-КАРТОЧКА ───────────────────────────── */
.ac-block {
  background: #fff;
  border: 1px solid #e8e3de;
  margin-bottom: 20px;
}
.ac-block:last-child { margin-bottom: 0; }

.ac-block__head {
  padding: 24px 32px 18px;
  border-bottom: 1px solid #f0ece8;
}
.ac-block__title {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111;
  margin-top: 6px;
  line-height: 1.2;
}

/* Опасный блок */
.ac-block--danger .ac-block__head { border-bottom-color: rgba(176,0,32,.08); }
.ac-lbl--danger { color: #b00020; }


/* ── ПОЛЯ ФОРМЫ ──────────────────────────────── */
.ac-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  padding: 24px 32px;
}
.ac-fields--3col {
  grid-template-columns: 1fr 1fr 1fr;
}

.ac-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ac-field--full { grid-column: 1 / -1; }

.ac-field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #777;
  user-select: none;
}
.ac-field__req {
  color: var(--c-accent);
  text-decoration: none;
  font-style: normal;
}
.ac-field__input {
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid #e0dbd8;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #111;
  background: #fdfcfb;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
  display: block;
}
.ac-field__input:focus {
  border-color: var(--c-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(107,63,143,.07);
}
.ac-field__input::placeholder { color: #c8c2bc; }
.ac-field__textarea {
  height: auto;
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
}
.ac-field__error {
  font-size: 12px;
  color: #c0392b;
  line-height: 1.4;
}
.ac-field__error:empty { display: none; }

/* Мета-данные (readonly) */
.ac-meta {
  padding: 16px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #f7f4f1;
  margin-top: -4px;
}
.ac-meta__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ac-meta__key {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  min-width: 150px;
  flex-shrink: 0;
}
.ac-meta__val {
  font-size: 14px;
  color: #555;
}

/* Футер формы */
.ac-form__footer {
  padding: 16px 32px 28px;
  border-top: 1px solid #f0ece8;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 16px;
}


/* ── ИСТОРИЯ ЗАКАЗОВ ─────────────────────────── */
.ac-orders {
  padding: 8px 32px 24px;
}

.ac-order {
  border-bottom: 1px solid #f0ece8;
}
.ac-order:last-child { border-bottom: none; }

.ac-order__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
}

.ac-order__num {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 80px;
}
.ac-order__num-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bbb;
}
.ac-order__num-val {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.ac-order__date {
  font-size: 13px;
  color: #888;
  flex: 1;
}

.ac-order__status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  flex-shrink: 0;
}
.ac-order__status--done {
  background: rgba(45,138,78,.08);
  color: #2d8a4e;
}
.ac-order__status--pending {
  background: rgba(107,63,143,.08);
  color: var(--c-accent);
}
.ac-order__status--cancelled {
  background: rgba(176,0,32,.07);
  color: #b00020;
}

.ac-order__total {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.ac-order__toggle {
  width: 32px;
  height: 32px;
  background: none;
  border: 1.5px solid #e0dbd8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #aaa;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, transform .25s;
}
.ac-order__toggle.is-open {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: rotate(180deg);
}

/* Тело заказа */
.ac-order__body {
  padding-bottom: 20px;
}
.ac-order__body[hidden] { display: none; }

.ac-order__items { list-style: none; }
.ac-order__item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f7f4f1;
}
.ac-order__item:last-child { border-bottom: none; }

.ac-order__item-img-link { display: block; }
.ac-order__item-img {
  width: 80px;
  height: 96px;
  overflow: hidden;
  background: var(--c-warm);
  flex-shrink: 0;
}
.ac-order__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ac-order__item:hover .ac-order__item-img img { transform: scale(1.04); }

.ac-order__item-art {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0b8b0;
  margin-bottom: 6px;
}
.ac-order__item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: #111;
  line-height: 1.2;
  margin-bottom: 5px;
}
.ac-order__item-meta {
  font-size: 12px;
  color: #999;
}
.ac-order__item-price {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.ac-order__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}
.ac-order__delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #888;
}
.ac-order__delivery svg { flex-shrink: 0; color: var(--c-accent-l); }


/* ── ИЗБРАННОЕ ───────────────────────────────── */
.ac-wishlist {
  padding: 8px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ac-wish-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #f0ece8;
}
.ac-wish-item:last-child { border-bottom: none; }

.ac-wish-item__img-link { display: block; }
.ac-wish-item__img {
  width: 80px;
  height: 96px;
  overflow: hidden;
  background: var(--c-warm);
}
.ac-wish-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ac-wish-item:hover .ac-wish-item__img img { transform: scale(1.04); }

.ac-wish-item__art {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0b8b0;
  margin-bottom: 5px;
}
.ac-wish-item__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: #111;
  margin-bottom: 4px;
  line-height: 1.2;
}
.ac-wish-item__meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.ac-wish-item__price {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.ac-wish-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.ac-wish-item__buy {
  height: 40px;
  padding: 0 18px;
  font-size: 11px;
  white-space: nowrap;
}
.ac-wish-item__del {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid #ddd;
  cursor: pointer;
  color: #bbb;
  transition: border-color .2s, color .2s, background .2s;
}
.ac-wish-item__del:hover {
  border-color: #b00020;
  color: #b00020;
  background: #fff8f8;
}


/* ── ОТЗЫВЫ ──────────────────────────────────── */
.ac-reviews {
  padding: 8px 32px 24px;
}

.ac-review {
  padding: 20px 0;
  border-bottom: 1px solid #f0ece8;
}
.ac-review:last-of-type { border-bottom: none; }

.ac-review__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.ac-review__stars {
  display: flex;
  gap: 2px;
}
.ac-review__star {
  font-size: 16px;
  color: #ddd;
  line-height: 1;
}
.ac-review__star.is-filled { color: #c9a227; }
.ac-review__date {
  font-size: 11px;
  color: #bbb;
  letter-spacing: 0.06em;
}

.ac-review__product {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.2;
}
.ac-review__text {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
}

/* Форма отзыва */
.ac-review-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f0ece8;
}
.ac-review-form__title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}


/* ── НАСТРОЙКИ ───────────────────────────────── */
.ac-settings {
  padding: 0 32px 8px;
}
.ac-settings__section {
  padding: 20px 0;
  border-bottom: 1px solid #f0ece8;
}
.ac-settings__section:last-of-type { border-bottom: none; }
.ac-settings__subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 16px;
}

/* Тоглы */
.ac-toggles { list-style: none; display: flex; flex-direction: column; gap: 0; }
.ac-toggle { border-bottom: 1px solid #f7f4f1; }
.ac-toggle:last-child { border-bottom: none; }
.ac-toggle__label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  cursor: pointer;
  user-select: none;
}
.ac-toggle__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ac-toggle__text strong {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}
.ac-toggle__text span {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}
.ac-toggle__check {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.ac-toggle__track {
  width: 40px;
  height: 22px;
  background: #ddd;
  border-radius: 11px;
  position: relative;
  flex-shrink: 0;
  transition: background .25s;
}
.ac-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ac-toggle__check:checked ~ .ac-toggle__track {
  background: var(--c-accent);
}
.ac-toggle__check:checked ~ .ac-toggle__track::after {
  transform: translateX(18px);
}
.ac-toggle__check:focus-visible ~ .ac-toggle__track {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Radio-список */
.ac-radio-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ac-radio-item__label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.ac-radio-item__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.ac-radio-item__mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  flex-shrink: 0;
  position: relative;
  transition: border-color .2s;
}
.ac-radio-item__input:checked ~ .ac-radio-item__mark {
  border-color: var(--c-accent);
}
.ac-radio-item__input:checked ~ .ac-radio-item__mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}
.ac-radio-item__input:focus-visible ~ .ac-radio-item__mark {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.ac-radio-item__text {
  font-size: 14px;
  color: #333;
}

/* Опасная зона */
.ac-danger-zone {
  padding: 20px 32px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.ac-danger-zone__text {
  flex: 1;
  font-size: 13px;
  color: #888;
  line-height: 1.65;
}
.ac-btn--delete {
  background: transparent;
  color: #b00020;
  border: 1.5px solid #b00020;
  height: 44px;
  padding: 0 20px;
  font-size: 12px;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.ac-btn--delete:hover {
  background: #b00020;
  color: #fff;
}

/* Иконка активного кабинета в хедере */
.hd-icon--active { color: var(--c-accent); }
#hd.solid .hd-icon--active { color: var(--c-accent); }

/* Модалка удаления */
.ac-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.ac-btn--delete-confirm {
  background: #b00020;
  color: #fff;
  height: 44px;
  padding: 0 20px;
  font-size: 12px;
}
.ac-btn--delete-confirm:hover { background: #8c0018; }


/* ══════════════════════════════════════════════
   АДАПТИВ
══════════════════════════════════════════════ */

/* 1280px */
@media (max-width: 1280px) {
  .ac-layout__inner { grid-template-columns: 240px 1fr; gap: 28px; }
}

/* 1100px */
@media (max-width: 1100px) {
  .ac-layout__inner { grid-template-columns: 220px 1fr; gap: 20px; }
  .ac-block__head { padding: 20px 24px 14px; }
  .ac-fields { padding: 20px 24px; }
  .ac-orders { padding: 8px 24px 20px; }
  .ac-wishlist { padding: 8px 24px 20px; }
  .ac-reviews { padding: 8px 24px 20px; }
  .ac-settings { padding: 0 24px 8px; }
  .ac-meta { padding: 0 24px 16px; padding-top: 14px; }
  .ac-form__footer { padding: 14px 24px 24px; }
  .ac-danger-zone { padding: 18px 24px 24px; }
}

/* 900px — сайдбар переходит наверх */
@media (max-width: 900px) {
  .ac-layout__inner { grid-template-columns: 1fr; }

  .ac-sidebar {
    position: static;
    flex-direction: column;
    gap: 12px;
  }

  /* Навигация: вертикальный список на всю ширину, иконки видны */
  .ac-nav { width: 100%; }
  .ac-nav__list {
    display: flex;
    flex-direction: column;
    list-style: none;
  }
  .ac-nav__item {
    border-bottom: 1px solid #f0ece8;
    border-right: none;
  }
  .ac-nav__item:last-child { border-bottom: none; }

  .ac-nav__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 20px;
    font-size: 13px;
    white-space: nowrap;
  }
  .ac-nav__btn.is-active::before {
    top: 0; bottom: 0; left: 0; right: auto; width: 3px; height: auto;
  }
  .ac-nav__icon { display: flex; }
  .ac-nav__badge { display: flex; }

  .ac-bonus { width: 100%; }
  .ac-sidebar__logout { width: 100%; }
  .ac-logout-btn { width: 100%; }
  .ac-hero__user { display: none; }
}

/* 767px */
@media (max-width: 767px) {
  .ac-hero__inner { padding-top: 90px; padding-bottom: 36px; }
  .ac-hero__title { font-size: clamp(36px, 8vw, 52px); }
  .ac-layout { padding: 24px 0 80px; }

  /* Навигация: компактнее, иконки скрыты */
  .ac-nav__btn {
    font-size: 12px;
    padding: 12px 16px;
  }
  .ac-nav__icon { display: none; }
  .ac-nav__badge { display: none; }

  /* Бонус и выход */
  .ac-bonus { width: 100%; min-width: 0; }
  .ac-sidebar__logout { width: 100%; }

  /* Формы */
  .ac-fields { grid-template-columns: 1fr; padding: 16px 20px; gap: 14px; }
  .ac-fields--3col { grid-template-columns: 1fr; }
  .ac-block__head { padding: 18px 20px 12px; }
  .ac-orders { padding: 8px 20px 16px; }
  .ac-wishlist { padding: 8px 20px 16px; }
  .ac-reviews { padding: 8px 20px 16px; }
  .ac-settings { padding: 0 20px 8px; }
  .ac-meta { padding: 12px 20px 14px; }
  .ac-form__footer { padding: 12px 20px 20px; flex-wrap: wrap; }

  /* Заказы */
  .ac-order__head { gap: 8px; flex-wrap: wrap; }
  .ac-order__date { display: none; }
  .ac-order__num { min-width: 70px; }
  .ac-order__total { font-size: 14px; }

  /* Избранное */
  .ac-wish-item { grid-template-columns: 68px 1fr; }
  .ac-wish-item__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
  }

  /* Опасная зона */
  .ac-danger-zone { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ac-btn--delete { width: 100%; justify-content: center; }
}

/* 480px */
@media (max-width: 480px) {
  .ac-order__status { display: none; }
  .ac-order__item { grid-template-columns: 68px 1fr; }
  .ac-order__item-price { grid-column: 1 / -1; padding-top: 4px; }
}


/* ══════════════════════════════════════════════
   СТРАНИЦА РЕГИСТРАЦИИ  (.ac-reg)
══════════════════════════════════════════════ */

/* Обёртка: форма слева, aside справа */
.ac-reg {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
  padding: 56px 0 80px;
}

/* ── Переключатель Войти / Зарегистрироваться ── */
.ac-reg__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8e3de;
  margin-bottom: 40px;
  /* Занимает обе колонки грида */
  grid-column: 1 / -1;
}
.ac-reg__tab {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
  padding: 10px 24px 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  line-height: 1;
}
.ac-reg__tab:first-child { padding-left: 0; }
.ac-reg__tab:hover { color: #333; }
.ac-reg__tab.is-active {
  color: #111;
  border-bottom-color: var(--c-accent, #7a5c8a);
}

/* ── Тело формы ── */
.ac-reg__body {
  min-width: 0;
  /* Первая колонка */
  grid-column: 1;
}

.ac-reg__aside {
  /* Вторая колонка, начинается со второй строки (после табов) */
  grid-column: 2;
}

/* ── Секции (fieldset) ── */
.ac-reg__section {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}
.ac-reg__section-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  display: block;
  margin-bottom: 20px;
}
.ac-reg__section--check { margin-bottom: 28px; }

/* ── Разделитель ── */
.ac-reg__hr {
  border: none;
  border-top: 1px solid #f0ece8;
  margin: 0 0 32px;
}

/* ── Строки полей ── */
.ac-reg__row {
  margin-bottom: 20px;
}
.ac-reg__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.ac-reg__row:last-child { margin-bottom: 0; }

/* ── Отдельное поле ── */
.ac-reg__field { display: flex; flex-direction: column; gap: 7px; }

.ac-reg__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #777;
}
.ac-reg__req { color: var(--c-accent, #7a5c8a); margin-left: 2px; }

.ac-reg__input {
  /* Наследует стили .form-input из base.css */
  width: 100%;
  box-sizing: border-box;
}
.ac-reg__input:focus {
  border-color: var(--c-accent, #7a5c8a);
  box-shadow: 0 0 0 3px rgba(122,92,138,.1);
  outline: none;
}

.ac-reg__hint {
  font-size: 11px;
  color: #aaa;
  line-height: 1.45;
  margin-top: 2px;
}
.ac-reg__hint--error {
  color: var(--c-error, #c0392b);
  font-weight: 500;
}

/* ── Поле пароля с кнопкой-глазом ── */
.ac-reg__pass-wrap {
  position: relative;
}
.ac-reg__pass-wrap .ac-reg__input {
  padding-right: 42px;
}
.ac-reg__eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.ac-reg__eye:hover { color: #555; }

/* ── Чекбоксы согласий ── */
.ac-reg__check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  cursor: pointer;
}
.ac-reg__check-row:last-child { margin-bottom: 0; }
.ac-reg__checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--c-accent, #7a5c8a);
  cursor: pointer;
}
.ac-reg__check-text {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.ac-reg__check-text a {
  color: var(--c-accent, #7a5c8a);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Кнопки и ссылки ── */
.ac-reg__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.ac-reg__submit {
  min-width: 200px;
}
.ac-reg__login-hint {
  font-size: 13px;
  color: #888;
}
.ac-reg__login-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--c-accent, #7a5c8a);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Алерт ошибки ── */
.ac-reg__alert {
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-error, #c0392b);
  line-height: 1.5;
}

/* ── Экран успеха ── */
.ac-reg__success {
  padding: 56px 0;
  text-align: center;
}
.ac-reg__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(122,92,138,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--c-accent, #7a5c8a);
}
.ac-reg__success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: #111;
  margin-bottom: 12px;
}
.ac-reg__success-text {
  font-size: 15px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 28px;
}


/* ── БОКОВАЯ ПАНЕЛЬ ── */
.ac-reg__aside {}

.ac-reg__aside-inner {
  background: #f8f2f7;
  border: 1px solid rgba(107,63,143,.18);
  padding: 36px 32px 40px;
  position: sticky;
  top: 100px;
}

.ac-reg__aside-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent, #7a5c8a);
  display: block;
  margin-bottom: 10px;
}
.ac-reg__aside-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  color: #111;
  margin-bottom: 28px;
}

/* ── Список преимуществ ── */
.ac-reg__perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.ac-reg__perk {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ac-reg__perk-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #e4dff0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent, #7a5c8a);
  margin-top: 1px;
}
.ac-reg__perk-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}
.ac-reg__perk-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.55;
  margin: 0;
}

/* ── Цитата ── */
.ac-reg__quote {
  border-left: 2px solid var(--c-accent, #7a5c8a);
  padding-left: 16px;
  margin: 0;
}
.ac-reg__quote p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 8px;
}
.ac-reg__quote footer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent, #7a5c8a);
}


/* .modal-reg-hint — см. shared/base.css */


/* ══════════════════════════════════════════════
   АДАПТИВ — страница регистрации
══════════════════════════════════════════════ */

/* 1100px */
@media (max-width: 1100px) {
  .ac-reg { grid-template-columns: 1fr 280px; gap: 32px; }
}

/* 900px — однаколонка, aside скрыт */
@media (max-width: 900px) {
  .ac-reg {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 40px 0 64px;
  }
  /* Сбрасываем явные grid-column — в одноколонном гриде они не нужны */
  .ac-reg__tabs  { grid-column: auto; }
  .ac-reg__body  { grid-column: auto; }
  .ac-reg__aside { display: none; } /* на мобайле убираем */
}

/* 640px — двухколоночные строки → одноколоночные */
@media (max-width: 640px) {
  .ac-reg__row--two { grid-template-columns: 1fr; }
  .ac-reg__actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ac-reg__submit { width: 100%; }
}

/* 480px */
@media (max-width: 480px) {
  .ac-reg { padding: 24px 0 48px; }
  .ac-reg__tabs { margin-bottom: 24px; }
  .ac-reg__section { margin-bottom: 20px; }
  .ac-reg__hr { margin-bottom: 24px; }
}


/* ══════════════════════════════════════════════
   МОДАЛКА АВТОРИЗАЦИИ — form-field / form-label / form-input
   (используется в #js-mlogin)
══════════════════════════════════════════════ */
.modal {
  border-radius: 0;               /* прямые углы в духе бренда */
}
.modal-text {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-top: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #777;
  user-select: none;
}
.form-input {
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid #e0dbd8;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #111;
  background: #fdfcfb;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
  display: block;
}
.form-input:focus {
  border-color: var(--c-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(107,63,143,.07);
}
.form-input::placeholder { color: #c8c2bc; }

/* Полная ширина кнопки в модалке */
.btn--full { width: 100%; justify-content: center; }


/* ══════════════════════════════════════════════
   ОТЗЫВЫ — отступ формы нового отзыва
══════════════════════════════════════════════ */
.ac-review-form {
  padding-left: 0;
  padding-right: 0;
}


