/* Базовая адаптивная нейронная стилистика */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #050c26;
  color: #f2f2f2;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0e0e11;
  box-shadow: 0 0 20px #00f2ff22;
  padding: 15px 0;
  margin-bottom: 60px;
}

header {
  background: linear-gradient(135deg, #2f2f4f, #1f1f2f);
  text-align: center;
  padding: 40px 0;
  box-shadow: 0 0 30px #00f2ff88;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  color: #aaa;
}


h2 {
  text-align: center;
  font-size: 2rem;
  color: #454cee;
  margin-bottom: 30px;
}

h3 {
  text-align: center;
  font-size: 1.5rem;
}


footer {
  text-align: center;
  padding: 20px;
  background-color: #1a1a1a;
  color: #777;
  margin-top: 40px;
}

.services {
  padding: 60px 0;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  color: #454cee;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card, .testimonial {
  background: #1c1c24;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow:
    0 0 10px #00f2ff22,
    0 0 25px #00f2ff11 inset;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover, .testimonial:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 30px #00f2ff55,
    0 0 20px #00f2ff22 inset;
}

.card img {
  height: 60px;
  margin-bottom: 20px;
}

.card h3 {
  color: #fff;
  margin-bottom: 10px;
}

.card p {
  color: #aaa;
  font-size: 0.95rem;
}

.testimonials {
  padding: 60px 0;
  background: #121218;
}

.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  color: #00eaff;
  margin-bottom: 40px;
}

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.testimonial {
  background: #1e1e2a;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 0 20px #00f2ff22;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.testimonial:nth-child(2) {
  animation-delay: 0.3s;
}

.testimonial:nth-child(3) {
  animation-delay: 0.6s;
}

.testimonial p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 10px;
}

.testimonial span {
  font-size: 0.9rem;
  color: #888;
}

/* Анимация */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact {
  padding: 60px 0;
}

.contact h2 {
  text-align: center;
  font-size: 1.5rem;
  color: #454cee;
  margin-bottom: 20px;
}

.contact h3 {
  text-align: center;
  margin-bottom: 10px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
  background: #1d1d25;
  border: none;
  padding: 15px;
  color: #f0f0f0;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: inset 0 0 5px #00f2ff22;
  resize: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #888;
}

#contact-form button {
  background: linear-gradient(135deg, #454cee, #0066ff);
  color: #fff;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 0 12px #00f2ff99, inset 0 0 5px #ffffff22;
  transition: all 0.3s ease;
}

#contact-form button:hover {
  background: linear-gradient(135deg, #454cee, #004cff);
  box-shadow: 0 0 20px #00f2ffcc, inset 0 0 6px #ffffff44;
  transform: translateY(-2px);
}

#form-message {
  text-align: center;
  margin-top: 15px;
  font-size: 0.95rem;
  color: #00ffb3;
}



.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 25px;
  color: #454cee;
  font-weight: bold;
  text-decoration: none;
}

.logo:hover {
  color: #454cee;
  text-shadow: 0 0 3px #00f2ff88;
}


.nav a {
  margin-left: 20px;
  font-size: 20px;
  color: #454cee;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.nav a:hover {
  color: #454cee;
  text-shadow: 0 0 3px #00f2ff88;
}

@media (max-width: 600px) {
  .nav {
    display: none;
  }
}

.burger {
  display: none;
  font-size: 2rem;
  color: #454cee;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 768px) {
  .burger {
    display: block;
    z-index: 1100;
    position: relative;
  }

  .nav {
    position: absolute;
    top: 65px;
    right: 20px;
    background: radial-gradient(circle at top right, #1d1f28, #0f0f14);
    flex-direction: column;
    align-items: stretch;
    width: 220px;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 0 25px #00f2ff55;
    border: 1px solid #00eaff33;
    display: none;
    transition: all 0.3s ease;
  }

  .nav a {
    display: block;
    padding: 12px 15px;
    margin: 5px 0;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    background-color: #20222e;
    font-size: 1rem;
    transition: background 0.3s;
  }

  .nav a:hover {
    background-color: #2e2f3a;
    color: #00eaff;
  }

  .nav.open {
    display: flex;
  }
}

