/* styles/main.css */

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

body {
  font-family: 'Nunito', sans-serif; /* Основной текст */
  line-height: 1.75;
  color: #2F4F4F; /* Тёмно-серо-синий */
  background: linear-gradient(135deg, #FFF8F0, #F0FFFF, #F5F5DC); /* Градиент: светло-оранжевый -> бирюзовый -> бежевый */
  overflow-x: hidden;
  position: relative;
}

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

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

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

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

.wave-element:nth-of-type(2) {
  bottom: 20%;
  right: 10%;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
  animation-delay: 3s;
}

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

/* Шапка */
header {
  background: linear-gradient(90deg, #00CED1, #FF8C00); /* Градиент бирюзовый-оранжевый */
  padding: 1.6rem 2.2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 206, 209, 0.25);
  border-bottom: 2px solid #D3D3D3; /* Светло-серая граница */
}

.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: 'Poppins', sans-serif; /* Заголовок */
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
}

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

nav a {
  color: #FFF8F0; /* Контраст с фоном */
  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, #00CED1, #FF8C00); /* Бирюзово-оранжевый */
  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: 3rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 206, 209, 0.15); /* Бирюзовый */
  border: 1px solid #E0FFFF; /* Очень светло-бирюзовый */
  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, 140, 0, 0.2); /* Оранжевый */
}

/* Эффект "сияния" при наведении */
main section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 206, 209, 0.1), transparent 70%);
  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: 'Poppins', sans-serif; /* Заголовок */
  color: #008B8B; /* Тёмно-бирюзовый */
  margin-bottom: 1.4rem;
  line-height: 1.2;
  text-align: center;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2rem;
}

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

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #00CED1, #FF8C00); /* Бирюзово-оранжевый */
  color: #FFF8F0; /* Контраст с градиентом */
  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, 206, 209, 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.05);
  box-shadow: 0 6px 25px rgba(255, 140, 0, 0.4); /* Оранжевый */
  background: linear-gradient(135deg, #00B7BA, #E57C00); /* Темнее */
}

.btn-outline {
  background: transparent;
  border: 2px solid #00CED1; /* Бирюзовый */
  color: #00CED1; /* Бирюзовый */
}

.btn-outline:hover {
  background: #00CED1; /* Бирюзовый */
  color: #FFF8F0; /* Контраст */
}

/* Форма */
form {
  background-color: #FFFFFF; /* Белый */
  padding: 2.4rem;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 206, 209, 0.12); /* Бирюзовый */
  border: 1px solid #D1D1D1; /* Нейтральный серый */
  max-width: 100%;
  margin: 2rem 0;
}

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

form input,
form textarea {
  width: 100%;
  padding: 0.85rem;
  margin-bottom: 1.3rem;
  border: 1px solid #B0E0E6; /* Светло-бирюзовый */
  border-radius: 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  background-color: #F5FFFA; /* Очень светло-бирюзовый */
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #00CED1; /* Ярко-бирюзовый */
}

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

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

/* Подвал */
footer {
  background: linear-gradient(135deg, #2F4F4F, #00CED1); /* Градиент Тёмно-серый-Бирюзовый */
  color: #D3D3D3; /* Светло-серый */
  padding: 3.4rem 2.2rem 1.7rem;
  margin-top: 4.5rem;
  text-align: center;
  border-top: 1px solid #FF8C00; /* Оранжевый */
}

footer nav {
  margin-bottom: 1.7rem;
}

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

footer a:hover {
  color: #FFD700; /* Золотой */
}

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;
  }
}