/* styles/main.css */

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

body {
  font-family: 'Lora', serif; /* Основной текст */
  line-height: 1.7;
  color: #3A3A3A; /* Тёмно-серый */
  background: linear-gradient(135deg, #FFF8F0, #F5FFFA, #FDF5E6); /* Градиент: светло-оранжевый -> светло-зелёный -> бежевый */
  overflow-x: hidden;
  position: relative;
}

/* Анимация */
.natural-in {
  opacity: 0;
  transform: translateY(25px) scale(0.98);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.natural-in.natural-applied {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Декоративный элемент (листья/волны) */
.leaf-element {
  position: fixed;
  width: 80px;
  height: 80px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  animation: leaf-float 12s infinite linear;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50,10 C70,10 90,30 90,50 C90,70 70,90 50,90 C30,90 10,70 10,50 C10,30 30,10 50,10 Z' fill='%23FF8C00' opacity='0.1'/%3E%3C/svg%3E"); /* Оранжевый лист */
}

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

.leaf-element:nth-of-type(2) {
  bottom: 15%;
  right: 7%;
  animation-delay: 4s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50,10 C70,10 90,30 90,50 C90,70 70,90 50,90 C30,90 10,70 10,50 C10,30 30,10 50,10 Z' fill='%2332CD32' opacity='0.1'/%3E%3C/svg%3E"); /* Зелёный лист */
}

@keyframes leaf-float {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, 20px) rotate(5deg); }
  50% { transform: translate(0, 40px) rotate(0deg); }
  75% { transform: translate(-20px, 20px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

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

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

header h1 a {
  color: #FFF8F0; /* Контраст с фоном */
  text-decoration: none;
  font-family: 'Nunito', sans-serif; /* Заголовок */
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(50, 205, 50, 0.4); /* Зелёная подсветка */
}

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

nav a {
  color: #FFF8F0; /* Контраст с фоном */
  text-decoration: none;
  font-family: 'Lora', 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, #FF8C00, #32CD32); /* Оранжево-зелёный */
  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(255, 140, 0, 0.12); /* Оранжевая тень */
  border: 1px solid #FFE4E1; /* Светло-оранжевая граница */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

main section:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(50, 205, 50, 0.18); /* Зелёная тень */
}

/* Эффект "листьев" при наведении */
main section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50,10 C70,10 90,30 90,50 C90,70 70,90 50,90 C30,90 10,70 10,50 C10,30 30,10 50,10 Z' fill='%23FFA500' opacity='0.05'/%3E%3C/svg%3E") repeat;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  pointer-events: none;
  transform: rotate(10deg);
}

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

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

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.1rem;
}

/* Параграфы */
p {
  margin-bottom: 1.3rem;
  color: #555;
  font-size: 1.05rem;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  background: linear-gradient(135deg, #FF8C00, #32CD32); /* Оранжево-зелёный */
  color: #FFF8F0; /* Контраст с градиентом */
  text-decoration: none;
  font-family: 'Lora', serif;
  font-weight: 600;
  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(255, 140, 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.35), transparent);
  transition: left 0.7s;
}

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

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(50, 205, 50, 0.4); /* Зелёная */
  background: linear-gradient(135deg, #E57C00, #2BB42B); /* Темнее */
}

.btn-outline {
  background: transparent;
  border: 2px solid #FF8C00; /* Тёмно-оранжевый */
  color: #FF8C00; /* Тёмно-оранжевый */
}

.btn-outline:hover {
  background: #FF8C00; /* Тёмно-оранжевый */
  color: #FFF8F0; /* Контраст */
}

/* Форма */
form {
  background-color: #FFFFFF; /* Белый */
  padding: 2.4rem;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.15); /* Оранжевая */
  border: 1px solid #FFE4B5; /* Светло-оранжевая */
  max-width: 100%;
  margin: 2rem 0;
}

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

form input,
form textarea {
  width: 100%;
  padding: 0.85rem;
  margin-bottom: 1.3rem;
  border: 1px solid #FFDAB9; /* Персиковый */
  border-radius: 6px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  background-color: #FFF8F5; /* Очень светлый оранжевый */
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #32CD32; /* Зелёный */
}

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

/* Информация о контактах */
.contact-info {
  text-align: left;
  margin-top: 1.7rem;
  padding: 1.2rem;
  background-color: #FFF8F5; /* Очень светлый оранжевый */
  border-radius: 6px;
  border-left: 4px solid #FF8C00; /* Тёмно-оранжевый */
}

/* Подвал */
footer {
  background: linear-gradient(135deg, #3A3A3A, #FF8C00); /* Градиент: тёмно-серый в оранжевый */
  color: #FFE4B5; /* Светло-оранжевый */
  padding: 3.4rem 2.2rem 1.7rem;
  margin-top: 4.5rem;
  text-align: center;
  border-top: 1px solid #32CD32; /* Зелёный */
}

footer nav {
  margin-bottom: 1.7rem;
}

footer a {
  color: #FFE4B5; /* Светло-оранжевый */
  text-decoration: none;
  margin: 0 1.2rem;
  font-size: 0.95rem;
  font-family: 'Lora', serif;
  transition: color 0.3s;
}

footer a:hover {
  color: #32CD32; /* Зелёный */
}

footer p {
  font-size: 0.9rem;
  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.8rem;
  }
}