/* Styles for the card widgets (Персонал, Групи, Документи) — mirror the Elementor design system v2
   (zd- variables: orange #F36B1C, cream #FFF8F1, ink #1F1A17, green #2E9C5A; Rubik + Nunito). */
.kz-staff-grid, .kz-groups-grid { display: grid; gap: 1.4rem; width: 100%; }
.kz-staff-grid.kz-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kz-staff-grid.kz-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kz-staff-grid.kz-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kz-person { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.6rem 1.1rem 1.5rem; background: #fff; border-radius: 28px; text-align: center; box-shadow: 0 10px 30px rgba(120,70,30,.08); transition: transform .3s; }
.kz-person:hover { transform: translateY(-4px); }
.kz-avatar { display: block; width: 136px; height: 136px; object-fit: cover; object-position: center top; border-radius: 50%; border: 5px solid #fff; margin: 6px auto 10px; background: #FFF1E4; }
.kz-avatar-empty { display: block; }
.kz-avatar-xl { display: block; width: 240px; height: 240px; object-fit: cover; object-position: center top; border-radius: 50%; border: 8px solid #fff; margin: 8px auto; }
.kz-ring-orange { box-shadow: 0 0 0 4px #F36B1C, 0 12px 26px rgba(120,70,30,.14); }
.kz-ring-green { box-shadow: 0 0 0 4px #2E9C5A, 0 12px 26px rgba(120,70,30,.14); }
.kz-ring-yellow { box-shadow: 0 0 0 4px #FFC233, 0 12px 26px rgba(120,70,30,.14); }
.kz-ring-sky { box-shadow: 0 0 0 4px #7CC4F2, 0 12px 26px rgba(120,70,30,.14); }
.kz-avatar-xl.kz-ring-orange { box-shadow: 0 0 0 6px #F36B1C, 0 24px 50px rgba(120,70,30,.18); }
.kz-avatar-xl.kz-ring-green { box-shadow: 0 0 0 6px #2E9C5A, 0 24px 50px rgba(120,70,30,.18); }
.kz-avatar-xl.kz-ring-yellow { box-shadow: 0 0 0 6px #FFC233, 0 24px 50px rgba(120,70,30,.18); }
.kz-avatar-xl.kz-ring-sky { box-shadow: 0 0 0 6px #7CC4F2, 0 24px 50px rgba(120,70,30,.18); }
.kz-pill, .kz-pill-green { display: inline-block; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: .42rem .85rem; border-radius: 999px; line-height: 1.3; }
.kz-pill { background: #FFE7D3; color: #D9530B; }
.kz-pill-green { background: #E3F4EA; color: #22784A; }
.kz-person-name { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1.1rem; line-height: 1.3; color: #1F1A17; margin: .1rem 0 0; }
.kz-person-meta, .kz-small { font-family: 'Nunito', sans-serif; font-size: .93rem; line-height: 1.55; color: #5D534B; margin: 0; }
.kz-text { font-family: 'Nunito', sans-serif; font-size: 1.05rem; line-height: 1.75; color: #5D534B; margin: 0; }
.kz-text-strong { font-family: 'Nunito', sans-serif; font-size: 1.08rem; font-weight: 700; line-height: 1.6; color: #1F1A17; margin: 0; }
.kz-h2, .kz-profile-name { font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1.12; letter-spacing: -.015em; color: #1F1A17; margin: 0; }
.kz-label { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1rem; color: #F36B1C; margin: 0; }
.kz-quote { font-family: 'Nunito', sans-serif; font-style: italic; font-size: 1.08rem; line-height: 1.65; color: #1F1A17; margin: 0; }
.kz-empty { font-family: 'Nunito', sans-serif; padding: 1rem 1.25rem; border: 2px dashed #F1E2D3; border-radius: 18px; color: #5D534B; }
/* profile */
.kz-profile { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 3rem; align-items: center; width: 100%; }
.kz-profile-photo { display: flex; justify-content: center; }
.kz-profile-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.kz-profile-sub { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1.05rem; color: #1F1A17; margin: 0; }
.kz-quote-card { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.7rem 1.9rem; border-radius: 28px; background: #FFF1E4; width: 100%; box-sizing: border-box; }
.kz-quote-icon { display: block; width: 56px; height: 56px; flex: 0 0 auto; }
/* groups */
.kz-groups-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.kz-group-card { display: flex; flex-direction: column; background: #fff; border-radius: 32px; overflow: hidden; box-shadow: 0 10px 30px rgba(120,70,30,.08); transition: transform .3s; }
.kz-group-card:hover { transform: translateY(-5px); }
.kz-card-img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.kz-group-body { display: flex; flex-direction: column; align-items: flex-start; gap: .95rem; padding: 1.6rem 1.8rem 2rem; }
.kz-group-top { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .9rem; align-items: center; width: 100%; }
.kz-group-top > div { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.kz-group-name { font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 1.75rem; line-height: 1.15; color: #1F1A17; margin: 0; }
.kz-emblem { display: block; width: 64px; height: 64px; object-fit: contain; padding: 5px; border-radius: 50%; background: #FFF8F1; border: 2px solid #F1E2D3; box-sizing: border-box; }
.kz-emblem-lg { display: block; width: 120px; height: 120px; object-fit: contain; padding: 10px; border-radius: 50%; background: #fff; border: 3px solid #FFE7D3; box-shadow: 0 12px 26px rgba(120,70,30,.12); box-sizing: border-box; }
.kz-motto { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border-radius: 20px; background: #FFF8F1; width: 100%; box-sizing: border-box; }
.kz-groups-detailed { display: flex; flex-direction: column; gap: 5rem; width: 100%; }
.kz-group-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.kz-group-row.kz-flip .kz-group-pics { order: 2; }
.kz-group-pics { display: flex; flex-direction: column; gap: 1.25rem; }
.kz-group-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.kz-photo { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 40px; }
/* documents */
.kz-docs { display: flex; flex-direction: column; gap: .9rem; width: 100%; }
.kz-doc-section { background: #fff; border: 2px solid #F1E2D3; border-radius: 24px; overflow: hidden; }
.kz-doc-section summary { display: flex; align-items: center; gap: .8rem; padding: 1.2rem 1.5rem; cursor: pointer; list-style: none; font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1.12rem; color: #1F1A17; }
.kz-doc-section summary::-webkit-details-marker { display: none; }
.kz-doc-section summary span:first-child { flex: 1 1 auto; }
.kz-doc-count { flex: 0 0 auto; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: #E3F4EA; color: #22784A; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.kz-chev { flex: 0 0 auto; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: #FFE7D3; color: #F36B1C; transition: transform .25s; box-sizing: border-box; }
.kz-doc-section[open] .kz-chev { transform: rotate(180deg); }
.kz-doc-list { list-style: none; margin: 0; padding: 0 1.5rem 1.2rem; }
.kz-doc-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .75rem 0; border-top: 1px solid #F1E2D3; font-family: 'Nunito', sans-serif; font-weight: 700; color: #1F1A17; }
.kz-doc-list li svg { color: #F36B1C; }
.kz-doc-list a { color: #1F1A17; text-decoration: none; }
.kz-doc-list a:hover { color: #F36B1C; }
.kz-doc-list time { font-weight: 600; font-size: .88rem; color: #8A7B6E; }
.kz-doc-desc { margin: 0; padding: 0 1.5rem .9rem; font-family: 'Nunito', sans-serif; font-size: .95rem; line-height: 1.6; color: #5D534B; }
.kz-doc-empty { margin: 0; padding: .2rem 1.5rem 1.3rem; font-family: 'Nunito', sans-serif; font-size: .92rem; font-style: italic; color: #8A7B6E; }
/* responsive (Elementor breakpoints: tablet ≤1024, mobile ≤767) */
@media (max-width: 1024px) {
	.kz-staff-grid.kz-cols-4, .kz-staff-grid.kz-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kz-groups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kz-profile, .kz-group-row { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.kz-group-row.kz-flip .kz-group-pics { order: 0; }
	.kz-avatar-xl { width: 200px; height: 200px; }
	.kz-h2, .kz-profile-name { font-size: 2.2rem; }
}
@media (max-width: 767px) {
	.kz-staff-grid.kz-cols-3, .kz-staff-grid.kz-cols-4, .kz-staff-grid.kz-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
	.kz-groups-grid { grid-template-columns: minmax(0, 1fr); }
	.kz-person { padding: 1.2rem .7rem 1.1rem; border-radius: 22px; }
	.kz-avatar { width: 100px; height: 100px; border-width: 4px; }
	.kz-avatar-xl { width: 170px; height: 170px; border-width: 6px; }
	.kz-h2, .kz-profile-name { font-size: 1.85rem; }
	.kz-groups-detailed { gap: 3.5rem; }
	.kz-photo { border-radius: 26px; }
	.kz-doc-list li { grid-template-columns: 20px minmax(0, 1fr); }
	.kz-doc-list time { grid-column: 2; }
}

/* Elementor resets `.elementor img { border:none; border-radius:0; box-shadow:none; height:auto }` (specificity 0,1,1),
   so image rules are repeated here with higher specificity (body img.class = 0,1,2). */
body img.kz-avatar { display: block; width: 136px; height: 136px; object-fit: cover; object-position: center top; border-radius: 50%; border: 5px solid #fff; margin: 6px auto 10px; background: #FFF1E4; }
body img.kz-avatar-xl { display: block; width: 240px; height: 240px; object-fit: cover; object-position: center top; border-radius: 50%; border: 8px solid #fff; margin: 8px auto; }
body img.kz-avatar.kz-ring-orange { box-shadow: 0 0 0 4px #F36B1C, 0 12px 26px rgba(120,70,30,.14); }
body img.kz-avatar.kz-ring-green { box-shadow: 0 0 0 4px #2E9C5A, 0 12px 26px rgba(120,70,30,.14); }
body img.kz-avatar.kz-ring-yellow { box-shadow: 0 0 0 4px #FFC233, 0 12px 26px rgba(120,70,30,.14); }
body img.kz-avatar.kz-ring-sky { box-shadow: 0 0 0 4px #7CC4F2, 0 12px 26px rgba(120,70,30,.14); }
body img.kz-avatar-xl.kz-ring-orange { box-shadow: 0 0 0 6px #F36B1C, 0 24px 50px rgba(120,70,30,.18); }
body img.kz-avatar-xl.kz-ring-green { box-shadow: 0 0 0 6px #2E9C5A, 0 24px 50px rgba(120,70,30,.18); }
body img.kz-avatar-xl.kz-ring-yellow { box-shadow: 0 0 0 6px #FFC233, 0 24px 50px rgba(120,70,30,.18); }
body img.kz-avatar-xl.kz-ring-sky { box-shadow: 0 0 0 6px #7CC4F2, 0 24px 50px rgba(120,70,30,.18); }
body img.kz-card-img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
body img.kz-emblem { display: block; width: 64px; height: 64px; object-fit: contain; padding: 5px; border-radius: 50%; background: #FFF8F1; border: 2px solid #F1E2D3; box-sizing: border-box; }
body img.kz-emblem-lg { display: block; width: 120px; height: 120px; object-fit: contain; padding: 10px; border-radius: 50%; background: #fff; border: 3px solid #FFE7D3; box-shadow: 0 12px 26px rgba(120,70,30,.12); box-sizing: border-box; }
body img.kz-photo { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 40px; }
@media (max-width: 1024px) { body img.kz-avatar-xl { width: 200px; height: 200px; } }
@media (max-width: 767px) {
	body img.kz-avatar { width: 100px; height: 100px; border-width: 4px; }
	body img.kz-avatar-xl { width: 170px; height: 170px; border-width: 6px; }
	body img.kz-photo { border-radius: 26px; }
}
