.bh-ai {
	--bh-ai-blue: #0052a1;
	--bh-ai-dark: #0b2f55;
	--bh-ai-line: #d9e5ef;
	margin: 28px 0;
	padding: clamp(22px, 4vw, 34px);
	border: 1px solid var(--bh-ai-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(11, 47, 85, .08);
	color: #172331;
}

.bh-ai [hidden] { display: none !important; }
.bh-ai__head { margin-bottom: 20px; }
.bh-ai__badge { display: inline-flex; margin-bottom: 8px; padding: 5px 9px; border-radius: 999px; background: #e8f3fc; color: var(--bh-ai-blue); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bh-ai__head h2, .bh-ai__ticket h3, .bh-ai__route h3 { margin: 0 0 6px; color: #172331; font-weight: 800; }
.bh-ai__head p, .bh-ai__route p { margin: 0; color: #5b6d80; }
.bh-ai__question-form label, .bh-ai__ticket label { display: grid; gap: 6px; color: #26394d; font-weight: 700; }
.bh-ai textarea, .bh-ai input { width: 100%; padding: 11px 12px; border: 1px solid #b9cad9; border-radius: 8px; background: #fff; color: #172331; font: inherit; box-sizing: border-box; }
.bh-ai textarea:focus, .bh-ai input:focus { border-color: var(--bh-ai-blue); box-shadow: 0 0 0 3px rgba(0,82,161,.13); outline: none; }
.bh-ai__privacy-hint { margin: 7px 0 14px; color: #738396; font-size: 12px; }
.bh-ai__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bh-ai__primary { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--bh-ai-blue); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.bh-ai__primary:disabled { cursor: wait; opacity: .6; }
.bh-ai__loading { display: inline-block; color: #65778a; font-size: 13px; white-space: nowrap; }
.bh-ai__response, .bh-ai__route { margin-top: 20px; padding: 20px; border-radius: 12px; background: #f6faff; box-shadow: inset 0 0 0 1px #d9e9f6; }
.bh-ai__answer { line-height: 1.65; white-space: normal; }
.bh-ai__sources { margin-top: 18px; padding-top: 14px; border-top: 1px solid #d8e5f0; }
.bh-ai__sources ul { margin: 7px 0 0; padding-left: 20px; }
.bh-ai__sources a { color: var(--bh-ai-blue); }
.bh-ai__rating { margin-top: 20px; padding-top: 16px; border-top: 1px solid #d8e5f0; }
.bh-ai__stars { display: flex; gap: 3px; margin: 8px 0 13px; }
.bh-ai__stars button { display: inline-grid; place-items: center; width: 34px; height: 38px; padding: 0 !important; border: 0 !important; border-radius: 8px; background: #edf1f5 !important; box-shadow: none !important; color: #7c8995 !important; font-size: 28px; line-height: 1; cursor: pointer; }
.bh-ai__stars button.is-selected { background: #e4f1fc !important; color: var(--bh-ai-blue) !important; }
.bh-ai__stars button:hover, .bh-ai__stars button:focus-visible { color: var(--bh-ai-blue) !important; outline: 2px solid rgba(0,82,161,.28); outline-offset: 1px; }
.bh-ai__solved { display: flex; gap: 8px; flex-wrap: wrap; }
.bh-ai__solved button { padding: 8px 12px; border: 1px solid #b8cadd; border-radius: 7px; background: #fff; color: #284056; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bh-ai__ticket { margin-top: 20px; padding: clamp(18px, 3vw, 26px); border: 1px solid #c9dceb; border-radius: 12px; background: #fbfdff; }
.bh-ai__form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.bh-ai__full { grid-column: 1 / -1; }
.bh-ai__callback, .bh-ai__privacy { display: grid !important; grid-template-columns: 18px minmax(0, 1fr) !important; align-items: start !important; gap: 9px !important; width: 100% !important; margin: 12px 0; font-size: 13px; font-weight: 500 !important; line-height: 1.45; }
.bh-ai__callback input, .bh-ai__privacy input { display: block; width: 16px !important; height: 16px; margin: 2px 0 0 !important; padding: 0 !important; }
.bh-ai__callback span, .bh-ai__privacy span { display: block; min-width: 0; }
.bh-ai__privacy a { color: var(--bh-ai-blue); }
.bh-ai__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.bh-ai__message { margin-top: 14px; padding: 11px 13px; border-radius: 8px; background: #edf5fb; }
.bh-ai__message.is-error { background: #fff0f0; color: #8b2020; }
.bh-ai__message.is-success { background: #ecf8ef; color: #176b2d; }
.bh-ai__message.is-info { background: #fff7df; color: #69520d; }
.bh-ai__ticket-success { padding: 18px; border-radius: 9px; background: #ecf8ef; color: #176b2d; }
.bh-ai__ticket-confirmation { margin-bottom: 16px; padding: 12px 14px; border: 1px solid #b9dec2; border-radius: 8px; background: #ecf8ef; color: #176b2d; font-size: 13px; font-weight: 700; line-height: 1.45; }

.bh-service-widget { position: fixed; right: 22px; bottom: 22px; z-index: 99997; font-family: inherit; }
.bh-service-widget__launcher { display: flex !important; align-items: center; gap: 8px; min-height: 52px; padding: 11px 18px !important; border: 1px solid #0052a1 !important; border-radius: 999px !important; background: #0052a1 !important; box-shadow: 0 10px 28px rgba(11,47,85,.28) !important; color: #fff !important; font: inherit; font-weight: 800; text-decoration: none !important; cursor: pointer; }
.bh-service-widget__launcher:hover, .bh-service-widget__launcher:focus-visible { background: #003f7d !important; border-color: #003f7d !important; color: #fff !important; }
.bh-service-widget__launcher::before, .bh-service-widget__launcher::after { display: none !important; content: none !important; }
.bh-service-widget__launcher > span { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: rgba(255,255,255,.2); }
.bh-service-widget__lifebuoy svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bh-service-widget__panel { position: absolute; right: 0; bottom: 64px; width: min(390px, calc(100vw - 28px)); max-height: min(720px, calc(100vh - 100px)); overflow: auto; border: 1px solid #d7e3ed; border-radius: 15px; background: #fff; box-shadow: 0 20px 55px rgba(10,37,65,.24); }
.bh-service-widget__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: linear-gradient(135deg,#0b2f55,#0052a1); color: #fff; }
.bh-service-widget__head button { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 8px; background: #fff; color: #17324c; font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.bh-service-widget__head button:hover, .bh-service-widget__head button:focus-visible { background: #eaf3fb; outline: 2px solid rgba(255,255,255,.75); outline-offset: 2px; }
.bh-service-widget__menu { display: grid; gap: 1px; background: #e3ebf2; }
.bh-service-widget__menu button, .bh-service-widget__menu a { display: grid; gap: 2px; padding: 16px 18px; border: 0; background: #fff; color: #17324c; font: inherit; font-weight: 800; text-align: left; text-decoration: none; cursor: pointer; }
.bh-service-widget__menu span { color: #708195; font-size: 12px; font-weight: 500; }
.bh-service-widget__menu button:hover, .bh-service-widget__menu a:hover { background: #f1f7fc; }
.bh-service-widget__assistant .bh-ai { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.bh-service-widget__assistant .bh-ai__form-grid { grid-template-columns: 1fr; }
.bh-service-widget__assistant .bh-ai__full { grid-column: auto; }
.bh-service-widget__phone { display: grid; gap: 4px; padding: 25px; text-align: center; }
.bh-service-widget__phone strong { color: #0052a1; font-size: 24px; }
.bh-service-widget__phone a { text-decoration: none; }
.bh-service-widget__phone span { color: #68798b; font-size: 13px; }

@media (max-width: 620px) {
	.bh-ai__form-grid { grid-template-columns: 1fr; }
	.bh-ai__full { grid-column: auto; }
	.bh-service-widget { right: 14px; bottom: 14px; }
	.bh-service-widget__panel { bottom: 62px; }
}
