/* Стили для модальных окон */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  color: #555;
  background-color: #f5f5f5;
}

.modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.success-icon {
  width: 60px;
  height: 60px;
  background-color: var(--success-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  margin: 0 auto 15px;
  box-shadow: 0 4px 12px var(--success-light);
}

.modal-content h3 {
  margin: 0 0 10px;
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.instruction-block {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.instruction-block h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-weight: 600;
}

.instruction-block ol {
  margin: 0;
  padding-left: 20px;
}

.instruction-block li {
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--text-medium);
}

.instruction-block strong {
  color: var(--text-dark);
  font-weight: 600;
}

.close-button {
  display: block;
  margin: 0 auto;
  padding: 10px 20px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(68, 131, 245, 0.3);
}

.close-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(68, 131, 245, 0.4);
}

.close-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(68, 131, 245, 0.3);
}

/* Эффект появления модального окна */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content {
  animation: fadeIn 0.3s ease;
}

/* Стили для мобильных устройств */
@media (max-width: 640px) {
  .modal-content {
    padding: 20px;
    width: 95%;
  }

  .instruction-block {
    padding: 15px;
  }

  .close-button {
    width: 100%;
  }
}
