/* styles/main.css */

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

body {
  font-family: 'Nunito', sans-serif; /* Основной текст */
  line-height: 1.7;
  color: #2F4F2F; /* Тёмно-зелёно-серый */
  background: linear-gradient(135deg, #F0FFF0, #F5FFFA, #FFF8DC); /* Градиент: зелёный -> мятный -> персиковый */
  overflow-x: hidden;
  position: relative;
}

/* Анимация */
.flow-in {
  opacity: 0;
  transform: translateY(35px) rotate(3deg);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.flow-in.flow-applied {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* Декоративный элемент (волны/пульсация) */
.flow-wave {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  animation: flow-pulse 10s infinite alternate ease-in-out;
}

.flow-wave:nth-of-type(1) {
  top: 15%;
  left: 5%;
  background: radial-gradient(circle, rgba(0, 100, 0, 0.1) 0%, transparent 70%);
  animation-delay: 0s;
}

.flow-wave:nth-of-type(2) {
  bottom: 20%;
  right: 7%;
  background: radial-gradient(circle, rgba(255, 165, 0, 0.1) 0%, transparent 70%);
  animation-delay: 2.5s;
}

.flow-wave:nth-of-type(3) {
  top: 60%;
  left: 25%;
  background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
  animation-delay: 5s;
}

@keyframes flow-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0.15; }
}

/* Шапка */
header {
  background: linear-gradient(90deg, #006400, #32CD32, #FFA500); /* Градиент: тёмно-зелёный -> лайм -> оранжевый */
  padding: 1.6rem 2.2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3);
  border-bottom: 2px solid #FFA500; /* Оранжевая граница */
}

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

header h1 a {
  color: #F5FFFA; /* Контраст с фоном */
  text-decoration: none;
  font-family: 'Oswald', sans-serif; /* Заголовок */
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 165, 0, 0.4);
}

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

nav a {
  color: #F5FFFA; /* Контраст с фоном */
  text-decoration: none;
  font-family: 'Nunito', sans-serif; /* Основной текст */
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.3s, transform 0.2s;
}

nav a:hover {
  color: #FFD700; /* Золотой */
  transform: translateY(-2px);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -7px;
  left: 0;
  background: linear-gradient(90deg, #006400, #FFA500); /* Зелёно-оранжевый */
  transition: width 0.4s ease;
}

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

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

main section {
  background-color: #FFFFFF; /* Белый */
  padding: 3.2rem;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0, 100, 0, 0.12); /* Зелёный */
  border: 1px solid #E0FFE0; /* Светло-зелёная граница */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

main section:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 15px 45px rgba(255, 165, 0, 0.18); /* Оранжевый */
}

/* Эффект "движения" при наведении */
main section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: linear-gradient(45deg, rgba(0, 100, 0, 0.05), rgba(255, 165, 0, 0.05), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  transform: rotate(10deg);
}

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

/* Заголовки */
h1, h2 {
  font-family: 'Oswald', sans-serif; /* Заголовок */
  color: #006400; /* Тёмно-зелёный */
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: center;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.1rem;
}

/* Параграфы */
p {
  margin-bottom: 1.4rem;
  color: #4B554B; /* Средне-серо-зелёный */
  font-size: 1.08rem;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  background: linear-gradient(135deg, #006400, #FFA500); /* Зелёно-оранжевый */
  color: #F0FFF0; /* Контраст с градиентом */
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  margin-top: 1.4rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 100, 0, 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.3), transparent);
  transition: left 0.7s;
}

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

.btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 25px rgba(255, 165, 0, 0.4); /* Оранжевый */
  background: linear-gradient(135deg, #005000, #E59400); /* Темнее */
}

.btn-outline {
  background: transparent;
  border: 2px solid #006400; /* Тёмно-зелёный */
  color: #006400; /* Тёмно-зелёный */
}

.btn-outline:hover {
  background: #006400; /* Тёмно-зелёный */
  color: #F5FFFA; /* Контраст */
}

/* Форма */
form {
  background-color: #FFFFFF; /* Белый */
  padding: 2.4rem;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 100, 0, 0.15); /* Зелёный */
  border: 1px solid #C1E1C1; /* Светло-зелёная граница */
  max-width: 100%;
  margin: 2.2rem 0;
}

form label {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 700;
  color: #2F4F2F; /* Тёмно-зелёный */
  font-family: 'Nunito', sans-serif;
}

form input,
form textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1.4rem;
  border: 1px solid #98FB98; /* Бледно-зелёный */
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  background-color: #F5FFFA; /* Мятный */
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #006400; /* Тёмно-зелёный */
}

form button {
  width: 100%;
  max-width: 280px;
}

/* Информация о контактах */
.contact-info {
  text-align: left;
  margin-top: 1.8rem;
  padding: 1.3rem;
  background-color: #F0FFF0; /* Светло-зелёный фон */
  border-radius: 6px;
  border-left: 4px solid #006400; /* Тёмно-зелёный */
}

/* Подвал */
footer {
  background: linear-gradient(135deg, #2F4F2F, #006400); /* Тёмно-зелёный градиент */
  color: #E0FFE0; /* Светло-зелёный */
  padding: 3.4rem 2.2rem 1.7rem;
  margin-top: 4.5rem;
  text-align: center;
  border-top: 1px solid #FFA500; /* Оранжевый */
}

footer nav {
  margin-bottom: 1.7rem;
}

footer a {
  color: #E0FFE0; /* Светло-зелёный */
  text-decoration: none;
  margin: 0 1.2rem;
  font-size: 0.98rem;
  font-family: 'Nunito', sans-serif;
  transition: color 0.3s;
}

footer a:hover {
  color: #FFA500; /* Оранжевый */
}

footer p {
  font-size: 0.92rem;
  color: #aaa;
}

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

  header {
    padding: 1.3rem;
  }

  .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.6rem;
  }

  form {
    padding: 1.9rem;
  }
}