/* styles/main.css */

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

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

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

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

/* Анимированные волны */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230066cc" fill-opacity="0.05" d="M0,128L48,138.7C96,149,192,171,288,165.3C384,160,480,128,576,128C672,128,768,160,864,176C960,192,1056,192,1152,181.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Шапка */
header {
  background: linear-gradient(90deg, #0066CC, #0099FF); /* Синий градиент */
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
  border-bottom: 2px solid #33CCFF; /* Светло-синий */
}

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

header h1 a {
  color: #E6F3FF; /* Светло-голубой */
  text-decoration: none;
  font-family: 'Montserrat', sans-serif; /* Заголовок */
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(51, 204, 255, 0.5);
}

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

nav a {
  color: #E6F3FF; /* Светло-голубой */
  text-decoration: none;
  font-family: 'Raleway', sans-serif; /* Основной текст */
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s, transform 0.2s;
}

nav a:hover {
  color: #33CCFF; /* Светло-синий */
  transform: translateY(-3px);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 0;
  background: linear-gradient(90deg, #0066CC, #0099FF); /* Синий градиент */
  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: rgba(255, 255, 255, 0.85); /* Полупрозрачный белый */
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
  border: 1px solid rgba(0, 153, 255, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
  backdrop-filter: blur(10px); /* Эффект стекла */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main section:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 102, 204, 0.25);
}

/* Эффект "потока" */
main section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

/* Заголовки */
h1, h2 {
  font-family: 'Montserrat', sans-serif; /* Заголовок */
  color: #0066CC; /* Насыщенный синий */
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
}

h1 {
  font-size: 2.7rem;
}

h2 {
  font-size: 2rem;
}

h1::after, h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0066CC, #0099FF); /* Синий градиент */
  border-radius: 2px;
}

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

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #0066CC, #0099FF); /* Синий градиент */
  color: #E6F3FF; /* Светло-голубой */
  text-decoration: none;
  font-family: 'Montserrat', 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(0, 102, 204, 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(0, 102, 204, 0.5);
  background: linear-gradient(135deg, #0055AA, #0088EE); /* Темнее при наведении */
}

.btn-outline {
  background: transparent;
  border: 2px solid #0066CC; /* Насыщенный синий */
  color: #0066CC; /* Насыщенный синий */
  box-shadow: none;
}

.btn-outline:hover {
  background: #0066CC; /* Насыщенный синий */
  color: #E6F3FF; /* Светло-голубой */
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Форма */
form {
  background: rgba(255, 255, 255, 0.9); /* Полупрозрачный белый */
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
  border: 1px solid rgba(0, 153, 255, 0.2);
  max-width: 100%;
  margin: 2rem 0;
  backdrop-filter: blur(10px); /* Эффект стекла */
}

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

form input,
form textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1.4rem;
  border: 1px solid #0099FF; /* Ярко-синий */
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  background-color: rgba(230, 243, 255, 0.5); /* Светло-голубой */
  transition: border-color 0.3s, background-color 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #0066CC; /* Насыщенный синий */
  background-color: #fff;
}

form button {
  width: 100%;
  max-width: 270px;
  background: linear-gradient(135deg, #0066CC, #0099FF); /* Синий градиент */
  color: #E6F3FF; /* Светло-голубой */
  font-weight: 600;
  padding: 1rem;
}

/* Контактная информация */
.contact-info {
  text-align: left;
  margin-top: 1.8rem;
  padding: 1.2rem;
  background: rgba(230, 243, 255, 0.7); /* Светло-голубой */
  border-radius: 8px;
  border-left: 5px solid #0066CC; /* Насыщенный синий */
  backdrop-filter: blur(5px);
}

/* Подвал */
footer {
  background: linear-gradient(90deg, #0A2A4D, #0066CC); /* Тёмно-синий градиент */
  color: #B3D9FF; /* Светло-синий */
  padding: 3.5rem 2rem 1.8rem;
  margin-top: 5rem;
  text-align: center;
  border-top: 2px solid #0099FF; /* Ярко-синий */
}

footer nav {
  margin-bottom: 1.8rem;
}

footer a {
  color: #B3D9FF; /* Светло-синий */
  text-decoration: none;
  margin: 0 1.2rem;
  font-size: 1rem;
  font-family: 'Raleway', sans-serif;
  transition: color 0.3s;
}

footer a:hover {
  color: #33CCFF; /* Светло-синий */
}

footer p {
  font-size: 0.95rem;
  color: #99C2E0; /* Светлее */
}

/* Адаптивность */
@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;
  }
}