/* Чат-помощник АспектЛед, версия 1, 21.11.2026. Все классы начинаются с ah- и не задевают стили сайта. */
.ah-root { position: fixed; right: 20px; bottom: 90px; z-index: 2900; font-family: inherit; font-size: 14px; line-height: 1.4; color: #222; }
.ah-root *, .ah-root *::before, .ah-root *::after { box-sizing: border-box; }
.ah-launcher { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 28px; padding: 10px 16px 10px 10px;
  background: #1d6fb8; color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ah-launcher:hover { background: #175d9b; }
.ah-launcher-ico { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #1d6fb8; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ah-open .ah-launcher { display: none; }
.ah-root.ah-open { z-index: 3050; }   /* открытое окно — выше липкой шапки сайта на телефоне (у неё 3000) */
.ah-panel { position: absolute; right: 0; bottom: 0; width: 370px; height: min(600px, calc(100vh - 120px)); background: #fff;
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.ah-panel[hidden] { display: none; }
.ah-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #1d6fb8; color: #fff; font-weight: 600; }
.ah-close { border: 0; background: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ah-body { flex: 1; overflow-y: auto; padding: 12px; background: #f4f6f8; }
.ah-msg { max-width: 88%; padding: 8px 11px; border-radius: 10px; margin: 0 0 8px; word-wrap: break-word; }
.ah-bot { background: #fff; border: 1px solid #e1e5ea; }
.ah-me { background: #1d6fb8; color: #fff; margin-left: auto; }
.ah-wait { color: #777; font-style: italic; }
.ah-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ah-btn { border: 1px solid #1d6fb8; background: #fff; color: #1d6fb8; border-radius: 16px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.ah-btn:hover:not(:disabled) { background: #e8f1fa; }
.ah-btn:disabled { opacity: .45; cursor: default; }
.ah-nav { border-color: #aab4bf; color: #555; }
.ah-prods { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
.ah-prod { display: flex; gap: 10px; background: #fff; border: 1px solid #e1e5ea; border-radius: 10px; padding: 8px; color: #222; text-decoration: none; }
.ah-prod:hover { border-color: #1d6fb8; }
.ah-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; background: #eee; }
.ah-prod-info { min-width: 0; }
.ah-prod-title { font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ah-prod-line { margin-top: 3px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ah-step { font-size: 12px; background: #fff3e0; color: #9a5a00; border-radius: 8px; padding: 0 6px; }
.ah-stock { font-size: 12px; color: #888; }
.ah-stock.ah-in { color: #2e8b3a; }
.ah-all { align-self: flex-start; color: #1d6fb8; font-weight: 600; text-decoration: none; padding: 2px 4px; }
.ah-extra { background: #fff; border: 1px dashed #c6d3e0; border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ah-extra-title { width: 100%; font-weight: 600; font-size: 13px; }
.ah-extra a { color: #1d6fb8; font-size: 13px; }
.ah-search { display: flex; gap: 6px; padding: 8px; border-top: 1px solid #e1e5ea; background: #fff; }
.ah-search input { flex: 1; min-width: 0; border: 1px solid #ccd3da; border-radius: 8px; padding: 8px 10px; font: inherit; }
.ah-search-btn { border: 0; border-radius: 8px; background: #1d6fb8; color: #fff; padding: 0 14px; font: inherit; cursor: pointer; }
@media (max-width: 600px) {
  .ah-root { right: 12px; bottom: 76px; }
  /* 23.11.2026: на телефоне — продолговатая кнопка с надписью, а не кружок (слово Рафаэля: кружок еле заметен) */
  .ah-launcher { padding: 9px 18px 9px 9px; font-size: 15px; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
  .ah-open { left: 0; right: 0; bottom: 0; }
  .ah-open .ah-panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: 85vh; border-radius: 12px 12px 0 0; }
}
/* 24.11.2026: блок вместо формы «Обратная связь» на странице контактов */
.ah-inline { border: 1px solid #c6d3e0; border-radius: 12px; padding: 16px 18px; margin: 10px 0 20px; background: #f4f8fc; max-width: 560px; }
.ah-inline-title { font-weight: 600; font-size: 17px; margin-bottom: 4px; color: #222; }
.ah-inline-text { color: #555; margin-bottom: 10px; }
.ah-inline .ah-btn { margin: 0 8px 6px 0; font-size: 14px; padding: 8px 16px; }
