/* Личный кабинет (account.html + account.js). Режим «работа»: всё ради того, чтобы быстро найти заказ и его статус.
   Слева — кто вошёл и разделы, справа — содержимое. Без зелёных подложек: плашки серые, зелёный — кнопки и акценты. */

.lk-wrap { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 3vw, 40px) 16px 72px; min-height: 70vh; }
.lk-screen { display: none; }
.lk-screen.is-active { display: block; animation: lk-in 220ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes lk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Скелетон загрузки */
.lk-skel { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.lk-skel span { display: block; height: 96px; border-radius: var(--r); background: linear-gradient(90deg, var(--bg-2) 0%, #eceeec 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: lk-sh 1.2s linear infinite; }
.lk-skel span:first-child { height: 56px; width: 60%; }
@keyframes lk-sh { to { background-position: -200% 0; } }

/* ===== Вход ===== */
.lk-auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); max-width: 960px; margin: 0 auto; border-radius: calc(var(--r) + 4px); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.lk-auth--narrow { grid-template-columns: 1fr; max-width: 520px; }
.lk-auth__form { padding: clamp(24px, 4vw, 48px); }
.lk-kicker { color: var(--accent-strong); font-size: 14px; font-weight: 700; }
.lk-auth h1 { margin: 6px 0 10px; font: 800 clamp(26px, 3vw, 34px)/1.12 var(--display); letter-spacing: -0.02em; }
.lk-sub { color: var(--muted); font-size: 16px; line-height: 1.5; margin-bottom: 22px; }
.lk-auth__why { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 48px); background: var(--bg-2); }
.lk-auth__why > b { font: 700 18px/1.25 var(--display); }
.lk-auth__why ul { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.lk-auth__why li { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.lk-auth__why li svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #fff; color: var(--ink); }
.lk-auth__why li b { display: block; color: var(--ink); font-size: 15px; }
.lk-auth__why p { margin-top: auto; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lk-back { margin-bottom: 14px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 14px/1 var(--text); cursor: pointer; }
.lk-back:hover { color: var(--ink); }

.lk-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lk-field label { font-size: 14px; font-weight: 600; }
.lk-field label span { color: var(--muted); font-weight: 400; }
.lk-field input { width: 100%; height: 50px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px transparent; color: var(--ink); font: 500 17px/1 var(--text); outline: none; transition: box-shadow 150ms ease, background-color 150ms ease; }
.lk-field input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--accent-strong); }
.lk-code-input { height: 64px !important; text-align: center; letter-spacing: 0.6em; font-size: 28px !important; font-weight: 700 !important; }
.lk-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 52px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--accent-strong); color: #fff; font: 700 16px/1 var(--text); text-decoration: none; cursor: pointer; transition: filter 150ms ease; }
.lk-btn:hover { filter: brightness(0.95); }
.lk-btn:disabled { opacity: 0.55; cursor: default; }
.lk-btn--auto { width: auto; height: 46px; }
.lk-btn--tel { margin: 6px 0 14px; font-size: 20px; letter-spacing: 0.02em; }
.lk-link-btn { padding: 4px 0; border: 0; background: none; color: var(--ink); font: 600 14px/1.3 var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lk-link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.lk-row-between { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.lk-hint { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lk-hint a { color: var(--ink); }
.lk-error { display: none; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: #fdf1f0; box-shadow: inset 3px 0 0 #c8372d; color: #a1271f; font-size: 15px; line-height: 1.45; }
.lk-callinfo { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); font-size: 15px; line-height: 1.45; }
.lk-callinfo svg { flex: none; color: var(--accent-strong); }
.lk-alt { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.lk-alt .lk-hint { margin: 0 0 4px; }
.lk-devbadge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: 12px; font-weight: 700; vertical-align: middle; }

/* ===== Кабинет ===== */
.lk-demo[hidden] { display: none; }
.lk-demo { margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 3px 0 0 #d08a00; font-size: 14px; }
.lk-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.lk-side { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 14px; }
.lk-me { display: flex; align-items: center; gap: 12px; padding: 4px 4px 8px; }
.lk-me__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lk-me__txt > b { font: 700 17px/1.25 var(--display); overflow: hidden; text-overflow: ellipsis; }
.lk-me__txt > span { color: var(--muted); font-size: 14px; }
.lk-me__bonus { color: var(--accent-strong) !important; font-weight: 600; }
.lk-ava-wrap { position: relative; flex: none; cursor: pointer; border-radius: 50%; }
.lk-ava-wrap:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.lk-ava { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg-2); font-size: 24px; overflow: hidden; }
.lk-ava img { width: 100%; height: 100%; object-fit: cover; }
.lk-ava-edit { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 0 0 2px var(--bg); }
.lk-ava-edit svg { width: 13px; height: 13px; }

.lk-nav { display: flex; flex-direction: column; gap: 2px; }
.lk-tab { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: 600 15px/1 var(--text); text-align: left; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.lk-tab span { flex: 1; }
.lk-tab small { min-width: 22px; padding: 3px 7px; border-radius: 999px; background: var(--bg-2); color: var(--ink); font-size: 12px; text-align: center; }
.lk-tab small:empty { display: none; }
.lk-tab:hover { color: var(--ink); }
.lk-tab.is-active { background: var(--bg-2); color: var(--ink); }
.lk-tab.is-active small { background: #fff; }
.lk-tab[hidden] { display: none; }
.lk-dot { min-width: 0 !important; width: 8px; height: 8px; padding: 0 !important; background: #d08a00 !important; }
.lk-dot[hidden] { display: none; }
.lk-help { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.lk-help a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.lk-help a svg { width: 18px; height: 18px; color: var(--muted); }
.lk-help a:hover { color: var(--accent-strong); }
.lk-logout { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 600 14px/1 var(--text); cursor: pointer; }
.lk-logout svg { width: 18px; height: 18px; }
.lk-logout:hover { color: var(--ink); background: var(--bg-2); }

.lk-content { min-width: 0; }
.lk-content > section { animation: lk-in 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.lk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.lk-head h1 { font: 800 clamp(26px, 2.8vw, 34px)/1.1 var(--display); letter-spacing: -0.02em; }
.lk-head__note { color: var(--muted); font-size: 14px; }
.lk-head__link { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.lk-filter { display: flex; gap: 6px; }
.lk-filter button { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--bg-2); color: var(--ink); font: 600 14px/1 var(--text); cursor: pointer; }
.lk-filter button.is-on { background: var(--ink); color: #fff; }
.lk-panel { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.lk-panel + .lk-panel { margin-top: 14px; }
.lk-panel--muted { background: var(--bg-2); box-shadow: none; font-size: 15px; }
.lk-panel--muted p { margin-top: 4px; color: var(--muted); }
.lk-panel--muted a { color: var(--ink); }
.lk-form { display: flex; flex-direction: column; max-width: 520px; }
.lk-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; font-size: 15px; cursor: pointer; }
.lk-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.lk-form__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lk-msg { font-size: 14px; font-weight: 600; }
.lk-bonus__val { font: 800 40px/1 var(--display); }
.lk-bonus__val small { font-size: 18px; font-weight: 600; }

/* Заказ */
.lk-orders { display: flex; flex-direction: column; gap: 14px; }
.lk-order { border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.lk-order[hidden] { display: none; }
.lk-order__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 18px 20px 0; }
.lk-order__num { font: 700 18px/1.2 var(--display); }
.lk-order__date { color: var(--muted); font-size: 14px; }
.lk-order__top .lk-status { margin-left: auto; }
.lk-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--bg-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.lk-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.lk-status--green::before { background: var(--accent-strong); }
.lk-status--blue::before { background: #2f6fd6; }
.lk-status--red::before { background: #c8372d; }
.lk-status--amber::before { background: #d08a00; }
.lk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 16px 20px 0; padding: 0; list-style: none; }
.lk-steps li { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.lk-steps li::before { content: ''; display: block; height: 4px; border-radius: 2px; background: var(--line); }
.lk-steps li.is-done { color: var(--ink); }
.lk-steps li.is-done::before { background: var(--accent-strong); }
.lk-steps li.is-now { color: var(--ink); }
.lk-steps li.is-now::before { background: linear-gradient(90deg, var(--accent-strong) 50%, var(--line) 50%); }
.lk-items { display: flex; flex-direction: column; margin: 14px 20px 0; padding: 0; list-style: none; }
.lk-items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.lk-items li:first-child { border-top: 0; }
.lk-thumb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--bg-2); overflow: hidden; color: #b7beb9; }
.lk-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lk-thumb svg { width: 22px; height: 22px; }
.lk-items__name { min-width: 0; line-height: 1.35; }
.lk-items__name small { display: block; color: var(--muted); font-size: 13px; }
.lk-items__sum { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lk-items__more { padding: 6px 0 0 60px !important; border-top: 0 !important; display: block !important; }
.lk-items__more button { padding: 0; border: 0; background: none; color: var(--ink); font: 600 14px/1.3 var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lk-order__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 14px; padding: 14px 20px; background: var(--bg-2); font-size: 14px; }
.lk-order__total { margin-left: auto; font: 700 18px/1.2 var(--display); white-space: nowrap; }
.lk-order__total small { color: var(--muted); font: 500 13px/1 var(--text); margin-right: 6px; }
.lk-pay { font-weight: 700; }
.lk-pay--ok { color: var(--accent-strong); }
.lk-pay--wait { color: #9a5a00; }
.lk-get { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.lk-get svg { width: 18px; height: 18px; color: var(--muted); }
.lk-get a { color: var(--ink); font-weight: 600; }
.lk-order--off { opacity: 0.65; }
.lk-cancelled { margin-top: 6px; }
.lk-cancelled > summary { padding: 8px 0; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.lk-cancelled .lk-orders { margin-top: 8px; }
.lk-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; border-radius: var(--r); background: var(--bg-2); text-align: center; }
.lk-empty b { font: 700 20px/1.25 var(--display); }
.lk-empty p { max-width: 420px; color: var(--muted); }
.lk-empty .lk-btn { width: auto; height: 46px; margin-top: 6px; }

@media (max-width: 900px) {
  .lk-auth { grid-template-columns: 1fr; }
  .lk-auth__why { order: 2; }
  .lk-layout { grid-template-columns: 1fr; gap: 16px; }
  .lk-side { position: static; gap: 10px; }
  .lk-me { padding: 0; }
  .lk-nav { flex-direction: row; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .lk-nav::-webkit-scrollbar { display: none; }
  .lk-tab { flex: none; height: 40px; background: var(--bg-2); }
  .lk-tab.is-active { background: var(--ink); color: #fff; }
  .lk-tab.is-active small { background: rgb(255 255 255 / .2); color: #fff; }
  .lk-help { display: none; }
  .lk-side { position: relative; top: auto; }
  .lk-logout { position: absolute; top: 14px; right: 0; }
}
@media (max-width: 600px) {
  .lk-order__top, .lk-steps, .lk-items { margin-left: 0; margin-right: 0; padding-left: 16px; padding-right: 16px; }
  .lk-steps { margin: 14px 0 0; }
  .lk-items { margin-top: 12px; }
  .lk-order__top .lk-status { margin-left: 0; }
  .lk-order__foot { padding: 12px 16px; }
  .lk-steps li { font-size: 11px; }
  .lk-filter { width: 100%; overflow-x: auto; }
  .lk-filter button { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .lk-screen.is-active, .lk-content > section { animation: none; } .lk-skel span { animation: none; } }
.lk-field input::placeholder { color: #9aa29c; }
.lk-field[hidden] { display: none; }

/* Бонусы, «Приведи друга», Telegram */
.lk-bal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.lk-bal__main { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--r); background: var(--ink); color: #fff; }
.lk-bal__main > small { color: rgb(255 255 255 / .65); font-size: 14px; }
.lk-bal__main p { color: rgb(255 255 255 / .75); font-size: 14px; }
.lk-bal__main .lk-bonus__val { font-size: 46px; }
.lk-pause { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 3px 0 0 #d08a00; font-size: 15px; line-height: 1.5; }
.lk-pause p { color: var(--muted); }
.lk-subh { margin: 28px 0 10px; font: 700 20px/1.2 var(--display); }
.lk-tx { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.lk-tx li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.lk-tx li:first-child { border-top: 0; }
.lk-tx__d { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.lk-tx__c { min-width: 0; }
.lk-tx__p { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lk-tx__p.is-plus { color: var(--accent-strong); }
.lk-tx__p.is-minus { color: var(--ink); }
.lk-earn { padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--accent-strong); font-weight: 700; font-size: 13px; }
.lk-lead { font-size: 16px; line-height: 1.55; margin-bottom: 16px; }
.lk-ref { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.lk-ref__item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 16px 18px; border-radius: var(--r); background: var(--bg-2); }
.lk-ref__item small { width: 100%; color: var(--muted); font-size: 13px; }
.lk-ref__code { font: 800 24px/1 var(--display); letter-spacing: 0.06em; }
.lk-ref__link { min-width: 0; font-size: 15px; word-break: break-all; }
.lk-copy { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 600 13px/1 var(--text); cursor: pointer; }
.lk-share { height: 36px; }
.lk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.lk-stats li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.lk-stats b { font: 800 26px/1 var(--display); }
.lk-stats small { color: var(--muted); font-size: 13px; }
.lk-how { counter-reset: h; display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; }
.lk-how li { counter-increment: h; display: flex; gap: 10px; }
.lk-how li::before { content: counter(h); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12px/1 var(--text); }
#lkFriendBody.lk-panel { box-shadow: none; padding: 0; }
@media (max-width: 760px) { .lk-bal, .lk-ref { grid-template-columns: 1fr; } .lk-tx li { grid-template-columns: 1fr auto; } .lk-tx__d { grid-column: 1 / -1; } }

/* Выбор аватара */
.lk-ava.is-busy { opacity: 0.5; }
.lk-avd { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: calc(var(--r) + 4px); box-shadow: 0 24px 64px rgb(0 0 0 / .25); }
.lk-avd::backdrop { background: rgb(17 20 18 / .45); }
.lk-avd[open] { animation: lk-in 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.lk-avd__in { padding: 22px 24px 20px; }
.lk-avd__head { display: flex; align-items: center; justify-content: space-between; }
.lk-avd__head b { font: 700 22px/1.2 var(--display); }
.lk-avd__x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.lk-avd__in > .lk-hint:first-of-type { margin-top: 4px; }
.lk-avd__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.lk-avd__grid button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--bg-2); overflow: hidden; cursor: pointer; box-shadow: 0 0 0 2px transparent; transition: transform 160ms ease, box-shadow 160ms ease; }
.lk-avd__grid button img { width: 100%; height: 100%; object-fit: cover; }
.lk-avd__grid button:hover { transform: scale(1.06); }
.lk-avd__grid button.is-on { box-shadow: 0 0 0 3px var(--accent-strong); }
.lk-avd__grid button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lk-avd__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 480px) { .lk-avd__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lk-avd { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 32px); overflow: auto; }
.lk-ref__item { min-width: 0; }
.lk-ref__link { flex: 1 1 100%; overflow-wrap: anywhere; }
.lk-stats li { min-width: 0; }
@media (max-width: 480px) { .lk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .lk-stats b { font-size: 22px; } .lk-stats small { font-size: 12px; } }
.lk-layout > * { min-width: 0; }
/* Маскот: встречает на входе и сидит в пустых заказах */
.lk-mascot { position: relative; display: flex; align-items: flex-end; gap: 6px; margin: -8px 0 4px; }
.lk-mascot img { width: 130px; height: auto; transform-origin: 50% 90%; animation: lk-bob 4.5s ease-in-out infinite; }
.lk-mascot__say { position: relative; margin-bottom: 64px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 6px 18px rgb(17 20 18 / .08); font-size: 14px; font-weight: 600; line-height: 1.35; animation: lk-say 600ms 400ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes lk-bob { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-4px) rotate(-1.5deg); } 70% { transform: translateY(-2px) rotate(1deg); } }
@keyframes lk-say { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.lk-empty__panda { width: 130px; height: auto; }
@media (max-width: 900px) { .lk-mascot img { width: 120px; } .lk-mascot__say { margin-bottom: 52px; } }
@media (prefers-reduced-motion: reduce) { .lk-mascot img, .lk-mascot__say { animation: none; } }

/* ===== Вход звонком клиента (с 19.11.2026): две колонки — слева действия, справа панда-провожатый (+ QR на компьютере) ===== */
.lk-auth--step { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); max-width: 960px; }
.lk-auth--step .lk-auth__form { display: flex; flex-direction: column; justify-content: center; }
.lk-auth--step h1 { margin-top: 0; }
.lk-auth--step .lk-back { align-self: flex-start; }
.lk-auth__form .lk-btn--tel { margin: 4px 0 0; height: 60px; font-size: 22px; }
.lk-dial__alt { margin: 10px 0 16px; color: var(--muted); font-size: 14px; }
.lk-dial__alt[hidden] { display: block; visibility: hidden; height: 0; margin: 0 0 16px; }
.lk-dial__alt a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.lk-hint--alt { margin-top: 14px; }
.lk-hint--alt .lk-link-btn { font-size: 14px; }
.lk-pal { align-items: center; justify-content: center; gap: 18px; }
.lk-mascot--col { flex-direction: column; align-items: center; gap: 10px; margin: 0; }
.lk-mascot--col img { width: 172px; transition: opacity .25s ease; }
.lk-mascot--col .lk-mascot__say { margin: 0; max-width: 260px; text-align: center; border-radius: 16px; }
.lk-mascot--col .lk-mascot__say::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: #fff; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.lk-dial__qr { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 300px; margin: 0; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgb(17 20 18 / .06); }
.lk-dial__qr[hidden] { display: none; }
.lk-dial__qr div { flex: none; width: 112px; height: 112px; }
.lk-dial__qr svg, .lk-dial__qr img { display: block; width: 100%; height: 100%; }
.lk-dial__qr figcaption { color: var(--muted); font-size: 13px; line-height: 1.4; text-align: left; }
.lk-callinfo--wait { align-items: center; margin-bottom: 0; }
.lk-spin { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent-strong); animation: lkSpin .9s linear infinite; }
.lk-callinfo--done .lk-spin { animation: none; border-color: var(--line); }
@keyframes lkSpin { to { transform: rotate(360deg); } }
#lkCallinRetry { margin-top: 12px; }
#lkCallinRetry[hidden] { display: none; }
#lkCallinError { margin: 12px 0 0; }
/* на телефоне: QR не нужен (номер набирается кнопкой), панда — компактно под формой */
@media (hover: none) and (pointer: coarse), (max-width: 900px) { .lk-dial__qr { display: none !important; } }
@media (max-width: 900px) {
  .lk-auth--step { grid-template-columns: 1fr; }
  .lk-pal { flex-direction: row; padding-top: 18px; padding-bottom: 18px; }
  .lk-mascot--col { flex-direction: row-reverse; }
  .lk-mascot--col img { width: 92px; }
  .lk-mascot--col .lk-mascot__say { text-align: left; border-radius: 16px 16px 4px 16px; }
  .lk-mascot--col .lk-mascot__say::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lk-spin { animation: none; } }

/* Выбор аватара: группы «Новогодние» / «Все панды» (с 19.11.2026), список прокручивается внутри окна */
.lk-avd__grid { max-height: min(58vh, 540px); overflow-y: auto; padding: 4px; scrollbar-width: thin; }
.lk-avd__group { grid-column: 1 / -1; margin: 6px 0 -2px; color: var(--muted); font-size: 14px; font-weight: 700; }
.lk-avd__group:first-child { margin-top: 0; }

/* Подарочная открытка в карточке заказа (с 20.11.2026): миниатюра + текст, клик — во весь экран */
.lk-gift { display: flex; align-items: center; gap: 14px; width: calc(100% - 40px); margin: 12px 20px 0; padding: 12px; border: 1px solid #f1d78f; border-radius: 14px; background: #fff8e6; text-align: left; font: inherit; color: inherit; cursor: zoom-in; transition: box-shadow .15s, transform .15s; }
.lk-gift:hover { box-shadow: 0 6px 18px rgba(120, 90, 20, .12); transform: translateY(-1px); }
.lk-gift__card { flex: none; width: 74px; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 12px rgba(20, 26, 22, .18); pointer-events: none; }
.lk-gift__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lk-gift__txt b { font-size: 15px; }
.lk-gift__to { font: 700 18px/1.15 'Caveat', cursive; color: #2b2622; }
.lk-gift__msg { font: 500 16px/1.2 'Caveat', cursive; color: #2b2622; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lk-gift__txt small { color: var(--muted); font-size: 13px; }
.lk-gift__txt u { color: var(--ink); text-underline-offset: 3px; }
/* Списано баллами при оформлении (20.11.2026): цены позиций без скидки, итог — за вычетом баллов */
.lk-spent { padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.lk-order__total s { margin-right: 8px; color: var(--muted); font: 500 14px/1 var(--text); text-decoration-thickness: 1px; }
