/* ==========================================================
   NTRFACES.CSS — ЛИЦА КАНАЛА (СВЕТЛАЯ / ТЁМНАЯ ТЕМА)
========================================================== */

.ntr-team {
  margin: 0 auto;
  padding: 30px 20px;
  font-family: inherit;
}

.team-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--text-main, #1a1a1a);
  position: relative;
  font-weight: 800;
}

.team-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #029aad, #047785);
  margin: 15px auto 0;
  border-radius: 2px;
}

.team-section-title {
  position: relative;
  margin: -35px 0 35px;
  padding-bottom: 14px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main, #1a1a1a);
  letter-spacing: -0.02em;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.team-card {
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-main, transparent);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-image {
  position: relative;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-secondary, #f1f5f9);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s ease;
}

.team-card:hover .card-image img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 60%);
  pointer-events: none;
}

.card-content {
  padding: 20px;
  position: relative;
}

.card-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 10px 0 8px;
  color: var(--text-main, #2c3e50);
  line-height: 1.3;
}

.card-position {
  font-size: 0.95rem;
  color: var(--text-muted, #7f8c8d);
  margin-bottom: 15px;
  line-height: 1.4;
}

.card-profile {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color, #029aad);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.card-profile svg {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.card-profile:hover {
  color: #017785;
}

.card-profile:hover svg {
  transform: translateX(5px);
}

/* ==========================================================
   ПОДДЕРЖКА ТЁМНОЙ ТЕМЫ [data-theme="dark"]
========================================================== */
[data-theme="dark"] .team-title,
[data-theme="dark"] .team-section-title {
  color: var(--text-main, #f1f5f9);
}

[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 {
  border-color: var(--accent-color, #38bdf8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .card-name {
  color: var(--text-main, #f1f5f9);
}

[data-theme="dark"] .card-position {
  color: var(--text-muted, #cbd5e1);
}

[data-theme="dark"] .card-profile {
  color: var(--accent-color, #38bdf8);
}

[data-theme="dark"] .card-profile:hover {
  color: #7dd3fc;
}

/* ==========================================================
   АДАПТИВ
========================================================== */
@media (max-width: 480px) {
  .team-section-title {
    font-size: 1.1rem;
    margin-bottom: 28px;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .team-title {
    font-size: 1.6rem;
  }
  .card-image {
    height: 240px;
  }
}