/* Страница «Специалисты» — строгий современный вид */

.page-staff {
  --staff-brand: #e46a17;
  --staff-brand-soft: rgba(228, 106, 23, 0.1);
  --staff-bg: #f4f5f7;
  --staff-surface: #ffffff;
  --staff-text: #1a1d24;
  --staff-muted: #5c6470;
  --staff-border: #e2e5ea;
  --staff-radius: 12px;
  --staff-font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --staff-container: min(1240px, 100% - 2rem);

  font-family: var(--staff-font);
  color: var(--staff-text);
  background: var(--staff-bg);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-staff *,
.page-staff *::before,
.page-staff *::after {
  box-sizing: border-box;
}

/* Hero */
.staff-hero {
  padding: clamp(6.5rem, 10vw, 8rem) 1.25rem clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, var(--staff-bg) 100%),
    radial-gradient(ellipse 70% 80% at 50% -20%, var(--staff-brand-soft), transparent);
  border-bottom: 1px solid var(--staff-border);
}

.staff-hero__inner {
  width: var(--staff-container);
  margin: 0 auto;
  text-align: center;
}

.staff-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--staff-brand);
}

.staff-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--staff-text);
}

.staff-hero__lead {
  margin: 0 auto 1.25rem;
  max-width: 42rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: var(--staff-muted);
}

.staff-hero__meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--staff-surface);
  border: 1px solid var(--staff-border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--staff-muted);
}

/* Grid */
.staff-section {
  padding: clamp(2rem, 4vw, 3rem) 1.25rem 0;
}

.staff-section__inner {
  width: var(--staff-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}

/* Card */
.staff-card {
    scroll-margin-top: 6rem;
  display: flex;
  flex-direction: column;
  background: var(--staff-surface);
  border: 1px solid var(--staff-border);
  border-radius: var(--staff-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.staff-card:hover {
  border-color: #d0d5dd;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
  transform: translateY(-2px);
}

.staff-card--lead {
  border-top: 3px solid var(--staff-brand);
}

.staff-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #eceff3;
  overflow: hidden;
}

.staff-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.staff-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.8rem 0.9rem 1rem;
}

.staff-card__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--staff-text);
}

.staff-card__badge {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--staff-brand-soft);
  color: var(--staff-brand);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.staff-card__position {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--staff-text);
}

.staff-card__timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.staff-card__timeline li {
  position: relative;
  padding-left: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--staff-muted);
}

.staff-card__timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--staff-brand);
}

.staff-card__phone {
  margin-top: 0.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--staff-brand);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.staff-card__phone:hover {
  text-decoration: underline;
}

.staff-card__bio {
  margin: 0.25rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--staff-border);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--staff-muted);
}

/* Empty */
.staff-empty {
  grid-column: 1 / -1;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: var(--staff-surface);
  border: 1px dashed var(--staff-border);
  border-radius: var(--staff-radius);
}

.staff-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--staff-text);
}

.staff-empty__text {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--staff-muted);
}

