.account-page {
  background: var(--paper-2);
  color: var(--text-dark);
}

.acc-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 64px;
}

.acc-side {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--paper-3);
  box-shadow: 0 14px 34px rgba(15, 20, 25, .06);
}
.acc-side__title {
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.acc-user { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.acc-user__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.acc-user__name { display: block; font-size: 15px; font-weight: 800; }
.acc-user__phone { display: block; color: var(--text-dim); font-size: 12px; }
.acc-logout {
  display: block;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
}
.acc-logout:hover { color: var(--accent-deep); }

.acc-tabs { display: grid; gap: 4px; }
.acc-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--text-mid);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
}
.acc-tab:hover { background: var(--paper-2); }
.acc-tab.is-active { background: var(--ink); color: #fff; }
.acc-tab__count {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--paper-3);
  color: var(--text-mid);
  font-size: 11px;
}
.acc-tab.is-active .acc-tab__count { background: var(--accent); color: #fff; }
.acc-side__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-3);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
}
.acc-side__note a { color: var(--accent-deep); font-weight: 700; }

.acc-main { min-width: 0; }
.acc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.acc-title { font-size: clamp(24px, 3vw, 32px); }
.acc-sub { margin-top: 5px; color: var(--text-mid); font-size: 14px; line-height: 1.5; }

.acc-list { display: grid; gap: 12px; }
.acc-booking {
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--paper-3);
  box-shadow: 0 10px 26px rgba(15, 20, 25, .05);
}
.acc-booking__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.acc-booking__date { color: var(--text-dark); font-size: 16px; font-weight: 800; }
.acc-booking__title { margin-bottom: 5px; color: var(--text-mid); font-size: 13.5px; line-height: 1.45; }
.acc-booking__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--text-dim);
  font-size: 12.5px;
}
.acc-booking__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-3);
}
.acc-booking__price { color: var(--accent-deep); font-size: 16px; font-weight: 800; }
.acc-booking__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-booking__actions .btn { min-height: 38px; }

.acc-empty {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 44px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px dashed var(--paper-3);
  text-align: center;
}
.acc-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.acc-empty strong { font-size: 20px; }
.acc-empty p { max-width: 420px; color: var(--text-mid); font-size: 14px; line-height: 1.55; }
.acc-empty__actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 4px; }

.acc-lookup {
  max-width: 560px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--paper-3);
}
.acc-lookup h2 { font-size: 22px; margin-bottom: 7px; }
.acc-lookup p { color: var(--text-mid); font-size: 13.5px; line-height: 1.55; margin-bottom: 16px; }
.acc-lookup__form { display: grid; gap: 10px; }

.acc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  margin-bottom: 12px;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 700;
}
.acc-back:hover { color: var(--accent-deep); }

.acc-detail { display: grid; gap: 14px; }
.acc-detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--paper-3);
}
.acc-detail__head h1 { font-size: 25px; margin-bottom: 4px; }
.acc-detail__head p { color: var(--text-mid); font-size: 13.5px; }
.acc-detail__number { color: var(--text-dim); font-size: 12.5px; margin-top: 5px; }
.acc-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc-block {
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--paper-3);
}
.acc-block h3 {
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.acc-block p { color: var(--text-dark); font-size: 14px; line-height: 1.55; }
.acc-block p + p { margin-top: 4px; color: var(--text-mid); font-size: 13px; }
.acc-block--wide { grid-column: 1 / -1; }
.acc-block--alert {
  background: #fff8f8;
  border-color: rgba(229, 72, 77, .35);
  border-left: 3px solid var(--danger);
}
.acc-block--alert h3 { color: #b3282c; }
.acc-booking__note {
  margin-top: 6px;
  color: #b3282c;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}
.acc-booking__note--muted {
  color: var(--text-dim);
  font-weight: 600;
}
.acc-booking--draft {
  border-style: dashed;
  border-color: rgba(255, 107, 26, .45);
}
.acc-history__comment {
  display: block;
  margin-top: 3px;
  color: var(--text-mid);
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.4;
}

.acc-history { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.acc-history__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 12.5px;
  line-height: 1.45;
}
.acc-history__dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}
.acc-history__item span { color: var(--text-dim); display: block; margin-top: 2px; }

.acc-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.acc-demo {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px dashed rgba(255, 107, 26, .4);
}
.acc-demo h3 { color: var(--accent-deep); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 5px; }
.acc-demo p { color: var(--text-mid); font-size: 12px; line-height: 1.45; margin-bottom: 10px; }
.acc-demo__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.acc-reschedule {
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--paper-3);
}
.acc-reschedule h3 { font-size: 17px; margin-bottom: 5px; }
.acc-reschedule > p { color: var(--text-mid); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.acc-days { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 5px; margin-bottom: 14px; }
.acc-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 64px;
  padding: 8px 6px;
  border-radius: 10px;
  background: var(--paper-2);
  border: 1.5px solid transparent;
  color: var(--text-mid);
  font-size: 11px;
  font-weight: 700;
}
.acc-day strong { color: var(--text-dark); font-size: 16px; }
.acc-day:hover { border-color: rgba(255, 107, 26, .4); }
.acc-day.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.acc-day.is-selected strong { color: #fff; }
.acc-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-slot {
  min-width: 82px;
  min-height: 40px;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--paper-2);
  border: 1.5px solid transparent;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 800;
}
.acc-slot:hover { border-color: var(--accent); }
.acc-slot.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.acc-slot.is-current { outline: 2px dashed var(--accent); outline-offset: 2px; }
.acc-reschedule__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }

.acc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.acc-modal[hidden] { display: none; }
.acc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 14, .7);
  backdrop-filter: blur(4px);
}
.acc-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.acc-modal__dialog h2 { font-size: 22px; margin-bottom: 7px; }
.acc-modal__dialog p { color: var(--text-mid); font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; }
.acc-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

@media (max-width: 1000px) {
  .acc-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 860px) {
  .acc-layout { display: block; padding-top: 20px; }
  .acc-side { position: static; margin-bottom: 16px; padding: 16px; }
  .acc-user { margin-bottom: 10px; }
  .acc-logout { margin-bottom: 10px; }
  .acc-tabs { display: flex; gap: 5px; overflow-x: auto; }
  .acc-tab { flex: 0 0 auto; }
  .acc-side__note { display: none; }
}

@media (max-width: 640px) {
  .acc-detail__grid { grid-template-columns: 1fr; }
  .acc-booking__bottom { flex-direction: column; align-items: stretch; }
  .acc-booking__actions .btn { flex: 1 1 auto; }
  .acc-detail__head h1 { font-size: 21px; }
  .acc-lookup { padding: 20px; }
}

/* Навигация кабинета: уровень 1 и подпункты */

.acc-nav { display: grid; gap: 4px; margin-bottom: 8px; }
.acc-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text-mid);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  border: 1px solid transparent;
}
.acc-nav__item:hover { background: var(--paper-2); color: var(--accent-deep); }
.acc-nav__item.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.acc-nav__item--logout { color: var(--text-dim); font-weight: 600; }
.acc-nav__item--logout:hover { color: var(--danger); }
.acc-nav__count {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 100px;
  background: var(--paper-3);
  color: var(--text-mid);
  font-size: 11px;
}
.acc-nav__item.is-active .acc-nav__count { background: rgba(255, 255, 255, .18); color: #fff; }

.acc-subnav {
  display: grid;
  gap: 2px;
  margin: 2px 0 8px 10px;
  padding-left: 10px;
  border-left: 1px solid var(--paper-3);
}
.acc-subnav .acc-tab {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
}
.acc-subnav__item {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-mid);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}
.acc-subnav__item:hover { background: var(--paper-2); color: var(--accent-deep); }
.acc-subnav__item.is-active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; }

.acc-settings-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text-mid);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  border: 1px solid var(--paper-3);
  background: var(--paper);
}
.acc-settings-link:hover { border-color: var(--accent); color: var(--accent-deep); }
.acc-settings-link.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.acc-settings { display: grid; gap: 14px; }
.acc-settings__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--paper-3);
}
.acc-settings__tab {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--text-mid);
  font-size: 12.5px;
  font-weight: 700;
}
.acc-settings__tab:hover { background: var(--paper-2); color: var(--accent-deep); }
.acc-settings__tab.is-active { background: var(--accent-soft); color: var(--accent-deep); }
.acc-settings__body {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--paper-3);
}
.acc-settings__panel { display: grid; gap: 12px; }
.acc-settings__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.acc-settings__head h2 { font-size: 18px; }
.acc-settings__head h3 { font-size: 15px; }

.acc-form { display: grid; gap: 12px; }
.acc-form h3 { font-size: 15px; }
.acc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc-form__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-check { display: flex; align-items: center; gap: 8px; color: var(--text-mid); font-size: 13px; }
.acc-check input { accent-color: var(--accent); }
.acc-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.acc-car-form {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px dashed var(--paper-3);
}

.acc-car-list { display: grid; gap: 8px; }
.acc-car {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--paper-3);
}
.acc-car__main { display: grid; gap: 2px; min-width: 0; }
.acc-car__main strong { font-size: 14px; }
.acc-car__main span { color: var(--text-dim); font-size: 12px; }
.acc-car__badge {
  display: inline-block;
  justify-self: start;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 800;
}
.acc-car__actions { display: flex; flex-wrap: wrap; gap: 6px; }

.acc-car-history {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
}
.acc-history-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--paper-3);
}
.acc-history-row__main { display: grid; gap: 2px; min-width: 0; }
.acc-history-row__main strong { font-size: 13px; }
.acc-history-row__main span { color: var(--text-dim); font-size: 12px; line-height: 1.4; }
.acc-history-row__side { display: flex; align-items: center; gap: 10px; }
.acc-history-row__side strong { color: var(--accent-deep); font-size: 13px; white-space: nowrap; }
.acc-car-history__total { color: var(--text-mid); font-size: 13px; font-weight: 700; }
.acc-empty--inline { padding: 22px 16px; border-style: dashed; }
.acc-empty--inline strong { font-size: 15px; }

@media (max-width: 640px) {
  .acc-form__row { grid-template-columns: 1fr; }
  .acc-checks { grid-template-columns: 1fr; }
  .acc-settings__body { padding: 14px; }
  .acc-car__actions .btn { flex: 1 1 auto; }
}

