/* Норма — диалог в кабинете. Продолжение app.css: те же токены, тот же зелёный акцент,
   красного нет. Своим файлом, потому что у чата другая физика экрана: лента прокручивается
   внутри себя, а шапка и поле ввода стоят на месте.

   Всё движение здесь несёт смысл. Пока идёт ход, человек ждёт от 20 до 50 секунд, и
   единственное, что удерживает его от «завис» — видимая работа: кольцо крутится, шаги
   закрываются, строка «зачем» сменяется. Декоративных анимаций нет; те, что есть,
   выключаются системной настройкой (правило prefers-reduced-motion уже в app.css). */

/* ---------- Каркас экрана ---------- */

.chat {
  display: flex;
  flex-direction: column;
  /* dvh, а не vh: на телефоне адресная строка съезжает, и при vh поле ввода уезжает под
     неё — человек печатает вслепую. Строка с vh остаётся запасной для старых браузеров. */
  height: calc(100vh - 92px);
  height: calc(100dvh - 92px);
  min-height: 420px;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.chat-head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.chat-head .sub { margin: 3px 0 0; font-size: 13px; color: var(--ink-50); }

/* «Открыть в Telegram». Ссылка несёт токен привязки (см. chat.js), поэтому разговор
   переезжает вместе с человеком. Появляется, только когда адрес получен. */
.chat-tg {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-55);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.chat-tg:hover { color: var(--accent-deep); border-color: var(--accent-soft); }
.chat-tg[hidden] { display: none; }

@media (max-width: 640px) {
  .chat-tg { display: none; }
}

/* Живой индикатор связи. Зелёная точка — поток открыт; серая — переподключаемся. */
.chat-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-45);
  white-space: nowrap;
}
.chat-link .pip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: norma-pulse 2.4s ease-out infinite;
}
.chat-link[data-state="offline"] .pip { background: var(--ink-30); animation: none; }

/* ---------- Лента ---------- */

.chat-log {
  flex: 1;
  /* Без min-height:0 колонка-флекс не даёт ленте стать меньше своего содержимого: она не
     прокручивается, а распирает экран и задвигает поле ввода за нижний край. */
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Плавная прокрутка здесь только у кнопки «новое ниже». Глобально её включать нельзя:
     автодоводка до низа во время печати ответа превращается в анимацию, которую следующий
     кадр прерывает, и лента застревает на полпути. */
}

.chat-day {
  align-self: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-40);
  background: var(--wash);
  border-radius: var(--r-sm);
  padding: 3px 12px;
}

.msg {
  max-width: min(720px, 88%);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  font-size: 14.5px;
  line-height: 1.6;
  animation: norma-rise 0.24s ease-out both;
}
.msg--you {
  align-self: flex-end;
  background: #fff;
  border-left: 3px solid var(--ink);
}
.msg--norma {
  align-self: flex-start;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}
.msg--lawyer {
  align-self: flex-start;
  background: var(--wash);
  border-left: 3px solid var(--accent-deeper);
}
.msg .who {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 6px;
}
.msg--lawyer .who { color: var(--accent-deeper); }
.msg .at { display: block; margin-top: 7px; font-size: 11.5px; color: var(--ink-40); }

