/* ==========================================================
   PHOTO3.CSS — СТРАНИЦА РУКОВОДСТВА (СВЕТЛАЯ / ТЁМНАЯ ТЕМА)
========================================================== */

.team-page {
  padding: 20px 0;
}

.team1 {
  margin-bottom: 25px;
}

.team-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main, #171b19);
  margin-bottom: 6px;
}

.team-page .team-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main, #171b19);
  margin-bottom: 6px;
}

.team1 .team-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.team-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-main, transparent);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.team-card img {
  width: 100%;
  height: 253px;
  object-fit: cover;
  object-position: top;
  display: block;
  background-color: var(--bg-secondary, #f1f5f9);
}

.team-info {
  padding: 14px;
}

.team-role {
  font-size: 13px;
  color: var(--text-muted, #555555);
  margin-bottom: 10px;
  line-height: 1.4;
}

.team-contacts {
  font-size: 12px;
  color: var(--text-caption, #777777);
  line-height: 1.5;
}

/* ==========================================================
   ПОДДЕРЖКА ТЁМНОЙ ТЕМЫ
========================================================== */
[data-theme="dark"] .team-card {
  background: var(--bg-surface, #151a1e);
  border-color: var(--border-main, #232d36);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .team-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-color, #38bdf8);
}

[data-theme="dark"] .team-title {
  color: var(--text-main, #f1f5f9);
}

[data-theme="dark"] .team-page .team-name {
  color: var(--text-main, #f1f5f9);
}

[data-theme="dark"] .team1 .team-name {
  color: var(--text-muted, #94a3b8);
}

[data-theme="dark"] .team-role {
  color: var(--text-muted, #cbd5e1);
}

[data-theme="dark"] .team-contacts {
  color: var(--text-caption, #64748b);
}