header {
  background: rgba(27,27,47,0.95);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,174,0,0.3);
}

header .logo {
  font-size: 26px;
  font-weight: bold;
  color: #ffae00;
  text-shadow: 0 0 10px #ffae00;
}

header nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
  position: relative;
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffae00;
  transition: width 0.3s;
}

header nav a:hover {
  color: #ffae00;
}

header nav a:hover::after {
  width: 100%;
}

.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(120deg, #1e1e2e, #272742, #1e1e2e);
  animation: gradientShift 8s infinite alternate;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ffae00;
  text-shadow: 0 0 15px #ffae00;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  color: #ddd;
}

footer {
  background: #1b1b2f;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,174,0,0.3);
}

main {
  max-width: 1280px;
  margin: 0 auto;
}

/* 📱 Адаптация для телефонов */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
  }

  header nav {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  header nav a {
    margin: 8px 12px 0 0;
  }

  .hero {
    padding: 70px 15px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card h3 {
    font-size: 20px;
  }

  .about p, .contacts p {
    font-size: 16px;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }
}

/* 📱 Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  header .logo {
    font-size: 22px;
  }

  header nav a {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .card {
    padding: 15px;
  }

  .card h3 {
    font-size: 18px;
  }

  footer p {
    font-size: 13px;
  }
}
