/* «Блик» — личный кабинет клиентки */
.cab { padding: 36px 0 90px; min-height: calc(100dvh - 160px); }
.footer--short { padding: 8px 0 26px; margin-top: 0; }
.footer--short .footer__bottom { margin-top: 0; border-top: 0; }

/* ---------- вход ---------- */
.auth { display: grid; grid-template-columns: 1.05fr .95fr; max-width: 1060px; margin: 16px auto 0; background: #fff; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow); }
.auth__form { padding: 56px 54px 50px; }
.auth__form .h2 { margin-bottom: 14px; }
.auth__lead { margin: 0 0 30px; color: var(--ink-2); font-size: 17px; max-width: 420px; }
.auth__row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.auth__row .field { flex: 1 1 240px; }
.auth__row .btn { flex: none; min-height: 50px; }
.auth__step { animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.auth__sent { margin: 0 0 20px; color: var(--ink-2); }
.auth__sent b { color: var(--ink); white-space: nowrap; }
.auth__demo { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 18px; border-radius: 18px; background: var(--bg-soft); font-size: 14.5px; color: var(--ink-2); }
.auth__demo .ic { color: var(--accent); margin-top: 2px; }
.auth__demo button { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.auth__why { margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.auth__side { position: relative; overflow: hidden; background: var(--plum); color: #EFE3E0; padding: 340px 48px 48px; display: flex; flex-direction: column; justify-content: flex-end; }
.auth__side::before { content: ''; position: absolute; width: 520px; height: 520px; right: -200px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(179, 22, 63, .45), transparent 65%); }
.auth__side .nail-frame { position: absolute; width: 200px; height: 280px; right: 44px; top: 30px; rotate: 9deg; }
.auth__side .nail-frame--2 { width: 140px; height: 196px; right: 226px; top: 92px; rotate: -8deg; }
.auth__side h3 { position: relative; color: #fff; font-size: 34px; margin-bottom: 20px; }
.auth__side h3 em { color: #F4B9C7; font-style: italic; font-weight: 500; }
.auth__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.auth__list .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #F4B9C7; }

/* ---------- кабинет ---------- */
.cab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 8px 0 34px; }
.cab-head .kicker { margin-bottom: 12px; }
.cab-head__phone { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.cab-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cab-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cab-main { min-width: 0; }
.cab-sec + .cab-sec { margin-top: 44px; }
.cab-sec__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; }
.cab-sec__title h2 { font-size: 34px; }
.cab-sec__title span { color: var(--muted); font-weight: 500; }

.appt { position: relative; display: grid; grid-template-columns: 150px 1fr; background: #fff; border-radius: 28px; box-shadow: var(--shadow-sm); animation: stepIn .4s ease both; }
.appt + .appt { margin-top: 16px; }
.appt.is-new { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.appt__date {
  position: relative; border-radius: 28px 0 0 28px; background: linear-gradient(165deg, #D23158, var(--accent) 48%, #720C27); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 10px; text-align: center; overflow: hidden;
}
.appt__date::before { content: ''; position: absolute; left: 14%; top: 6%; width: 22%; height: 30%; border-radius: 50%; background: rgba(255, 255, 255, .22); rotate: 20deg; }
.appt__cut { position: absolute; top: 0; bottom: 0; left: 150px; width: 0; border-left: 2px dashed var(--line-2); }
.appt__cut::before, .appt__cut::after { content: ''; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.appt__cut::before { top: -11px; }
.appt__cut::after { bottom: -11px; }
.appt__wd { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.appt__d { font-family: var(--ff-d); font-size: 78px; font-weight: 600; line-height: .92; }
.appt__m { font-size: 15px; font-weight: 500; }
.appt__main { padding: 24px 28px 22px 34px; min-width: 0; }
.appt__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.appt__time { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; }
.appt__time .ic { color: var(--accent); }
.appt__svcs { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 6px; }
.appt__svcs li { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; }
.appt__svcs span { color: var(--ink-2); }
.appt__svcs b { font-weight: 600; white-space: nowrap; }
.appt__info { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.appt__info span { display: inline-flex; align-items: center; gap: 6px; }
.appt__info i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.appt__comment { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); font-style: italic; }
.appt__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.appt__total { color: var(--muted); }
.appt__total b { color: var(--ink); font-size: 21px; margin-left: 6px; }
.appt__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.appt__lock { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: #7A4A00; font-size: 14px; }
.appt__lock a { font-weight: 600; color: inherit; white-space: nowrap; }

.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 40px 24px; border-radius: 28px; background: #fff; border: 1.5px dashed var(--line-2); }
.empty svg.nail-art { width: 150px; height: 110px; background: none; }
.empty h3 { font-size: 28px; }
.empty p { margin: 0 0 14px; color: var(--ink-2); max-width: 380px; }

.hist { background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-sm); }
.hist__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 22px; }
.hist__row + .hist__row { border-top: 1px solid var(--line); }
.hist__date b { display: block; font-size: 15px; }
.hist__date span { font-size: 13px; color: var(--muted); }
.hist__date .pill { margin-top: 6px; }
.hist__svcs { font-size: 14.5px; color: var(--ink-2); min-width: 0; }
.hist__sum { font-weight: 600; white-space: nowrap; }
.hist__end { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.hist__more { display: block; width: 100%; padding: 14px; border: 0; border-top: 1px solid var(--line); background: none; font-weight: 600; color: var(--ink-2); }
.hist__more:hover { color: var(--accent); }

.card { background: #fff; border-radius: 26px; padding: 24px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card h3 { font-size: 26px; margin-bottom: 14px; }
.card .fields { grid-template-columns: 1fr; }
.card__switches { display: grid; gap: 12px; margin: 18px 0 4px; }
.card__hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.master { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.master img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.master b { display: block; font-size: 16.5px; }
.master span { font-size: 13.5px; color: var(--muted); }
.card__addr { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-2); }
.card__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card__btns .btn:first-child { grid-column: 1 / -1; }

/* окна переноса и отмены */
.move__now { display: flex; gap: 10px; align-items: center; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); font-size: 14.5px; }
.move__now s { color: var(--muted); }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.reasons label { position: relative; }
.reasons input { position: absolute; opacity: 0; }
.reasons span { display: inline-flex; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.reasons input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.reasons input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { min-height: 0; padding-top: 250px; }
  .auth__side .nail-frame { width: 150px; height: 210px; right: 24px; top: 24px; }
  .auth__side .nail-frame--2 { width: 110px; height: 154px; right: 170px; top: 64px; }
  .cab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cab { padding-top: 22px; }
  .auth { border-radius: 28px; margin-top: 0; }
  .auth__form { padding: 30px 20px 26px; }
  .auth__row .btn { width: 100%; }
  .auth__side { padding: 220px 22px 28px; }
  .auth__side h3 { font-size: 28px; }
  .cab-head__actions { width: 100%; }
  .cab-head__actions .btn { flex: 1; }
  .appt { grid-template-columns: 1fr; }
  .appt__date { border-radius: 28px 28px 0 0; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 10px; padding: 16px 20px; }
  .appt__d { font-size: 46px; }
  .appt__wd { order: 3; margin-left: auto; }
  .appt__cut { left: 0; right: 0; top: auto; bottom: auto; width: auto; height: 0; border-left: 0; border-top: 2px dashed var(--line-2); display: none; }
  .appt__main { padding: 18px 18px 18px; }
  .appt__time { font-size: 20px; }
  .appt__foot { flex-direction: column; align-items: stretch; }
  .appt__actions .btn { flex: 1 1 calc(50% - 4px); }
  .hist__row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; }
  .hist__svcs { grid-column: 1 / -1; grid-row: 2; }
  .hist__end { grid-column: 1 / -1; justify-content: flex-start; margin: 2px 0 0 -6px; }
  .cab-sec__title h2 { font-size: 30px; }
}
