/* Страница «Сотрудники»: карточки с фото, должностью и мечетью + фильтр по мечетям. */

.staff-page {
  width: 100%;
}

.staff-hero-section {
  position: relative;
  padding-top: 32px;
  overflow: hidden;
}

.staff-container {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(24px, calc(100px - (1440px - 100vw) * 76px / 416px), 100px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 64px;
}

.staff-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
}

.staff-hero-title {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin: 0;
}

.staff-hero-subtitle {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #108669;
  margin: 0;
}

.staff-hero-text {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 140%;
  color: #2B2B2B;
  margin: 0;
}

.staff-list-title {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin: 0;
}

/* ---------- фильтр по мечетям ---------- */
.staff-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.staff-filter-btn {
  border: 1px solid #E0E0E0;
  border-radius: 36px;
  padding: 12px 24px;
  background: #FFFFFF;
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 510;
  font-size: 16px;
  line-height: 100%;
  color: #2B2B2B;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.staff-filter-btn:hover {
  border-color: #108669;
  color: #108669;
}

.staff-filter-btn--active {
  background: #108669;
  border-color: #108669;
  color: #FFFFFF;
}

/* ---------- карточки ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.staff-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.staff-card[hidden] {
  display: none;
}

.staff-card-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: #D9D9D9 center / cover no-repeat;
}

.staff-card-photo--empty {
  background-image: linear-gradient(180deg, #F2F2F2 0%, #E4E4E4 100%);
}

.staff-card-name {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 590;
  font-size: 24px;
  line-height: 115%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin: 0;
  overflow-wrap: anywhere;
}

.staff-card-role {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 135%;
  color: #888888;
  margin: 0;
  overflow-wrap: anywhere;
}

.staff-empty {
  margin: 0;
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-size: 20px;
  color: #888888;
}

@media (max-width: 1200px) {
  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .staff-hero-title {
    font-size: 44px;
  }
}

@media (max-width: 900px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .staff-hero-section {
    padding-top: 12px;
  }

  .staff-container {
    padding-inline: 20px;
    gap: 24px;
    margin-bottom: 48px;
  }

  .staff-hero-title {
    font-size: 32px;
  }

  .staff-hero-subtitle {
    font-size: 24px;
  }

  .staff-hero-text {
    font-size: 16px;
  }

  .staff-list-title {
    font-size: 28px;
  }

  .staff-filter-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .staff-grid {
    gap: 24px 16px;
  }

  .staff-card-name {
    font-size: 18px;
  }

  .staff-card-role {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-card-photo {
    aspect-ratio: 4 / 3;
  }
}

/* Декоративные звёзды по краям шапки. */
.staff-hero-star {
  position: absolute;
  top: -80px;
  height: 799px;
  width: auto;
  pointer-events: none;
  z-index: 0;
}

.staff-hero-star--left {
  left: 0;
}

.staff-hero-star--right {
  right: 0;
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  .staff-hero-star {
    height: 420px;
    top: -40px;
  }
}
