* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.container-fluid {
  position: relative;
  z-index: 1;
}

/* Центральная панель с контентом */
.content-panel {
  padding: 40px 20px;
  margin: 20px auto;
  max-width: 1100px;
  width: 85%;
}

@media (max-width: 768px) {
  .content-panel {
    padding: 20px 10px;
    margin: 10px;
    width: calc(100% - 20px);
  }
  
  h2 {
    font-size: 20px;
  }
  
  .well {
    padding: 20px;
  }
  
  .btn-primary {
    width: 100% !important;
  }
  
  .form-control {
    font-size: 16px;
  }
}

textarea {
  resize: none;
}

h2 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-weight: bold;
  margin-bottom: 20px;
}

h4 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.well {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
  padding: 30px;
}

.well:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 1);
}

.well h4 {
  color: #333;
  text-shadow: none;
  margin-bottom: 25px;
  font-weight: bold;
}

.well p, .well ul, .well li, .well label, .well .radio label {
  color: #333 !important;
}

.form-control {
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  padding: 12px 40px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-default {
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-default:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  color: white;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.img-circle {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.img-circle:hover {
  transform: rotate(360deg) scale(1.1);
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.form-group {
  animation: fadeInUp 0.6s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

hr {
  border-color: rgba(255, 255, 255, 0.3);
}

a {
  transition: all 0.3s ease;
}

a:hover {
  transform: translateX(5px);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none;
  position: relative;
  display: inline-block;
  margin: 5px 0;
}

.footer-links a:hover {
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-links a:hover:after {
  width: 100%;
}

.footer-links p {
  color: rgba(255, 255, 255, 0.9) !important;
}

p.small {
  font-size: 13px;
  line-height: 1.8;
}
