/* ICP staff section */
.icpst { --st-red: #931D1E; --st-red-dark: #8c1216; --st-gold: #f0b429; --st-text: #1b1b1b; --st-muted: #8a8a8a; --st-border: #e3e3e3; font-family: inherit; color: var(--st-text); }
.icpst *, .icpst *::before, .icpst *::after { box-sizing: border-box; }
.icpst__title { margin: 0 0 4px; color: var(--st-red); font-size: 28px; font-weight: 700; }
.icpst__subtitle { margin: 0 0 8px; font-size: 15px; color: #444; }

/* tabs */
.icpst__tabs { display: flex; flex-wrap: wrap; gap: 4px 8px; border-bottom: 1px solid var(--st-border); margin-bottom: 20px; }
.icpst__tab { position: relative; padding: 10px 2px 12px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--st-text); cursor: pointer; white-space: nowrap; }
.icpst__tab span { color: inherit; }
.icpst__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--st-red); opacity: 0; transition: opacity .15s; }
.icpst__tab:hover { color: var(--st-red); }
.icpst__tab.is-active { color: var(--st-red); font-weight: 700; }
.icpst__tab.is-active::after { opacity: 1; }

/* grid */
.icpst__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.icpst__grid--3 { grid-template-columns: repeat(3, 1fr); }
.icpst__grid[hidden] { display: none; }
.icpst__empty { grid-column: 1 / -1; color: var(--st-muted); padding: 24px 0; }

/* card */
.icpst-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--st-border); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.icpst-card__head { display: flex; align-items: center; gap: 6px; padding: 14px; background: linear-gradient(180deg, #b61f24 0%, #9c161b 100%); color: #fff; border-bottom: 4px solid var(--st-gold); }
.icpst-card__avatar { width: 60px; height: 60px; border-radius: 50%!important; object-fit: cover; flex: none; border: 3px solid #fff; background: #ddd; }
.icpst-card__avatar--empty { display: block; background: #e6e6e6; }
.icpst-card__name { margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.35; color: #fff; }
.icpst-card__name span { font-weight: 700; }
.icpst-card__pos { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--st-gold); color: #5a3a00; font-size: 13px; font-weight: 600; line-height: 1.5; }
.icpst-card__body { padding: 8px 16px 10px; flex: 1; min-height: 120px; }
.icpst-card__label { margin-bottom: 0px; font-size: 13px; color: var(--st-muted); }
.icpst-card__areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.icpst-card__areas li { padding: 3px 10px; border: 1px solid #d5d5d5; border-radius: 6px; font-size: 14px; color: #444; background: #fff; }
.icpst-card__foot { display: flex; gap: 8px; padding: 0 16px 16px; margin-top: auto; }
.icpst-card__phone { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 6px; background: linear-gradient(180deg, #b61f24, #8f1216); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none !important; transition: filter .15s; }
.icpst-card__phone:hover { filter: brightness(1.08); }
.icpst-card__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--st-gold); color: #3a2600 !important; text-decoration: none !important; }
.icpst-card__icon:hover { filter: brightness(1.05); }

@media (max-width: 1024px) { .icpst__grid, .icpst__grid--3 { grid-template-columns: repeat(2, 1fr); } .icpst__tabs { gap: 4px 8px; } .icpst__tab { font-size: 15px; } }
@media (max-width: 640px) {
	.icpst__grid, .icpst__grid--3 { grid-template-columns: 1fr; gap: 14px; }
	.icpst__tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0 8px; padding-bottom: 2px; }
	.icpst-card__body { min-height: 0; }
}

/* clickable card + photo modal */
.icpst-card--clickable { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.icpst-card--clickable:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.icpst-card--clickable:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
.icpst-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.75); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.icpst-modal.is-open { opacity: 1; visibility: visible; }
.icpst-modal-open { overflow: hidden; }
.icpst-modal__box { position: relative; max-width: 960px; width: auto; max-height: 92vh; background: transparent; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); transform: scale(.96); transition: transform .2s; line-height: 0; }
.icpst-modal.is-open .icpst-modal__box { position: relative; max-width: 960px; width: auto; max-height: 92vh; background: transparent; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); transform: scale(.96); transition: transform .2s; line-height: 0; }
.icpst-modal__img { display: block; max-width: 100%; max-height: 92vh; width: auto; height: auto; }
.icpst-modal__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 1; }
.icpst-modal__close:hover { background: #b3151b; }
