/* ===== Бөлім қызметкерлері (single-int-sotrudn.php) — шрифт сайттан (Merriweather), бөлек font-family жоқ =====
   Карточкалар бір қатарда (4-ке дейін; көп болса келесі қатарға түседі), толық ақпарат — <dialog> терезеде (assets/js/int-staff.js).
   Баннер — сайттың ортақ баннері (.str-hero → page-hero.css), биіктігі аз. */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Баннер */
.str-hero.ist-hero { min-height: 220px !important; }
.ist-hero .str-hero__content { padding-top: 56px !important; padding-bottom: 36px !important; }
.ist-hero .str-hero__label { font-family: inherit !important; } /* page-hero.css-тегі system-ui орнына сайт шрифті */
.ist-hero__meta { display: inline-flex; margin: 4px 0 0; padding: 6px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 50px; background: rgba(255,255,255,.08); color: #fff; font-weight: 600; font-size: 13px; line-height: 1.2; }

/* Карточкалар */
.ist { padding: 44px 0 64px; background: #F8FBFF; color: #0A1628; }
.ist-list { --n: 4; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 18px; max-width: calc(var(--n) * 290px); margin: 0 auto; }
.ist-card { display: flex; }
.ist-card__btn { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 26px 18px 20px; border: 1px solid #e3ebf6; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px rgba(10,22,40,.05); color: inherit; font: inherit; text-align: center; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ist-card__btn:hover { transform: translateY(-3px); border-color: #c9d9ee; box-shadow: 0 16px 34px rgba(10,22,40,.10); }
.ist-card__btn:focus-visible { outline: 3px solid #0052A5; outline-offset: 3px; }

.ist-card__photo { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 128px; height: 128px; margin-bottom: 16px; border-radius: 50%; overflow: hidden; background: #EEF5FF; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #dbe7f6; color: #0052A5; font-size: 34px; font-weight: 700; }
.ist-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ist-card__btn:hover .ist-card__photo { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #0052A5; }

.ist-card__name { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 700; line-height: 1.35; color: #0A1628; }
.ist-card__pos { display: block; margin-bottom: 14px; font-size: 13px; line-height: 1.45; color: #64748b; }
.ist-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 7px 14px; border-radius: 50px; background: #EEF5FF; color: #0052A5; font-weight: 700; font-size: 13px; line-height: 1.2; transition: background .2s, color .2s; }
.ist-card__more svg { width: 15px; height: 15px; transition: transform .2s; }
.ist-card__btn:hover .ist-card__more { background: #0052A5; color: #fff; }
.ist-card__btn:hover .ist-card__more svg { transform: translateX(3px); }

/* Модальді терезе */
body:has(.ist-dlg[open]) { overflow: hidden; }
.ist-dlg { width: min(1040px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(10,22,40,.35); color: #0A1628; overflow: hidden; }
.ist-dlg[open] { display: flex; animation: istIn .22s ease-out; }
.ist-dlg::backdrop { background: rgba(10,22,40,.62); backdrop-filter: blur(3px); }
@keyframes istIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ist-dlg[open] { animation: none; } }
.ist-dlg__box { position: relative; width: 100%; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }

.ist-dlg__close { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; transition: background .15s; }
.ist-dlg__close:hover { background: rgba(255,255,255,.28); }
.ist-dlg__close:focus-visible { outline: 2px solid #F5C46B; outline-offset: 2px; }
.ist-dlg__close svg { width: 20px; height: 20px; }

/* Терезе басы — баннер түсімен */
.ist-dlg__head { display: flex; align-items: center; gap: 24px; padding: 30px 64px 28px 30px; background: linear-gradient(120deg, #0A1628 0%, #0b2f63 45%, #0052A5 100%); color: #fff; }
.ist-dlg__photo { width: 120px; height: 120px; margin: 0; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.ist-dlg__who { min-width: 0; }
.ist-dlg__name { margin: 0 0 6px !important; font-size: 22px !important; font-weight: 700 !important; line-height: 1.3 !important; color: #fff !important; }
.ist-dlg__pos { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: #cfe0f5; }
.ist-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.ist-tags li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 50px; background: rgba(255,255,255,.08); color: #fff; font-weight: 600; font-size: 12.5px; line-height: 1.3; }
.ist-tags svg { flex: 0 0 14px; width: 14px; height: 14px; color: #F5C46B; }
.ist-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.ist-contacts a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 12px; border-radius: 10px; background: #fff; color: #0052A5 !important; font-weight: 600; font-size: 13.5px; line-height: 1.3; text-decoration: none !important; transition: background .15s; }
.ist-contacts a:hover { background: #FFF4DC; }
.ist-contacts a span { min-width: 0; overflow-wrap: anywhere; }
.ist-contacts svg { flex: 0 0 16px; width: 16px; height: 16px; }

.ist-dlg__body { padding: 24px 30px 30px; }
.ist-dlg__ttl { margin: 0 0 12px !important; padding-bottom: 10px; border-bottom: 2px solid #F5C46B; font-size: 17px !important; font-weight: 700 !important; color: #0A1628 !important; display: inline-block; }

/* Өмірбаян мәтіні редактордан ішіне-ішіне салынған тізім болып келеді — тегістейміз */
.ist-bio { font-size: 14.5px; line-height: 1.65; color: #1e293b; }
.ist-bio ul, .ist-bio ol { margin: 0; padding: 0; list-style: none; }
.ist-bio li { position: relative; margin: 6px 0; padding-left: 18px; }
.ist-bio li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #F5C46B; }
.ist-bio li[style*="none"] { margin: 0; padding-left: 0; }
.ist-bio li[style*="none"]::before { display: none; }
.ist-bio li > strong:first-child { color: #0A1628; }
.ist-bio p { margin: 0 0 10px; }
.ist-bio p > strong:only-child, .ist-bio :is(h2, h3, h4) { display: block; margin: 18px 0 8px !important; font-weight: 700 !important; font-size: 15px !important; line-height: 1.4 !important; color: #0A1628 !important; }
.ist-bio > :first-child, .ist-bio > :first-child > strong:only-child { margin-top: 0 !important; }
.ist-bio a { color: #0052A5; overflow-wrap: anywhere; }
.ist-bio table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ist-bio :is(th, td) { padding: 7px 10px; border: 1px solid #e3ebf6; text-align: left; }

@media (max-width: 991px) {
	.ist-list { --n: 2 !important; max-width: 640px; }
}
@media (max-width: 600px) {
	.ist-hero .str-hero__content { padding-top: 30px !important; padding-bottom: 24px !important; }
	.ist { padding: 24px 0 44px; }
	.ist-list { gap: 12px; }
	.ist-card__btn { padding: 18px 10px 14px; border-radius: 16px; }
	.ist-card__photo { width: 92px; height: 92px; margin-bottom: 12px; font-size: 26px; }
	.ist-card__name { font-size: 14px; }
	.ist-card__pos { font-size: 12px; margin-bottom: 10px; }
	.ist-card__more { padding: 6px 11px; font-size: 12px; }

	.ist-dlg { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
	.ist-dlg__box { max-height: calc(100dvh - 20px); }
	.ist-dlg__head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px 20px; }
	.ist-dlg__photo { width: 88px; height: 88px; }
	.ist-dlg__name { font-size: 18px !important; padding-right: 36px; }
	.ist-contacts a { flex: 1 1 100%; }
	.ist-dlg__body { padding: 20px; }
	.ist-bio { font-size: 14px; }
}

/* Нашар көретіндерге арналған нұсқа */
html body .bvi-body[data-bvi-theme]:not(.bvi-no-styles) :is(.ist-card__btn, .ist-card__more, .ist-card__photo, .ist-hero__meta, .ist-dlg__head, .ist-tags li, .ist-contacts a, .ist-dlg__close) { background: var(--bvi-site-bg) !important; border: 2px solid var(--bvi-site-color) !important; box-shadow: none !important; color: var(--bvi-site-color) !important; }
