/* styles/main.css */

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

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

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

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

/* Декоративный элемент (пульсирующий круг) */
.pulse-element {
  position: fixed;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: pulse 7s infinite alternate;
}

.pulse-element:nth-of-type(1) {
  top: 12%;
  left: 12%;
  background: radial-gradient(circle, rgba(124, 252, 0, 0.12) 0%, transparent 70%);
  animation-delay: 0s;
}

.pulse-element:nth-of-type(2) {
  bottom: 18%;
  right: 18%;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.12) 0%, transparent 70%);
  animation-delay: 1.8s;
}

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

/* Шапка */
header {
  background: linear-gradient(90deg, #FF69B4, #7CFC00); /* Градиент Розовый-Лайм */
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(124, 252, 0, 0.25); /* Тень лайм */
  border-bottom: 2px solid #FFB6C1; /* Светло-розовая граница */
}

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

header h1 a {
  color: #F7FFF7; /* Контраст с фоном */
  text-decoration: none;
  font-family: 'Pacifico', cursive; /* Заголовок */
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

nav a {
  color: #F7FFF7; /* Контраст с фоном */
  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: #7CFC00; /* Лайм */
  transform: translateY(-2px);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -7px;
  left: 0;
  background: linear-gradient(90deg, #FF69B4, #7CFC00); /* Градиент Розовый-Лайм */
  transition: width 0.4s ease;
}

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

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

main section {
  background-color: #FFFFFF; /* Белый */
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(124, 252, 0, 0.15); /* Тень лайм */
  border: 1px solid #E0FFE0; /* Светло-зелёная граница */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

main section:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 105, 180, 0.2); /* Тень розовая */
}

/* Эффект "сияния" при наведении */
main section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 252, 0, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  pointer-events: none;
}

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

/* Заголовки */
h1, h2 {
  font-family: 'Pacifico', cursive; /* Заголовок */
  color: #FF69B4; /* Ярко-розовый */
  margin-bottom: 1.4rem;
  line-height: 1.2;
  text-align: center;
}

h1 {
  font-size: 2.7rem;
}

h2 {
  font-size: 2rem;
}

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

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #7CFC00, #FF69B4); /* Градиент Лайм-Роза */
  color: #F7FFF7; /* Контраст с градиентом */
  text-decoration: none;
  font-family: 'Lora', serif;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  margin-top: 1.3rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(124, 252, 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 20px rgba(255, 105, 180, 0.4); /* Тень розовая */
  background: linear-gradient(135deg, #6BEC00, #E0529F); /* Темнее */
}

.btn-outline {
  background: transparent;
  border: 2px solid #FF69B4; /* Ярко-розовый */
  color: #FF69B4; /* Ярко-розовый */
}

.btn-outline:hover {
  background: #FF69B4; /* Ярко-розовый */
  color: #F7FFF7; /* Контраст */
}

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

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

form input,
form textarea {
  width: 100%;
  padding: 0.85rem;
  margin-bottom: 1.3rem;
  border: 1px solid #98FB98; /* Светло-зелёный */
  border-radius: 4px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  background-color: #F0FFF0; /* Светло-зелёный фон */
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #7CFC00; /* Лайм */
}

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

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

/* Подвал */
footer {
  background: linear-gradient(135deg, #2F4F2F, #FF69B4); /* Градиент Тёмно-зелёный-Розовый */
  color: #D0FFD0; /* Светло-зелёный */
  padding: 3.2rem 2rem 1.6rem;
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid #7CFC00; /* Лайм */
}

footer nav {
  margin-bottom: 1.6rem;
}

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

footer a:hover {
  color: #7CFC00; /* Лайм */
}

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

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

  header {
    padding: 1.2rem;
  }

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

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

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  form {
    padding: 1.8rem;
  }
}