/* Кнопки конвейера под сообщением: «Берёмся», «Отправляю в WB», оценка работы.
   Тон приглушённый — это ход разбора, а не призыв к покупке; нажатая группа гаснет
   целиком и остаётся видимой, чтобы человек помнил, что он ответил. */
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.msg-action {
  font: inherit;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.msg-action:hover:not(:disabled) { background: var(--wash); border-color: var(--ink-40); }
.msg-action:disabled { cursor: default; opacity: 0.45; }
.msg-actions[data-state='failed']::after {
  content: 'не отправилось — попробуйте ещё раз';
  font-size: 12.5px;
  color: var(--ink-40);
  align-self: center;
}

/* Разметка внутри реплики: рендер приходит с сервера (src/web/markdown.py). */
.msg p { margin: 0 0 10px; }
.msg p:last-child { margin-bottom: 0; }
.msg h3, .msg h4, .msg h5, .msg h6 {
  margin: 14px 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.msg ul, .msg ol { margin: 0 0 10px; padding-left: 20px; }
.msg li { margin-bottom: 5px; }
.msg code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--wash); border-radius: 5px; padding: 1px 5px;
}
.msg pre {
  background: var(--wash); border-radius: var(--r-sm);
  padding: 12px 14px; overflow-x: auto;
}
.msg pre code { background: none; padding: 0; }
.msg a { color: var(--accent-deeper); text-decoration: underline; text-underline-offset: 2px; }
/* Таблица шире пузыря прокручивается внутри себя — страница по горизонтали не едет. */
.msg .md-table { overflow-x: auto; margin-bottom: 10px; }
.msg table { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
.msg th, .msg td {
  text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.msg th { font-weight: 600; color: var(--ink-70); }

/* Курсор печати: ответ уже проверен, браузер только проявляет его по словам. */
.msg--typing .body::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: norma-caret 1s steps(2) infinite;
}

/* ---------- Карточка «пульс работы» ---------- */

/* Ни карточки, ни рамки: строка работы стоит прямо на фоне ленты. Карточка с тенью
   спорила с пузырями сообщений за внимание и читалась как «табличка из мультика». */
.pulse {
  align-self: flex-start;
  width: min(560px, 92%);
  padding: 6px 2px 2px;
  animation: norma-fade 0.3s ease-out both;
}
.pulse[hidden] { display: none; }

.pulse-top { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.pulse-top .title {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-55);
}

/* Орб: одно кольцо, одно движение. Читается как «работа идёт» даже боковым зрением —
   именно этого не хватало пустому экрану. */
.orb { position: relative; width: 30px; height: 30px; flex: none; }
.orb::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 300deg, transparent 360deg);
  animation: norma-spin 2.6s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}
/* Точки в середине кольца больше нет (решение Сергея 2026-08-15): рядом с бегущим кольцом
   жирный кружок читался как вторая, независимая индикация и утяжелял строку. Движение
   осталось за самим кольцом — этого достаточно, чтобы было видно, что работа идёт. */

/* Одна строка — одна высота. Фиксируем её жёстко: пока высота блока плавала вместе с
   числом этапов, лента дёргалась на каждой смене шага и читать её было невозможно. */
.steps {
  position: relative;
  height: 19px;
  overflow: hidden;
}

.step {
  position: absolute;
  left: 0; right: 0; top: 0;
  font-size: 13px;
  line-height: 19px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.34s ease, transform 0.34s ease;
}
/* Пришедшая снизу → стоит → ушла вверх. Контраст между текущей и уходящей и есть весь
   статус: подсказка о том, что работа движется, без чек-листа и без обещаний вперёд. */
.step--in { opacity: 0; transform: translateY(9px); }
.step--now { opacity: 0.75; transform: translateY(0); }
.step--out { opacity: 0; transform: translateY(-9px); }

@media (prefers-reduced-motion: reduce) {
  .step { transition: none; }
}

/* Прогресс — волосяная линия, а не полоса: подсказка на краю зрения, не индикатор загрузки. */
.track {
  margin-top: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.55;
  transition: width 0.5s ease;
}

/* ---------- Поле ввода ---------- */

.composer {
  margin-top: 12px;
  background: var(--surface);
  border-radius: var(--r-ctl);
  box-shadow: none;
  border: 1px solid var(--line);
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-softer); }
.composer[data-drag="over"] {
  border-color: var(--accent);
  background: var(--accent-softer);
}

.composer textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  background: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  max-height: 168px;
  padding: 7px 0;
  color: var(--ink);
}
.composer textarea::placeholder { color: var(--ink-40); }

.composer .icon-btn {
  width: 38px; height: 38px; flex: none;
  border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-45);
  transition: background 0.15s ease, color 0.15s ease;
}
.composer .icon-btn:hover { background: var(--wash); color: var(--ink-70); }

.composer .send {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.composer .send:hover:not(:disabled) { transform: translateY(-1px); background: var(--accent-deep); }
.composer .send:disabled { opacity: 0.35; cursor: default; }

.composer-foot {
  margin: 8px 2px 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-40);
}

/* Прикреплённый файл до отправки */
.attach {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 8px;
  padding: 9px 12px;
  background: var(--wash);
  border-radius: var(--r-sm);
  font-size: 13px;
}
.attach .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach .drop { color: var(--ink-45); }
.attach .bar { height: 3px; border-radius: 999px; background: var(--wash-strong); overflow: hidden; }
.attach .bar i { display: block; height: 100%; background: var(--accent); transition: width 0.2s ease; }

