/* Behinpa — site chrome (corner language switcher, footer, floating contact, mobile bar).
   Logical properties → mirrors automatically between RTL (fa/ar) and LTR (en).
   Customizer CSS loads later, so it can still fine-tune anything here. */

:root {
	--bpc-navy: #0b192c;
	--bpc-navy-2: #162a45;
	--bpc-sheet: #0f233f;
	--bpc-gold: #fbbf24;
	--bpc-text: #f8fafc;
	--bpc-muted: #cbd5e1;
}

.top-bar { display: none; }
/* Legacy hand-made chrome (old footer widgets) — replaced by the elements below. */
.bp-lang-switcher, .bp-float-contact, .bp-ios-nav, .bp-ios-modal { display: none !important; }

/* ---------- Footer columns ---------- */
.bp-foot-brand__head { display: flex; align-items: center; gap: 15px; margin-block-end: 12px; }
.bp-foot-brand__head img { margin: 0; width: 85px; height: auto; }
.bp-foot-brand__head strong { font-size: 18px; color: #fff; }
.bp-foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.8; }
.bp-foot-list li { margin: 0; }
.bp-foot-label { opacity: .85; }
.bp-foot-list a, .bp-foot-copy a { color: inherit; text-decoration: none; }
.bp-foot-list a:hover, .bp-foot-copy a:hover { color: var(--bpc-gold); }
.bp-foot-copy { margin: 0; }

