* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #f8f9fa;
  min-height: 100vh;
}

nav {
  background: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
}

.nav-buttons {
  display: flex;
  gap: 0.75rem;
}

.nav-btn {
  padding: 0.6rem 1.2rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  background: #ffffff;
  color: #4a5568;
}

.btn-primary {
  background: #1a202c;
  color: white;
  border-color: #1a202c;
}

.btn-secondary {
  background: #ffffff;
  color: #2d3748;
  border-color: #cbd5e0;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
  margin-top: 70px;
  padding: 3.5rem 2rem;
  text-align: center;
  color: #2d3748;
  background: #ffffff;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-bottom: 1px solid #e2e8f0;
}

.hero::before {
  display: none;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  color: #1a202c;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 650px;
  color: #4a5568;
  font-weight: 400;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  padding: 0.75rem 1.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.hero-btn.primary {
  background: #1a202c;
  color: white;
  border-color: #1a202c;
}

.hero-btn.secondary {
  background: white;
  color: #2d3748;
  border-color: #cbd5e0;
}

.about {
  padding: 4rem 2rem;
  background: #ffffff;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-weight: 600;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.about-card h3 {
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.team {
  padding: 4rem 2rem;
  background: #ffffff;
}

.team h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #1a202c;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-member {
  display: flex;
  justify-content: center;
}

.profile-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 320px;
}

.profile-image {
  background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-info {
  padding: 1.5rem;
  text-align: center;
  background: #ffffff;
}

.profile-info h4 {
  color: #1a202c;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.profile-info .role {
  color: #4a5568;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.profile-divider {
  width: 50px;
  height: 2px;
  background: #e2e8f0;
  margin: 1rem auto;
}

.profile-info .bio {
  color: #718096;
  font-size: 0.875rem;
  line-height: 1.5;
  font-style: italic;
}

.registration {
  padding: 4rem 2rem;
  background: #f8f9fa;
  text-align: center;
}

.registration h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1a202c;
  font-weight: 600;
}

.registration-subtitle {
  font-size: 1rem;
  color: #718096;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-container h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1a202c;
  text-align: left;
  font-weight: 600;
}

.form-container .subtitle {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 2rem;
  text-align: left;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2d3748;
  font-size: 0.9rem;
}

.form-container input,
.form-container select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #ffffff;
  font-family: inherit;
  color: #1a202c;
}

.form-container input:focus,
.form-container select:focus {
  outline: none;
  border-color: #4a5568;
  box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.form-container input::placeholder {
  color: #a0aec0;
}

.form-container input.error,
.form-container select.error {
  border-color: #e53e3e;
}

.error-text {
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  font-weight: 400;
}

.file-input-wrapper {
  position: relative;
  width: 100%;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-label {
  display: block;
  padding: 0.75rem;
  border: 1px dashed #cbd5e0;
  border-radius: 6px;
  background: #f8f9fa;
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
  color: #718096;
}

.section-title {
  display: none;
}

.submit-button {
  width: 100%;
  padding: 0.875rem;
  background: #1a202c;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1.5rem;
}

.submit-button:active {
  background: #2d3748;
}

.login-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #718096;
}

.login-link a {
  color: #1a202c;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.login-link a:hover {
  border-bottom-color: #1a202c;
}

footer {
  background: #1a202c;
  color: #cbd5e0;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

.alert {
  padding: 0.875rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid;
  font-size: 0.9rem;
}

.alert.success {
  background-color: #f0fdf4;
  border-color: #48bb78;
  color: #22543d;
}

.alert.error {
  background-color: #fff5f5;
  border-color: #e53e3e;
  color: #742a2a;
}

.alert.warning {
  background-color: #fffaf0;
  border-color: #ed8936;
  color: #7c2d12;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-overlay.active {
  display: flex;
}

.spinner {
  margin: 0 auto;
  width: 70px;
  text-align: center;
}

.spinner > div {
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 100%;
  display: inline-block;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  margin: 0 3px;
}

.spinner .bounce1 {
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }

  .nav-buttons {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    padding: 2rem 1rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-buttons.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    margin-top: 80px;
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .form-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .registration h2,
  .about h2,
  .team h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 1rem;
  }

  .nav-btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .logo {
    height: 40px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }
}

.nav-links {
  display: flex;
  margin-right: 2rem;
}

.nav-link {
  color: #2d3748;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  border-bottom-color: #2d3748;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    margin-right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  .nav-buttons {
    position: fixed;
    top: calc(70px + 160px);
    right: -100%;
    width: 250px;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
    border-top: 1px solid #f3f4f6;
  }

  .nav-buttons.active {
    right: 0;
  }

  .nav-btn {
    margin: 0.5rem 0;
    text-align: center;
    width: 100%;
    display: block;
  }

  .hamburger {
    display: flex;
  }
}