/* ---------- Быстрые подсказки ---------- */

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quick button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-65);
  transition: transform 0.15s ease, color 0.15s ease;
}
.quick button:hover { transform: translateY(-1px); color: var(--ink); }

/* ---------- Пустое состояние ---------- */

.chat-empty {
  margin: auto;
  max-width: 460px;
  text-align: center;
  padding: 20px;
}
.chat-empty h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.chat-empty p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-65); }

/* Пилюля «есть новое ниже» — когда человек читает старое, а ответ пришёл */
.jump {
  position: sticky;
  bottom: 6px;
  align-self: center;
  padding: 7px 15px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  box-shadow: var(--shadow-lift);
  animation: norma-rise 0.2s ease-out both;
}

/* ---------- Панель дела ---------- */

/* position: relative — якорь для карточки приглашения войти: она накрывает диалог,
   а не всю страницу. */
.chat-wrap { display: flex; gap: 26px; align-items: stretch; position: relative; }
.chat-wrap .chat { flex: 1; min-width: 0; }

.case-rail {
  width: 264px; flex: none;
  display: none;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
}
.case-rail h3 {
  margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--ink-40);
}
.rail-fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-70);
  animation: norma-rise 0.3s ease-out both;
}
.rail-fact .k { display: block; font-size: 11px; color: var(--ink-40); margin-bottom: 2px; }
.rail-empty { font-size: 13px; line-height: 1.5; color: var(--ink-45); }

@media (min-width: 1200px) {
  .case-rail { display: flex; }
}

/* ---------- Движение ---------- */

@keyframes norma-spin { to { transform: rotate(360deg); } }

@keyframes norma-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.14); opacity: 1; }
}

@keyframes norma-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes norma-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes norma-caret {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---------- Мобильный ---------- */

@media (max-width: 900px) {
  .chat { height: calc(100vh - 168px); height: calc(100dvh - 168px); }
  .msg { max-width: 92%; font-size: 14px; }
  .pulse { width: 100%; padding: 16px 16px 14px; }
  .chat-head h1 { font-size: 19px; }
  .composer { padding: 8px 8px 8px 14px; border-radius: var(--r-ctl); }
  .composer-foot { display: none; }
  /* Подсказки в одну прокручиваемую строку: тремя рядами они съедали пол-экрана,
     на котором должна быть переписка. */
  .quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 10px -16px 0;
    padding: 0 16px 2px;
  }
  .quick::-webkit-scrollbar { display: none; }
  .quick button { flex: none; }
}

/* ---------- Приглашение войти (разговор, начатый до Telegram) ---------- */

/* Карточка поверх ленты, а не баннер в потоке: предложение входа приходит в момент, когда
   человек уже написал несколько реплик, и должно читаться как отдельный шаг разговора,
   а не как реклама между сообщениями. */
.gate {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: color-mix(in srgb, var(--ink) 34%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gate-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  padding: 26px 26px 22px;
  box-shadow: 0 26px 60px -18px color-mix(in srgb, var(--ink) 40%, transparent);
}
.gate-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.gate-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-60); }
.gate-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.gate-go {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer; border-radius: var(--r-sm);
  padding: 12px 20px; font: inherit; font-size: 14.5px; font-weight: 500;
  background: var(--accent-deep); color: #fff;
}
.gate-go[disabled] { opacity: 0.6; cursor: default; }
.gate-later {
  border: none; background: none; cursor: pointer;
  padding: 12px 8px; font: inherit; font-size: 14.5px; color: var(--ink-50);
  text-decoration: none;
}
.gate-note { margin-top: 12px !important; font-size: 13px !important; color: var(--ink-45) !important; }

/* Диалог в контексте задачи: подпись над композером, ссылка «→ задача» под сообщением,
   карточка задачи в правой панели. */
