/* «Вопрос сотруднику» на главной (Антон 25.11.2026). Перенесено из styles.css «Цифровых решений», переменные свои */
.asst { --surface-2: #101a30; --surface-3: #16223b; --line-2: rgba(150,185,230,.28); --ink: #e8eef7; --ink-2: #a8b5c8; --accent: #5fb0e8; --accent-ink: #03101f; --ok: #7fe0a6; --danger: #ff8a7a; --ease: cubic-bezier(.2,.7,.2,1); --sans: "Golos Text", system-ui, sans-serif; }
.asst { display: none; }
.js .asst { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s; }
.js .asst.on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.asst-bubble { max-width: 260px; text-align: left; background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-2); border-radius: 16px 16px 4px 16px; padding: 12px 14px; font: 14px/1.45 var(--sans); cursor: pointer; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); transition: opacity .3s; }
.asst-bubble:hover { border-color: var(--accent); }
.asst.at-form .asst-bubble, .asst.in-gal .asst-bubble { display: none; }
/* Phones: the fixed button would sit on top of the hero line and the gallery arrows, so it waits until they are gone. */
@media (max-width: 860px) {
  .js .asst.on.in-hero:not(.open), .js .asst.on.in-gal:not(.open) { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s; }
}
.asst-fab { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 6px rgba(95,176,232,.14), 0 14px 30px -10px rgba(95,176,232,.6); transition: transform .2s var(--ease); }
.asst-fab:hover { transform: scale(1.06); }
.asst-fab svg { width: 24px; height: 24px; }
.asst-panel { width: min(360px, calc(100vw - 32px)); box-sizing: border-box; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); display: grid; gap: 12px; }
.asst-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.asst-panel h3 { margin: 0; font: 600 16px/1.2 var(--sans); }
.asst-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; font-size: 16px; line-height: 1; }
.asst-form { display: grid; gap: 12px; position: relative; }
.asst-panel textarea { min-height: 96px; }
.asst-done { margin: 0; font-size: 14px; color: var(--ok); }
.asst-done a { color: var(--ink); }
.asst .field-err { margin: 6px 0 0; font-size: 13px; color: var(--danger); }
.asst .form-msg.err { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 0; background: rgba(255,138,122,.08); border: 1px solid rgba(255,138,122,.4); color: var(--danger); }
.asst .form-msg a { color: inherit; }
.asst .hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.asst .check { font-size: 13px; }
.asst .check[data-invalid="true"] { color: var(--danger); }
.asst .btn { min-height: 46px; }
.asst-fab { background: linear-gradient(110deg, #a594ff, #7ce7f2 58%, #5fb0e8); color: #05101c; }
.asst .input[aria-invalid="true"] { border-color: var(--danger); }
.asst .btn-primary { color: #05101c; background: linear-gradient(110deg, #a594ff, #7ce7f2 58%, #5fb0e8); }
.asst [hidden] { display: none !important; }
