/**
 * Модальное окно - горизонтальный макет с фото слева
 */
.participant-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeInBackdrop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

@keyframes fadeInBackdrop {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(10px);
  }
}

.modal-content {
  background: transparent;
  border-radius: 0;
  padding: 0;
  max-width: 900px;
  width: 100%;
  box-shadow: none;
  position: relative;
  animation: slideUpScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
  display: flex;
  gap: 0;
}

@keyframes slideUpScale {
  from {
    transform: translateY(60px) scale(0.92);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 32px;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg) scale(1.1);
}

.modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* Фото участника - левая часть */
.modal-photo {
  width: 45%;
  height: 500px;
  object-fit: cover;
  display: block;
  border-radius: 24px 0 0 24px;
  animation: zoomIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

@keyframes zoomIn {
  from {
    transform: scale(1.08);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Контент справа - полупрозрачный фон */
.modal-content::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 24px 24px 0;
  z-index: -1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 80px rgba(0, 57, 166, 0.15);
}

/* Контейнер для текста справа */
.modal-content > div {
  width: 55%;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: fadeInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Заголовок */
.modal-content h3 {
  font-size: 36px;
  color: #0039a6;
  margin: 0 0 24px 0;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

/* Информационные блоки */
.modal-content p {
  font-size: 0;
  margin: 10px;
  padding: 0;
}

.modal-nationality,
.modal-region,
.modal-wishes {
  margin: 0 0 20px 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.modal-nationality {
  animation-delay: 0.3s;
}

.modal-region {
  animation-delay: 0.4s;
}

.modal-wishes {
  animation-delay: 0.5s;
}

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

.modal-nationality strong,
.modal-region strong,
.modal-wishes strong {
  color: #0039a6;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.7;
}

.modal-nationality p,
.modal-region p {
  font-size: 18px;
  color: #333;
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
}

.modal-wishes strong {
  color: #f57f17;
}

.modal-wishes p {
  font-size: 17px;
  color: #555;
  margin: 0;
  line-height: 1.8;
  font-weight: 400;
}

/* Адаптивность - планшет */
@media (max-width: 1024px) {
  .modal-content {
    max-width: 800px;
  }

  .modal-photo {
    width: 40%;
    height: 450px;
  }

  .modal-content::after {
    width: 60%;
  }

  .modal-content > div {
    width: 60%;
    padding: 40px 32px;
  }

  .modal-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .modal-nationality strong,
  .modal-region strong,
  .modal-wishes strong {
    font-size: 11px;
  }

  .modal-nationality p,
  .modal-region p {
    font-size: 16px;
  }

  .modal-wishes p {
    font-size: 15px;
  }
}

/* Адаптивность - мобила горизонтальная */
@media (max-width: 768px) {
  .participant-modal {
    padding: 16px;
  }

  .modal-content {
    flex-direction: column;
    max-width: 100%;
  }

  .modal-photo {
    width: 100%;
    height: 320px;
    border-radius: 24px 24px 0 0;
  }

  .modal-content::after {
    width: 100%;
    height: auto;
    border-radius: 0 0 24px 24px;
    min-height: 400px;
  }

  .modal-content > div {
    width: 100%;
    padding: 36px 28px 28px 28px;
  }

  .modal-content h3 {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .modal-nationality,
  .modal-region,
  .modal-wishes {
    margin-bottom: 18px;
  }

  .modal-nationality p,
  .modal-region p {
    font-size: 15px;
  }

  .modal-wishes p {
    font-size: 14px;
  }

  .modal-close {
    top: -45px;
    right: 0;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
}

/* Адаптивность - мобила вертикальная */
@media (max-width: 480px) {
  .participant-modal {
    padding: 12px;
  }

  .modal-content {
    max-width: 100%;
  }

  .modal-photo {
    height: 280px;
    border-radius: 20px 20px 0 0;
  }

  .modal-content::after {
    border-radius: 0 0 20px 20px;
  }

  .modal-content > div {
    padding: 28px 20px 24px 20px;
  }

  .modal-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .modal-nationality,
  .modal-region,
  .modal-wishes {
    margin-bottom: 14px;
  }

  .modal-nationality strong,
  .modal-region strong,
  .modal-wishes strong {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .modal-nationality p,
  .modal-region p {
    font-size: 14px;
  }

  .modal-wishes p {
    font-size: 13px;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 24px;
    top: -40px;
  }
}