.chat-context {
  display: flex; align-items: center; gap: 10px; margin: 12px 0 -4px;
  padding: 8px 10px 8px 12px; border: 1px solid var(--line); border-left: 3px solid var(--ink);
  border-radius: var(--r-ctl); background: var(--surface); font-size: 13px; min-width: 0;
}
.chat-context .k { color: var(--ink-50); white-space: nowrap; }
.chat-context .kind {
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-50); white-space: nowrap;
}
.chat-context .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.chat-context .title:hover { color: var(--accent-deeper); }
.chat-context .drop {
  flex: none; width: 26px; height: 26px; border: none; background: transparent; color: var(--ink-45);
  font-size: 18px; line-height: 1; cursor: pointer; border-radius: var(--r-sm);
}
.chat-context .drop:hover { background: var(--wash); color: var(--ink); }

/* Панель предложения разбора: живёт под лентой, над композером, и переживает F5
   (GET /chat/offer). Цена действия стоит прямо в подписи кнопки — человек решает здесь,
   и остаток заключений должен быть перед глазами, а не в разделе «Профиль». */
/* [hidden] обязан побеждать display:flex, иначе пустая панель висит рамкой над композером. */
.chat-offer[hidden] { display: none; }
.chat-offer {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0 -4px;
  padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent-deeper);
  border-radius: var(--r-ctl); background: var(--surface); font-size: 13px; min-width: 0;
}
.chat-offer .k { flex: 1; min-width: 0; color: var(--ink-50); }
.chat-offer button {
  font: inherit; font-size: 13.5px; padding: 7px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chat-offer .offer-go { font-weight: 600; border-color: var(--ink-40); }
.chat-offer button:hover:not(:disabled) { background: var(--wash); border-color: var(--ink-40); }
.chat-offer button:disabled { cursor: default; opacity: 0.45; }
.chat-offer[data-state='failed']::after {
  content: 'не отправилось — попробуйте ещё раз';
  flex-basis: 100%; font-size: 12.5px; color: var(--ink-40);
}

.msg-task {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--accent-deeper);
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-task:hover { border-color: var(--accent); }
.msg--lawyer .msg-task { background: var(--surface); }

.rail-task {
  display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--ink);
  border-radius: var(--r-ctl); background: var(--surface);
}
.rail-task .kind { font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-50); }
.rail-task .t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.rail-task .chip { align-self: flex-start; margin-top: 4px; }
.rail-task:hover { border-color: var(--accent); }

@media (max-width: 900px) {
  .chat-context .k { display: none; }
}

/* Рельса «Текущая задача»: по какому вопросу идёт разговор и как его сменить.

   Разговор у клиента один на все вопросы. Пока выбрать вопрос можно было только придя из
   карточки в кабинете, человек спрашивал про одно, а Норма отвечала про соседнее дело. */
.rail-task--none { border-left-color: var(--ink-30); }
.rail-task .rail-note {
  font-size: 12.5px; line-height: 1.45; color: var(--ink-50);
}
.rail-switch { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.rail-switch-title {
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-40); margin-bottom: 2px;
}
.rail-pick {
  text-align: left; font-size: 13px; line-height: 1.35; color: var(--ink-70);
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--surface); cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rail-pick:hover { border-color: var(--accent); color: var(--ink); }
.rail-pick--on {
  border-color: var(--accent); background: var(--accent-softer);
  color: var(--accent-deeper); font-weight: 600;
}

/* Счётчик реплик в ветке: сколько всего сказано по этому делу. Мелкий и приглушённый —
   это подсказка «где больше разговора», а не показатель, за которым следят. */
.rail-pick-n {
  margin-left: 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.rail-pick--on .rail-pick-n { color: inherit; opacity: .8; }

.rail-work { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.rail-job {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--surface); text-decoration: none;
}
.rail-job .t {
  font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rail-job .rail-note { font-size: 12px; color: var(--ink-50); }
.rail-job:hover { border-color: var(--accent); }
.rail-job--done { border-left: 3px solid var(--accent); }
.rail-job--done .rail-note { color: var(--accent-deeper); }

/* Ссылка-действие в подвале чата: выглядит как быстрые кнопки, но ведёт в раздел,
   а не запускает ход модели. */
.quick-link {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border: 1px solid var(--line, rgba(21, 26, 24, 0.13));
  border-radius: 999px; font-size: 13px; color: var(--ink-65, rgba(21, 26, 24, 0.65));
  text-decoration: none; background: var(--surface, #fff);
  transition: transform 120ms ease, color 120ms ease;
}
.quick-link:hover { transform: translateY(-1px); color: var(--ink, #151a18); }
