/* Стили секции участников выставки */
.section-uch {
  background-color: #0f1012 !important;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.participants-btn-trigger {
  min-width: 260px;
}

/* ==========================================================================
   FULLSCREEN LIGHT MODAL: УЧАСТНИКИ ВЫСТАВКИ СТРОЙКА
   ========================================================================== */
.participants-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background-color: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  padding: 0;
}

.participants-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.participants-modal-window {
  width: 100vw;
  height: 100vh;
  background-color: #f7f8fa;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
  animation: modalSlideUpStroika 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUpStroika {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Шапка модального окна */
.participants-modal-header {
  height: 72px;
  min-height: 72px;
  background: #ffffff;
  border-bottom: 1px solid #e2e5eb;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
}

.participants-modal-header__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f7714c;
  box-shadow: 0 0 8px rgba(247, 113, 76, 0.5);
  flex-shrink: 0;
}

.participants-modal-header__title h3 {
  margin: 0;
  font-family: var(--font-heading, 'Unbounded', sans-serif);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 800;
  color: #111111;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.participants-count-pill {
  background: rgba(247, 113, 76, 0.1);
  border: 1px solid rgba(247, 113, 76, 0.35);
  color: #f7714c;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
}

.participants-modal-close {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f1f3f7;
  border: 1px solid #dce0e8;
  color: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.participants-modal-close:hover {
  background: #f7714c;
  border-color: #f7714c;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Тело модального окна */
.participants-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 36px 32px 60px;
  background-color: #f7f8fa;
  scrollbar-width: thin;
  scrollbar-color: #f7714c #e4e7ed;
}

.participants-modal-body::-webkit-scrollbar {
  width: 8px;
}
.participants-modal-body::-webkit-scrollbar-track {
  background: #e4e7ed;
}
.participants-modal-body::-webkit-scrollbar-thumb {
  background: #f7714c;
  border-radius: 4px;
}

/* Сетка карточек-тумб */
.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Карточка-тумба участника — белая, чистая */
.participant-thumb-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
  background: #ffffff;
  border: 1px solid #e1e4ea;
  border-radius: 8px;
  padding: 16px 18px 20px;
  text-decoration: none;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.participant-thumb-card:hover {
  border-color: #f7714c;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px #f7714c;
}

/* Верхний ряд: логотип по средине */
.participant-thumb-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 14px;
}

/* Фиксированная рамка логотипа без фона и рамок */
.participant-logo-frame {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  overflow: visible;
  flex-shrink: 0;
}

.participant-logo-frame.is-square {
  width: 52px;
}

.participant-logo-frame.is-rect {
  width: 120px;
}

.participant-logo-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.participant-logo-placeholder {
  font-size: 11px;
  font-weight: 800;
  color: #666666;
  letter-spacing: 0.05em;
}

/* Название компании по центру тумбы */
.participant-thumb-name {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 6px 4px;
  word-break: break-word;
}

.participant-thumb-card:hover .participant-thumb-name {
  color: #f7714c;
}

/* Заглушка */
.participants-modal-empty {
  text-align: center;
  max-width: 560px;
  margin: 80px auto;
  padding: 44px 28px;
  background: #ffffff;
  border: 1px dashed #d0d5dd;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.empty-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(247, 113, 76, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.participants-modal-empty h4 {
  font-size: 20px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 10px;
}

.participants-modal-empty p {
  font-size: 15px;
  color: #667085;
  line-height: 1.6;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
  .participants-modal-header {
    height: 60px;
    min-height: 60px;
    padding: 0 16px;
  }
  .participants-modal-body {
    padding: 20px 14px 40px;
  }
  .participants-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
  }
  .participant-thumb-card {
    min-height: 135px;
    padding: 12px 14px 14px;
  }
  .participant-thumb-name {
    font-size: 14px;
  }
  .participant-logo-frame {
    height: 44px;
  }
  .participant-logo-frame.is-square {
    width: 44px;
  }
  .participant-logo-frame.is-rect {
    width: 95px;
  }
}
