/* Посадочная «Бесплатная консультация юриста» — resources/views/lp/consult.blade.php.
 * ⚠ Стили ОБЯЗАТЕЛЬНО отдельным .css-файлом, не встроенными: антибот nginx пропускает POST
 * только с кукой notslownet_antibot, а ставит её ответ на запрос любого .css. Без файла
 * чат и форма телефона получали 403 у всех посетителей (поймано 04.11.2026). */
  /* Шрифт свой, не Google Fonts: Google получал бы IP посетителя без согласия */
  @font-face { font-family:'Nunito'; font-style:normal; font-display:swap; font-weight:200 1000;
    src:url(/fonts/lp/nunito-cyrillic-wght-normal.woff2) format('woff2');
    unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
  @font-face { font-family:'Nunito'; font-style:normal; font-display:swap; font-weight:200 1000;
    src:url(/fonts/lp/nunito-latin-wght-normal.woff2) format('woff2');
    unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

  /* Токены — из «Дизайн-системы nedicom»: красный только звонку, индиго — интерфейс */
  :root {
    /* Палитра основного сайта nedicom (Tailwind gray/indigo) — посадочная выглядит как сайт */
    --ground:#fff; --surface:#f9fafb; --surface-2:#f3f4f6; --line:#e5e7eb; --line-soft:#f3f4f6; --line-strong:#d1d5db;
    --ink:#111827; --ink-2:#4b5563; --muted:#6b7280;
    --call:#ea0000; --call-d:#c20000; --ui:#4f46e5; --ui-d:#4338ca; --ui-soft:#eef2ff; --ok:#047857; --bad:#be123c;
    --card-shadow:0 1px 2px 0 rgb(0 0 0 / .05);
  }
  * { box-sizing:border-box; }
  html,body { margin:0; }
  body { font:16px/1.6 'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif; color:var(--ink); background:var(--ground);
         -webkit-font-smoothing:antialiased; }
  a { color:var(--ui); text-underline-offset:3px; }
  :focus-visible { outline:2px solid var(--ui); outline-offset:2px; }
  .wrap { max-width:1120px; margin:0 auto; padding:0 16px; }
  @media (min-width:640px) { .wrap { padding:0 24px; } }

  /* кнопки: действие (красная, одна на экран) / второстепенная / индиго-интерфейс */
  .b { display:inline-flex; align-items:center; justify-content:center; gap:8px; font:inherit; font-weight:700;
       border-radius:8px; padding:12px 16px; text-decoration:none; cursor:pointer; border:1px solid transparent; line-height:1.2; }
  .b-call { background:var(--call); color:#fff; }
  .b-call:hover { background:var(--call-d); }
  .b-call:focus-visible { outline-color:var(--call); }
  .b-sec { background:#fff; color:var(--ink); border-color:var(--line-strong); }
  .b-sec:hover { background:var(--surface); }
  .b-ui { background:var(--ui); color:#fff; }
  .b-ui:hover { background:var(--ui-d); }
  .b:disabled { opacity:.5; cursor:default; }
  .ico { width:18px; height:18px; flex:none; }

  header { border-bottom:1px solid var(--line-soft); background:#fff; box-shadow:var(--card-shadow); position:relative; z-index:5; }
  header .wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; height:64px; }
  .logo { color:var(--ink); text-decoration:none; line-height:1.2; display:flex; align-items:center; gap:8px; }
  .logo svg { width:44px; height:44px; flex:none; }
  .logo .lt { display:flex; flex-direction:column; }
  .logo b { display:block; font-size:18px; font-weight:800; letter-spacing:-.01em; }
  .logo .lt > span { font-size:14px; color:var(--muted); }
  .head-phone .hp-num, .logo b { white-space:nowrap; }
  @media (max-width:480px) { .logo .lt > span { display:none; } .logo svg { width:36px; height:36px; } .logo b { font-size:15px; } .head-phone { padding:8px 10px; font-size:15px; } }
  .head-phone { padding:8px 12px; font-size:16px; }
  .head-phone .hp-num { display:inline; }
  @media (min-width:640px) { .head-phone .hp-num { display:inline; } }

  /* первый экран */
  .hero { background:var(--surface); }
  .hero .wrap { display:grid; gap:16px; padding-top:16px; padding-bottom:24px; }
  @media (min-width:960px) { .hero .wrap { grid-template-columns:1fr 1.1fr; gap:48px; align-items:start; padding-top:48px; padding-bottom:48px; } .hero .wrap > div:first-child { padding-top:48px; } }
  .eyebrow { display:none; font-size:14px; font-weight:700; color:var(--muted); letter-spacing:.02em; margin:0 0 8px; }
  h1 { font-size:24px; line-height:1.15; font-weight:900; letter-spacing:-.02em; margin:0 0 8px; text-wrap:balance; }
  @media (min-width:960px) { h1 { font-size:44px; margin-bottom:16px; } .eyebrow { display:block; } }
  .lead { font-size:16px; color:var(--ink-2); margin:0; }
  @media (min-width:960px) { .lead { font-size:18px; } }
  .intro-more { display:none; }
  @media (min-width:960px) { .intro-more { display:block; } }
  .points { list-style:none; padding:0; margin:24px 0; display:grid; gap:12px; }
  .points li { display:flex; gap:12px; align-items:flex-start; color:var(--ink-2); }
  .points svg { width:24px; height:24px; flex:none; color:var(--ui); }
  .cta { display:flex; flex-wrap:wrap; gap:8px; }
  .cta .b-call { padding:12px 24px; }
  .facts { margin-top:24px; font-size:14px; color:var(--muted); }
  .fits { margin:16px 0 24px; color:var(--ink-2); }
  .way-office { font-size:14px; }
  .way-office a { color:var(--ui); font-weight:700; }

  /* чат */
  .chat { background:#fff; border:1px solid var(--line-soft); box-shadow:var(--card-shadow); border-radius:16px; display:flex; flex-direction:column; overflow:hidden;
          height:calc(100svh - 360px); min-height:400px; max-height:620px; }
  @media (min-width:960px) { .chat { height:600px; } }
  .chat-h { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); }
  .ava { width:40px; height:40px; border-radius:50%; background:var(--ui-soft); color:var(--ui); display:grid; place-items:center; flex:none; position:relative; }
  .ava svg { width:22px; height:22px; }
  .ava:after { content:""; position:absolute; right:0; bottom:0; width:10px; height:10px; border-radius:50%; background:#22c55e; border:2px solid #fff; }
  .chat-h b { display:block; font-size:16px; line-height:1.2; }
  .chat-h span { font-size:14px; color:var(--muted); line-height:1.3; display:block; }
  .feed { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:8px; scroll-behavior:smooth; }
  .msg { max-width:88%; padding:8px 12px; border-radius:16px; white-space:pre-wrap; overflow-wrap:anywhere; }
  .msg.bot { background:var(--surface-2); align-self:flex-start; border-bottom-left-radius:4px; }
  .msg.user { background:var(--ui); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
  .msg.okmsg { background:#ecfdf5; color:var(--ok); }
  .chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
  .chip { font:inherit; font-size:14px; font-weight:600; border:1px solid #c7d2fe; background:var(--ui-soft); color:var(--ui-d);
          border-radius:8px; padding:4px 12px; cursor:pointer; }
  .chip:hover { background:#e0e7ff; }
  .typing { align-self:flex-start; background:var(--surface-2); border-radius:16px; padding:12px 16px; display:flex; gap:4px; }
  .typing i { width:6px; height:6px; border-radius:50%; background:var(--muted); animation:blink 1.2s infinite; }
  .typing i:nth-child(2) { animation-delay:.2s; } .typing i:nth-child(3) { animation-delay:.4s; }
  @keyframes blink { 0%,80%,100% { opacity:.25; } 40% { opacity:1; } }
  @media (prefers-reduced-motion:reduce) { .typing i { animation:none; opacity:.6; } .feed { scroll-behavior:auto; } }
  .form-card { align-self:stretch; background:var(--ui-soft); border:1px solid #c7d2fe; border-radius:16px; padding:16px; margin-top:4px; }
  .form-card .t { display:block; font-weight:800; margin-bottom:8px; }
  .row { display:flex; gap:8px; }
  .row input { flex:1; min-width:0; }
  .field { font:inherit; color:var(--ink); background:#fff; border:1px solid var(--line-strong); border-radius:8px; padding:12px; }
  .field:focus { outline:2px solid #c7d2fe; border-color:var(--ui); }
  .agree { display:flex; gap:8px; align-items:flex-start; font-size:14px; color:var(--ink-2); margin-top:12px; line-height:1.4; }
  .agree input { width:18px; height:18px; margin:0; flex:none; accent-color:var(--ui); }
  .err { color:var(--bad); font-size:14px; margin-top:8px; }
  .compose { display:flex; gap:8px; align-items:flex-end; padding:12px; border-top:1px solid var(--line); }
  .compose textarea { flex:1; resize:none; height:48px; max-height:128px; line-height:1.5; overflow-y:hidden; }  /* полоса прокрутки — только когда текст не влезает (Яндекс Браузер рисовал стрелки у пустого поля) */
  .send { width:48px; height:48px; padding:0; border-radius:8px; flex:none; }
  .send svg { width:22px; height:22px; }
  .note { font-size:14px; color:var(--muted); padding:0 16px 12px; margin:-4px 0 0; }

  /* блоки ниже */
  section.block { padding:48px 0; }
  main { background:var(--surface); }
  @media (min-width:960px) { section.block { padding:64px 0; } }
  h2 { font-size:24px; font-weight:800; letter-spacing:-.015em; line-height:1.2; margin:0 0 24px; }
  @media (min-width:960px) { h2 { font-size:30px; } }
  .grid3 { display:grid; gap:16px; }
  @media (min-width:960px) { .grid3 { grid-template-columns:repeat(3,1fr); gap:24px; } }
  .card { border:1px solid var(--line-soft); box-shadow:var(--card-shadow); border-radius:16px; padding:24px; background:#fff; }
  .num { width:32px; height:32px; border-radius:50%; background:var(--ui-soft); color:var(--ui); font-weight:800;
         display:grid; place-items:center; margin-bottom:12px; }
  .card h3 { font-size:18px; font-weight:700; margin:0 0 4px; }
  .card p { margin:0; color:var(--ink-2); }
  .topics { display:flex; flex-wrap:wrap; gap:8px; }
  .topics span { border:1px solid var(--line-soft); box-shadow:var(--card-shadow); border-radius:8px; padding:8px 12px; background:#fff; color:var(--ink-2); }
  .topics-note { margin:16px 0 0; font-size:14px; color:var(--muted); }
  .office { display:grid; gap:16px; }
  @media (min-width:960px) { .office { grid-template-columns:1fr auto; align-items:center; } }
  .office p { margin:0 0 4px; color:var(--ink-2); }
  .office .addr { font-size:18px; font-weight:700; color:var(--ink); }
  footer { background:#fff; border-top:1px solid var(--line-soft); padding:24px 0 112px; font-size:14px; color:var(--muted); line-height:1.5; }
  @media (min-width:960px) { footer { padding-bottom:32px; } }

  .mob-bar { position:fixed; left:0; right:0; bottom:0; display:flex; gap:8px; padding:12px 16px calc(12px + env(safe-area-inset-bottom));
             background:#fff; border-top:1px solid var(--line); z-index:20; }
  .mob-bar .b-call { flex:1; }
  @media (min-width:960px) { .mob-bar { display:none; } }

  /* живой чат: выбор юриста и подписи сообщений */
  .pick { padding:4px 0; }
  .pick-t { font-weight:800; margin:0 0 8px; }
  .pick-list { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .pick-card { display:flex; align-items:center; gap:8px; text-align:left; font:inherit; background:#fff; border:1px solid var(--line-strong);
               border-radius:8px; padding:8px; cursor:pointer; color:var(--ink); }
  .pick-card:hover { border-color:var(--ui); background:var(--ui-soft); }
  .pick-card img, .pick-card .ph { width:40px; height:40px; border-radius:50%; object-fit:cover; flex:none; background:var(--ui-soft); }
  .pick-card .ph { display:grid; place-items:center; color:var(--ui); font-weight:800; font-size:14px; }
  .pick-card b { display:block; font-size:14px; line-height:1.25; }
  .pick-card span { display:block; font-size:14px; color:var(--muted); line-height:1.25; }
  .pick-any { margin-top:8px; font:inherit; font-size:14px; background:none; border:0; color:var(--ui); cursor:pointer; padding:4px 0; text-decoration:underline; text-underline-offset:3px; }
  .ava img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
  .chg { font:inherit; font-size:14px; background:none; border:0; color:var(--ui); cursor:pointer; padding:0; margin-left:auto; text-decoration:underline; text-underline-offset:3px; }
  .who { font-size:14px; font-weight:700; color:var(--muted); margin:4px 0 -4px 4px; }
  .who.ai { font-weight:600; }
  .msg.sys { align-self:center; background:none; color:var(--muted); font-size:14px; text-align:center; padding:0 8px; max-width:100%; }

  /* плашка cookie — как CookieConsent.vue на сайте; ключ согласия общий (yandex_metrica_consent) */
  .cookie { position:fixed; left:12px; right:12px; bottom:calc(84px + env(safe-area-inset-bottom)); z-index:30; display:flex; align-items:center; gap:8px;
            background:rgb(255 255 255 / .95); backdrop-filter:blur(4px); border:1px solid var(--line); border-radius:12px; padding:8px 12px;
            box-shadow:0 8px 24px -8px rgb(15 23 42 / .25); }
  @media (min-width:640px) { .cookie { left:auto; right:16px; max-width:28rem; } }
  @media (min-width:960px) { .cookie { bottom:16px; } }
  .cookie p { flex:1; min-width:0; margin:0; font-size:14px; line-height:1.35; color:var(--ink-2); }
  .cookie .ok { flex:none; font:inherit; font-size:14px; font-weight:700; background:#111827; color:#fff; border:0; border-radius:8px; padding:6px 12px; cursor:pointer; }
  .cookie .ok:hover { background:#374151; }
  .cookie .x { flex:none; width:28px; height:28px; display:grid; place-items:center; background:none; border:0; border-radius:8px; color:var(--muted); cursor:pointer; font-size:18px; line-height:1; }
  .cookie .x:hover { background:var(--surface-2); }

  /* «на связи»: зелёный — у юриста открыта страница чатов (≤3 мин назад), серый — нет */
  .pick-av { position:relative; flex:none; display:block; width:40px; height:40px; }
  .pick-av .st { position:absolute; right:-2px; bottom:-2px; width:12px; height:12px; border-radius:50%; background:#22c55e; border:2px solid #fff; }
  .pick-av .st.off, .ava.off:after { background:#9ca3af; }

/* Атрибут hidden главнее display:flex у компонентов (плашка cookie не пряталась после «ОК») */
[hidden] { display:none !important; }

  /* «С чем помогаем» под чатом — фильтр юристов */
  .chat-col { min-width:0; }
  .cats { margin-top:16px; }
  .cats-t { font-weight:800; margin:0 0 8px; }
  .cats-list { display:flex; flex-wrap:wrap; gap:8px; }
  .cat { font:inherit; font-size:14px; font-weight:600; background:#fff; color:var(--ink-2); border:1px solid var(--line); border-radius:8px;
         padding:6px 12px; cursor:pointer; box-shadow:var(--card-shadow); }
  .cat:hover { border-color:var(--ui); color:var(--ui); }
  .cat.on { background:var(--ui); border-color:var(--ui); color:#fff; }
  /* Направления группами — спокойно, в палитре сайта: белые карточки, серые подуслуги, выбор индиго
     (радугу по группам владелец забраковал 05.11.2026) */
  #catsList { display:block; columns:4 240px; column-gap:12px; }
  .grp { break-inside:avoid; display:inline-block; width:100%; margin:0 0 12px; padding:12px; border-radius:12px;
         background:#fff; border:1px solid var(--line-soft); box-shadow:var(--card-shadow); transition:opacity .15s, border-color .15s; }
  .grp.on { border-color:var(--ui); }
  .has-sel .grp:not(.on) { opacity:.6; }
  .has-sel .grp:not(.on):hover { opacity:1; }
  .grp-h { font:inherit; font-size:15px; font-weight:800; color:var(--ink); background:none; border:0; border-radius:8px;
           padding:2px 4px; margin:-2px -4px; cursor:pointer; text-align:left; }
  .grp-h:hover { color:var(--ui); }
  .grp-h.on { color:var(--ui); }
  .grp-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .grp-tg { display:none; }
  .grp-subs { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
  .sub { font:inherit; font-size:13px; font-weight:600; line-height:1.25; text-align:left; background:#f3f4f6; color:var(--ink-2);
         border:1px solid transparent; border-radius:8px; padding:5px 10px; cursor:pointer; }
  .sub:hover { background:var(--ui-soft); color:var(--ui); }
  .sub.on { background:var(--ui); color:#fff; }
  @media (max-width:639px) {
    .grp { padding:8px 8px 8px 12px; margin-bottom:8px; }
    .grp-subs { margin-top:8px; }
    .grp:not(.open) .grp-subs { display:none; }
    .grp-tg { display:inline-flex; align-items:center; gap:6px; flex:none; font:inherit; font-size:13px; font-weight:700; min-height:36px;
              padding:0 10px; border-radius:8px; border:0; background:#f3f4f6; color:var(--ink-2); cursor:pointer; }
    .grp-tg::after { content:""; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-2px); }
    .grp.open .grp-tg::after { transform:rotate(-135deg) translate(-1px, -1px); }
  }
  .cats-reset { font:inherit; font-size:14px; font-weight:700; color:var(--ui); background:none; border:0; cursor:pointer; margin-left:8px;
                text-decoration:underline; text-underline-offset:3px; }
  @media (prefers-reduced-motion:reduce) { .grp { transition:none; } }
  .cats-note { margin:8px 0 0; font-size:14px; color:var(--muted); }
  .cat-more { font:inherit; font-size:14px; font-weight:600; background:none; border:0; color:var(--ui); cursor:pointer; padding:6px 4px; text-decoration:underline; text-underline-offset:3px; }

  /* Офис: карта Яндекса + адрес (как на посадочной Синекса) */
  .office { display:grid; gap:16px; }
  @media (min-width:960px) { .office { grid-template-columns:1.4fr 1fr; align-items:stretch; } }
  .map { position:relative; min-height:320px; background:var(--surface-2); border:1px solid var(--line-soft); border-radius:16px; overflow:hidden; box-shadow:var(--card-shadow); }
  .map iframe { position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
  .map .lid { position:absolute; inset:0; display:flex; align-items:flex-start; justify-content:center; padding:16px 0 0; background:transparent; border:0; cursor:pointer; font:inherit; }
  .map .lid span { padding:8px 16px; background:rgb(255 255 255 / .95); border-radius:999px; font-size:14px; font-weight:700; color:var(--ink-2); box-shadow:0 2px 10px rgb(17 24 39 / .16); }
  .office-info { display:flex; flex-direction:column; gap:4px; }
  .office-info .route { margin:12px 0; }

  /* Мессенджеры и маршрут: второстепенные кнопки с фирменными иконками — заметнее, но красная остаётся одна (звонок) */
  .ico-b { width:22px; height:22px; flex:none; }
  .b-msgr, .b-route { transition:border-color .15s, background-color .15s, transform .15s; }
  .b-msgr:hover { border-color:#93c5fd; background:#eff6ff; transform:translateY(-1px); }
  .b-route { color:var(--ui); border-color:#c7d2fe; }
  .b-route:hover { background:var(--ui-soft); border-color:var(--ui); transform:translateY(-1px); }
  @media (prefers-reduced-motion:reduce) { .b-msgr, .b-route { transition:none; } .b-msgr:hover, .b-route:hover { transform:none; } }

  /* «Консультация — как вам удобно»: четыре способа + карта */
  .ways { display:grid; gap:16px; }
  @media (min-width:960px) { .ways { grid-template-columns:1.7fr 1fr; align-items:stretch; } }
  .way-body .b { white-space:nowrap; }
  .ways-list { display:grid; gap:16px; }
  .way { display:flex; gap:12px; padding:16px; }
  .way-ico { width:40px; height:40px; border-radius:50%; background:var(--ui-soft); color:var(--ui); display:grid; place-items:center; flex:none; }
  .way-ico svg { width:22px; height:22px; }
  .way-body { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
  .way-body h3 { font-size:18px; font-weight:700; margin:0; }
  .way-body p { margin:0; color:var(--ink-2); }
  .way-body .cta { gap:8px; align-self:stretch; }
  .ways .map { min-height:360px; }
  .way-body .cta .b { padding:8px 12px; }
  /* Кнопки — по низу карточки: в ряду стоят на одной линии при любой длине текста */
  .way-body { align-self:stretch; }
  .way-body > :last-child { margin-top:auto; }
  .intro-more .cta { margin-top:24px; }
  /* «С чем помогаем» на всю ширину под первым экраном (на ПК — под обеими колонками) */
  .cats-wide { grid-column:1 / -1; margin-top:0; }
  @media (min-width:960px) { .cats-wide { margin-top:-16px; } .cats-wide .cats-t { font-size:18px; } }

  /* Телефон: главное действие — написать. Выбор юриста — одна строка аватаров с прокруткой вбок
     (сетка 3×2 занимала пол-экрана и выглядела обязательным шагом), поле ввода — заметное */
  .compose textarea { border-color:#a5b4fc; }
  @media (max-width:639px) {
    /* высота чата — по содержимому, длинная переписка прокручивается внутри */
    .chat { height:auto; min-height:0; max-height:calc(100svh - 150px); }
    .feed { min-height:240px; }
  }

  /* Телефон: меньше текста, поле вопроса — главное на экране */
  @media (max-width:639px) {
    .hero .lead, .chat .note, .pick-any { display:none; }
    .compose { padding:12px; background:var(--ui-soft); }
    .compose textarea { height:52px; border:2px solid var(--ui); box-shadow:0 0 0 4px rgb(79 70 229 / .12); font-size:16px; }
    .compose textarea::placeholder { color:#6b7280; }
    .send { width:52px; height:52px; }
  }

  /* Липкая нижняя панель убрана (владелец 05.11.2026): звонок — в шапке и в блоке способов */
  .mob-bar { display:none !important; }
  footer { padding-bottom:24px !important; }
  .cookie { bottom:calc(12px + env(safe-area-inset-bottom)); }

  /* «… печатает» / «Прочитано» внизу ленты */
  .typing-wrap { align-self:flex-start; display:flex; flex-direction:column; gap:4px; }
  .typing-name { font-size:14px; color:var(--muted); font-weight:700; margin-left:4px; }
  .seen { align-self:flex-end; font-size:12px; color:var(--muted); margin-top:-4px; }
  .wait-wrap { align-self:stretch; display:flex; flex-direction:column; gap:8px; }
  .wait-wrap .seen { align-self:flex-end; margin-top:-4px; }

  /* Выбор юриста — как список чатов в Telegram/MAX */
  .pick-t { font-size:14px; font-weight:800; margin:0 0 6px; }
  .pick-t span { font-weight:600; color:var(--muted); }
  .ml { display:flex; flex-direction:column; background:#fff; border:1px solid var(--line-soft); border-radius:12px; overflow:hidden; }
  .ml-row { display:flex; align-items:center; gap:12px; width:100%; padding:8px 12px; font:inherit; text-align:left; background:#fff; border:0; cursor:pointer; position:relative; }
  .ml-row + .ml-row::before { content:""; position:absolute; top:0; left:72px; right:0; border-top:1px solid var(--line-soft); }
  .ml-row:hover { background:var(--ui-soft); }
  .ml-row .pick-av { width:48px; height:48px; }
  .ml-row .pick-av img, .ml-row .pick-av .ph { width:48px; height:48px; border-radius:50%; object-fit:cover; display:grid; place-items:center; background:var(--ui-soft); color:var(--ui); font-weight:800; font-size:15px; }
  .ml-any { border-radius:50%; background:var(--ui); color:#fff; display:grid !important; place-items:center; }
  .ml-any svg { width:24px; height:24px; }
  .ml-mid { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .ml-mid b { font-size:15px; line-height:1.25; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .ml-sub { font-size:13px; color:var(--muted); line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .ml-r { flex:none; align-self:flex-start; padding-top:4px; }
  .ml-st { font-size:12px; color:var(--muted); }
  .ml-st.on { color:#16a34a; font-weight:700; }
  .ml-badge { display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 6px; border-radius:999px; background:var(--ui); color:#fff; font-size:12px; font-weight:800; }
  @media (max-width:639px) { .ml-row { padding:7px 10px; } .ml-row + .ml-row::before { left:68px; } }

  /* Ближе к списку чатов MAX (скрин владельца 05.11.2026): без рамки, крупные круглые фото, без разделителей, статус как время */
  .ml { background:none; border:0; border-radius:0; gap:2px; }
  .ml-row { padding:8px 6px; border-radius:12px; background:none; gap:14px; }
  .ml-row + .ml-row::before { display:none; }
  .ml-row .pick-av, .ml-row .pick-av img, .ml-row .pick-av .ph { width:56px; height:56px; }
  .ml-row .pick-av .ph { color:#fff; font-size:19px; font-weight:700; letter-spacing:.02em; }
  .ml-row .pick-av .st { width:14px; height:14px; right:0; bottom:0; }
  .ml-mid b { font-size:16px; font-weight:700; }
  .ml-sub { font-size:14px; }
  .ml-r { padding-top:2px; }
  .ml-st { font-size:13px; }
  @media (max-width:639px) { .ml-row { padding:7px 4px; } .ml-row .pick-av, .ml-row .pick-av img, .ml-row .pick-av .ph { width:52px; height:52px; } }

  /* «Из практики» — лента карточек: ПК — медленно плывет (вторая копия для бесшовности), телефон — свайп */
  .cases { margin-bottom:8px; }
  .cases-vp { overflow:hidden; -webkit-mask-image:linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image:linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .cases-track { display:flex; gap:12px; width:max-content; animation:cases-run calc(var(--n) * 9s) linear infinite; }
  .cases-vp:hover .cases-track { animation-play-state:paused; }
  @keyframes cases-run { to { transform:translateX(calc(-50% - 6px)); } }
  .case { flex:none; width:300px; display:flex; flex-direction:column; gap:8px; padding:16px; background:#fff; border:1px solid var(--line-soft);
          border-radius:12px; box-shadow:var(--card-shadow); }
  .case-topic { align-self:flex-start; font-size:12px; font-weight:700; color:var(--ui); background:var(--ui-soft); border-radius:6px; padding:2px 8px; }
  .case-text { margin:0; font-size:14px; color:var(--ink); }
  .case-res { margin:0; font-size:14px; color:var(--ink-2); }
  .case-who { margin-top:auto; display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); padding-top:8px; border-top:1px solid var(--line-soft); }
  .case-who img, .case-ph { width:32px; height:32px; border-radius:50%; object-fit:cover; flex:none; }
  .case-ph { display:grid; place-items:center; background:var(--ui-soft); color:var(--ui); font-weight:800; }
  .case-who span { display:flex; flex-direction:column; line-height:1.25; }
  .case-who b { color:var(--ink); font-weight:700; }
  @media (max-width:639px), (prefers-reduced-motion:reduce) {
    .cases-vp { overflow-x:auto; scrollbar-width:none; -webkit-mask-image:none; mask-image:none; margin:0 -16px; padding:2px 16px 8px; }
    .cases-vp::-webkit-scrollbar { display:none; }
    .cases-track { animation:none; }
    .case { width:min(82vw, 300px); scroll-snap-align:center; }
    .case { scroll-snap-align:none; }
  }
  /* Без анимации по системной настройке — вторая копия не нужна */
  @media (prefers-reduced-motion:reduce) {
    .case[aria-hidden="true"] { display:none; }
  }
  /* Шапка чата без выбранного юриста — логотип «Мина и партнёры» вместо значка (владелец 05.11.2026) */
  .ava-logo { background:#fff; border:1px solid var(--line-soft); }
  .ava-logo svg { width:30px; height:30px; }

  /* ⚠ Лента «Из практики» (width:max-content) раздувала сетку первого экрана на телефоне до 3100px:
     элементы сетки по умолчанию не уже своего содержимого — ставим min-width:0 */
  .hero .wrap { grid-template-columns:minmax(0, 1fr); }
  .hero .wrap > * { min-width:0; }
  @media (min-width:960px) { .hero .wrap { grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr); } }

  /* Иконки направлений (Lucide) — только на ПК, у подуслуг нет */
  .grp-h { display:inline-flex; align-items:center; gap:8px; }
  .grp-ico { display:none; width:20px; height:20px; flex:none; color:var(--ui); }
  @media (min-width:640px) { .grp-ico { display:block; } }
  .ml-dir { font-size:13px; font-weight:700; color:var(--ui); line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #chat { scroll-margin-top:12px; }
  /* Фон первого экрана темнее — белый чат-«мессенджер» выделяется (владелец 05.11.2026) */
  .hero { background:#e9ebf2; }
  .chat { border-color:#dfe2ea; box-shadow:0 8px 30px rgb(30 41 82 / .12), 0 1px 3px rgb(30 41 82 / .08); }
  /* Высота чата фиксирована — не «сжимается», когда список юристов уходит после выбора (владелец 05.11.2026).
     ПК: чат целиком на первом экране (верх чата ~113px от края, 32px воздуха снизу). Телефон: почти весь экран под шапкой и заголовком */
  @media (min-width:960px) { .chat { height:clamp(520px, calc(100vh - 145px), 760px); height:clamp(520px, calc(100svh - 145px), 760px); min-height:0; max-height:none; } }
  @media (max-width:959px) { .chat { height:clamp(440px, calc(100vh - 176px), 720px); height:clamp(440px, calc(100svh - 176px), 720px); min-height:0; max-height:none; } .feed { min-height:0; } }
  /* Пустой диалог — карточка собеседника по центру, как в мессенджерах */
  .empty { margin:auto; display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; padding:24px 20px; max-width:280px;
           background:var(--surface); border-radius:16px; }
  .empty-av { width:72px; height:72px; border-radius:50%; overflow:hidden; display:grid; place-items:center; margin-bottom:6px;
              background:linear-gradient(135deg, #818cf8, #4f46e5); color:#fff; font-weight:800; font-size:24px; }
  .empty-av img { width:100%; height:100%; object-fit:cover; }
  .empty b { font-size:16px; }
  .empty-sub { font-size:13px; color:var(--muted); }
  .empty-t { margin:12px 0 0; font-weight:800; font-size:15px; }
  .empty-h { margin:0; font-size:14px; color:var(--ink-2); }

/* Карточка «сообщим, когда юрист ответит» в чате (владелец 07.11.2026) */
.notify-card { align-self:stretch; background:var(--surface,#f9fafb); border:1px solid var(--line,#e5e7eb); border-radius:16px; padding:12px 14px; margin-top:4px; }
.notify-card .t { font-weight:800; font-size:14px; margin-bottom:8px; }
.notify-card .row { display:flex; flex-wrap:wrap; gap:8px; }
.notify-card .b { padding:8px 12px; font-size:14px; }
.notify-card .err { margin-top:8px; font-size:13px; color:#b91c1c; }

/* 10.11.2026 — «не пропустите ответ»: сообщение администратора сайта со ссылками */
.adm-wrap { display:flex; flex-direction:column; gap:8px; align-self:stretch; }
.msg.adm { align-self:flex-start; }
.adm-link { color:#4f46e5; font-weight:700; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.adm-err { font-size:13px; color:#b91c1c; margin-left:4px; }

.adm-who { display:flex; align-items:center; gap:8px; }
.adm-ava { width:28px; height:28px; border-radius:50%; background:#fff; border:1px solid var(--line-soft,#e5e7eb); display:grid; place-items:center; flex:none; }
.adm-ava svg { width:22px; height:22px; }

  /* Предложение написать руководителю в мессенджер — горячим и тёплым клиентам без ответа юриста (16.11.2026) */
  .handoff { align-self:stretch; margin:6px 0; padding:12px 14px; border:1px solid #c7d2fe; border-radius:14px; background:#eef2ff; }
  .handoff p { margin:0 0 10px; font-size:15px; line-height:1.4; color:#1f2937; }
  .handoff-b { display:flex; flex-wrap:wrap; gap:8px; }
  .handoff-b .b { flex:1 1 180px; justify-content:center; background:#fff; }

/* Пометка под первым ответом помощника: один раз на диалог вместо «(ИИ)» в подписи каждой реплики (16.11.2026) */
.ai-note { align-self:flex-start; margin:-2px 0 2px 6px; font-size:12px; color:var(--muted); }

/* «Напишите юристу лично» на месте поля ввода (16.11.2026): тот же блок, но прижат к низу окна чата */
.handoff.handoff-lock { margin:0; border-radius:0; border-width:1px 0 0; padding:14px 12px; }
.handoff.handoff-lock p { font-size:16px; font-weight:600; }

/* «Скопировать мой вопрос» под кнопками мессенджеров (16.11.2026) */
.handoff-foot { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; margin-top:10px; }
.handoff-copy { border:0; background:none; padding:4px 0; font:inherit; font-size:14px; font-weight:600; color:#4f46e5; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.handoff-note { font-size:13px; color:#047857; }

/* Оценка ответа: пять звёзд в чате (17.11.2026) */
.rate-box { align-self:stretch; margin:6px 0; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:#fff; text-align:center; }
.rate-box p { margin:0 0 6px; font-size:15px; color:#1f2937; }
.rate-stars { display:inline-flex; gap:4px; }
.rate-star { border:0; background:none; padding:2px 4px; font-size:34px; line-height:1; color:#d1d5db; cursor:pointer; transition:color .1s, transform .1s; }
.rate-star.on, .rate-star:focus-visible { color:#f59e0b; }
.rate-star:active { transform:scale(.92); }
.rate-star:disabled { cursor:default; }
.review-box .b { flex:1 1 220px; justify-content:center; background:#fff; }

/* Обязательное указание на тематической странице (банкротство, ст. 28.1 закона о рекламе) */
.theme-notice { margin:10px 0 0; font-size:12.5px; line-height:1.45; color:var(--muted); max-width:56ch; }
