/* styles/main.css */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', sans-serif; /* Основной текст */
  line-height: 1.7;
  color: #2F2F2F; /* Тёмно-серый */
  background: linear-gradient(135deg, #FFF9E6, #F0E6FF); /* Градиент: светло-жёлтый в фиолетовый */
  overflow-x: hidden;
  position: relative;
}

/* Анимация */
.fade-in {
  opacity: 0;
  transform: translateY(30px) rotate(5deg); /* Добавим немного поворота */
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* Декоративный элемент (волны/пульсация) */
.pulse-element {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 0, 128, 0.1) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 8s infinite alternate;
}

.pulse-element:nth-of-type(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.pulse-element:nth-of-type(2) {
  bottom: 15%;
  right: 15%;
  animation-delay: 2s;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0.3; }
}

/* Шапка */
header {
  background: linear-gradient(90deg, #800080, #9370DB); /* Фиолетовый градиент */
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(128, 0, 128, 0.3);
  border-bottom: 2px solid #FFD700; /* Жёлтая граница */
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 a {
  color: #FFF9E6; /* Противоположный фону */
  text-decoration: none;
  font-family: 'Comfortaa', cursive; /* Заголовок */
  font-weight: 700;
  font-size: 1.8rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav a {
  color: #FFF9E6; /* Противоположный фону */
  text-decoration: none;
  font-family: 'Quicksand', sans-serif; /* Основной текст */
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s, transform 0.2s;
}

nav a:hover {
  color: #FFD700; /* Жёлтый */
  transform: translateY(-3px);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 0;
  background: linear-gradient(90deg, #800080, #FFD700); /* Фиолетово-жёлтый */
  transition: width 0.4s ease;
}

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

/* Основной контент */
main {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  position: relative;
}

main section {
  background-color: #FFFFFF; /* Белый */
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(128, 0, 128, 0.15); /* Фиолетовый */
  border: 1px solid #E6E6FA; /* Бледно-фиолетовый */
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main section:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2); /* Жёлтый */
}

/* Эффект "вспышки" на hover */
main section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  transform: rotate(45deg);
}

main section:hover::before {
  opacity: 1;
}

/* Заголовки */
h1, h2 {
  font-family: 'Comfortaa', cursive; /* Заголовок */
  color: #800080; /* Фиолетовый */
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: center;
}

h1 {
  font-size: 2.7rem;
}

h2 {
  font-size: 2rem;
}

/* Параграфы */
p {
  margin-bottom: 1.3rem;
  color: #4B5563; /* Средне-серый */
  font-size: 1.05rem;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #800080, #FFD700); /* Фиолетово-жёлтый */
  color: #FFF9E6; /* Противоположный фону */
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  margin-top: 1.2rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(128, 0, 128, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #6A0DAD, #FFC000); /* Темнее */
}

.btn-outline {
  background: transparent;
  border: 2px solid #800080; /* Фиолетовый */
  color: #800080; /* Фиолетовый */
  box-shadow: none;
}

.btn-outline:hover {
  background: #800080; /* Фиолетовый */
  color: #FFF9E6; /* Противоположный фону */
  box-shadow: 0 4px 15px rgba(128, 0, 128, 0.3);
}

/* Форма */
form {
  background-color: #FFFFFF; /* Белый */
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(128, 0, 128, 0.15); /* Фиолетовый */
  border: 1px solid #E6E6FA; /* Бледно-фиолетовый */
  max-width: 100%;
  margin: 2rem 0;
}

form label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #2F2F2F; /* Тёмно-серый */
  font-family: 'Quicksand', sans-serif;
}

form input,
form textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1.4rem;
  border: 1px solid #9370DB; /* Средне-фиолетовый */
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  background-color: #FDF6E6; /* Светло-жёлтый */
  transition: border-color 0.3s, background-color 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #FFD700; /* Жёлтый */
  background-color: #FFF9E6; /* Светло-жёлтый */
}

form button {
  width: 100%;
  max-width: 270px;
  background: linear-gradient(135deg, #800080, #FFD700); /* Фиолетово-жёлтый */
  color: #FFF9E6; /* Противоположный фону */
  font-weight: 600;
}

/* Контактная информация */
.contact-info {
  text-align: left;
  margin-top: 1.8rem;
  padding: 1.2rem;
  background-color: #FDF6E6; /* Светло-жёлтый */
  border-radius: 8px;
  border-left: 5px solid #800080; /* Фиолетовый */
}

/* Подвал */
footer {
  background: linear-gradient(135deg, #2F2F2F, #800080); /* Тёмный в фиолетовый */
  color: #FFD700; /* Жёлтый */
  padding: 3.5rem 2rem 1.8rem;
  margin-top: 5rem;
  text-align: center;
  border-top: 2px solid #FFD700; /* Жёлтый */
}

footer nav {
  margin-bottom: 1.8rem;
}

footer a {
  color: #FFD700; /* Жёлтый */
  text-decoration: none;
  margin: 0 1.2rem;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
  transition: color 0.3s;
}

footer a:hover {
  color: #FFF9E6; /* Противоположный фону */
}

footer p {
  font-size: 0.95rem;
  color: #D3D3D3; /* Светло-серый */
}

/* Адаптивность */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1.5rem;
  }

  header {
    padding: 1.2rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1.2rem;
  }

  nav ul {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  form {
    padding: 1.8rem;
  }
}