body {
  background-color: white;
}

.team-section {
  width: 100%;
  padding: 80px 60px;
  background: #ffffff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

/* CARD */
.team-card {
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

/* THEMES */
.team-card--dark {
  background: #05134b;
  color: #ffffff;
}

.team-card--light {
  background: #ffffff;
  color: #05134b;
  border: 1px solid #e5e7eb;
}

/* PHOTO */
.team-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* INFO */
.team-info {
  padding: 28px 26px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.team-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.team-info h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.team-info p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}

/* HOVER — ИНВЕРСИЯ */
.team-card:hover {
  background: #ffffff;
  color: #05134b;
}

.team-card:hover h3,
.team-card:hover p,
.team-card:hover span {
  color: #05134b;
}

.team-card--light:hover {
  background: #05134b;
}

.team-card--light:hover h3,
.team-card--light:hover p,
.team-card--light:hover span {
  color: #ffffff;
}

/* Detail Panel Styles */
.expert-detail-panel {
  grid-column: 1 / -1;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 40px;
  box-shadow: 0 40px 100px rgba(3, 17, 74, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  margin: 0;
  transition: 
    max-height 1s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s ease,
    padding 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.expert-detail-panel.active {
  max-height: 4000px;
  opacity: 1;
  visibility: visible;
  padding: 80px 60px;
  margin: 40px 0 80px;
}

.expert-detail-panel__close {
  position: absolute;
  top: 35px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(3, 17, 74, 0.05);
  border: 1px solid rgba(3, 17, 74, 0.1);
  border-radius: 50%;
  font-size: 32px;
  color: #03114a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 110;
}

.expert-detail-panel__close:hover {
  background: #03114a;
  color: #ffffff;
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 10px 20px rgba(3, 17, 74, 0.2);
}

.detail-content {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}

.detail-photo-container {
  position: relative;
  width: 100%;
}

.detail-photo {
  width: 100%;
  height: auto;
  min-height: 450px;
  max-height: 750px;
  object-fit: cover;
  object-position: center top;
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(3, 17, 74, 0.2);
  border: 8px solid #ffffff;
}

.detail-info h2 {
  font-size: 48px;
  color: #03114a;
  margin-bottom: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #03114a 0%, #0b1b57 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.expert-active {
  transform: scale(1.02) translateY(-8px);
  box-shadow: 0 25px 50px rgba(3, 17, 74, 0.25);
  border: 3px solid #f4b400;
  z-index: 50;
}

@media (max-width: 1024px) {
  .detail-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .expert-detail-panel.active {
    padding: 60px 30px;
  }
  
  .detail-photo {
    height: 400px;
  }
  
  .detail-info h2 {
    font-size: 36px;
  }
}

/* Expert Detail Grid and Sections */
.detail-sections {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 35px;
  width: 100%;
}

.expert-section {
  display: flex;
  background: rgba(255, 255, 255, 0.6);
  padding: 20px 25px;
  border-radius: 16px;
  border: 1px solid rgba(3, 17, 74, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: flex-start;
  gap: 30px;
}

.expert-section:hover {
  background: #ffffff;
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(3, 17, 74, 0.05);
  border-color: rgba(244, 180, 0, 0.3);
}

.expert-section__title {
  color: #03114a;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 220px;
  max-width: 220px;
  line-height: 1.4;
  position: relative;
  padding-left: 15px;
}

.expert-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: #f4b400;
  border-radius: 2px;
}

.expert-section__answer {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.8;
  flex: 1;
}

.expert-section__answer br {
  margin-bottom: 8px;
  display: block;
  content: "";
}

.expert-modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #f4b400;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 12px;
}

.expert-modal__badge {
  display: inline-block;
  padding: 8px 20px;
  background: #03114a;
  color: white;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 20px rgba(3, 17, 74, 0.2);
}

.detail-photo {
  width: 100%;
  height: auto;
  min-height: 400px;
  max-height: 600px;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  box-shadow: 0 25px 50px rgba(3, 17, 74, 0.15);
  border: 4px solid #ffffff;
}

@media (max-width: 1024px) {
  .expert-section {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }
  
  .expert-section__title {
    min-width: 100%;
    max-width: 100%;
    border-bottom: 1px solid rgba(244, 180, 0, 0.2);
    padding-bottom: 8px;
    margin-bottom: 5px;
  }
}