/* ---------- Floating contact (phones + official WhatsApp / Rubika / Bale marks) ---------- */
.bpc-float {
	position: fixed; inset-block-end: 18px; right: 18px; z-index: 999985;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 9px 12px; border-radius: 18px;
	background: rgba(10, 31, 68, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 14px 34px -12px rgba(10, 31, 68, .6);
}
.bpc-float__phones { display: flex; gap: 6px; font-size: 12px; font-weight: 700; }
.bpc-float__phones a { color: #e8eefb; text-decoration: none; white-space: nowrap; padding: 2px 6px; border-radius: 8px; }
.bpc-float__phones a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.bpc-float__icons { display: flex; gap: 8px; align-items: center; justify-content: center; }
.bpc-app, .bpc-f-app {
	width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
	background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .2s ease, box-shadow .2s ease;
}
.bpc-app img, .bpc-f-app img { width: 74%; height: 74%; object-fit: contain; display: block; margin: 0; }
.bpc-ic-ru img { width: 66%; height: 66%; }
.bpc-app:hover, .bpc-f-app:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.bpc-num { display: inline-block; direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Mobile bottom bar + sheets ---------- */
.bpc-nav, .bpc-sheet-wrap { display: none; }

.bpc-ico {
	width: 22px; height: 22px; display: inline-block; background-color: currentColor;
	-webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.bpc-ico-home { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E"); }
.bpc-ico-grid { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E"); }
.bpc-ico-phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.bpc-ico-more { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E"); }

@media (max-width: 960px) {
	/* Phones/tablets: the bottom bar takes over; messenger marks move into the "more" sheet. */
	.bpc-float { display: none; }
	.bpc-sheet__apps { display: flex; justify-content: center; gap: 14px; margin-block-start: 12px; padding-block-start: 12px; border-block-start: 1px solid rgba(255, 255, 255, .12); }
	.bpc-sheet__apps .bpc-app { width: 44px; height: 44px; }
	body { padding-block-end: 0; }
	.bpc-footer { padding-block-end: calc(104px + env(safe-area-inset-bottom, 0px)); }

	.bpc-nav {
		display: flex; justify-content: space-around; align-items: center;
		position: fixed; inset-block-end: 12px; inset-inline: 12px; height: 64px; padding: 0 6px; z-index: 999990;
		background: rgba(11, 25, 44, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
		border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
	}
	.bpc-nav__item {
		flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
		padding: 6px 0; color: var(--bpc-muted); background: transparent; text-decoration: none;
		font-size: 11.5px; font-weight: 600; line-height: 1; outline: none;
	}
	.bpc-nav__item:hover, .bpc-nav__item:focus-visible { color: var(--bpc-gold); }

	.bpc-sheet-wrap {
		display: block; position: fixed; inset: 0; z-index: 999995;
		pointer-events: none; visibility: hidden; opacity: 0; transition: .3s ease;
	}
	.bpc-sheet-wrap:target { pointer-events: auto; visibility: visible; opacity: 1; }
	.bpc-backdrop { position: fixed; inset: 0; display: block; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
	.bpc-sheet {
		position: fixed; inset-inline: 12px; inset-block-end: 86px; padding: 16px; text-align: start;
		background: var(--bpc-sheet); border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px;
		box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); transform: translateY(40px); transition: .3s ease;
	}
	.bpc-sheet-wrap:target .bpc-sheet { transform: translateY(0); }
	.bpc-sheet__head {
		display: flex; justify-content: space-between; align-items: center; margin-block-end: 12px; padding-block-end: 8px;
		color: var(--bpc-gold); font-weight: 700; font-size: 14px; border-block-end: 1px solid rgba(255, 255, 255, .1);
	}
	.bpc-sheet__close {
		width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
		color: #fff; background: rgba(255, 255, 255, .12); text-decoration: none; font-size: 13px;
	}
	.bpc-scroll { max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; }
	.bpc-sheet__links { display: flex; flex-direction: column; gap: 8px; }
	.bpc-sheet__links a {
		display: flex; justify-content: space-between; padding: 11px 14px; border-radius: 12px;
		color: var(--bpc-text); background: rgba(255, 255, 255, .07); text-decoration: none; font-size: 13.5px; line-height: 1.4;
	}
	.bpc-sheet__links a.bpc-all, .bpc-sheet__links a.bpc-trigger {
		color: var(--bpc-gold); font-weight: 700; background: rgba(251, 191, 36, .18); border: 1px solid rgba(251, 191, 36, .35);
	}
	.bpc-sheet__links a.bpc-sub { font-weight: 700; }
	.bpc-sheet__links a.bpc-child { margin-inline-start: 14px; font-size: 13px; background: rgba(255, 255, 255, .04); }
	.bpc-group { margin-block-start: 6px; color: var(--bpc-muted); font-size: 12px; font-weight: 700; opacity: .8; }
	.bpc-langs { display: flex; gap: 8px; margin-block-start: 12px; padding-block-start: 12px; border-block-start: 1px solid rgba(255, 255, 255, .12); }
	.bpc-langs a {
		flex: 1; text-align: center; padding: 8px; border-radius: 10px; text-decoration: none;
		color: #fff; background: rgba(255, 255, 255, .08); font-weight: 700; font-size: 12px;
	}
	.bpc-langs a.active { background: var(--bpc-gold); color: var(--bpc-navy); }
}

@media (prefers-reduced-motion: reduce) {
	.bpc-sheet-wrap, .bpc-sheet, .bpc-app { transition: none; }
}

/* =========================================================================
   Footer (coded, identical in FA / EN / AR) — brand · links · contact · original map
   ========================================================================= */
.site-footer { background: transparent !important; padding: 0 !important; }
.site-footer .footer-widgets, .site-footer .site-info { display: none; }
.bpc-footer {
	--f-bg: #0a1f44; --f-ink: #e8eefb; --f-muted: #9fb0cf; --f-line: rgba(255, 255, 255, .1);
	position: relative; isolation: isolate; overflow: hidden;
	color: var(--f-ink); background: radial-gradient(120% 120% at 100% 0%, #13306a 0%, #0a1f44 55%, #071733 100%);
	font-size: clamp(14px, .84rem + .12vw, 15.5px); line-height: 1.85;
}
.bp-lang-fa .bpc-footer, .bp-lang-ar .bpc-footer { font-family: "BP Sans", "IRANSans", Tahoma, system-ui, sans-serif; }
.bpc-footer::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 24px 24px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.bpc-footer::after { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, #c8102e, #1d4ed8 45%, #0ea5e9); }
.bpc-footer__in {
	width: min(100% - 2 * clamp(16px, 4vw, 40px), 1320px); margin-inline: auto;
	display: grid; gap: clamp(28px, 1rem + 2vw, 48px);
	grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.4fr);
	padding-block: clamp(44px, 2rem + 3vw, 80px) clamp(28px, 1rem + 2vw, 48px);
}
.bpc-footer h2 { color: #fff; font-size: 1rem; font-weight: 800; margin: 0 0 18px; line-height: 1.4; position: relative; padding-block-end: 12px; }
.bpc-footer h2::after { content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0; width: 32px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #0ea5e9, #1d4ed8); }
.bpc-footer ul { list-style: none; margin: 0; padding: 0; }
.bpc-footer a { color: var(--f-ink); text-decoration: none; transition: color .2s; }
.bpc-footer a:hover, .bpc-footer a:focus-visible { color: #fff; }
.bpc-footer a:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; border-radius: 4px; }

.bpc-f-logo { display: inline-flex; align-items: center; gap: 14px; }
.bpc-f-logo img { width: 64px; height: auto; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.bpc-f-logo b { color: #fff; font-size: 1.08rem; font-weight: 800; line-height: 1.5; }
.bpc-f-brand p { color: var(--f-muted); margin: 16px 0 0; max-width: 34ch; }
.bpc-f-social { display: flex; gap: 10px; margin-block-start: 20px; }
.bpc-f-app { width: 44px; height: 44px; }

.bpc-f-links ul { display: grid; gap: 4px; }
.bpc-f-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--f-muted); }
.bpc-f-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1d4ed8; box-shadow: 0 0 0 3px rgba(29, 78, 216, .25); transition: background .2s; }
.bpc-f-links a:hover { color: #fff; }
.bpc-f-links a:hover::before { background: #38bdf8; }

.bpc-f-contact ul { display: grid; gap: 14px; }
.bpc-f-contact li { display: flex; gap: 12px; align-items: flex-start; }
.bpc-f-contact li > span:last-child { display: grid; min-width: 0; overflow-wrap: anywhere; }
.bpc-f-contact small { color: var(--f-muted); font-size: .78rem; line-height: 1.4; }
.bpc-f-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #7dd3fc; }
.bpc-f-ico .bpc-ico { width: 18px; height: 18px; }
.bpc-f-phones a { white-space: nowrap; }

.bpc-f-map__frame { position: relative; border-radius: 18px; overflow: hidden; background: #0d2552; border: 1px solid var(--f-line); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); aspect-ratio: 16 / 10; }
.bpc-f-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9) contrast(1.02); }

.bpc-footer__bar { border-block-start: 1px solid var(--f-line); }
.bpc-footer__bar p {
	width: min(100% - 2 * clamp(16px, 4vw, 40px), 1320px); margin: 0 auto; padding-block: 18px;
	color: var(--f-muted); font-size: .85rem; text-align: center;
}
.bpc-footer__bar a { color: #fff; font-weight: 700; }

@media (max-width: 1100px) {
	.bpc-footer__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.bpc-footer__in { grid-template-columns: 1fr; }
	.bpc-f-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
	.bpc-f-map__frame { aspect-ratio: 4 / 3; }
}

/* =========================================================================
   Global responsive layer (all pages, all languages)
   ========================================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img, video, iframe, embed, object { max-width: 100%; }
.entry-content iframe[src*="google.com/maps"], .elementor-widget-container iframe[src*="google.com/maps"] { width: 100% !important; border-radius: 16px; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content, .elementor-widget-text-editor, .elementor-heading-title { overflow-wrap: break-word; }
@media (hover: none) and (pointer: coarse) {
	.main-navigation .main-nav ul li a, .menu-toggle { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 768px) {
	.elementor-section.elementor-section-boxed > .elementor-container, .e-con-boxed > .e-con-inner { padding-inline: 16px; }
	.elementor-widget-heading .elementor-heading-title { font-size: clamp(1.15rem, 1rem + 2vw, 1.6rem); line-height: 1.5; }
	.inside-article, .separate-containers .inside-article { padding: 20px 16px; }
}

/* Footer contact icons (after the .bpc-ico base rule so the mask shorthand does not reset them). */
.bpc-ico.bpc-ico-pin { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.bpc-ico.bpc-ico-fax { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E"); }
.bpc-ico.bpc-ico-mail { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }

/* =========================================================================
   Header (coded, identical in FA / EN / AR) — brand · centred menu · tools
   ========================================================================= */
.bpc-hdr, .bpc-layer, .bpc-ai, .bpc-ai-fab { --h-ink: #0f2c5e; --h-blue: #1d4ed8; --h-sky: #0ea5e9; --h-line: rgba(15, 44, 94, .09); --h-soft: #f5f8ff; }
.bpc-hdr, .bpc-layer, .bpc-ai, .bpc-ai-fab { font-family: "BP Sans", "IRANSans", Vazirmatn, Tahoma, system-ui, sans-serif; }
.bp-lang-en .bpc-hdr, .bp-lang-en .bpc-layer, .bp-lang-en .bpc-ai, .bp-lang-en .bpc-footer { font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system, Helvetica, Arial, sans-serif; }
.bpc-hdr *, .bpc-layer *, .bpc-ai * { box-sizing: border-box; }
.bp-dir-rtl .bpc-flip, [dir="rtl"] .bpc-flip { transform: scaleX(-1); }
.bpc-hdr button, .bpc-layer button, .bpc-ai button, .bpc-ai-fab { font-family: inherit; letter-spacing: normal; text-transform: none; }

.bpc-hdr { position: sticky; inset-block-start: 0; z-index: 9990; padding: 12px clamp(10px, 2vw, 24px) 0; pointer-events: none; }
body.admin-bar .bpc-hdr { inset-block-start: 32px; }
@media (max-width: 782px) { body.admin-bar .bpc-hdr { inset-block-start: 0; } }
.bpc-hdr__bar {
	pointer-events: auto; position: relative; max-width: 1360px; margin-inline: auto; height: 76px;
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
	padding-inline: 12px;
	background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
	border: 1px solid var(--h-line); border-radius: 22px;
	box-shadow: 0 10px 30px -14px rgba(10, 31, 68, .22), inset 0 1px 0 rgba(255, 255, 255, .9);
	transition: height .3s ease, box-shadow .3s ease;
}
.bpc-hdr.is-scrolled .bpc-hdr__bar { height: 66px; box-shadow: 0 18px 40px -18px rgba(10, 31, 68, .35), inset 0 1px 0 rgba(255, 255, 255, .9); }

.bpc-brand { justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none !important; color: var(--h-ink); }
.bpc-brand__logo { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 15px; background: #fff; border: 1px solid var(--h-line); box-shadow: 0 8px 18px -10px rgba(10, 31, 68, .4); }
.bpc-brand__logo img { width: 40px; height: auto; margin: 0; display: block; }
.bpc-brand__txt { display: grid; min-width: 0; line-height: 1.45; }
.bpc-brand__txt b { color: #0a1f44; font-size: 15.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpc-brand__txt small { color: #64748b; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bpc-hdr__nav { justify-self: center; height: 100%; }
.bpc-menu { display: flex; align-items: center; gap: 2px; height: 100%; margin: 0; padding: 0; list-style: none; }
.bpc-menu__item { position: relative; display: flex; align-items: center; height: 100%; margin: 0; }
.bpc-menu__link {
	position: relative; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; border-radius: 12px;
	color: #1e3a6b; font-size: 14.5px; font-weight: 600; text-decoration: none !important; white-space: nowrap;
	transition: color .2s ease, background-color .2s ease;
}
.bpc-menu__link:hover, .bpc-menu__item:focus-within > .bpc-menu__link, .bpc-menu__item.is-open > .bpc-menu__link { color: var(--h-blue); background: #eef4ff; }
.bpc-menu__link:focus-visible { outline: 2px solid var(--h-sky); outline-offset: 2px; }
.bpc-menu__item.is-active > .bpc-menu__link { color: var(--h-blue); }
.bpc-menu__item.is-active > .bpc-menu__link::after {
	content: ""; position: absolute; inset-inline: 14px; inset-block-end: -9px; height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, var(--h-sky), var(--h-blue));
}
.bpc-menu__chev { width: 15px; height: 15px; opacity: .65; transition: transform .25s ease; }
.bpc-menu__item:hover .bpc-menu__chev, .bpc-menu__item:focus-within .bpc-menu__chev, .bpc-menu__item.is-open .bpc-menu__chev { transform: rotate(180deg); }

.bpc-dd {
	position: absolute; inset-block-start: calc(100% - 6px); left: 50%; z-index: 5; padding-block-start: 12px;
	opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 8px);
	transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s;
}
.bpc-menu__item:hover > .bpc-dd, .bpc-menu__item:focus-within > .bpc-dd, .bpc-menu__item.is-open > .bpc-dd {
	opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s;
}
.bpc-dd__in { min-width: 260px; padding: 8px; background: #fff; border: 1px solid var(--h-line); border-radius: 20px; box-shadow: 0 30px 70px -24px rgba(10, 31, 68, .38); }
.bpc-dd__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.bpc-dd__list li { margin: 0; }
.bpc-dd__link {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px;
	color: #1e3a6b; font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none !important;
	transition: background-color .15s ease, color .15s ease;
}
.bpc-dd__link:hover, .bpc-dd__link:focus-visible, .bpc-dd__link.is-active { background: #f1f6ff; color: var(--h-blue); outline: none; }
.bpc-dd__link.is-child { padding-inline-start: 26px; font-size: 13px; }
.bpc-menu__item.has-mega { position: static; }
.bpc-dd--mega { inset-block-start: calc(100% - 4px); }
.bpc-dd--mega .bpc-dd__in { width: min(780px, calc(100vw - 40px)); padding: 12px; }
.bpc-dd--mega .bpc-dd__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; max-height: calc(100vh - 220px); overflow-y: auto; overscroll-behavior: contain; }
.bpc-dd--mega .bpc-dd__link { padding: 7px 8px; }
.bpc-dd__img { width: 42px; height: 42px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #f3f6fb; border: 1px solid #edf1f8; transition: transform .2s ease; }
.bpc-dd__img img { width: 100%; height: 100%; object-fit: contain; margin: 0; mix-blend-mode: multiply; }
.bpc-dd__img svg { width: 20px; height: 20px; color: #94a3b8; }
.bpc-dd__link:hover .bpc-dd__img { transform: scale(1.06); }
.bpc-dd__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 10px; padding: 12px 16px; border-radius: 15px;
	color: #fff; background: linear-gradient(120deg, #0a1f44, #1d4ed8 70%, #0ea5e9);
}
.bpc-dd__foot b { font-size: 14px; font-weight: 800; }
.bpc-dd__foot a { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.bpc-dd__foot svg { width: 16px; height: 16px; }

.bpc-hdr__tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.bpc-hdr__cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
	color: #fff !important; background: linear-gradient(135deg, #0f2c5e, #1d4ed8); font-size: 13.5px; font-weight: 700; white-space: nowrap;
	text-decoration: none !important; box-shadow: 0 10px 22px -10px rgba(29, 78, 216, .75); transition: transform .2s ease, box-shadow .2s ease;
}
.bpc-hdr__cta svg { width: 18px; height: 18px; flex: none; }
.bpc-hdr__cta:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(29, 78, 216, .85); }
.bpc-hdr__icon {
	width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
	color: var(--h-ink); background: var(--h-soft); border: 1px solid var(--h-line); transition: background-color .2s ease, color .2s ease;
}
.bpc-hdr__icon:hover, .bpc-hdr__icon:focus-visible { color: var(--h-blue); background: #e9f0ff; outline: none; }
.bpc-hdr__icon svg { width: 19px; height: 19px; }
.bpc-hdr__burger { display: none; }

.bpc-lsw { position: relative; }
.bpc-lsw__btn {
	display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 14px; border-radius: 999px; cursor: pointer; direction: ltr;
	color: var(--h-ink); background: var(--h-soft); border: 1px solid var(--h-line); font-size: 13px; font-weight: 800; line-height: 1;
	transition: background-color .2s ease, color .2s ease;
}
.bpc-lsw__btn:hover, .bpc-lsw.is-open .bpc-lsw__btn { color: var(--h-blue); background: #e9f0ff; }
.bpc-lsw__btn svg { width: 17px; height: 17px; }
.bpc-lsw__btn .bpc-lsw__chev { width: 14px; height: 14px; opacity: .6; transition: transform .2s ease; }
.bpc-lsw.is-open .bpc-lsw__chev { transform: rotate(180deg); }
.bpc-lsw__menu {
	position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0; z-index: 6; min-width: 200px; margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--h-line); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(10, 31, 68, .4);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .2s ease, visibility 0s linear .2s;
}
.bpc-lsw.is-open .bpc-lsw__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bpc-lsw__menu li { margin: 0; }
.bpc-lsw__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; color: #1e3a6b; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.bpc-lsw__menu a:hover, .bpc-lsw__menu a:focus-visible { background: #f1f6ff; outline: none; }
.bpc-lsw__menu a.is-on { color: var(--h-blue); background: #eef4ff; }
.bpc-lsw__code { min-width: 32px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #e8eefb; color: var(--h-ink); font: 800 11px/1 Inter, system-ui, sans-serif; letter-spacing: .04em; }
.bpc-lsw__menu a.is-on .bpc-lsw__code { color: #fff; background: var(--h-blue); }
.bpc-lsw__ok { width: 16px; height: 16px; margin-inline-start: auto; }

@media (max-width: 1280px) {
	.bpc-hdr__tools .bpc-hdr__cta { width: 44px; padding: 0; }
	.bpc-hdr__tools .bpc-hdr__cta span { display: none; }
	.bpc-menu__link { padding: 0 11px; font-size: 14px; }
	.bpc-menu__item.is-active > .bpc-menu__link::after { inset-inline: 11px; }
}
@media (max-width: 1100px) {
	.bpc-hdr__nav, .bpc-hdr__tools .bpc-hdr__cta { display: none; }
	.bpc-hdr__bar { grid-template-columns: minmax(0, 1fr) auto; }
	.bpc-hdr__burger { display: grid; color: #fff; background: linear-gradient(135deg, #0f2c5e, #1d4ed8); border-color: transparent; }
	.bpc-hdr__burger:hover { color: #fff; background: linear-gradient(135deg, #0f2c5e, #2563eb); }
}
@media (max-width: 640px) {
	.bpc-hdr { padding: 8px 8px 0; }
	.bpc-hdr__bar { height: 62px; gap: 8px; padding-inline: 8px; border-radius: 18px; }
	.bpc-hdr.is-scrolled .bpc-hdr__bar { height: 58px; }
	.bpc-brand { gap: 9px; }
	.bpc-brand__logo { width: 42px; height: 42px; border-radius: 12px; }
	.bpc-brand__logo img { width: 33px; }
	.bpc-brand__txt b { font-size: 13.5px; }
	.bpc-brand__txt small { font-size: 10.5px; }
	.bpc-hdr__tools { gap: 6px; }
	.bpc-hdr__icon { width: 40px; height: 40px; }
	.bpc-lsw__btn { height: 40px; padding: 0 10px; }
	.bpc-lsw__btn .bpc-lsw__chev { display: none; }
}
@media (max-width: 420px) {
	.bpc-brand__txt small, .bpc-lsw__btn > svg:first-child { display: none; }
}

/* ---------- Layers: search + drawer ---------- */
html.bpc-locked, html.bpc-locked body { overflow: hidden; }
.bpc-layer { position: fixed; inset: 0; z-index: 1000000; }
.bpc-layer[hidden] { display: none; }
.bpc-layer__backdrop { position: absolute; inset: 0; background: rgba(7, 20, 45, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.bpc-layer.is-open .bpc-layer__backdrop { opacity: 1; }

.bpc-search__panel {
	position: relative; display: flex; flex-direction: column; width: min(680px, calc(100% - 24px)); max-height: calc(100vh - 120px);
	margin: clamp(70px, 12vh, 140px) auto 0; padding: 10px 10px 14px; border-radius: 24px; background: #fff;
	box-shadow: 0 40px 100px -30px rgba(7, 20, 45, .6); opacity: 0; transform: translateY(-14px) scale(.98); transition: opacity .25s ease, transform .25s ease;
}
.bpc-layer.is-open .bpc-search__panel { opacity: 1; transform: none; }
.bpc-search__form { display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 8px 6px 14px; border-radius: 18px; background: #f4f7fd; border: 1px solid #e3eaf6; }
.bpc-search__form:focus-within { border-color: #9fbaf2; box-shadow: 0 0 0 4px rgba(59, 130, 246, .12); }
.bpc-search__ico { width: 22px; height: 22px; flex: none; color: var(--h-blue); }
.bpc-search__form input[type="search"] {
	flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 !important; border: 0 !important; outline: none;
	background: transparent !important; box-shadow: none !important; color: #0a1f44; font-family: inherit; font-size: 17px;
}
.bpc-search__form input::-webkit-search-cancel-button { display: none; }
.bpc-search__kbd { padding: 4px 6px; border: 1px solid #d6dfee; border-block-end-width: 2px; border-radius: 6px; background: #fff; color: #64748b; font: 600 11px/1 Inter, system-ui, sans-serif; }
.bpc-search__x { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #475569; cursor: pointer; }
.bpc-search__x:hover { background: #e9eef8; color: #0a1f44; }
.bpc-search__x svg { width: 18px; height: 18px; }
.bpc-search__label { margin: 14px 12px 6px; color: #64748b; font-size: 12px; font-weight: 700; }
.bpc-search__list { display: grid; gap: 2px; margin: 8px 0 0; padding: 0 4px; overflow-y: auto; list-style: none; }
.bpc-search__label:not([hidden]) + .bpc-search__list { margin-block-start: 0; }
.bpc-search__list li { margin: 0; }
.bpc-search__item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; color: #0a1f44; text-decoration: none !important; animation: bpc-in .35s both; animation-delay: calc(var(--i, 0) * 30ms); }
.bpc-search__item:hover, .bpc-search__item:focus-visible { background: #f1f6ff; outline: none; }
.bpc-search__img { width: 52px; height: 52px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #f3f6fb; border: 1px solid #edf1f8; }
.bpc-search__img img { width: 100%; height: 100%; object-fit: contain; margin: 0; mix-blend-mode: multiply; }
.bpc-search__txt { display: grid; min-width: 0; line-height: 1.5; }
.bpc-search__txt b { font-size: 15px; font-weight: 700; }
.bpc-search__txt small { color: #64748b; font-size: 12.5px; }
.bpc-search__none { margin: 22px; color: #64748b; text-align: center; }
@keyframes bpc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.bpc-drw { --off: -100%; }
.bp-dir-rtl .bpc-drw, [dir="rtl"] .bpc-drw { --off: 100%; }
.bpc-drw__panel {
	position: absolute; inset-block: 0; inset-inline-start: 0; display: flex; flex-direction: column; width: min(380px, 88vw);
	background: #fff; border-start-end-radius: 26px; border-end-end-radius: 26px; box-shadow: 0 0 60px rgba(7, 20, 45, .35);
	transform: translateX(var(--off)); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.bpc-layer.is-open .bpc-drw__panel { transform: none; }
.bpc-drw__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 12px; border-block-end: 1px solid #eef2f8; }
.bpc-brand--sm .bpc-brand__txt small { display: none; }
.bpc-drw__nav { flex: 1; overflow-y: auto; padding: 10px 12px; overscroll-behavior: contain; }
.bpc-drw__nav ul { margin: 0; padding: 0; list-style: none; }
.bpc-drw__nav li { margin: 0; }
.bpc-drw__link {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 14px; cursor: pointer; list-style: none;
	color: #0a1f44; font-size: 15.5px; font-weight: 700; text-decoration: none !important;
}
summary.bpc-drw__link::-webkit-details-marker { display: none; }
.bpc-drw__link svg { width: 18px; height: 18px; opacity: .6; transition: transform .25s ease; }
details[open] > .bpc-drw__link svg { transform: rotate(180deg); }
.bpc-drw__link:hover, .bpc-drw__link.is-active { color: var(--h-blue); background: #f1f6ff; }
.bpc-drw__nav details ul { display: grid; gap: 2px; margin-inline-start: 14px; padding: 4px 10px 10px; border-inline-start: 2px solid #e3eaf6; }
.bpc-drw__nav details a { display: block; padding: 9px 12px; border-radius: 10px; color: #334155; font-size: 14px; line-height: 1.5; text-decoration: none !important; }
.bpc-drw__nav details a:hover { color: var(--h-blue); background: #f6f9ff; }
.bpc-drw__nav details a.is-child { padding-inline-start: 24px; font-size: 13px; }
.bpc-drw__nav .bpc-drw__all { display: flex; align-items: center; gap: 6px; color: var(--h-blue); font-weight: 700; }
.bpc-drw__all svg { width: 16px; height: 16px; }
.bpc-drw__foot { display: grid; gap: 12px; padding: 14px; border-block-start: 1px solid #eef2f8; }
.bpc-drw__foot .bpc-hdr__cta { width: 100%; }
.bpc-drw__langs { display: flex; gap: 8px; }
.bpc-drw__langs a { flex: 1; padding: 10px 6px; border-radius: 12px; background: #f3f6fb; color: var(--h-ink); font-size: 12.5px; font-weight: 700; text-align: center; text-decoration: none !important; }
.bpc-drw__langs a.active { color: #fff; background: var(--h-blue); }

/* ---------- AI assistant (UI) ---------- */
.bpc-ai-fab {
	position: fixed; left: 18px; bottom: 18px; z-index: 999986; width: 62px; height: 62px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	color: #fff; background: radial-gradient(circle at 30% 25%, #3b82f6, #1d4ed8 55%, #0f2c5e);
	box-shadow: 0 16px 34px -10px rgba(29, 78, 216, .75), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .25s ease;
}
.bpc-ai-fab:hover, .bpc-ai-fab:focus-visible { transform: translateY(-2px) scale(1.04); color: #fff; background: radial-gradient(circle at 30% 25%, #3b82f6, #1d4ed8 55%, #0f2c5e); outline: none; }
.bpc-ai-fab > svg { width: 28px; height: 28px; position: relative; }
.bpc-ai-fab__dot { position: absolute; right: 3px; bottom: 5px; width: 15px; height: 15px; border-radius: 50%; background: #22c55e; border: 3px solid #fff; }
.bpc-ai-fab__ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(59, 130, 246, .45); animation: bpc-ring 2.6s ease-out infinite; pointer-events: none; }
.bpc-ai-fab.is-active .bpc-ai-fab__ring { animation: none; opacity: 0; }
@keyframes bpc-ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.bpc-ai-fab__tip {
	position: absolute; left: calc(100% + 12px); top: 50%; padding: 7px 12px; border-radius: 10px; white-space: nowrap; pointer-events: none;
	color: #fff; background: #0a1f44; font-size: 12.5px; font-weight: 700; opacity: 0; transform: translate(-6px, -50%); transition: opacity .2s ease, transform .2s ease;
}
.bpc-ai-fab:hover .bpc-ai-fab__tip { opacity: 1; transform: translate(0, -50%); }
.bpc-ai-fab.is-active .bpc-ai-fab__tip { display: none; }

.bpc-ai {
	position: fixed; left: 18px; bottom: 94px; z-index: 999987; display: flex; flex-direction: column;
	width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 120px)); overflow: hidden;
	background: #f7f9fe; border-radius: 28px; box-shadow: 0 40px 90px -24px rgba(7, 20, 45, .55), 0 0 0 1px rgba(15, 44, 94, .06);
	opacity: 0; transform: translateY(16px) scale(.96); transform-origin: bottom left; transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.bpc-ai[hidden] { display: none; }
.bpc-ai.is-open { opacity: 1; transform: none; }
.bpc-ai__head { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px 36px; color: #fff; background: linear-gradient(135deg, #0f2c5e 0%, #1d4ed8 62%, #2563eb 100%); overflow: hidden; }
.bpc-ai__head::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; inset-block-start: -120px; inset-inline-end: -60px; background: radial-gradient(circle, rgba(56, 189, 248, .35), transparent 70%); pointer-events: none; }
.bpc-ai__mascot { position: relative; width: 66px; height: 66px; flex: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .28)); animation: bpc-bob 4s ease-in-out infinite; }
@keyframes bpc-bob { 50% { transform: translateY(-4px); } }
.bpc-bot { width: 100%; height: 100%; display: block; }
.bpc-ai__ttl { position: relative; flex: 1; min-width: 0; }
.bpc-ai__status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .15); font-size: 11.5px; font-weight: 700; }
.bpc-ai__status i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.bpc-ai__ttl h2 { margin: 8px 0 2px; padding: 0; color: #fff; font-family: inherit; font-size: 17px; font-weight: 800; line-height: 1.45; }
.bpc-ai__ttl p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 12.5px; line-height: 1.55; }
.bpc-ai__ctrl { position: relative; display: flex; gap: 4px; }
.bpc-ai__ctrl button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; color: #fff; background: rgba(255, 255, 255, .12); cursor: pointer; }
.bpc-ai__ctrl button:hover, .bpc-ai__ctrl button:focus-visible { color: #fff; background: rgba(255, 255, 255, .26); outline: none; }
.bpc-ai__ctrl svg { width: 18px; height: 18px; }
.bpc-ai__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 26px; fill: #f7f9fe; }
.bpc-ai__log { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 8px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.bpc-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; animation: bpc-in .3s both; }
.bpc-msg--user { align-self: flex-end; flex-direction: row-reverse; }
.bpc-msg__av { width: 36px; height: 36px; flex: none; padding: 3px; border-radius: 50%; background: #e7efff; box-shadow: 0 6px 12px -6px rgba(29, 78, 216, .5); }
.bpc-msg__col { display: grid; gap: 4px; min-width: 0; }
.bpc-msg__bubble {
	padding: 11px 15px; border-radius: 20px; color: #0a1f44; background: #fff; border: 1px solid #edf1f9;
	box-shadow: 0 8px 20px -12px rgba(15, 44, 94, .32); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere;
}
.bpc-msg--bot .bpc-msg__bubble { border-end-start-radius: 6px; }
.bpc-msg--user .bpc-msg__bubble { background: linear-gradient(135deg, #dbeafe, #c9dcff); border-color: transparent; border-end-end-radius: 6px; }
.bpc-msg time { padding-inline: 6px; color: #94a3b8; font-size: 11px; }
.bpc-msg--user time { text-align: end; }
.bpc-typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.bpc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #93a7cc; animation: bpc-dot 1s infinite; }
.bpc-typing i:nth-child(2) { animation-delay: .15s; }
.bpc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bpc-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
.bpc-ai__chips { display: flex; gap: 8px; padding: 6px 14px 10px; overflow-x: auto; scrollbar-width: none; }
.bpc-ai__chips::-webkit-scrollbar { display: none; }
.bpc-ai__chip {
	display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 9px 14px; border-radius: 999px;
	color: var(--h-blue) !important; background: #fff; border: 1px solid #dbe5f5; font-size: 13px; font-weight: 700; text-decoration: none !important; transition: .2s ease;
}
.bpc-ai__chip svg { width: 16px; height: 16px; }
.bpc-ai__chip:hover { color: #fff !important; background: var(--h-blue); border-color: var(--h-blue); }
.bpc-ai__form { display: flex; align-items: center; gap: 6px; margin: 0 12px; padding: 6px; border-radius: 20px; background: #fff; border: 1px solid #dfe7f4; box-shadow: 0 12px 26px -18px rgba(15, 44, 94, .45); }
.bpc-ai__form:focus-within { border-color: #9fbaf2; box-shadow: 0 0 0 4px rgba(59, 130, 246, .12); }
.bpc-ai__form input[type="text"] { flex: 1; min-width: 0; height: 42px; margin: 0; padding: 0 6px !important; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important; color: #0a1f44; font-family: inherit; font-size: 14px; }
.bpc-ai__attach { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; color: #64748b; background: transparent; cursor: not-allowed; opacity: .7; }
.bpc-ai__attach:hover { color: #64748b; background: transparent; }
.bpc-ai__send { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #1d4ed8, #2563eb); box-shadow: 0 8px 18px -8px rgba(29, 78, 216, .85); cursor: pointer; transition: transform .2s ease; }
.bpc-ai__send:hover, .bpc-ai__send:focus-visible { color: #fff; background: linear-gradient(135deg, #1d4ed8, #3b82f6); transform: scale(1.05); }
.bpc-ai__send svg, .bpc-ai__attach svg { width: 19px; height: 19px; }
.bp-dir-rtl .bpc-ai__send svg { transform: scaleX(-1); }
.bpc-ai__foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 12px; color: #64748b; font-size: 11.5px; }
.bpc-ai__foot svg { width: 15px; height: 15px; color: var(--h-blue); }
@media (max-width: 960px) {
	.bpc-ai-fab { left: 12px; bottom: 92px; width: 54px; height: 54px; }
	.bpc-ai-fab > svg { width: 24px; height: 24px; }
	.bpc-ai-fab__tip { display: none; }
	.bpc-ai { bottom: 158px; left: 12px; height: min(600px, calc(100vh - 190px)); }
}
@media (max-width: 640px) {
	.bpc-ai { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; z-index: 1000001; transform-origin: bottom center; }
	.bpc-ai-on .bpc-ai-fab { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.bpc-ai-fab__ring, .bpc-ai__mascot, .bpc-search__item, .bpc-msg { animation: none; }
	.bpc-dd, .bpc-lsw__menu, .bpc-drw__panel, .bpc-search__panel, .bpc-ai { transition: none; }
}
