/* ===== AI Sana — басты бет (template-parts/aisana/page.php) және бот беттері (template-parts/aisana/bot.php); inc/aisana.php =====
   Сайт палитрасы: қою көк #0A1628, негізгі көк #0052A5, алтын #F5C46B. h1/h2/h3 өлшемдері !important — style.css тақырыптарға !important береді. */

.aisn-hero, .aisn-stats, .aisn-sec { font-family: Merriweather, Georgia, serif; }
.aisn-hero *, .aisn-sec * { box-sizing: border-box; }

/* ---------- Баннер ---------- */
.aisn-hero {
    position: relative; overflow: hidden; padding: 84px 0 110px; color: #fff;
    background:
        radial-gradient(700px 360px at 82% 30%, rgba(59,130,196,.35), transparent 70%),
        radial-gradient(520px 300px at 10% 110%, rgba(245,196,107,.12), transparent 70%),
        linear-gradient(135deg, #0A1628 0%, #0b2f63 55%, #0052A5 100%);
}
/* Басты бет: бас ғимарат суреті градиент астында (басты беттің «Бас ғимарат» фонындай) — сол жақ (мәтін) қою, оң жаққа қарай айқындалады */
.aisn-hero--photo {
    --aisn-photo: url(../images/hero-bg/main-building.webp);
    background:
        linear-gradient(90deg, rgba(10,22,40,.95) 0%, rgba(11,47,99,.85) 40%, rgba(0,82,165,.55) 100%),
        linear-gradient(0deg, rgba(10,22,40,.6), transparent 40%),
        #0b2f63 var(--aisn-photo) center 40% / cover no-repeat;
}
@media (max-width: 575px) { .aisn-hero--photo { --aisn-photo: url(../images/hero-bg/main-building-sm.webp); } }
/* Нүктелі тор — «нейрон желісі» сезімі, анимациясыз */
.aisn-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}
.aisn-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.aisn-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 50px; background: rgba(255,255,255,.06); font: 700 11.5px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .08em; color: #cfe0f5; }
.aisn-badge i { width: 7px; height: 7px; border-radius: 50%; background: #F5C46B; box-shadow: 0 0 0 4px rgba(245,196,107,.18); }
.aisn-hero__title { margin: 18px 0 14px !important; font-size: 64px !important; font-weight: 800 !important; line-height: 1.02 !important; letter-spacing: -.02em; color: #fff !important; }
.aisn-hero__desc { max-width: 520px; margin: 0 0 30px; font-size: 18px; line-height: 1.6; color: #d6e3f5; }
.aisn-hero__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.aisn-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 12px; font: 700 15px Merriweather, Georgia, serif; text-decoration: none !important; transition: transform .15s, background .15s, color .15s; }
.aisn-btn--gold { background: linear-gradient(135deg, #f5c46b 0%, #e0a526 100%); color: #0A1628 !important; }
.aisn-btn--gold:hover { background: linear-gradient(135deg, #f8d48c 0%, #e8b440 100%); transform: translateY(-1px); }
.aisn-btn--ghost { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff !important; }
.aisn-btn--ghost:hover { background: rgba(255,255,255,.14); }

/* Агенттер панелі (нақты тізім) */
.aisn-panel { padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); box-shadow: 0 30px 60px rgba(4,12,28,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.aisn-panel__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.aisn-panel__head b { font-size: 16px; }
.aisn-panel__head small { margin-left: auto; font: 600 12.5px system-ui, sans-serif; color: #9fbde3; }
.aisn-panel__pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #34d399; }
.aisn-panel__pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(52,211,153,.5); animation: aisn-pulse 2s ease-out infinite; }
@keyframes aisn-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.aisn-panel__list { margin: 0; padding: 0; list-style: none; }
.aisn-panel__list li { margin: 0; }
.aisn-panel__list a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: #fff !important; text-decoration: none !important; transition: background .15s; }
.aisn-panel__list a:hover { background: rgba(255,255,255,.08); }
.aisn-panel__more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 10px; border: 1px dashed rgba(255,255,255,.25); border-radius: 12px; color: #F5C46B !important; font: 700 13.5px Merriweather, Georgia, serif; text-decoration: none !important; transition: background .15s; }
.aisn-panel__more:hover { background: rgba(245,196,107,.1); }
.aisn-panel__more svg { width: 16px; height: 16px; }
.aisn-panel__list li + li { border-top: 1px solid rgba(255,255,255,.07); }
.aisn-panel__ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); color: #F5C46B; }
.aisn-panel__ico svg { width: 19px; height: 19px; }
.aisn-panel__name { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; }
.aisn-panel__list li.is-dev { opacity: .7; }

.aisn-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 50px; background: rgba(52,211,153,.15); color: #6ee7b7; font: 700 11.5px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; }
.aisn-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.aisn-chip--dev { background: rgba(245,196,107,.16); color: #F5C46B; }
.aisn-chip--light { background: #E8F7F0; color: #0f7a54; }
.aisn-agent .aisn-chip--dev { background: #FFF4DC; color: #8a5a00; }

/* ---------- Көрсеткіштер (баннерге шығып тұрады) ---------- */
.aisn-stats { position: relative; z-index: 2; margin-top: -54px; }
.aisn-stats__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 20px; background: #fff; box-shadow: 0 18px 40px rgba(10,22,40,.12); overflow: hidden; }
.aisn-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 24px 28px; }
.aisn-stat + .aisn-stat { border-left: 1px solid #e9eff7; }
.aisn-stat__ico { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 16px; background: #EEF5FF; color: #0052A5; }
.aisn-stat__ico svg { width: 26px; height: 26px; }
.aisn-stat b { font-size: 30px; line-height: 1.1; color: #0A1628; }
.aisn-stat > span:last-child { font: 600 13.5px system-ui, -apple-system, "Segoe UI", sans-serif; color: #64748b; }

/* ---------- Бөлімдер ---------- */
.aisn-sec { padding: 76px 0; background: #fff; }
.aisn-sec--soft { background: #F5F8FC; }
.aisn-head { margin-bottom: 34px; text-align: center; }
.aisn-head__lbl { display: inline-block; padding: 5px 14px; border-radius: 50px; background: #E6EFFA; color: #0052A5; font: 700 11.5px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .12em; }
.aisn-head__ttl { margin: 12px 0 0 !important; font-size: 32px !important; font-weight: 700 !important; line-height: 1.25 !important; color: #0A1628 !important; }

/* Агенттер */
.aisn-agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.aisn-agent { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid #e3ebf6; border-radius: 20px; background: #fff; color: inherit !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.aisn-agent::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #0052A5, #3b82c4); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.aisn-agent:hover { transform: translateY(-4px); border-color: #c7d9ef; box-shadow: 0 18px 38px rgba(0,82,165,.12); }
.aisn-agent:hover::after { transform: scaleX(1); }
.aisn-agent__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.aisn-agent__ico { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(140deg, #0b2f63, #0052A5); color: #F5C46B; box-shadow: 0 8px 18px rgba(0,82,165,.25); }
.aisn-agent__ico svg { width: 26px; height: 26px; }
.aisn-agent__name { margin: 0 0 8px !important; font-size: 19px !important; font-weight: 700 !important; line-height: 1.3 !important; color: #0A1628 !important; }
.aisn-agent__desc { flex: 1; margin: 0 0 20px; font-size: 14.5px; line-height: 1.6; color: #475569; }
.aisn-agent__cta { display: inline-flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid #eef2f7; font: 700 14px Merriweather, Georgia, serif; color: #0052A5; }
.aisn-agent__cta svg:first-child { width: 18px; height: 18px; color: #229ED9; }
.aisn-agent__cta svg:last-child { width: 16px; height: 16px; margin-left: auto; transition: transform .2s; }
.aisn-agent:hover .aisn-agent__cta svg:last-child { transform: translateX(4px); }
.aisn-agent.is-dev .aisn-agent__ico { background: #EEF2F8; color: #64748b; box-shadow: none; }

/* Қадамдар */
.aisn-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.aisn-steps::before { content: ""; position: absolute; top: 27px; left: calc(100% / 6); right: calc(100% / 6); height: 2px; background: repeating-linear-gradient(90deg, #b9cde6 0 8px, transparent 8px 14px); }
.aisn-step { position: relative; margin: 0; text-align: center; }
.aisn-step__n { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; background: #0052A5; color: #fff; font: 800 20px system-ui, sans-serif; box-shadow: 0 0 0 8px #F5F8FC; }
.aisn-step:last-child .aisn-step__n { background: linear-gradient(135deg, #f5c46b 0%, #e0a526 100%); color: #0A1628; }
.aisn-step h3 { margin: 0 0 8px !important; font-size: 18px !important; font-weight: 700 !important; color: #0A1628 !important; }
.aisn-step p { max-width: 300px; margin: 0 auto; font-size: 14.5px; line-height: 1.6; color: #475569; }

/* Бағдарлама туралы */
.aisn-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.aisn-about__text { font-size: 16px; line-height: 1.75; color: #1e293b; }
.aisn-about__text p { margin: 0 0 14px; }
.aisn-about__text ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.aisn-about__text ul li { position: relative; margin: 0 0 8px; padding-left: 28px; }
.aisn-about__text ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: #F5C46B; transform: rotate(45deg); }
.aisn-about__text strong { color: #0A1628; }
.aisn-about__text img { max-width: 100%; height: auto; border-radius: 14px; }
.aisn-about__text figure { margin: 0 0 14px; }
.aisn-about__art { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; max-width: 360px; width: 100%; justify-self: center; border-radius: 28px; background: radial-gradient(circle at 50% 45%, rgba(59,130,196,.45), transparent 65%), linear-gradient(140deg, #0A1628, #0b2f63 55%, #0052A5); box-shadow: 0 24px 50px rgba(10,22,40,.25); }
.aisn-about__art svg { width: 86%; height: auto; }
.aisn-about__art span { position: absolute; right: 22px; bottom: 16px; font: 800 44px/1 system-ui, sans-serif; color: rgba(255,255,255,.12); letter-spacing: -.03em; }

/* Байланыс */
.aisn-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.aisn-contact { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid #e3ebf6; border-radius: 18px; background: #fff; color: inherit !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.aisn-contact:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,82,165,.1); }
.aisn-contact__ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; height: 48px; border-radius: 14px; background: #EEF5FF; color: #0052A5; }
.aisn-contact__ico svg { width: 22px; height: 22px; }
.aisn-contact__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aisn-contact__txt small { font: 600 12.5px system-ui, -apple-system, "Segoe UI", sans-serif; color: #64748b; }
.aisn-contact__txt b { font-size: 15px; color: #0A1628; overflow-wrap: anywhere; }
.aisn-contact__go { color: #94a3b8; }
.aisn-contact__go svg { width: 18px; height: 18px; }
.aisn-contact:hover .aisn-contact__go { color: #0052A5; }

/* ---------- Бот беті ---------- */
.aisn-btn svg { width: 18px; height: 18px; flex-shrink: 0; margin-right: 8px; }
.aisn-btn--blue { background: #0052A5; color: #fff !important; }
.aisn-btn--blue svg { margin: 0 0 0 8px; }
.aisn-btn--blue:hover { background: #003b78; }
.aisn-hero--bot .aisn-hero__title { font-size: 52px !important; }
.aisn-tgcard { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 360px; padding: 32px 28px 26px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.04)); box-shadow: 0 30px 60px rgba(4,12,28,.35); color: #fff !important; text-align: center; text-decoration: none !important; transition: transform .2s; }
.aisn-tgcard:hover { transform: translateY(-4px); }
.aisn-tgcard__ico { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin-bottom: 8px; border-radius: 26px; background: linear-gradient(140deg, #F5C46B, #e0a526); color: #0A1628; box-shadow: 0 14px 30px rgba(245,196,107,.3); }
.aisn-tgcard__ico svg { width: 40px; height: 40px; }
.aisn-tgcard__name { font-size: 22px; font-weight: 800; }
.aisn-tgcard__handle { font: 600 14px system-ui, -apple-system, "Segoe UI", sans-serif; color: #9fbde3; }
.aisn-tgcard .aisn-chip { margin: 4px 0 14px; }
.aisn-tgcard__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; border-radius: 12px; background: #229ED9; font: 700 14.5px Merriweather, Georgia, serif; }
.aisn-tgcard__btn svg { width: 18px; height: 18px; }
.aisn-tgcard:hover .aisn-tgcard__btn { background: #1b8bc2; }

.aisn-stats__row--benefits { align-items: stretch; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.aisn-tgcard__btn--web { background: #0052A5; }
.aisn-tgcard:hover .aisn-tgcard__btn--web { background: #003b78; }
.aisn-access__tgico--web { background: #0052A5; }
.aisn-access__tgico--web svg { width: 20px; height: 20px; }
.aisn-benefit { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 26px; }
.aisn-benefit + .aisn-benefit { border-left: 1px solid #e9eff7; }
.aisn-benefit .aisn-stat__ico { grid-row: auto; }
.aisn-benefit b { font-size: 28px; line-height: 1; color: #0052A5; }
.aisn-benefit > span:last-child { font-size: 14.5px; line-height: 1.55; color: #1e293b; }

.aisn-access { padding: 28px; border-radius: 24px; background: linear-gradient(150deg, #0A1628, #0b2f63 55%, #0052A5); color: #fff; box-shadow: 0 24px 50px rgba(10,22,40,.22); }
.aisn-access__lbl { display: inline-block; padding: 4px 12px; border-radius: 50px; background: rgba(245,196,107,.16); color: #F5C46B; font: 700 11.5px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .06em; }
.aisn-access__note { margin: 14px 0 20px; font-size: 17px; line-height: 1.5; color: #fff; }
.aisn-access__tg { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #fff; color: #0A1628 !important; text-decoration: none !important; transition: transform .2s; }
.aisn-access__tg:hover { transform: translateY(-2px); }
.aisn-access__tgico { display: inline-flex; flex: 0 0 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: #229ED9; color: #fff; }
.aisn-access__tgico svg { width: 24px; height: 24px; }
.aisn-access__tg > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aisn-access__tg small { font: 600 12px system-ui, sans-serif; color: #64748b; }
.aisn-access__tg b { font-size: 15px; overflow-wrap: anywhere; }
.aisn-access__tg > svg { width: 18px; height: 18px; color: #0052A5; }

.aisn-others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.aisn-other { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #e3ebf6; border-radius: 16px; background: #fff; color: inherit !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.aisn-other:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,82,165,.1); }
.aisn-other__ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 44px; border-radius: 12px; background: linear-gradient(140deg, #0b2f63, #0052A5); color: #F5C46B; }
.aisn-other__ico svg { width: 22px; height: 22px; }
.aisn-other.is-dev .aisn-other__ico { background: #EEF2F8; color: #64748b; }
.aisn-other__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aisn-other__txt b { font-size: 15.5px; color: #0A1628; }
.aisn-other__txt small { font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: #64748b; }
.aisn-other__go { color: #94a3b8; }
.aisn-other__go svg { width: 18px; height: 18px; }
.aisn-other:hover .aisn-other__go { color: #0052A5; }
.aisn-other .aisn-chip--dev { background: #FFF4DC; color: #8a5a00; }
.aisn-others__all { margin-top: 26px; text-align: center; }

/* ---------- Веб-чат (template-parts/aisana/bot.php → .aisn-chat; assets/js/aisana-chat.js) ---------- */
.aisn-sec--chat { background: #F5F8FC; scroll-margin-top: 90px; }
.aisn-chat { max-width: 820px; margin: 0 auto; border: 1px solid #e3ebf6; border-radius: 22px; background: #fff; box-shadow: 0 18px 44px rgba(10,22,40,.08); overflow: hidden; }
.aisn-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(135deg, #0A1628, #0b2f63 60%, #0052A5); color: #fff; }
.aisn-chat__ava { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #f5c46b 0%, #e0a526 100%); color: #0A1628; }
.aisn-chat__ava svg { width: 22px; height: 22px; }
.aisn-chat__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aisn-chat__who b { font-size: 15.5px; }
.aisn-chat__who small { display: inline-flex; align-items: center; gap: 6px; font: 600 12px system-ui, -apple-system, "Segoe UI", sans-serif; color: #9fbde3; }
.aisn-chat__who small i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.aisn-chat__reset { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.aisn-chat__reset:hover { background: rgba(255,255,255,.18); }
.aisn-chat__reset svg { width: 17px; height: 17px; }
.aisn-chat__log { display: flex; flex-direction: column; gap: 10px; height: 380px; padding: 18px; overflow-y: auto; background: #FAFCFF; scroll-behavior: smooth; }
.aisn-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.aisn-msg p { margin: 0 0 6px; }
.aisn-msg p:last-child { margin-bottom: 0; }
.aisn-msg ul { margin: 4px 0 6px; padding-left: 20px; list-style: disc; }
.aisn-msg li { margin: 0 0 3px; list-style: disc; }
.aisn-msg a { color: #0052A5; text-decoration: underline; text-underline-offset: 2px; }
.aisn-msg--bot { align-self: flex-start; border: 1px solid #e3ebf6; border-bottom-left-radius: 6px; background: #fff; color: #1e293b; }
.aisn-msg--user { align-self: flex-end; border-bottom-right-radius: 6px; background: #0052A5; color: #fff; white-space: pre-wrap; }
.aisn-msg.is-error { border-color: #fecaca; background: #FEF2F2; color: #991b1b; }
.aisn-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.aisn-dots i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: aisn-dot 1.2s infinite ease-in-out; }
.aisn-dots i:nth-child(2) { animation-delay: .15s; }
.aisn-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aisn-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.aisn-chat__sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; background: #FAFCFF; }
.aisn-chat__sugg button { padding: 7px 12px; border: 1px solid #c7d9ef; border-radius: 50px; background: #fff; color: #0052A5; font: 600 13px Merriweather, Georgia, serif; cursor: pointer; text-align: left; }
.aisn-chat__sugg button:hover { background: #EEF5FF; }
.aisn-chat__form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid #e9eff7; background: #fff; }
.aisn-chat__form textarea { flex: 1; min-height: 44px; max-height: 140px; margin: 0; padding: 11px 14px; border: 1px solid #cfdcec; border-radius: 14px; resize: none; font: 14.5px/1.45 Merriweather, Georgia, serif; color: #0A1628; background: #fff; }
.aisn-chat__form textarea:focus { outline: none; border-color: #0052A5; box-shadow: 0 0 0 3px rgba(0,82,165,.14); }
.aisn-chat__form button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: #0052A5; color: #fff; cursor: pointer; }
.aisn-chat__form button:hover { background: #003b78; }
.aisn-chat__form button:disabled { background: #94a3b8; cursor: wait; }
.aisn-chat__form button svg { width: 19px; height: 19px; }
.aisn-chat__note { margin: 0; padding: 0 18px 12px; background: #fff; font: 12px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: #64748b; }
@media (max-width: 600px) {
    .aisn-chat { border-radius: 16px; }
    .aisn-chat__log { height: 340px; padding: 14px; }
    .aisn-msg { max-width: 90%; }
}
@media (prefers-reduced-motion: reduce) { .aisn-dots i { animation: none; } }

/* ---------- Бейімделу ---------- */
@media (max-width: 1199px) {
    .aisn-hero__title { font-size: 54px !important; }
    .aisn-agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .aisn-hero { padding: 56px 0 96px; }
    .aisn-hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .aisn-hero__desc { font-size: 16px; }
    .aisn-stats__row { grid-template-columns: 1fr; }
    .aisn-stat + .aisn-stat { border-left: 0; border-top: 1px solid #e9eff7; }
    .aisn-stat { padding: 16px 20px; }
    .aisn-steps { grid-template-columns: 1fr; gap: 28px; }
    .aisn-steps::before { display: none; }
    .aisn-about { grid-template-columns: 1fr; }
    .aisn-about__art { max-width: 260px; }
    .aisn-contacts { grid-template-columns: 1fr; }
    .aisn-hero--bot .aisn-hero__title { font-size: 40px !important; }
    .aisn-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aisn-tgcard { max-width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; padding: 18px; gap: 4px 14px; }
    .aisn-tgcard__ico { width: 56px; height: 56px; margin: 0; border-radius: 18px; }
    .aisn-tgcard__ico svg { width: 28px; height: 28px; }
    .aisn-tgcard__name { font-size: 18px; }
    .aisn-tgcard .aisn-chip { margin: 0; }
    .aisn-tgcard__btn { margin-top: 10px; }
    .aisn-benefit + .aisn-benefit { border-left: 0; border-top: 1px solid #e9eff7; }
    .aisn-benefit { flex-direction: row; align-items: center; gap: 14px; padding: 16px 20px; }
}
@media (max-width: 600px) {
    .aisn-hero { padding: 40px 0 88px; }
    .aisn-hero__title { font-size: 42px !important; }
    .aisn-btn { flex: 1 1 auto; height: 44px; padding: 0 16px; font-size: 14px; }
    /* Телефонда панель төмендегі агенттер тізімін қайталайды — жасырылады */
    .aisn-panel { display: none; }
    .aisn-sec { padding: 52px 0; }
    .aisn-head__ttl { font-size: 24px !important; }
    .aisn-agents { grid-template-columns: 1fr; gap: 14px; }
    .aisn-agent { padding: 20px; }
    .aisn-stat b { font-size: 24px; }
    .aisn-hero--bot .aisn-hero__title { font-size: 32px !important; }
    .aisn-tgcard { display: none; }
    .aisn-access { padding: 20px; }
    .aisn-others { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .aisn-panel__pulse::after { animation: none; }
    .aisn-agent, .aisn-contact, .aisn-btn { transition: none; }
}

/* Нашар көретіндерге арналған нұсқа */
html body .bvi-body[data-bvi-theme]:not(.bvi-no-styles) :is(.aisn-hero, .aisn-panel, .aisn-about__art, .aisn-agent__ico, .aisn-step__n) { background: var(--bvi-site-bg) !important; border: 2px solid var(--bvi-site-color) !important; box-shadow: none !important; }
html body .bvi-body[data-bvi-theme]:not(.bvi-no-styles) .aisn-hero::before { display: none !important; }
